From d51599d19653dba1adfbae2b23a6c1332db5a0b2 Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期三, 22 十一月 2023 16:44:42 +0800
Subject: [PATCH] 质量字段添加

---
 src/views/quality/rawMaterial/rawMaterial-form.vue                   |   22 +++++++---
 vue.config.js                                                        |    3 -
 src/views/quality/finishedProductInspection/index.vue                |   12 +++++-
 src/views/product/workbench/workReportCard.vue                       |    4 +-
 src/views/quality/finishedProductInspection/finishedProduct-form.vue |   28 +++++++++++---
 src/views/quality/processInspect/index.vue                           |   12 +++++-
 src/views/quality/rawMaterial/index.vue                              |   12 +++++-
 src/views/quality/processInspect/processInspect-form.vue             |   15 +++++--
 8 files changed, 81 insertions(+), 27 deletions(-)

diff --git a/src/views/product/workbench/workReportCard.vue b/src/views/product/workbench/workReportCard.vue
index 7f40381..25a2921 100644
--- a/src/views/product/workbench/workReportCard.vue
+++ b/src/views/product/workbench/workReportCard.vue
@@ -3270,8 +3270,8 @@
             this.options = res.data.data
             if (this.options.length > 1) {
               this.dialogVisible = true
-            } else if(this.options.length == 0){
-							this.$message.error('宸ヤ綔绔欐湭缁戝畾鍚堟牸搴撲綅')
+            // } else if(this.options.length == 0){
+						// 	this.$message.error('宸ヤ綔绔欐湭缁戝畾鍚堟牸搴撲綅')
 						} else {
               this.locationIdValue = this.options[0].id
               this.submitListApi()
diff --git a/src/views/quality/finishedProductInspection/finishedProduct-form.vue b/src/views/quality/finishedProductInspection/finishedProduct-form.vue
index a09ed00..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="璇疯緭鍏ユ暟閲�"
@@ -241,6 +249,7 @@
             empiricalValueAddMaxNumber: 0,
             processInspectVo: {
                 id: null,
+                finInsNo: null,
                 material: null,
                 mcode: null,
                 prname: null,
@@ -250,7 +259,8 @@
                 quantity: null,
                 specificationsModel: null,
                 unit: null,
-                technologyId: null
+                technologyId: null,
+                documentId: null
             },
             inspectionItems: [], // 鏂板妫�楠岄」鐩〃鏍�
             inspectionResultForm: [],
@@ -339,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
@@ -347,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()
@@ -424,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 != '') {
@@ -454,6 +467,7 @@
         addTestProject() {
             let val = this.processInspectVo
             let data = {
+                finInsNo: val.finInsNo,
                 customerName: val.prname,
                 material: val.material,
                 materialCode: val.mcode,
@@ -462,6 +476,7 @@
                 quantity: val.quantity,
                 specs: val.specificationsModel,
                 unit: val.unit,
+                documentId: val.documentId
             }
             addFinish(data).then(res=>{
                 let id = res.data.data
@@ -506,6 +521,7 @@
                     this.processInspectVo.material = null
                     this.processInspectVo.specificationsModel = null
                     this.processInspectVo.unit = null
+                    this.processInspectVo.documentId = null
                 }
             })
         },
@@ -542,7 +558,7 @@
   flex-wrap: wrap;
 }
 
