From 14cd7084961205846e3ca8770da70dce9e2bbe75 Mon Sep 17 00:00:00 2001 From: licp <lichunping@guanfang.com.cn> Date: 星期三, 20 三月 2024 15:48:54 +0800 Subject: [PATCH] 完成样品管理页面 --- src/components/view/b1-inspection-order.vue | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/src/components/view/b1-inspection-order.vue b/src/components/view/b1-inspection-order.vue index ac0a7ca..d9a4091 100644 --- a/src/components/view/b1-inspection-order.vue +++ b/src/components/view/b1-inspection-order.vue @@ -155,7 +155,7 @@ </div> </el-col> <el-col class="search_thing" :span="22"> - <div class="search_label"><span class="required-span">* </span>鎸囨淳浜哄憳锛�</div> + <div class="search_label"><span class="required-span" v-show="distributeData.type==2">* </span>鎸囨淳浜哄憳锛�</div> <div class="search_input"> <el-select v-model="distributeData.userId" placeholder="璇烽�夋嫨" size="small" style="width: 100%;"> <el-option v-for="item in personList" :key="item.value" :label="item.label" :value="item.value"> @@ -450,6 +450,7 @@ this.distributeData.orderId = row.id this.distributeData.sampleId = row.sampleId this.distributeData.appointed = res.data + this.distributeData.type = row.type }) }, submitForm2() { @@ -457,6 +458,10 @@ this.$message.error('绾﹀畾鏃堕棿鏈~鍐�') return } + if(this.distributeData.type==2&&(this.distributeData.userId==null||this.distributeData.userId=='')){ + this.$message.error('鎸囨淳浜哄憳鏈~鍐�') + return + } this.upLoad = true; this.$axios.post(this.$api.insOrder.upInsOrder, { orderId: this.distributeData.orderId, -- Gitblit v1.9.3