From 6c7ca8b4290cd6afecb680c39be00fc2480a2dca Mon Sep 17 00:00:00 2001 From: qushaowei <qushaowei@163.com> Date: 星期四, 21 九月 2023 14:30:58 +0800 Subject: [PATCH] 现场问题修改 --- src/views/eam/modules/equipmentNew/EquipmentModal.vue | 193 ++++++++++++++++++++++++++---------------------- 1 files changed, 105 insertions(+), 88 deletions(-) diff --git a/src/views/eam/modules/equipmentNew/EquipmentModal.vue b/src/views/eam/modules/equipmentNew/EquipmentModal.vue index a9b5db4..c2d6c38 100644 --- a/src/views/eam/modules/equipmentNew/EquipmentModal.vue +++ b/src/views/eam/modules/equipmentNew/EquipmentModal.vue @@ -128,24 +128,7 @@ 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="manageId" - > - <a-tree-select - :disabled="formDisabled" - style="width: 100%" - :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" - :tree-data="treeData" - placeholder="璇烽�夋嫨缁存姢閮ㄩ棬" - tree-default-expand-all - v-model="model.manageId" - /> - </a-form-model-item> - </a-col> + <a-col :span="6"> <a-form-model-item label="浣跨敤閮ㄩ棬" @@ -166,6 +149,41 @@ </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_area,name,id,del_flag!='1'" + v-model="model.factoryModelId" + /> + </a-form-model-item> + </a-col> + <a-col :span="6"> + <a-form-model-item + label="缁翠慨閮ㄩ棬" + :labelCol="labelCol" + :wrapperCol="wrapperCol" + prop="manageId" + > + <a-tree-select + :disabled="formDisabled" + style="width: 100%" + :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" + :tree-data="treeData" + placeholder="璇烽�夋嫨缁翠慨閮ㄩ棬" + tree-default-expand-all + v-model="model.manageId" + /> + </a-form-model-item> + </a-col> + <a-col :span="6"> + <a-form-model-item label="缁翠慨鐝粍" :labelCol="labelCol" :wrapperCol="wrapperCol" @@ -181,26 +199,10 @@ /> </a-form-model-item> </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-col :span="6"> <a-form-model-item label="浜х嚎" :labelCol="labelCol" @@ -216,7 +218,7 @@ v-model="model.workCenterId" /> </a-form-model-item> - </a-col> + </a-col> --> <a-col :span="6"> <a-form-model-item label="璧勪骇鍒堕�犲晢" @@ -304,7 +306,13 @@ :wrapperCol="wrapperCol" prop="warrantyStart" > - <j-date :disabled="formDisabled" style="width: 100%;" placeholder="璇烽�夋嫨寮�濮嬫棩鏈�" class="query-group-cust" v-model="model.warrantyStart"></j-date> + <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"> @@ -314,7 +322,13 @@ :wrapperCol="wrapperCol" prop="warrantyEnd" > - <j-date :disabled="formDisabled" style="width: 100%;" placeholder="璇烽�夋嫨缁撴潫鏃ユ湡" class="query-group-cust" v-model="model.warrantyEnd"></j-date> + <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> @@ -352,7 +366,7 @@ /> </a-form-model-item> </a-col> - + <a-col :span="6"> <a-form-model-item label="楠屾敹鏃ユ湡" @@ -384,7 +398,7 @@ </a-col> </a-row> <a-row> - <a-col :span="6"> + <!-- <a-col :span="6"> <a-form-model-item label="宸ュ尯" :labelCol="labelCol" @@ -397,7 +411,7 @@ :disabled="formDisabled" ></a-input> </a-form-model-item> - </a-col> + </a-col> --> <a-col :span="6"> <a-form-model-item label="閲嶉噺" @@ -412,7 +426,7 @@ ></a-input> </a-form-model-item> </a-col> - + <a-col :span="6"> <a-form-model-item label="閲嶉噺璁¢噺鍗曚綅" @@ -471,7 +485,7 @@ ></a-input> </a-form-model-item> </a-col> - + <a-col :span="6"> <a-form-model-item label="璧勪骇鏉ユ簮鍥藉" @@ -749,7 +763,10 @@ /> </a-form-model-item> </a-col> - <a-col :span="6" v-if="needSpecific"> + <a-col + :span="6" + v-if="needSpecific" + > <a-form-model-item label="鍏抽敭璁惧鏍囪瘑" :labelCol="labelCol" @@ -926,44 +943,44 @@ equipmentCategoryId: [ { required: true, message: '璇烽�夊垯璁惧绫诲埆!' }, ], - specification:[ - { required: true, message: '璇烽�夊垯璁惧瑙勬牸!' }, + specification: [ + { required: true, message: '璇烽�夊垯璁惧瑙勬牸!' }, ], - model:[ - { required: true, message: '璇烽�夊垯璁惧鍨嬪彿!' }, + model: [ + { required: true, message: '璇烽�夊垯璁惧鍨嬪彿!' }, ], - equipmentImportanceId:[ - { required: true, message: '璇烽�夊垯璁惧ABC鏍囪瘑!' }, + equipmentImportanceId: [ + { required: true, message: '璇烽�夊垯璁惧ABC鏍囪瘑!' }, ], - manageId:[ - { required: true, message: '璇烽�夋嫨缁存姢閮ㄩ棬!' }, + manageId: [ + { required: true, message: '璇烽�夋嫨缁存姢閮ㄩ棬!' }, ], - useId:[ - { required: true, message: '璇烽�夋嫨浣跨敤閮ㄩ棬閮ㄩ棬!' }, + useId: [ + { required: true, message: '璇烽�夋嫨浣跨敤閮ㄩ棬閮ㄩ棬!' }, ], - specificEquipment:[ - { required: true, message: '璇烽�夋嫨鍏抽敭璁惧鏍囪瘑!' }, + specificEquipment: [ + { required: true, message: '璇烽�夋嫨鍏抽敭璁惧鏍囪瘑!' }, ], - equipmentStatus:[ - { required: true, message: '璇烽�夋嫨璁惧鐘舵��!' }, + equipmentStatus: [ + { required: true, message: '璇烽�夋嫨璁惧鐘舵��!' }, ], - technologyStatus:[ - { required: true, message: '璇烽�夋嫨璁惧鐘舵��!' }, + technologyStatus: [ + { required: true, message: '璇烽�夋嫨璁惧鐘舵��!' }, ], - workCenterId:[ - { required: true, message: '璇烽�夋嫨璁惧浜х嚎!' }, + workCenterId: [ + { required: true, message: '璇烽�夋嫨璁惧浜х嚎!' }, ], - factoryModelId:[ - { required: true, message: '璇烽�夋嫨璁惧杞﹂棿!' }, + factoryModelId: [ + { required: true, message: '璇烽�夋嫨璁惧杞﹂棿!' }, ], - warrantyStart:[ - { required: true, message: '璇烽�夋嫨寮�濮嬫棩鏈�!' }, + warrantyStart: [ + { required: true, message: '璇烽�夋嫨寮�濮嬫棩鏈�!' }, ], - warrantyEnd:[ - { required: true, message: '璇烽�夋嫨缁撴潫鏃ユ湡!' }, + warrantyEnd: [ + { required: true, message: '璇烽�夋嫨缁撴潫鏃ユ湡!' }, ], - propertyStatus:[ - { required: true, message: '璇烽�夋嫨璧勪骇鐘舵��!' }, + propertyStatus: [ + { required: true, message: '璇烽�夋嫨璧勪骇鐘舵��!' }, ], }, url: { @@ -972,7 +989,7 @@ loadOptions: '/sys/sysDepart/loadDepartTreeOptions', }, treeData: [], - needSpecific:false, + needSpecific: false, } }, @@ -1141,7 +1158,7 @@ sendPrecisionParametersTemplateRecord(data) { let record = data.record; this.model.precisionParametersTemplateId = record.id - this.model.precisionParametersTemplateId_dictText= record.name + this.model.precisionParametersTemplateId_dictText = record.name this.model = Object.assign({}, this.model); }, standardResultCompute() { @@ -1165,24 +1182,24 @@ this.model = Object.assign({}, this.model); }, - changeNeedSpecific(val){ - if(val=='A'){ - this.needSpecific=true; - }else{ + changeNeedSpecific(val) { + if (val == 'A') { + this.needSpecific = true; + } else { let that = this; this.$confirm({ - title: '鎻愮ず', - content: '闈濧绫昏澶囷紝鏄惁瑕佹坊鍔犲叧閿澶囨爣璇嗭紒', - okText: '纭', - cancelText: '鍙栨秷', - onOk() { - that.needSpecific = true; - }, - onCancel(){ - that.needSpecific = false; - } + title: '鎻愮ず', + content: '闈濧绫昏澶囷紝鏄惁瑕佹坊鍔犲叧閿澶囨爣璇嗭紒', + okText: '纭', + cancelText: '鍙栨秷', + onOk() { + that.needSpecific = true; + }, + onCancel() { + that.needSpecific = false; + } }) - } + } } }, computed: { -- Gitblit v1.9.3