From 135b5b2e497514dc4456e33b0db0fe5e7fa4e62f Mon Sep 17 00:00:00 2001
From: cuijian <cuijian@xalxzn.com>
Date: 星期一, 11 八月 2025 09:11:19 +0800
Subject: [PATCH] 现场问题处理

---
 src/views/tms/modules/baseTools/ParaMillToolModal.vue |  147 +++++++++++++++++++++++++++++++++++++++++--------
 1 files changed, 123 insertions(+), 24 deletions(-)

diff --git a/src/views/tms/modules/baseTools/ParaMillToolModal.vue b/src/views/tms/modules/baseTools/ParaMillToolModal.vue
index 9ee29a0..d7ee80c 100644
--- a/src/views/tms/modules/baseTools/ParaMillToolModal.vue
+++ b/src/views/tms/modules/baseTools/ParaMillToolModal.vue
@@ -38,6 +38,20 @@
                     </a-form-model-item>
                   </a-col>
                 </a-row>
+                <a-row>
+                  <a-col :span="24">
+                    <a-form-model-item prop="accuracyClass" label="绮惧害绛夌骇">
+                      <j-dict-select-tag
+                          :disabled="disableSubmit"
+                          type="list"
+                          v-model="model.accuracyClass"
+                          :triggerChange="true"
+                          dictCode="accuracy_class"
+                          :placeholder="disableSubmit?'':'璇烽�夋嫨绮惧害绛夌骇'"
+                        />
+                    </a-form-model-item>
+                  </a-col>
+                </a-row>
               </a-col>
 
               <a-col :span="6">
@@ -45,7 +59,7 @@
                   <a-col :span="24">
                     <a-form-model-item prop="chineseName"
                                       label="涓枃鍚嶇О">
-                      <a-input :placeholder="disableSubmit?'':'璇疯緭鍏ヤ腑鏂囧悕绉�'" v-model="model.chineseName" :disabled="disableSubmit"/>
+                      <a-input :placeholder="disableSubmit?'':'璇疯緭鍏ヤ腑鏂囧悕绉�'" v-model="model.chineseName" :disabled="disableSubmit" @change="e => chineseNameChange(e.target.value)"/>
                     </a-form-model-item>
                   </a-col>
                 </a-row>
@@ -61,7 +75,7 @@
                   <a-col :span="24">
                     <a-form-model-item prop="toolModel"
                                       label="鍨嬪彿/鍥惧彿">
-                      <a-input :placeholder="disableSubmit?'':'璇疯緭鍏ュ瀷鍙�/鍥惧彿'" v-model="model.toolModel" :disabled="disableSubmit" />
+                      <a-input :placeholder="disableSubmit?'':'璇疯緭鍏ュ瀷鍙�/鍥惧彿'" v-model="model.toolModel" :disabled="disableSubmit" @change="e => toolModelChange(e.target.value)"/>
                     </a-form-model-item>
                   </a-col>
                 </a-row>
@@ -109,7 +123,7 @@
            <a-col :span="8">
                 <a-form-model-item prop="applicationType"
                                    label="宸ュ叿绫诲瀷">
-                  <j-dict-select-tag dict-code="equipment_category" :placeholder="disableSubmit?'':'璇烽�夋嫨宸ュ叿绫诲瀷'"
+                  <j-dict-select-tag dict-code="application_type" :placeholder="disableSubmit?'':'璇烽�夋嫨宸ュ叿绫诲瀷'"
                                      v-model="model.applicationType" :disabled="disableSubmit" />
                 </a-form-model-item>
               </a-col>
@@ -119,23 +133,28 @@
             </a-form-model-item>
           </a-col>
           <a-col :span="8">
-            <a-form-model-item prop="positionCode" label="搴撲綅鍙�">
+            <!-- <a-form-model-item prop="positionCode" label="搴撲綅鍙�">
               <a-select
                 :disabled="disableSubmit"
                 :triggerChange="true"
                 :options="locationCodeOptions"
                 v-model="model.positionCode"
               />