-.finishedProduct-result {
+basic.finishedProduct-result {
   width: 100%;
   height: 150px;
   padding: 10px 20px;
@@ -556,7 +572,7 @@
 
 .finishedProduct-basic {
   background-color: #fff;
-  height: 120px;
+  height: 155px;
   display: flex;
   flex-wrap: wrap;
   padding: 10px 20px;
diff --git a/src/views/quality/finishedProductInspection/index.vue b/src/views/quality/finishedProductInspection/index.vue
index c319403..602aa4b 100644
--- a/src/views/quality/finishedProductInspection/index.vue
+++ b/src/views/quality/finishedProductInspection/index.vue
@@ -73,14 +73,22 @@
                     data: [],
                     // 鏍囬
                     column: [
+                         {
+                            minWidth: '120',
+                            prop: 'finInsNo',
+                            label: '浜у搧妫�楠岀紪鍙�',
+                            isTrue: true,
+                            isSearch: true,
+                            searchInfoType: 'text',
+                            render: { fun: this.addOrUpdateHandle }
+                        },
                         {
                             minWidth: '120',
                             prop: 'orderNumber',
                             label: '璁㈠崟鍙�',
                             isTrue: true,
                             isSearch: true,
-                            searchInfoType: 'text',
-                            render: { fun: this.addOrUpdateHandle }
+                            searchInfoType: 'text'
                         },
                         {
                             minWidth: '120',
diff --git a/src/views/quality/processInspect/index.vue b/src/views/quality/processInspect/index.vue
index 2f8ca18..952ef6c 100644
--- a/src/views/quality/processInspect/index.vue
+++ b/src/views/quality/processInspect/index.vue
@@ -56,8 +56,8 @@
                     column: [
                         {
                             minWidth: '120',
-                            prop: 'orderNumber',
-                            label: '璁㈠崟缂栧彿',
+                            prop: 'proInsNo',
+                            label: '杩囩▼妫�楠岀紪鍙�',
                             isTrue: true,
                             isSearch: true,
                             searchInfoType: 'text',
@@ -65,6 +65,14 @@
                         },
                         {
                             minWidth: '120',
+                            prop: 'orderNumber',
+                            label: '璁㈠崟缂栧彿',
+                            isTrue: true,
+                            isSearch: true,
+                            searchInfoType: 'text'
+                        },
+                        {
+                            minWidth: '120',
                             prop: 'material',
                             label: '浜у搧鍚嶇О',
                             isTrue: true,
diff --git a/src/views/quality/processInspect/processInspect-form.vue b/src/views/quality/processInspect/processInspect-form.vue
index 6a85e93..60b4afb 100644
--- a/src/views/quality/processInspect/processInspect-form.vue
+++ b/src/views/quality/processInspect/processInspect-form.vue
@@ -18,6 +18,12 @@
                     <div class="formwrapper">
                         <el-row>
                             <el-col :span="6">
+                                <el-form-item label="杩囩▼妫�楠岀紪鍙凤細">
+                                    <el-input @blur="selectInfoByOrderId" disabled
+                                    v-model="processInspectVo.proInsNo"  autocomplete="off" />
+                                </el-form-item>
+                            </el-col>
+                            <el-col :span="6">
                                 <el-form-item label="璁㈠崟鍙凤細">
                                     <el-input @blur="selectInfoByOrderId" :disabled="processInspectVo.id != null"
                                         v-model="processInspectVo.orderNumber" placeholder="璇疯緭鍏ヨ鍗曞彿" autocomplete="off" />
@@ -40,14 +46,15 @@
                                         autocomplete="off" />
                                 </el-form-item>
                             </el-col>
+                        </el-row>
+                        <el-row>
                             <el-col :span="6">
                                 <el-form-item label="瑙勬牸鍨嬪彿锛�">
                                     <el-input disabled v-model="processInspectVo.specs" 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%" :disabled="processInspectVo.id != null"
@@ -64,8 +71,6 @@
                                         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="璇疯緭鍏ユ暟閲�" autocomplete="off"
@@ -249,6 +254,7 @@
             empiricalValueAddMaxNumber: 0,
             processInspectVo: {
                 id: null,
+                proInsNo: null,
                 material: null,
                 materialCode: null,
                 orderNumber: "ZTTIC20230001",
@@ -352,6 +358,7 @@
             if (id != null) {
                 queryById(id).then(res => {
                     let result = res.data.data
+                    this.processInspectVo.proInsNo = result.proInsNo
                     this.processInspectVo.orderNumber = result.orderNumber
                     this.processInspectVo.materialCode = result.materialCode
                     this.processInspectVo.material = result.material
diff --git a/src/views/quality/rawMaterial/index.vue b/src/views/quality/rawMaterial/index.vue
index 4d12e6c..bdad739 100644
--- a/src/views/quality/rawMaterial/index.vue
+++ b/src/views/quality/rawMaterial/index.vue
@@ -94,8 +94,8 @@
                 column: [
                     {
                         minWidth: '120',
-                        prop: 'code',
-                        label: '鍘熸潗鏂欑紪鐮�',
+                        prop: 'rawInsNo',
+                        label: '鍘熸潗鏂欐楠岀紪鍙�',
                         isTrue: true,
                         isSearch: true,
                         searchInfoType: 'text',
@@ -103,6 +103,14 @@
                     },
                     {
                         minWidth: '120',
+                        prop: 'code',
+                        label: '鍘熸潗鏂欑紪鐮�',
+                        isTrue: true,
+                        isSearch: true,
+                        searchInfoType: 'text'
+                    },
+                    {
+                        minWidth: '120',
                         prop: 'projectName',
                         label: '椤圭洰鍚嶇О',
                         isTrue: true,
diff --git a/src/views/quality/rawMaterial/rawMaterial-form.vue b/src/views/quality/rawMaterial/rawMaterial-form.vue
index a432a06..ba1914e 100644
--- a/src/views/quality/rawMaterial/rawMaterial-form.vue
+++ b/src/views/quality/rawMaterial/rawMaterial-form.vue
@@ -21,6 +21,12 @@
         label-width="110px">
             <el-row>
               <el-col :span="6">
+                <el-form-item label="鍘熸潗鏂欐楠岀紪鍙�" prop="rawInsNo">
+                <el-input v-model="dataForm.rawInsNo" disabled>
+                </el-input>
+                </el-form-item>
+            </el-col>
+              <el-col :span="6">
                 <el-form-item label="闆朵欢鍙�" prop="code">
                 <el-input v-model="dataForm.code" :disabled="resultVal!=null && dataForm.id!=null">
                   <el-button
@@ -49,13 +55,13 @@
                 </el-date-picker>
                 </el-form-item>
             </el-col>
-            <el-col :span="6">
+            </el-row>
+            <el-row>
+              <el-col :span="6">
                 <el-form-item label="瑙勬牸鍨嬪彿" prop="specs">
                 <el-input v-model="dataForm.specs" disabled></el-input>
                 </el-form-item>
-            </el-col>
-            </el-row>
-            <el-row>
+              </el-col>
                 <el-col :span="6">
                     <el-form-item prop="unit" label="鍗曚綅">
                         <el-input
@@ -74,15 +80,15 @@
                       <el-input v-model="dataForm.number" :disabled="resultVal!=null" />
                   </el-form-item>
                 </el-col>
+            </el-row>
+            <el-row>
                 <el-col :span="6">
-                  <el-form-item  prop="projectName" label="椤圭洰鍚嶇О">
+                  <el-form-item  prop="projectName" label="椤圭洰鍚嶇О" v-if="dataForm.id!=null">
                     <el-tooltip :disabled="dataForm.projectName==null" :content="dataForm.projectName">
                       <el-input v-model="dataForm.projectName" disabled ></el-input>
                     </el-tooltip>
                   </el-form-item>
               </el-col>
-            </el-row>
-            <el-row>
               <el-col :span="6">
                   <el-form-item label="鎶ユ鏃ユ湡" prop="createTime" v-if="dataForm.id!=null">
                       <el-input v-model="dataForm.createTime" disabled />
@@ -349,6 +355,7 @@
       // 纭鍥炶皟
       selectPart(param, nodePart, index) {
         if (typeof param !== 'undefined') {
+          this.dataForm.rawInsNo = param.rawInsNo
           this.dataForm.code = param.code
           this.dataForm.name = param.name
           this.dataForm.formTime = param.formTime
@@ -516,6 +523,7 @@
         if(this.dataForm.id){
           getObj(this.dataForm.id).then(res=>{
             let data = res.data.data
+            this.dataForm.rawInsNo = data.rawInsNo
             this.dataForm.name = data.name
             this.dataForm.formTime = data.formTime
             this.dataForm.code = data.code
diff --git a/vue.config.js b/vue.config.js
index b189618..a4794b5 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -3,10 +3,9 @@
  * https://cli.vuejs.org/zh/config/
  */
 // const url = 'http://192.168.0.23:9999'
-const url = 'http://192.168.83.249:9999'
 
   // const url = 'http://192.168.0.60:9999'
-  const url = 'http://localhost:9999'
+const url = 'http://localhost:9999'
 
 // const url = 'http://ztt-gateway:9999'
 const localUrl = 'http://localhost:8089'

--
Gitblit v1.9.3