From dab59f7624a2fb8d4114bb67b554ff09d91f810c Mon Sep 17 00:00:00 2001 From: spring <2396852758@qq.com> Date: 星期四, 10 四月 2025 13:07:36 +0800 Subject: [PATCH] Merge branch 'radio-frequency-cable' of http://114.132.189.42:9002/r/lims-ruoyi-before into radio-frequency-cable --- src/views/business/inspectionTask/inspection.vue | 69 ++++++++++++++++++++++++++-------- 1 files changed, 52 insertions(+), 17 deletions(-) diff --git a/src/views/business/inspectionTask/inspection.vue b/src/views/business/inspectionTask/inspection.vue index 37469e3..e83d703 100644 --- a/src/views/business/inspectionTask/inspection.vue +++ b/src/views/business/inspectionTask/inspection.vue @@ -147,8 +147,7 @@ </div> <!-- 甯歌妫�楠屽師濮嬭褰� --> <div id="nav" v-loading="tableLoading" class="center-box"> - <template v-if=" - tableLists.find((m) => m.templateId == currentTable)"> + <template v-if="tableLists.find((m) => m.templateId == currentTable)"> <table v-for="(item, index) in tableList" :key="index + currentTable + currentSample.id" border="1" cellpadding="10" class="tables" id="myTable"> <tbody> @@ -167,8 +166,7 @@ };`"> <div :class="`content-h-${n.v.ht} content-v-${n.v.vt}`" :style="`width:${handleWidth(n)}px !important;min-height:${item.style.rowlen[n.r] }px;`" class="content"> - <template v-if=" - n.v.ps != undefined && + <template v-if="n.v.ps != undefined && typeof n.v.ps.value === 'string' && n.v.ps.value.includes('妫�楠屽��') && state == 1 @@ -254,8 +252,7 @@ <span v-else :style="`font-family:${n.v.ff} !important;`">寰呭畾</span> </template> </template> - <template v-else-if=" - n.v.ps != undefined && + <template v-else-if="n.v.ps != undefined && n.v.ps.value === '璁惧缂栫爜' && state == 1 "> @@ -274,8 +271,7 @@ </el-option> </el-select> </template> - <template v-else-if=" - n.v.ps != undefined && + <template v-else-if="n.v.ps != undefined && n.v.ps.value === '瑕佹眰鍊�' && state == 1 "> @@ -299,8 +295,7 @@ toFixed(n.v.v, n.v.ct) }}</span> </template> - <template v-else-if=" - n.v.ps != undefined && n.v.ps.value === '鏍峰搧缂栧彿' + <template v-else-if="n.v.ps != undefined && n.v.ps.value === '鏍峰搧缂栧彿' "> <div :title="currentSample.sampleCode" style=" display: flex; @@ -316,15 +311,27 @@ <i class="el-icon-caret-right table_caret" style="width: 16px" @click="caretSample(1)"></i> </div> </template> - <template v-else-if=" - n.v.ps != undefined && n.v.ps.value === '鏍峰搧鍨嬪彿' + <template v-else-if="n.v.ps != undefined && n.v.ps.value === '鏍峰搧鍨嬪彿' "> - <div v-if=" - currentSample.model !== undefined && + <div v-if="currentSample.model !== undefined && currentSample.model !== null " :style="`font-family:${n.v.ff} !important;`"> {{ currentSample.model }} </div> + </template> + <template v-else-if="n.v.ps != undefined && n.v.ps.value === '璧峰鏃堕棿' + "> + <span v-if="state > 1 || (n.u != userId && n.u != undefined && n.u != '')">{{ n.v.v }}</span> + <el-date-picker v-else v-model="n.v.v" type="datetime" placeholder="" format="yyyy-MM-dd HH:mm:ss" + value-format="yyyy-MM-dd HH:mm:ss"> + </el-date-picker> + </template> + <template v-else-if="n.v.ps != undefined && n.v.ps.value === '缁堟鏃堕棿' + "> + <span v-if="state > 1 || (n.u != userId && n.u != undefined && n.u != '')">{{ n.v.v }}</span> + <el-date-picker v-else v-model="n.v.v" type="datetime" placeholder="" format="yyyy-MM-dd HH:mm:ss" + value-format="yyyy-MM-dd HH:mm:ss"> + </el-date-picker> </template> <span v-else :style="`font-family:${n.v.ff} !important;`" v-html="getValue(n.v)"></span> </div> @@ -509,7 +516,7 @@ <InspectionWord v-if="unPassCheck" :inspectorList="inspectorList" :orderId="orderId" :rawMaterialTag="rawMaterialTag" :sonLaboratory="sonLaboratory" :state="state" :typeSource="typeSource" :unPassCheck="unPassCheck" @closeUnPassCheckDialog="closeUnPassCheckDialog" @refreshView="refreshView" /> - <purchase-verification v-if="purchaseDialog" ref="purchaseDialog" :orderId="orderId" + <purchase-verification v-if="purchaseDialog" ref="purchaseDialog" :orderId="orderId" :workShopId="workShopId" :purchaseDialog="purchaseDialog" @resetPurchaseDialog="resetPurchaseDialog"></purchase-verification> <!--鏌ョ湅宸ユ椂寮规--> <viewManHourDia ref="viewManHourDia" @submit="openAddVerifyDia"></viewManHourDia> @@ -560,6 +567,7 @@ data() { return { sonLaboratory: null, + workShopId: null, orderId: null, state: null, inspectorList: null, @@ -776,8 +784,9 @@ }, }, created() { - let { sonLaboratory, orderId, state, inspectorList, typeSource } = + let { sonLaboratory, orderId, state, inspectorList, typeSource, workShopId } = this.$route.query; + this.workShopId = workShopId this.sonLaboratory = sonLaboratory; this.orderId = orderId; this.id = this.orderId; @@ -1952,7 +1961,13 @@ (a.template[b].v.ps.value === "璇曢獙鏂规硶" || a.template[b].v.ps.value === "妫�娴嬫柟娉�") ) { - a.template[b].v.v = id.product.methodS; + a.template[b].v.v = id.product.method; + } + if ( + a.template[b].v.ps != undefined && + a.template[b].v.ps.value === "璇曢獙鏉′欢" + ) { + a.template[b].v.v = id.product.radius; } } } @@ -2041,6 +2056,26 @@ // b.v.v = '' b.i && this.param[b.i] && this.param[b.i].equipName.push(b); } + if (b.v.ps != undefined && b.v.ps.value === "璧峰鏃堕棿") { + this.$set(b.v, "v", ""); + b.u = ""; + let obj = this.currentSample.insProduct.find(m => m.id == b.i) + if (obj) { + this.$set(b, "u", obj.checkUserId); + } + // b.v.v = '' + // b.i && this.param[b.i] && this.param[b.i].equipName.push(b); + } + if (b.v.ps != undefined && b.v.ps.value === "缁堟鏃堕棿") { + this.$set(b.v, "v", ""); + b.u = ""; + let obj = this.currentSample.insProduct.find(m => m.id == b.i) + if (obj) { + this.$set(b, "u", obj.checkUserId); + } + // b.v.v = '' + // b.i && this.param[b.i] && this.param[b.i].equipName.push(b); + } if (b.v.ps != undefined && b.v.ps.value === "鏈�缁堝��") { // b.v.v = '' this.$set(b.v, "v", ""); -- Gitblit v1.9.3