From e9352432fd356691e8322af7a79781983f9932f9 Mon Sep 17 00:00:00 2001 From: licp <lichunping@guanfang.com.cn> Date: 星期二, 19 三月 2024 13:07:28 +0800 Subject: [PATCH] Merge branch 'master' of http://114.132.189.42:9002/r/center-lims-before into master --- src/components/do/b1-ins-order/add.vue | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/components/do/b1-ins-order/add.vue b/src/components/do/b1-ins-order/add.vue index fc68c15..1758b5a 100644 --- a/src/components/do/b1-ins-order/add.vue +++ b/src/components/do/b1-ins-order/add.vue @@ -220,7 +220,7 @@ <el-table-column label="鎿嶄綔" width="65" align="center"> <template slot-scope="scope"> {{scope.index}} - <el-button type="text" size="small" @click="sampleList.splice(scope.$index, 1)" :disabled="active!=1">鍒犻櫎</el-button> + <el-button type="text" size="small" @click="delSampleAndProduct" :disabled="active!=1">鍒犻櫎</el-button> </template> </el-table-column> </el-table> @@ -848,6 +848,10 @@ this.sampleList = obj.sampleList; }) }, + delSampleAndProduct(){ + this.sampleList.splice(scope.$index, 1) + this.productList = [] + } } } </script> -- Gitblit v1.9.3