From 9e34e3c4a5fce250614ac014ecc3e83f41d6f637 Mon Sep 17 00:00:00 2001
From: value <z1292839451@163.com>
Date: 星期一, 27 五月 2024 17:26:06 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 src/components/do/b1-ins-order/add.vue |   46 ++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 44 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..3157392 100644
--- a/src/components/do/b1-ins-order/add.vue
+++ b/src/components/do/b1-ins-order/add.vue
@@ -107,6 +107,7 @@
           <el-button size="medium" @click="templateDia=true" v-show="active==1">
             <span style="color: #3A7BFA;">淇濆瓨妯℃澘</span>
           </el-button>
+          <el-button size="medium" type="primary" @click="openConfig">鍏夌氦閰嶇疆</el-button>
           <el-button size="medium" type="primary" @click="save" :loading="saveLoad" v-show="active==1">鎻愪氦</el-button>
           <!-- 瀹℃牳 -->
           <el-button size="medium" @click="upInsOrderOfState(2)" :loading="saveLoad" v-show="active==3"
@@ -242,6 +243,30 @@
           <div class="search_label">OTC璁㈠崟鍙凤細</div>
           <div class="search_input">
             <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;">
@@ -562,7 +587,11 @@
           isLeave: 0,
           orderType: null,
           send: 1,
-          formType: '閫佹'
+          formType: '閫佹',
+          engineering: null,
+          engineeringEn: null,
+          production: null,
+          productionEn: null,
         },
         sample: {
           sampleCode: null,
@@ -726,6 +755,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 +1182,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'
@@ -1280,6 +1318,10 @@
       filterHandler(value, row, column) {
         const property = column['property'];
         return row[property] === value;
+      },
+      openConfig(){
+        this.$parent.playOrder(4)
+        console.log(this.sampleIds);
       }
     }
   }

--
Gitblit v1.9.3