From dbe4babec1921f0a4f1abcb85e25d8b6766a0b99 Mon Sep 17 00:00:00 2001 From: licp <lichunping@guanfang.com.cn> Date: 星期二, 30 七月 2024 17:47:05 +0800 Subject: [PATCH] 修改检验下单项目样式 --- src/components/do/b1-ins-order/add.vue | 50 ++++++++++++++++++++++++++++++++------------------ 1 files changed, 32 insertions(+), 18 deletions(-) diff --git a/src/components/do/b1-ins-order/add.vue b/src/components/do/b1-ins-order/add.vue index 160ebde..f8c2091 100644 --- a/src/components/do/b1-ins-order/add.vue +++ b/src/components/do/b1-ins-order/add.vue @@ -74,18 +74,18 @@ display: flex; flex-direction: row; justify-content: space-between; - .opticalProject { - width: 38%; - } - .temperatureList { - width: 60%; - .temperatureListTitle { - display: flex; - flex-direction: row; - justify-content: space-between; - line-height: 30px; - } - } + } + .opticalProject { + width: 38%; + } + .temperatureList { + width: 60%; + } + .temperatureListTitle { + display: flex; + flex-direction: row; + justify-content: space-between; + line-height: 30px; } </style> <style> @@ -118,7 +118,7 @@ } .ins_order_add .el-table .warning-row .cell { - color: #bababa; + color: #3A7BFA; } .ins_order_add .el-select .is-disabled { @@ -849,6 +849,7 @@ <el-button type="primary" @click="spliceData">淇濆瓨</el-button> </span> </el-dialog> + <!-- 鐢靛姏璇曢獙瀹�---娓╁崌璇曢獙/鐑惊鐜� --> <el-dialog :title="temperatureTitle" :visible.sync="temperatureShow" width="260px" :before-close="temperatureShowClose" :show-close="false"> <div> <div v-if="isShowInput" style="margin-bottom: 6px"> @@ -1740,9 +1741,22 @@ str: JSON.stringify({ insOrder: this.addObj, list: JSON.stringify(sampleList.map(a => { - a.model = a.model + ((a.modelNum == null || a.modelNum == '' || a.modelNum == 'null') ? - '' : ( - '-' + a.modelNum)) + if (this.PROJECT === '瑁呭鐢电紗') { + if (a.modelNum) { + const index = a.modelNum.indexOf('脳') + if (index === 0) { + a.model = a.model + a.modelNum + } else if (index === -1) { + a.model = a.model + '-' + a.modelNum + } else { + a.model = a.modelNum + a.model + } + } else { + a.model = a.model + ((a.modelNum == null || a.modelNum == '' || a.modelNum == 'null') ? '' : ('-' + a.modelNum)) + } + } else { + a.model = a.model + ((a.modelNum == null || a.modelNum == '' || a.modelNum == 'null') ? '' : ('-' + a.modelNum)) + } a.insProduct = a.insProduct.filter(b=>b.state === 1) return a })), @@ -2136,9 +2150,9 @@ rowIndex }) { if (row.state === 0) { - return 'warning-row'; + return ''; } - return ''; + return 'warning-row'; }, selectInsOrderTemplate() { this.$axios.get(this.$api.insOrder.selectInsOrderTemplate).then(res => { -- Gitblit v1.9.3