+            </a-form-model-item> -->
+            <a-form-model-item label="搴撲綅" :labelCol="labelCol" :wrapperCol="wrapperCol">
+              <a-tooltip title="閫夋嫨搴撲綅鍚庯紝姝ょ被鍒�鍏烽粯璁ゅ瓨鍌ㄥ埌姝ゅ簱浣嶏紝璇锋厧閲嶉�夋嫨锛�" placement="topRight">
+                <a-input-search
+                  v-model="model.positionCode"
+                  @search="positionCodeSearch"
+                  enter-button
+                  placeholder="璇烽�夋嫨搴撲綅"
+                />
+              </a-tooltip>
             </a-form-model-item>
           </a-col>
         </a-row>
 
         <a-row :gutter="24">
-          <a-col :span="8">
-            <a-form-model-item prop="storageLocation" label="瀛樺偍浣嶇疆">
-              <a-input :placeholder="disableSubmit?'':'璇疯緭鍏ュ瓨鍌ㄤ綅缃�'" v-model="model.storageLocation" :disabled="disableSubmit"/>
-            </a-form-model-item>
-          </a-col>
           <a-col :span="8">
             <a-form-model-item prop="lowerInventory" label="鏈�浣庡簱瀛�">
               <a-input :placeholder="disableSubmit?'':'璇疯緭鍏ユ渶浣庡簱瀛�'" v-model="model.lowerInventory" :disabled="disableSubmit"/>
@@ -146,9 +165,6 @@
               <a-input :placeholder="disableSubmit?'':'璇疯緭鍏ユ渶楂樺簱瀛�'" v-model="model.highestInventory" :disabled="disableSubmit"/>
             </a-form-model-item>
           </a-col>
-        </a-row>
-
-        <a-row :gutter="24">
           <a-col :span="8">
             <a-form-model-item prop="auxiliaryUnitFlag" label="鏄惁鏈夎閲忚緟鍗曚綅">
               <a-radio-group v-model="model.auxiliaryUnitFlag" :placeholder="disableSubmit?'':'璇烽�夋嫨鏄惁鏈夎閲忚緟鍗曚綅'" :disabled="disableSubmit">
@@ -157,6 +173,9 @@
               </a-radio-group>
             </a-form-model-item>
           </a-col>
+        </a-row>
+
+        <a-row :gutter="24">
           <a-col :span="8">
             <a-form-model-item prop="mainUnit" label="璁¢噺涓诲崟浣�">
               <a-input :placeholder="disableSubmit?'':'璇疯緭鍏ヨ閲忎富鍗曚綅'" v-model="model.mainUnit" :disabled="disableSubmit"/>
@@ -167,14 +186,14 @@
               <a-input :placeholder="disableSubmit?'':'璇疯緭鍏ヨ閲忚緟鍗曚綅'" v-model="model.auxiliaryUnit" :disabled="disableSubmit"/>
             </a-form-model-item>
           </a-col>
-        </a-row>
-
-         <a-row :gutter="24">
-          <a-col :span="8">
+           <a-col :span="8">
             <a-form-model-item prop="supplierId" label="鍘傚">
               <a-input :placeholder="disableSubmit?'':'璇疯緭鍏ュ巶瀹�'" v-model="model.supplierId" :disabled="disableSubmit"/>
             </a-form-model-item>
           </a-col>
+        </a-row>
+
+         <a-row :gutter="24">
           <a-col :span="8">
             <a-form-model-item prop="price" label="鍗曚环">
               <a-input :placeholder="disableSubmit?'':'璇疯緭鍏ュ崟浠�'" v-model="model.price" :disabled="disableSubmit"/>
@@ -192,13 +211,41 @@
 
         <a-row :gutter="24">
           <a-col :span="6">
