From 418594d0a3e441eeb7df2abbd70e54a0c72284c6 Mon Sep 17 00:00:00 2001
From: liding <756868258@qq.com>
Date: 星期五, 30 十月 2026 16:35:46 +0800
Subject: [PATCH] feat(order): 添加送样日期校验和权限刷新机制 - 在委托单新增表单中为送样日期添加占位提示和保存校验 - 在检验审核、检验任务、报告编制、样品接收、报告结果、用印台账等页面添加送样时间列 - 加载委托模板时清空送样日期并清除校验状态

---
 src/views/CNAS/externalService/serviceAndSupplyPro/component/Store.vue |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/src/views/CNAS/externalService/serviceAndSupplyPro/component/Store.vue b/src/views/CNAS/externalService/serviceAndSupplyPro/component/Store.vue
index 37a324f..b2b5498 100644
--- a/src/views/CNAS/externalService/serviceAndSupplyPro/component/Store.vue
+++ b/src/views/CNAS/externalService/serviceAndSupplyPro/component/Store.vue
@@ -63,7 +63,8 @@
           <div>
             <div>
               <span>鑰楁潗鍚嶇О:</span>
-              <el-select v-model="formTwo.id" filterable placeholder="璇烽�夋嫨鑰楁潗鍚嶇О" size="small" style="width: 70%">
+              <el-select v-model="formTwo.id" filterable placeholder="璇烽�夋嫨鑰楁潗鍚嶇О" size="small" style="width: 70%"
+                @change="handleConsumableChange">
                 <el-option v-for="(v, i) in consumableOptions" :key="i" :label="v.consumablesName"
                   :value="v.id"></el-option>
               </el-select>
@@ -296,6 +297,11 @@
       console.log(val)
       return this.options.find(item => item.value === val).label
     },
+    // 閫夋嫨鑰楁潗鍚嶇О鍚庯紝鍗曚环鑷姩甯﹀嚭鑰楁潗鍒楄〃閲岀殑鍙傝�冧环鏍硷紙浠嶅彲鎵嬪姩淇敼锛�
+    handleConsumableChange(id) {
+      const item = this.consumableOptions.find(v => v.id === id)
+      this.formTwo.unitPrice = item && item.referencePrice != null ? item.referencePrice : null
+    },
     // 娣诲姞琛ㄦ牸鏁版嵁
     addTableData() {
       this.$nextTick()

--
Gitblit v1.9.3