From 5a1d8bd2dfa3534a7dba98f6a496d36e71d20718 Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期一, 27 五月 2024 15:59:55 +0800
Subject: [PATCH] 修改检验下单

---
 src/components/do/b1-ins-order/add.vue |   41 +++++++++++++++++++++++++++++++++++++++--
 1 files changed, 39 insertions(+), 2 deletions(-)

diff --git a/src/components/do/b1-ins-order/add.vue b/src/components/do/b1-ins-order/add.vue
index 279d71a..03ffe0e 100644
--- a/src/components/do/b1-ins-order/add.vue
+++ b/src/components/do/b1-ins-order/add.vue
@@ -244,6 +244,30 @@
             <el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="addObj.otcCode" :readonly="active>1"></el-input>
           </div>
         </el-col>
+        <el-col class="search_thing" :span="6">
+          <div class="search_label"><span class="required-span">* </span>宸ョ▼鍚嶇О锛�</div>
+          <div class="search_input">
+            <el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="addObj.engineering" :readonly="active>1"></el-input>
+          </div>
+        </el-col>
+        <el-col class="search_thing" :span="6">
+          <div class="search_label"><span class="required-span">* </span>宸ョ▼鍚嶇ОEN锛�</div>
+          <div class="search_input">
+            <el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="addObj.engineeringEn" :readonly="active>1"></el-input>
+          </div>
+        </el-col>
+        <el-col class="search_thing" :span="6">
+          <div class="search_label"><span class="required-span">* </span>鐢熶骇鍗曚綅锛�</div>
+          <div class="search_input">
+            <el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="addObj.production" :readonly="active>1"></el-input>
+          </div>
+        </el-col>
+        <el-col class="search_thing" :span="6">
+          <div class="search_label"><span class="required-span">* </span>鐢熶骇鍗曚綅EN锛�</div>
+          <div class="search_input">
+            <el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="addObj.productionEn" :readonly="active>1"></el-input>
+          </div>
+        </el-col>
         <el-col class="search_thing" :span="6" style="align-items: flex-start;margin: 8px 0;">
           <div class="search_label">澶囨敞锛�</div>
           <div class="search_input">
@@ -562,7 +586,11 @@
           isLeave: 0,
           orderType: null,
           send: 1,
-          formType: '閫佹'
+          formType: '閫佹',
+          engineering: null,
+          engineeringEn: null,
+          production: null,
+          productionEn: null,
         },
         sample: {
           sampleCode: null,
@@ -726,6 +754,14 @@
           this.$message.error('璇疯緭鍏ユ潵鏍锋柟寮�')
         } else if (!this.addObj.orderType) {
           this.$message.error('璇烽�夋嫨妫�楠岀被鍒�')
+        }else if (!this.addObj.engineering) {
+          this.$message.error('璇疯緭鍏ュ伐绋嬪悕绉�')
+        } else if (!this.addObj.engineeringEn) {
+          this.$message.error('璇疯緭鍏ュ伐绋嬪悕绉癊N')
+        }else if (!this.addObj.production) {
+          this.$message.error('璇疯緭鍏ョ敓浜у崟浣�')
+        }else if (!this.addObj.productionEn) {
+          this.$message.error('璇疯緭鍏ョ敓浜у崟浣岴N')
         } else if (this.sampleList.length < 1) {
           this.$message.error('璇锋坊鍔犱竴涓牱鍝�')
         } else if (!this.sampleList.every(m => m.sample)) {
@@ -1145,7 +1181,8 @@
         this.getProductLoad = true
         this.$axios.post(this.$api.standardTree.selectStandardProductList, {
           model: row.model + '-' + row.modelNum,
-          standardMethodListId: val
+          standardMethodListId: val,
+          factory: this.selectTree,
         }, {
           headers: {
             'Content-Type': 'application/json'

--
Gitblit v1.9.3