+            <a-form-model-item label="宸ュ叿绠�绉�" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="shortCalled">
+              <a-input
+                v-model="model.shortCalled"
+                :placeholder="disableSubmit ? '' : '璇疯緭鍏ュ伐鍏风畝绉�'"
+                :disabled="disableSubmit"
+              ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="6">
+            <a-form-model-item label="闆嗗洟鍏徃缂栫爜" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="groupCompanyCode">
+              <a-input
+                v-model="model.groupCompanyCode"
+                :placeholder="disableSubmit ? '' : '璇疯緭鍏ラ泦鍥㈠叕鍙哥紪鐮�'"
+                :disabled="disableSubmit"
+              ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="12">
+            <a-form-model-item label="闆嗗洟鍏徃鏍囪" :labelCol="{span:4}" :wrapperCol="{span:20}" prop="groupCompanySign">
+              <a-input
+                v-model="model.groupCompanySign"
+                :disabled="true"
+              ></a-input>
+            </a-form-model-item>
+          </a-col>
+        </a-row>
+        <a-row :gutter="24">
+          <a-col :span="6">
             <a-form-model-item label="鐩村緞" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="diameter">
-              <a-input v-model="model.diameter" :placeholder="disableSubmit?'':'璇疯緭鍏ョ洿寰�'"  :disabled="disableSubmit"></a-input>
+              <a-input v-model="model.diameter" :placeholder="disableSubmit?'':'璇疯緭鍏ョ洿寰�'"  :disabled="disableSubmit" @change="e => diameterChange(e.target.value)"></a-input>
             </a-form-model-item>
           </a-col>
           <a-col :span="6">
             <a-form-model-item label="鍒�灏栬R" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="noseAngleR">
-              <a-input v-model="model.noseAngleR" :placeholder="disableSubmit?'':'璇疯緭鍏ュ垁灏栬R'"  :disabled="disableSubmit"></a-input>
+              <a-input v-model="model.noseAngleR" :placeholder="disableSubmit?'':'璇疯緭鍏ュ垁灏栬R'"  :disabled="disableSubmit" @change="e => noseAngleRChange(e.target.value)"></a-input>
             </a-form-model-item>
           </a-col>
           <a-col :span="6">
@@ -208,7 +255,7 @@
           </a-col>
            <a-col :span="6">
             <a-form-model-item label="鍒�鍏锋�婚暱" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="totalLength">
-              <a-input v-model="model.totalLength" :placeholder="disableSubmit?'':'璇疯緭鍏ュ垁鍏锋�婚暱'"  :disabled="disableSubmit"></a-input>
+              <a-input v-model="model.totalLength" :placeholder="disableSubmit?'':'璇疯緭鍏ュ垁鍏锋�婚暱'"  :disabled="disableSubmit" @change="e => totalLengthChange(e.target.value)"></a-input>
             </a-form-model-item>
           </a-col>
         </a-row>
@@ -259,8 +306,10 @@
               <a-input v-model="model.technicalConditions" :placeholder="disableSubmit?'':'璇疯緭鍏ラ檮鍔犳妧鏈潯浠�'" :disabled="disableSubmit" ></a-input>
             </a-form-model-item>
           </a-col>
-          <a-col :span="6">
-            <a-form-model-item label="闄勫姞鎶�鏈潯浠惰鏄�" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="conditionsInfo">
+        </a-row>
+        <a-row>
+          <a-col :span="24">
+            <a-form-model-item label="闄勫姞鎶�鏈潯浠惰鏄�" :labelCol="{span:3}" :wrapperCol="{span:21}" prop="conditionsInfo">
               <a-input v-model="model.conditionsInfo" :placeholder="disableSubmit?'':'璇疯緭鍏ラ檮鍔犳妧鏈潯浠惰鏄�'" :disabled="disableSubmit" ></a-input>
             </a-form-model-item>
           </a-col>
@@ -384,6 +433,7 @@
         </a-row>
       </a-form-model>
     </a-spin>
+    <select-position-code-modal ref="selectPositionCodeModal" :title="'閫夋嫨搴撲綅'" />
   </j-modal>
 </template>
 
@@ -392,10 +442,12 @@
 import JSelectProduction from '@comp/jeecgbiz/JSelectProduction.vue'
 import { duplicateCheck } from '@/api/api'//閲嶅鏍¢獙
 import { ajaxGetDictItems } from '@/api/api'
