| | |
| | | </el-radio-group> |
| | | </div> |
| | | <div style="display: flex; align-items: center"> |
| | | <el-button v-if="state == 1" size="small" type="primary" @click="openAddUnpass">新增不合格复测</el-button> |
| | | <!-- <el-button v-if="state == 1" size="small" type="primary" @click="openAddUnpass">新增不合格复测</el-button> |
| | | <el-button v-if="state == 1" size="small" type="primary" @click="unpassCheck">不合格复测</el-button> |
| | | <el-button v-if="state > 1" size="small" type="primary" @click="viewUnpassCheck">查看不合格复测</el-button> |
| | | <el-button v-if="state > 1" size="small" type="primary" @click="viewUnpassCheck">查看不合格复测</el-button> --> |
| | | <span v-if="cableTagList.length > 0"> 电缆配置:</span> |
| | | <el-select v-if="cableTagList.length > 0" v-model="currentTab" clearable placeholder="请选择" size="small" |
| | | @change="(m) => handleChangeCableTag(currentSample.id, 0, 'cableTag', m) |
| | |
| | | type="success">已检</el-tag> |
| | | </el-option> |
| | | </el-select> |
| | | <!-- 网分仪数采国产/进口 --> |
| | | <NetworkAnalyzerDataAcquisition :itemList="currentSample.insProduct" :param="param" |
| | | :equipOptions="equipOptions" |
| | | v-if="currentSample.insProduct && currentSample.insProduct.length > 0 && param" /> |
| | | <el-button :loading="dataAcquisitionLoading" v-if="state == 1" size="small" type="primary" |
| | | @click="getDataAcquisitionDevice">数据采集</el-button> |
| | | <el-button :type="dataAcquisitionEidtAble ? '' : 'primary'" v-if="state == 1" size="small" |
| | |
| | | state == 1 |
| | | "><span :style="`font-family:${n.v.ff} !important;`">{{ |
| | | toFixed(n.v.v, n.v.ct) |
| | | }}</span></template> |
| | | }}</span></template> |
| | | <template v-else-if=" |
| | | n.v.ps != undefined && |
| | | n.v.ps.value === '最终值' && |
| | |
| | | import UnPassDialog from "../unpass/components/unPassDialog.vue"; |
| | | import AddUnPass from "../unpass/components/addUnPass.vue"; |
| | | import InspectionWord from "./components/InspectionWord.vue"; |
| | | import NetworkAnalyzerDataAcquisition from "./components/NetworkAnalyzerDataAcquisition.vue"; |
| | | import PurchaseVerification from "../unpass/components/PurchaseVerification.vue"; |
| | | import { |
| | | doInsOrder, |
| | |
| | | limsTable, |
| | | UnPassDialog, |
| | | InspectionWord, |
| | | NetworkAnalyzerDataAcquisition, |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | // 赋值当前样品列表 |
| | | this.sampleProduct = res.data.sampleProduct; |
| | | this.currentSample = this.HaveJson(this.sampleProduct[0]); |
| | | let insProduct = this.HaveJson(this.currentSample.insProduct); |
| | | // let insProduct = this.HaveJson(this.currentSample.insProduct); |
| | | // 温度、湿度赋值 |
| | | this.otherForm = { |
| | | temperature: this.insOrder.temperature |
| | |
| | | }, |
| | | // 多线程 |
| | | startWorker() { |
| | | console.log(`Worker 线程开始运行...`, this.worker, this.worker0) |
| | | if (this.worker) { |
| | | this.stopWorker(); // 确保之前的 Worker 已停止 |
| | | } |
| | |
| | | repetitionTag: this.repetitionTag |
| | | }); |
| | | this.tableLoading = false; |
| | | if (res.data.length > 0) { |
| | | if (res.data) { |
| | | return res.data; |
| | | } |
| | | }, |
| | |
| | | if (obj) { |
| | | this.$set(b, "u", obj.checkUserId); |
| | | } |
| | | this.param[b.i].testStartTime = [] |
| | | // this.param[b.i].testStartTime = [] |
| | | b.i && this.param[b.i] && this.param[b.i].testStartTime.push(b); |
| | | } |
| | | if (b.v.ps != undefined && b.v.ps.value === "终止时间") { |
| | |
| | | if (obj) { |
| | | this.$set(b, "u", obj.checkUserId); |
| | | } |
| | | this.param[b.i].testEndTime = [] |
| | | // this.param[b.i].testEndTime = [] |
| | | b.i && this.param[b.i] && this.param[b.i].testEndTime.push(b); |
| | | } |
| | | if (b.v.ps != undefined && b.v.ps.value === "最终值") { |
| | |
| | | } |
| | | try { |
| | | // 起始时间赋值 |
| | | this.$set(this.param[a.id].testStartTime[0].v, 'v', a.insProductResult.testStartTime[0]) |
| | | let testStartTime = a.insProductResult.testStartTime ? JSON.parse(a.insProductResult.testStartTime) : [] |
| | | for (let i = 0; i < testStartTime.length; i++) { |
| | | // 普通设备名称赋值 |
| | | this.param[a.id].testStartTime[i].v.v = testStartTime[i].v; |
| | | } |
| | | } catch (e) { |
| | | |
| | | } |
| | | try { |
| | | // 终止时间赋值 |
| | | this.$set(this.param[a.id].testEndTime[0].v, 'v', a.insProductResult.testEndTime[0]) |
| | | let testEndTime = a.insProductResult.testEndTime ? JSON.parse(a.insProductResult.testEndTime) : [] |
| | | for (let i = 0; i < testEndTime.length; i++) { |
| | | // 普通设备名称赋值 |
| | | this.param[a.id].testEndTime[i].v.v = testEndTime[i].v; |
| | | } |
| | | } catch (e) { } |
| | | try { |
| | | // 最终值赋值 |
| | |
| | | }, |
| | | // 起始时间/终止时间保存 |
| | | changeTestTime(val, n, type) { |
| | | // this.param[n.i][type] |
| | | // console.log(22222, val, n, type, this.param) |
| | | this.$set(this.param[n.i][type][0].v, 'v', val) |
| | | this.saveInsContext(n.i); |
| | | }, |