From b33c9683febaa4cf6ba9fe790cafd0371c381027 Mon Sep 17 00:00:00 2001 From: licp <lichunping@guanfang.com.cn> Date: 星期五, 21 六月 2024 15:08:14 +0800 Subject: [PATCH] 修改检验下单bug --- src/components/view/b3-work-time-management.vue | 2 ++ src/components/tool/value-table.vue | 2 +- src/main.js | 8 ++++---- src/components/do/b1-inspect-order-plan/Inspection.vue | 10 ++++++++-- src/components/view/a6-device-management.vue | 1 + 5 files changed, 16 insertions(+), 7 deletions(-) diff --git a/src/components/do/b1-inspect-order-plan/Inspection.vue b/src/components/do/b1-inspect-order-plan/Inspection.vue index 7f4494f..e7241a3 100644 --- a/src/components/do/b1-inspect-order-plan/Inspection.vue +++ b/src/components/do/b1-inspect-order-plan/Inspection.vue @@ -60,6 +60,8 @@ width: 100px; text-align: center; font-size: 14px; + word-wrap: break-word; + white-space: normal; } .content { @@ -348,7 +350,7 @@ v-if="currentFiberOptic" class="el-icon-caret-right table_caret" @click="caretOptic(1)"></i> </div> </template> - <span v-else :style="`font-family:${n.v.ff} !important;`">{{n.v.v}}</span> + <span v-else :style="`font-family:${n.v.ff} !important;`" v-html="getValue(n.v)" ></span> </div> </td> </tr> @@ -1482,7 +1484,7 @@ valueList = [] let regex = /[=\+\-\*\%\(\)\/\^\s]/g let mode = item.v.f.replace(regex, ' ').split(' '); - mode.filter(m => m && !Number(m)).forEach(m => { + mode.filter(m => m && !Number(m)&&m!='undefined').forEach(m => { let r = m.replace(/[a-zA-Z]/g, "") - 1 let c = this.comparisonList.find(j => j.label == m.split('')[0]).value valueList.push({ @@ -1510,6 +1512,10 @@ return (sortedArr[half - 1] + sortedArr[half]) / 2; } }, + getValue(v){ + let str = v.v?v.v:(v.ct&&v.ct.s?v.ct.s.length>0&&v.ct.s[0].v:'').replaceAll('\n','<br/>') + return str + }, getInspectionValueType(id) { for (var a in this.currentSample.insProduct) { if (this.currentSample.insProduct[a].id == id) { diff --git a/src/components/tool/value-table.vue b/src/components/tool/value-table.vue index 127e63e..915b452 100644 --- a/src/components/tool/value-table.vue +++ b/src/components/tool/value-table.vue @@ -120,7 +120,7 @@ <el-table-column type="index" align="center" label="搴忓彿" width="65" v-if="data.isIndex" :key="Math.random()"> </el-table-column> <el-table-column :prop="a.label" :label="a.value" :sortable="data.sort==false?false:'custom'" - v-for="(a, ai) in tableHead" :key="ai" show-overflow-tooltip min-width="155"> + v-for="(a, ai) in tableHead" :key="ai" show-overflow-tooltip min-width="155" v-if="!data.headNoShow||(data.headNoShow&&data.headNoShow.length==0)||(data.headNoShow&&data.headNoShow.length>0&&!data.headNoShow.find(d=>d==a.label))"> <template slot-scope="scope"> <div v-if="showType(a.label, data.tagField) != null"> <template v-if="typeof(scope.row[a.label]) == 'object'"> diff --git a/src/components/view/a6-device-management.vue b/src/components/view/a6-device-management.vue index 976c56e..974a79f 100644 --- a/src/components/view/a6-device-management.vue +++ b/src/components/view/a6-device-management.vue @@ -477,6 +477,7 @@ type: 'text', method: 'handleConfig' }], + headNoShow:['enDeviceName'], tagField: { deviceStatus: { select: [] diff --git a/src/components/view/b3-work-time-management.vue b/src/components/view/b3-work-time-management.vue index 66d77a4..f5cf7e0 100644 --- a/src/components/view/b3-work-time-management.vue +++ b/src/components/view/b3-work-time-management.vue @@ -25,6 +25,8 @@ workTimeManagement, workTimeConfig }, + mounted() { + }, data() { return{ currentComponent:'workTimeStatistics' diff --git a/src/main.js b/src/main.js index ef61e96..a051bd2 100644 --- a/src/main.js +++ b/src/main.js @@ -15,17 +15,17 @@ Vue.prototype.PROJECT = '妫�娴嬩腑蹇�' // Vue.prototype.PROJECT = '瑁呭鐢电紗' //鏈湴 -Vue.prototype.LOCATIONVUE = "http://127.0.0.1:80"; +// Vue.prototype.LOCATIONVUE = "http://127.0.0.1:80"; // const javaApi = 'http://127.0.0.1:8001'; -const javaApi = 'http://192.168.0.104:8001'; +// const javaApi = 'http://192.168.0.104:8001'; //浜� // Vue.prototype.LOCATIONVUE = "http://114.132.189.42:8080"; // const javaApi = 'http://114.132.189.42:1234'; //妫�娴嬩腑蹇冩寮忓簱 -// Vue.prototype.LOCATIONVUE = "http://10.1.200.86:8080"; -// const javaApi = 'http://10.1.200.86:8001'; +Vue.prototype.LOCATIONVUE = "http://10.1.200.86:8080"; +const javaApi = 'http://10.1.200.86:8001'; //瑁呭鐢电紗娴嬭瘯搴� // Vue.prototype.LOCATIONVUE = "http://10.16.173.59"; -- Gitblit v1.9.3