From 88810da4cf6f4c54c11fd11cbba760a7058e22b5 Mon Sep 17 00:00:00 2001 From: licp <lichunping@guanfang.com.cn> Date: 星期四, 12 九月 2024 14:16:58 +0800 Subject: [PATCH] 检验标准多选,优化审核按钮 --- src/components/do/b1-ins-order/equip-config.vue | 20 ++++---------------- 1 files changed, 4 insertions(+), 16 deletions(-) diff --git a/src/components/do/b1-ins-order/equip-config.vue b/src/components/do/b1-ins-order/equip-config.vue index ddf3fbd..dde2bd5 100644 --- a/src/components/do/b1-ins-order/equip-config.vue +++ b/src/components/do/b1-ins-order/equip-config.vue @@ -48,7 +48,7 @@ <template slot-scope="scope"> <el-select v-model="scope.row.standardMethodListId" :disabled="scope.row.model==null||active>1" placeholder="妫�楠屾爣鍑�" size="small" :loading="methodLoad" @change="(value)=>methodChange(value, scope.row)" - @focus="methodFocus" :readonly="active>1" style="width: 100%;"> + @focus="methodFocus" :readonly="active>1" style="width: 100%;" multiple> <el-option v-for="item in methods" :key="item.id" :label="item.code" :value="item.id"> </el-option> </el-select> @@ -81,7 +81,7 @@ <template slot-scope="scope"> <el-input size="small" placeholder="瑕佹眰鍊�" v-model="scope.row.ask" clearable type="textarea" :autosize="{ minRows: 1, maxRows: 3}" @change="e=>requestChange(e,scope.row)" - v-if="active==1&&isAskOnlyRead"></el-input> + v-if="active==1"></el-input> <span v-else>{{ scope.row.ask }}</span> </template> </el-table-column> @@ -245,12 +245,6 @@ }, rowClick(row, column, event) { this.currentMethod = row - let obj = this.methods.find(a => a.id == this.currentMethod.standardMethodListId) - if (obj && obj.code == '濮旀墭瑕佹眰') { - this.isAskOnlyRead = true - } else { - this.isAskOnlyRead = false - } this.sampleId = row.id if (this.active !== 1) { this.sampleIds = [] @@ -286,16 +280,10 @@ methodChange(val, row) { if (val === null || val === '') return this.currentMethod = row - let obj = this.methods.find(a => a.id == this.currentMethod.standardMethodListId) - if (obj && obj.code == '濮旀墭瑕佹眰') { - this.isAskOnlyRead = true - } else { - this.isAskOnlyRead = false - } this.getProductLoad = true this.$axios.post(this.$api.standardTree.selectStandardProductList, { model: row.model + '-' + row.modelNum, - standardMethodListId: val, + standardMethodListId: val.join(','), factory: this.selectTree, }, { headers: { @@ -473,7 +461,7 @@ this.sample.sample = this.addObj.sample this.sample.model = this.addObj.model this.sample.unit = this.addObj.unit - this.sample.standardMethodListId = null + this.sample.standardMethodListId = [] this.sample.insProduct = [] this.sample.id = this.count this.sample.num = this.addObj.sampleNum -- Gitblit v1.9.3