From a2efd257aeb135e1c48e555d92048defd4b68633 Mon Sep 17 00:00:00 2001
From: qushaowei <qushaowei@163.com>
Date: 星期四, 07 九月 2023 13:39:14 +0800
Subject: [PATCH] 设备精度检验单

---
 src/views/eam/modules/equipmentNew/EquipmentModal.vue |  133 ++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 127 insertions(+), 6 deletions(-)

diff --git a/src/views/eam/modules/equipmentNew/EquipmentModal.vue b/src/views/eam/modules/equipmentNew/EquipmentModal.vue
index 932832e..82ac48a 100644
--- a/src/views/eam/modules/equipmentNew/EquipmentModal.vue
+++ b/src/views/eam/modules/equipmentNew/EquipmentModal.vue
@@ -79,6 +79,8 @@
               ></a-input>
             </a-form-model-item>
           </a-col>
+        </a-row>
+        <a-row>
           <a-col :span="6">
             <a-form-model-item
               label="瑙勬牸"
@@ -120,6 +122,8 @@
               ></j-image-upload>
             </a-form-model-item>
           </a-col>
+        </a-row>
+        <a-row>
           <a-divider
             orientation="center"
             style="font-size: large;font-style: italic;color: #66aeed;"
@@ -179,6 +183,42 @@
           </a-col>
           <a-col :span="6">
             <a-form-model-item
+              label="杞﹂棿"
+              :labelCol="labelCol"
+              :wrapperCol="wrapperCol"
+              prop="factoryModelId"
+            >
+              <j-dict-select-tag
+                allow-clear
+                :disabled="formDisabled"
+                placeholder="璇烽�夋嫨璧勮溅闂�"
+                :triggerChange="true"
+                dictCode="mom_base_factory_model,name,id,del_flag!='1'"
+                v-model="model.factoryModelId"
+              />
+            </a-form-model-item>
+          </a-col>
+        </a-row>
+        <a-row>
+          <a-col :span="6">
+            <a-form-model-item
+              label="浜х嚎"
+              :labelCol="labelCol"
+              :wrapperCol="wrapperCol"
+              prop="workCenterId"
+            >
+              <j-dict-select-tag
+                allow-clear
+                :disabled="formDisabled"
+                placeholder="璇烽�夋嫨浜х嚎"
+                :triggerChange="true"
+                dictCode="mom_base_work_center,name,id,del_flag!='1'"
+                v-model="model.workCenterId"
+              />
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="6">
+            <a-form-model-item
               label="璧勪骇鍒堕�犲晢"
               :labelCol="labelCol"
               :wrapperCol="wrapperCol"
@@ -194,6 +234,8 @@
               />
             </a-form-model-item>
           </a-col>
+        </a-row>
+        <a-row>
           <a-divider
             orientation="center"
             style="font-size: large;font-style: italic;color: #66aeed;"
@@ -249,6 +291,8 @@
               />
             </a-form-model-item>
           </a-col>
+        </a-row>
+        <a-row>
           <a-divider
             orientation="center"
             style="font-size: large;font-style: italic;color: #66aeed;"
@@ -282,6 +326,7 @@
               />
             </a-form-model-item>
           </a-col>
+       
           <a-col :span="6">
             <a-form-model-item
               label="楠屾敹鏃ユ湡"
@@ -311,6 +356,8 @@
               ></a-input>
             </a-form-model-item>
           </a-col>
+        </a-row>
+        <a-row>
           <a-col :span="6">
             <a-form-model-item
               label="宸ュ尯"
@@ -339,6 +386,7 @@
               ></a-input>
             </a-form-model-item>
           </a-col>
+      
           <a-col :span="6">
             <a-form-model-item
               label="閲嶉噺璁¢噺鍗曚綅"
@@ -367,6 +415,8 @@
               ></a-input>
             </a-form-model-item>
           </a-col>
+        </a-row>
+        <a-row>
           <a-col :span="6">
             <a-form-model-item
               label="鍔熻兘浣嶇疆"
@@ -395,6 +445,7 @@
               ></a-input>
             </a-form-model-item>
           </a-col>
+      
           <a-col :span="6">
             <a-form-model-item
               label="璧勪骇鏉ユ簮鍥藉"
@@ -479,6 +530,8 @@
               ></a-input>
             </a-form-model-item>
           </a-col>
+        </a-row>
+        <a-row>
           <a-col :span="6">
             <a-form-model-item
               label="绯荤粺"
@@ -540,6 +593,8 @@
             orientation="center"
             style="font-size: large;font-style: italic;color: #66aeed;"
           >ABC鏍囪瘑</a-divider>
+        </a-row>
+        <a-row>
           <a-col :span="6">
             <a-form-model-item
               label="骞冲潎浣跨敤鐜�"
@@ -612,6 +667,8 @@
               />
             </a-form-model-item>
           </a-col>
+        </a-row>
+        <a-row>
           <a-col :span="6">
             <a-form-model-item
               label="鏁呴殰棰戠巼"
@@ -665,6 +722,8 @@
               />
             </a-form-model-item>
           </a-col>