+import JDictSelectTag from '@/components/dict/JDictSelectTag'
+import SelectPositionCodeModal from './SelectPositionCodeModal'
 
 export default {
   name: 'ParaHoleToolsModal',
-  components: { JSelectProduction },
+  components: { JSelectProduction,JDictSelectTag,SelectPositionCodeModal },
   data() {
     return {
       title: '鎿嶄綔',
@@ -423,6 +475,9 @@
       },
       confirmLoading: false,
       validatorRules: {
+        accuracyClass:[
+          { required: true, message: '璇烽�夋嫨绮惧害绛夌骇' },
+        ],
         toolCode: [
           { required: true, message: '璇疯緭鍏ュ伐鍏风紪鐮�' },
           { validator: this.validateNum }
@@ -478,8 +533,18 @@
         add: '/tms/baseTools/add',
         edit: '/tms/baseTools/edit',
       },
-      locationCodeOptions:[]
+      locationCodeOptions:[],
+      chineseNameChange1:'',
+      toolModelChange1:'',
+      diameterChange1:'',
+      totalLengthChange1:'',
+      noseAngleRChange1:''
     }
+  },
+  mounted() {
+    this.$bus.$on('selectionRows', (data) => {
+      this.model.positionCode = data[0].positionCode
+    })
   },
   created() {
     ajaxGetDictItems("tms_goods_shelves,location_code,id", null).then((res) => {
@@ -492,7 +557,9 @@
     add(nodeSelected) {
       this.editable = false;
       //鍒濆鍖栭粯璁ゅ��
-      this.model = {};
+      this.model = {
+        positionCode: ''
+      };
       this.model.classifyId = nodeSelected.key
       this.model.classifyNum = nodeSelected.entity.classifyId
       this.model.classifyName = nodeSelected.entity.typeName
@@ -508,6 +575,18 @@
       this.$emit('close')
       this.visible = false
       this.$refs.form.clearValidate()
+      this.chineseNameChange1 = '',
+      this.toolModelChange1 = '',
+      this.diameterChange1 = '',
+      this.totalLengthChange1 = '',
+      this.noseAngleRChange1 = ''
+    },
+    positionCodeSearch() {
+      let positionCode = []
+      positionCode.push(this.model.positionCode)
+      this.$refs.selectPositionCodeModal.showModal(positionCode)
+      this.$refs.selectPositionCodeModal.title = '閫夋嫨搴撲綅'
+      this.$refs.selectPositionCodeModal.disableSubmit = false
     },
     handleOk() {
       const that = this
@@ -574,6 +653,26 @@
         }
       })
     },
+    chineseNameChange(chineseNameChange){
+      this.chineseNameChange1 = chineseNameChange
+      this.model.groupCompanySign = this.chineseNameChange1+this.toolModelChange1+this.diameterChange1+this.noseAngleRChange1+this.totalLengthChange1
+    },
+    toolModelChange(toolModelChange){
+      this.toolModelChange1 = toolModelChange == '' ? '' : '-'+toolModelChange
+      this.model.groupCompanySign = this.chineseNameChange1+this.toolModelChange1+this.diameterChange1+this.noseAngleRChange1+this.totalLengthChange1
+    },
+    diameterChange(diameterChange){
+      this.diameterChange1 = diameterChange == '' ? '' : '-'+diameterChange
+      this.model.groupCompanySign = this.chineseNameChange1+this.toolModelChange1+this.diameterChange1+this.noseAngleRChange1+this.totalLengthChange1
+    },
+    totalLengthChange(totalLengthChange){
+      this.totalLengthChange1 = totalLengthChange == '' ? '' : '-'+totalLengthChange
+      this.model.groupCompanySign = this.chineseNameChange1+this.toolModelChange1+this.diameterChange1+this.noseAngleRChange1+this.totalLengthChange1
+    },
+    noseAngleRChange(noseAngleRChange){
+      this.noseAngleRChange1 = noseAngleRChange == '' ? '' : '-'+noseAngleRChange
+      this.model.groupCompanySign = this.chineseNameChange1+this.toolModelChange1+this.diameterChange1+this.noseAngleRChange1+this.totalLengthChange1
+    }
   }
 }
 </script>

--
Gitblit v1.9.3