From e969c1f0523c69fe854fdcad7d8d8e2da6dcf30d Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期二, 28 十一月 2023 17:44:53 +0800
Subject: [PATCH] 	modified:   src/views/product/workbench/feed-form.vue 	modified:   src/views/product/workbench/feed-pane.vue 	modified:   src/views/warehouse/pallettransports/index.vue 	modified:   vue.config.js

---
 src/views/quality/finishedProductInspection/finishedProduct-form.vue |   47 +++++++++++++++++++++++++++++------------------
 1 files changed, 29 insertions(+), 18 deletions(-)

diff --git a/src/views/quality/finishedProductInspection/finishedProduct-form.vue b/src/views/quality/finishedProductInspection/finishedProduct-form.vue
index 90fec3b..320ecd9 100644
--- a/src/views/quality/finishedProductInspection/finishedProduct-form.vue
+++ b/src/views/quality/finishedProductInspection/finishedProduct-form.vue
@@ -14,9 +14,15 @@
     <div class="page-main">
         <div class="finishedProduct-basic">
             <el-form :model="processInspectVo" ref="addInspectionform" class="l-mes"
-            label-position="right" label-width="120px" style="width: 100%" size="small">
+            label-position="right" label-width="120px" style="width: 100%"  size="small">
                 <div class="formwrapper">
                     <el-row>
+                        <el-col :span="6">
+                            <el-form-item label="浜у搧妫�楠岀紪鍙凤細">
+                                <el-input @blur="selectInfoByOrderId" disabled
+                                v-model="processInspectVo.finInsNo" autocomplete="off" />
+                            </el-form-item>
+                        </el-col>
                         <el-col :span="6">
                             <el-form-item label="璁㈠崟鍙凤細">
                                 <el-input @blur="selectInfoByOrderId" :disabled="processInspectVo.id != null"
@@ -35,6 +41,8 @@
                                     placeholder="璇疯緭鍏ュ伐绋嬪悕绉�" autocomplete="off" />
                             </el-form-item>
                         </el-col>
+                    </el-row>
+                    <el-row>
                         <el-col :span="6">
                             <el-form-item label="浜у搧鍚嶇О锛�">
                                 <el-select style="width: 100%" @change="changeOptionsSamplename" :disabled="processInspectVo.id != null"
@@ -45,8 +53,6 @@
                                 </el-select>
                             </el-form-item>
                         </el-col>
-                    </el-row>
-                    <el-row>
                         <el-col :span="6">
                             <el-form-item label="浜у搧缂栫爜锛�">
                                 <el-input disabled v-model="processInspectVo.mcode"
@@ -65,6 +71,8 @@
                                     placeholder="璇疯緭鍏ュ崟浣�" autocomplete="off" />
                             </el-form-item>
                         </el-col>
+                    </el-row>
+                    <el-row>
                         <el-col :span="6">
                             <el-form-item label="鏁伴噺锛�">
                                 <el-input v-model="processInspectVo.quantity" placeholder="璇疯緭鍏ユ暟閲�"
@@ -111,12 +119,9 @@
                                         <el-tooltip v-if="scope.row.iname != null" :disabled="scope.row.eId != null"
                                             class="item" effect="dark" content="璇峰厛閫夋嫨璁惧锛�" placement="top-start">
                                             <el-select style="width: 100%;" @change="changeState(scope.row, index)" :disabled="scope.row.eId == null" v-model="scope.row.empiricalValueAddss[index]" placeholder="璇烽�夋嫨">
-                                                <!-- <el-option v-for="item in dataVal" :key="item.value" :label="item.label"
+                                                <el-option v-for="item in dataVal" :key="item.value" :label="item.label"
                                                     :value="item.value">
-                                                </el-option> -->
-                                                <el-option v-for="item in dataVal" :key="item.value" :label="(item.value === '1' ? '鏄�' : '鍚�')" :value="item.value"></el-option>
-
-
+                                                </el-option>
                                             </el-select>
                                             <span v-if="resultVal != null && processInspectVo.id != null"
                                                 v-text="scope.row.empiricalValueAddss[index]"></span>
@@ -227,13 +232,12 @@
 export default {
     data() {
         return {
-            // 1 鏄�  0鍚�
             dataVal: [{
-                label: '1',
-                value: '1'
+                label: '鏄�',
+                value: '鏄�'
             }, {
-                label: '0',
-                value: '0'
+                label: '鍚�',
+                value: '鍚�'
             }],
             resultVal: null,
             deviceList: [],
@@ -245,6 +249,7 @@
             empiricalValueAddMaxNumber: 0,
             processInspectVo: {
                 id: null,
+                finInsNo: null,
                 material: null,
                 mcode: null,
                 prname: null,
@@ -254,7 +259,8 @@
                 quantity: null,
                 specificationsModel: null,
                 unit: null,
-                technologyId: null
+                technologyId: null,
+                documentId: null
             },
             inspectionItems: [], // 鏂板妫�楠岄」鐩〃鏍�
             inspectionResultForm: [],
@@ -280,7 +286,7 @@
         this.init()
     },
     methods: {
-
+        
         submitSave(){
             let pro = 0
             this.inspectionItems.forEach(item => {
@@ -343,6 +349,7 @@
             if(id != null){
                 queryById(id).then(res=>{
                     let result = res.data.data
+                    this.processInspectVo.finInsNo = result.finInsNo
                     this.processInspectVo.orderNumber = result.orderNumber
                     this.processInspectVo.mcode = result.materialCode
                     this.processInspectVo.prname = result.customerName
@@ -351,6 +358,7 @@
                     this.processInspectVo.specificationsModel = result.specs
                     this.processInspectVo.unit = result.punit
                     this.processInspectVo.quantity = result.quantity
+                    this.processInspectVo.documentId = result.documentId
                     let userList = []
                     result.children.forEach(item=>{
                         item.iid = Math.random()
@@ -379,7 +387,6 @@
                         material: result.material,
                         userName: Array.from(new Set(userList)).join(","),
                         result: this.resultVal==null ? '' : this.resultVal,
-
                     }]
                 }).catch(error=>{
                     console.log(error)
@@ -429,6 +436,7 @@
             this.processInspectVo.material = sample.material
             this.processInspectVo.specificationsModel = sample.specs
             this.processInspectVo.unit = sample.unit
+            this.processInspectVo.documentId = sample.documentId
         },
         changeState(row, index) {
             if (row.iid != null && row.iid != '') {
@@ -459,6 +467,7 @@
         addTestProject() {
             let val = this.processInspectVo
             let data = {
+                finInsNo: val.finInsNo,
                 customerName: val.prname,
                 material: val.material,
                 materialCode: val.mcode,
@@ -467,6 +476,7 @@
                 quantity: val.quantity,
                 specs: val.specificationsModel,
                 unit: val.unit,
+                documentId: val.documentId
             }
             addFinish(data).then(res=>{
                 let id = res.data.data
@@ -511,6 +521,7 @@
                     this.processInspectVo.material = null
                     this.processInspectVo.specificationsModel = null
                     this.processInspectVo.unit = null
+                    this.processInspectVo.documentId = null
                 }
             })
         },
@@ -547,7 +558,7 @@
   flex-wrap: wrap;
 }
 
-.finishedProduct-result {
+basic.finishedProduct-result {
   width: 100%;
   height: 150px;
   padding: 10px 20px;
@@ -561,7 +572,7 @@
 
 .finishedProduct-basic {
   background-color: #fff;
-  height: 120px;
+  height: 155px;
   display: flex;
   flex-wrap: wrap;
   padding: 10px 20px;

--
Gitblit v1.9.3