+        </a-row>
+        <a-row>
           <a-divider
             orientation="center"
             style="font-size: large;font-style: italic;color: #66aeed;"
@@ -701,7 +760,7 @@
                 enter-button
                 @search="onSearchPrecisionParametersTemplate()"
                 :read-only="true"
-                v-model="model.precisionParametersTemplateName"
+                v-model="model.precisionParametersTemplateId_dictText"
               />
             </a-form-model-item>
           </a-col>
@@ -737,8 +796,34 @@
                 enter-button
                 @search="onSearchProcessParametersTemplate()"
                 :read-only="true"
-                v-model="model.processParametersTemplateName"
+                v-model="model.processParametersTemplateId_dictText"
               />
+            </a-form-model-item>
+          </a-col>
+        </a-row>
+        <a-row>
+          <a-divider
+            orientation="center"
+            style="font-size: large;font-style: italic;color: #66aeed;"
+          >璐ㄤ繚鏃ユ湡</a-divider>
+          <a-col :span="6">
+            <a-form-model-item
+              label="璐ㄤ繚寮�濮嬫棩鏈�"
+              :labelCol="labelCol"
+              :wrapperCol="wrapperCol"
+              prop="warrantyStart"
+            >
+            <j-date  :disabled="formDisabled" style="width: 100%;" placeholder="璇烽�夋嫨寮�濮嬫棩鏈�" class="query-group-cust" v-model="model.warrantyStart"></j-date>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="6">
+            <a-form-model-item
+              label="璐ㄤ繚缁撴潫鏃ユ湡"
+              :labelCol="labelCol"
+              :wrapperCol="wrapperCol"
+              prop="warrantyEnd"
+            >
+            <j-date  :disabled="formDisabled" style="width: 100%;" placeholder="璇烽�夋嫨缁撴潫鏃ユ湡" class="query-group-cust" v-model="model.warrantyEnd"></j-date>
             </a-form-model-item>
           </a-col>
         </a-row>
@@ -761,8 +846,8 @@
 import { postAction, requestPut, getAction } from '@/api/manage'
 import { duplicateCheck } from '@/api/api'
 import moment from 'moment'
-import ProcessParametersTemplateList from '../equipment/ProcessParametersTemplateList'
-import PrecisionParametersTemplateList from '../equipment/PrecisionParametersTemplateList'
+import ProcessParametersTemplateList from './serach/ProcessParametersTemplateList'
+import PrecisionParametersTemplateList from './serach/PrecisionParametersTemplateList'
 import { JVxeTableModelMixin } from '@/mixins/JVxeTableModelMixin.js'
 import { JVXETypes } from '@/components/jeecg/JVxeTable'
 export default {
@@ -822,6 +907,42 @@
         ],
         equipmentCategoryId: [
           { required: true, message: '璇烽�夊垯璁惧绫诲埆!' },
+        ],
+        specification:[
+        { required: true, message: '璇烽�夊垯璁惧瑙勬牸!' },
+        ],
+        model:[
+        { required: true, message: '璇烽�夊垯璁惧鍨嬪彿!' },
+        ],
+        equipmentImportanceId:[
+        { required: true, message: '璇烽�夊垯璁惧ABC鏍囪瘑!' },
+        ],
+        manageId:[
+        { required: true, message: '璇烽�夋嫨缁存姢閮ㄩ棬!' },
+        ],
+        useId:[
+        { required: true, message: '璇烽�夋嫨浣跨敤閮ㄩ棬閮ㄩ棬!' },
+        ],
+        specificEquipment:[
+        { required: true, message: '璇烽�夋嫨鍏抽敭璁惧鏍囪瘑!' },
+        ],
+        equipmentStatus:[
+        { required: true, message: '璇烽�夋嫨璁惧鐘舵��!' },
+        ],
+        technologyStatus:[
+        { required: true, message: '璇烽�夋嫨璁惧鐘舵��!' },
+        ],
+        workCenterId:[
+        { required: true, message: '璇烽�夋嫨璁惧浜х嚎!' },
+        ],
+        factoryModelId:[
+        { required: true, message: '璇烽�夋嫨璁惧杞﹂棿!' },
+        ],
+        warrantyStart:[
+        { required: true, message: '璇烽�夋嫨寮�濮嬫棩鏈�!' },
+        ],
+        warrantyEnd:[
+        { required: true, message: '璇烽�夋嫨缁撴潫鏃ユ湡!' },
         ]
       },
       url: {
@@ -986,7 +1107,7 @@
     sendProcessParametersTemplateRecord(data) {
       let record = data.record;
       this.model.processParametersTemplateId = record.id
-      this.model.processParametersTemplateName = record.name
+      this.model.processParametersTemplateId_dictText = record.name
       this.model = Object.assign({}, this.model);
     },
 
@@ -997,7 +1118,7 @@
     sendPrecisionParametersTemplateRecord(data) {
       let record = data.record;
       this.model.precisionParametersTemplateId = record.id
-      this.model.precisionParametersTemplateName = record.name
+      this.model.precisionParametersTemplateId_dictText= record.name
       this.model = Object.assign({}, this.model);
     },
     standardResultCompute() {

--
Gitblit v1.9.3