From 252458d6c5f8bd8d4089ddddda2d67698e1e9bb4 Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期五, 13 九月 2024 17:16:30 +0800
Subject: [PATCH] 下单新增下发至对象

---
 src/components/do/b1-ins-order/add.vue      |   15 +++++++++++++--
 src/components/view/b1-inspection-order.vue |   20 +++++++++++---------
 2 files changed, 24 insertions(+), 11 deletions(-)

diff --git a/src/components/do/b1-ins-order/add.vue b/src/components/do/b1-ins-order/add.vue
index 6c2d005..3780ba7 100644
--- a/src/components/do/b1-ins-order/add.vue
+++ b/src/components/do/b1-ins-order/add.vue
@@ -261,6 +261,14 @@
               </el-select>
             </div>
           </el-col>
+          <el-col class="search_thing" :span="6" v-if="addObj.formType!='鍏朵粬鎴愬搧'&&addObj.formType">
+            <div class="search_label"><span class="required-span">* </span>涓嬪彂鑷冲璞★細</div>
+            <div class="search_input">
+              <el-select v-model="addObj.issueUser" size="small" :disabled="active>1" style="width: 100%;">
+                <el-option v-for="(a,ai) in personList" :key="ai" :label="a.label" :value="a.value"></el-option>
+              </el-select>
+            </div>
+          </el-col>
           <el-col class="search_thing" :span="6">
             <div class="search_label">鎶ュ憡鍙戦�佹柟寮忥細</div>
             <div class="search_input">
@@ -1137,7 +1145,7 @@
         sonLaboratoryList:[],
         selectiveEcho: [], // 妫�楠屼笅鍗曠殑鏃跺�欏嬀閫夋楠岄」鐩�,濡傛灉浣跨敤绛涢�夋彁浜ゆ樉绀烘楠岄」鐩负绌� 鍥炴樉鍒楄〃
         deaprtEnum:[],
-        standard:[]
+        standard:[],
       }
     },
     watch: {
@@ -1236,6 +1244,7 @@
       }
     },
     methods: {
+
       //鐗规畩鍊煎~鍐欏鐞�
       inputValueHandler(row,index){
         if(row){
@@ -1646,7 +1655,9 @@
           this.$message.error('璇疯緭鍏ユ牱鍝佸瀷鍙�')
         } else if (!this.sampleList.every(m => m.standardMethodListId&&m.standardMethodListId.length>0)) {
           this.$message.error('璇烽�夋嫨妫�楠屾爣鍑�')
-        } else {
+        } else if(this.addObj.formType&&this.addObj.formType!='鍏朵粬鎴愬搧'&&!this.addObj.issueUser){
+          this.$message.error('璇烽�夋嫨涓嬪彂瀵硅薄')
+        }else{
           //鏍¢獙妫�楠岄」鐨勮姹傚�煎拰瑕佹眰鎻忚堪,浠呭鎵樿姹�
           // if(this.active==1&&this.isAskOnlyRead){
           //   const isTrue = this.checkRequiredValueAndRemark(filterProductList)
diff --git a/src/components/view/b1-inspection-order.vue b/src/components/view/b1-inspection-order.vue
index 0289075..21b00f1 100644
--- a/src/components/view/b1-inspection-order.vue
+++ b/src/components/view/b1-inspection-order.vue
@@ -563,15 +563,17 @@
 						disabFun: (row, index) => {
 							return (row.state != 1 && row.state != 0)||(this.tabIndex!=1)||row.isRevocation!=1
 						}
-					}, {
-						font: '鍒嗛厤',
-						type: 'text',
-						method: 'handleIssued',
-						disabFun: (row, index) => {
-							// return row.state != 1 || !!row.assign
-              return row.appointed || row.state != 1
-						}
-					}],
+					},
+          // {
+					// 	font: '鍒嗛厤',
+					// 	type: 'text',
+					// 	method: 'handleIssued',
+					// 	disabFun: (row, index) => {
+					// 		// return row.state != 1 || !!row.assign
+          //     return row.appointed || row.state != 1
+					// 	}
+					// }
+        ],
 					linkEvent: {
 						sampleName: {
 							method: 'selectAllByOne'

--
Gitblit v1.9.3