From 6b654d61f4af1cb3b8fb38344c82a6305174c67d Mon Sep 17 00:00:00 2001 From: licp <lichunping@guanfang.com.cn> Date: 星期二, 17 十二月 2024 09:26:09 +0800 Subject: [PATCH] 下单优化 --- src/components/do/b1-ins-order/add.vue | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/src/components/do/b1-ins-order/add.vue b/src/components/do/b1-ins-order/add.vue index 01ac43a..975e112 100644 --- a/src/components/do/b1-ins-order/add.vue +++ b/src/components/do/b1-ins-order/add.vue @@ -489,7 +489,7 @@ <el-table-column prop="testRequirements" label="璇曢獙鏍囧噯" align="center" min-width="100"> <template slot-scope="scope"> <el-select v-model="scope.row.testRequirements" :disabled="scope.row.model==null||active>1" - placeholder="璇曢獙鏍囧噯" size="small" :readonly="active>1" style="width: 100%;" clearable> + placeholder="璇曢獙鏍囧噯" size="small" :readonly="active>1" style="width: 100%;" clearable @change="changeModel0(scope.row)"> <el-option v-for="item in standard" :key="item.id" :label="item.label" :value="item.value"> </el-option> </el-select> @@ -2960,10 +2960,18 @@ let obj = this.sampleIds.find(b => b == a.id) if (obj) { this.$set(a,type, this.allInfo[type]) + if(type=='testRequirements'&&a.standardMethodListId&&a.standardMethodListId.length>0){ + this.methodChange(a.standardMethodListId, a) + } // a[type] = this.allInfo[type] } }) }, + changeModel0(row){ + if(row.standardMethodListId&&row.standardMethodListId.length>0){ + this.methodChange(row.standardMethodListId, row) + } + }, changeStandardMethodListId() { this.sampleList.forEach(a => { let obj = this.sampleIds.find(b => b == a.id) -- Gitblit v1.9.3