From c0b0bb462de82e0fd7bb700ab8bb91a79af70798 Mon Sep 17 00:00:00 2001 From: “linengliang” <vanSuperEnergy@163.com> Date: 星期四, 28 九月 2023 18:10:55 +0800 Subject: [PATCH] 精度管理 --- src/views/eam/modules/equipmentNew/EquipmentModal.vue | 506 +++++++++++++++++++++++++++---------------------------- 1 files changed, 251 insertions(+), 255 deletions(-) diff --git a/src/views/eam/modules/equipmentNew/EquipmentModal.vue b/src/views/eam/modules/equipmentNew/EquipmentModal.vue index a9b5db4..174b33d 100644 --- a/src/views/eam/modules/equipmentNew/EquipmentModal.vue +++ b/src/views/eam/modules/equipmentNew/EquipmentModal.vue @@ -111,6 +111,43 @@ </a-col> <a-col :span="6"> <a-form-model-item + label="浣跨敤閮ㄩ棬" + :labelCol="labelCol" + :wrapperCol="wrapperCol" + prop="useId" + > + <a-tree-select + style="width: 100%" + :disabled="formDisabled" + :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" + :tree-data="treeData" + placeholder="璇烽�夋嫨浣跨敤閮ㄩ棬" + tree-default-expand-all + v-model="model.useId" + /> + </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_area,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" @@ -126,11 +163,11 @@ <a-row> <a-divider orientation="center" - style="font-size: large;font-style: italic;color: #66aeed;" + style="font-size: large;font-style: italic;color: #f20707;" >缁存姢鍙婁娇鐢ㄤ俊鎭�</a-divider> <a-col :span="6"> <a-form-model-item - label="缁存姢閮ㄩ棬" + label="缁翠慨閮ㄩ棬" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="manageId" @@ -140,27 +177,9 @@ style="width: 100%" :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" :tree-data="treeData" - placeholder="璇烽�夋嫨缁存姢閮ㄩ棬" + 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" - prop="useId" - > - <a-tree-select - style="width: 100%" - :disabled="formDisabled" - :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" - :tree-data="treeData" - placeholder="璇烽�夋嫨浣跨敤閮ㄩ棬" - tree-default-expand-all - v-model="model.useId" /> </a-form-model-item> </a-col> @@ -183,24 +202,162 @@ </a-col> <a-col :span="6"> <a-form-model-item - label="杞﹂棿" + label="ABC鏍囪瘑" :labelCol="labelCol" :wrapperCol="wrapperCol" - prop="factoryModelId" + prop="equipmentImportanceId" > <j-dict-select-tag allow-clear :disabled="formDisabled" - placeholder="璇烽�夋嫨璧勮溅闂�" + placeholder="璇烽�夋嫨ABC鏍囪瘑" :triggerChange="true" - dictCode="mom_base_factory_model,name,id,del_flag!='1'" - v-model="model.factoryModelId" + dictCode="ABC-standard-result" + @change="changeNeedSpecific" + v-model="model.equipmentImportanceId" + /> + </a-form-model-item> + </a-col> + <a-col + :span="6" + v-if="needSpecific" + > + <a-form-model-item + label="鍏抽敭璁惧鏍囪瘑" + :labelCol="labelCol" + :wrapperCol="wrapperCol" + prop="specificEquipment" + > + <j-dict-select-tag + allow-clear + placeholder="璇烽�夋嫨鍏抽敭璁惧鏍囪瘑" + :disabled="formDisabled" + :triggerChange="true" + dictCode="specific_equipment" + v-model="model.specificEquipment" /> </a-form-model-item> </a-col> </a-row> <a-row> <a-col :span="6"> + <a-form-model-item + label="瀹夊叏閰嶇疆" + :labelCol="labelCol" + :wrapperCol="wrapperCol" + prop="securityConfiguration" + > + <a-input + v-model="model.securityConfiguration" + :disabled="formDisabled" + placeholder="璇疯緭鍏ュ畨鍏ㄩ厤缃�" + ></a-input> + </a-form-model-item> + </a-col> + <a-col :span="6"> + <a-form-model-item + label="鍐峰嵈绯荤粺" + :labelCol="labelCol" + :wrapperCol="wrapperCol" + prop="coolingSystem" + > + <a-input + v-model="model.coolingSystem" + :disabled="formDisabled" + placeholder="璇疯緭鍏ュ喎鍗寸郴缁�" + ></a-input> + </a-form-model-item> + </a-col> + <a-col :span="6"> + <a-form-model-item + label="鐏伀鍣�" + :labelCol="labelCol" + :wrapperCol="wrapperCol" + prop="fireExtinguisher" + > + <a-input + v-model="model.fireExtinguisher" + :disabled="formDisabled" + placeholder="璇疯緭鍏ョ伃鐏櫒" + ></a-input> + </a-form-model-item> + </a-col> + <a-col :span="6"> + <a-form-model-item + label="鐏伀鍣ㄦ湁鏁堟湡" + :labelCol="labelCol" + :wrapperCol="wrapperCol" + prop="fireExtinguisherValidityPeriod" + > + <a-input + v-model="model.fireExtinguisherValidityPeriod" + :disabled="formDisabled" + placeholder="璇疯緭鍏ョ伃鐏櫒鏈夋晥鏈�" + ></a-input> + </a-form-model-item> + </a-col> + </a-row> + <a-row> + <a-col :span="6"> + <a-form-model-item + label="鎿嶄綔绯荤粺" + :labelCol="labelCol" + :wrapperCol="wrapperCol" + prop="operatingSystem" + > + <a-input + v-model="model.operatingSystem" + :disabled="formDisabled" + placeholder="璇疯緭鍏ユ搷浣滅郴缁�" + ></a-input> + </a-form-model-item> + </a-col> + <a-col :span="6"> + <a-form-model-item + label="绯荤粺" + :labelCol="labelCol" + :wrapperCol="wrapperCol" + prop="system" + > + <a-input + v-model="model.system" + :disabled="formDisabled" + placeholder="璇疯緭鍏ョ郴缁�" + ></a-input> + </a-form-model-item> + </a-col> + <a-col :span="6"> + <a-form-model-item + label="绔彛" + :labelCol="labelCol" + :wrapperCol="wrapperCol" + prop="port" + > + <a-input + v-model="model.port" + :disabled="formDisabled" + placeholder="璇疯緭鍏ョ鍙�" + ></a-input> + </a-form-model-item> + </a-col> + <a-col :span="6"> + <a-form-model-item + label="鍧愭爣鏁伴噺" + :labelCol="labelCol" + :wrapperCol="wrapperCol" + prop="coordinateNum" + > + <a-input-number + v-model="model.coordinateNum" + :disabled="formDisabled" + placeholder="璇疯緭鍏ュ潗鏍囨暟閲�" + style="width: 100%" + /> + </a-form-model-item> + </a-col> + </a-row> + <a-row> + <!-- <a-col :span="6"> <a-form-model-item label="浜х嚎" :labelCol="labelCol" @@ -216,7 +373,7 @@ v-model="model.workCenterId" /> </a-form-model-item> - </a-col> + </a-col> --> <a-col :span="6"> <a-form-model-item label="璧勪骇鍒堕�犲晢" @@ -304,7 +461,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 +477,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 +521,7 @@ /> </a-form-model-item> </a-col> - + <a-col :span="6"> <a-form-model-item label="楠屾敹鏃ユ湡" @@ -384,7 +553,7 @@ </a-col> </a-row> <a-row> - <a-col :span="6"> + <!-- <a-col :span="6"> <a-form-model-item label="宸ュ尯" :labelCol="labelCol" @@ -397,7 +566,7 @@ :disabled="formDisabled" ></a-input> </a-form-model-item> - </a-col> + </a-col> --> <a-col :span="6"> <a-form-model-item label="閲嶉噺" @@ -412,7 +581,7 @@ ></a-input> </a-form-model-item> </a-col> - + <a-col :span="6"> <a-form-model-item label="閲嶉噺璁¢噺鍗曚綅" @@ -441,8 +610,6 @@ ></a-input> </a-form-model-item> </a-col> - </a-row> - <a-row> <a-col :span="6"> <a-form-model-item label="鍔熻兘浣嶇疆" @@ -457,6 +624,8 @@ ></a-input> </a-form-model-item> </a-col> + </a-row> + <a-row> <a-col :span="6"> <a-form-model-item label="璧勯噾鏉ユ簮" @@ -471,7 +640,6 @@ ></a-input> </a-form-model-item> </a-col> - <a-col :span="6"> <a-form-model-item label="璧勪骇鏉ユ簮鍥藉" @@ -488,121 +656,6 @@ </a-col> <a-col :span="6"> <a-form-model-item - label="瀹夊叏閰嶇疆" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="securityConfiguration" - > - <a-input - v-model="model.securityConfiguration" - :disabled="formDisabled" - placeholder="璇疯緭鍏ュ畨鍏ㄩ厤缃�" - ></a-input> - </a-form-model-item> - </a-col> - <a-col :span="6"> - <a-form-model-item - label="鍐峰嵈绯荤粺" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="coolingSystem" - > - <a-input - v-model="model.coolingSystem" - :disabled="formDisabled" - placeholder="璇疯緭鍏ュ喎鍗寸郴缁�" - ></a-input> - </a-form-model-item> - </a-col> - <a-col :span="6"> - <a-form-model-item - label="鐏伀鍣�" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="fireExtinguisher" - > - <a-input - v-model="model.fireExtinguisher" - :disabled="formDisabled" - placeholder="璇疯緭鍏ョ伃鐏櫒" - ></a-input> - </a-form-model-item> - </a-col> - <a-col :span="6"> - <a-form-model-item - label="鐏伀鍣ㄦ湁鏁堟湡" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="fireExtinguisherValidityPeriod" - > - <a-input - v-model="model.fireExtinguisherValidityPeriod" - :disabled="formDisabled" - placeholder="璇疯緭鍏ョ伃鐏櫒鏈夋晥鏈�" - ></a-input> - </a-form-model-item> - </a-col> - <a-col :span="6"> - <a-form-model-item - label="鎿嶄綔绯荤粺" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="operatingSystem" - > - <a-input - v-model="model.operatingSystem" - :disabled="formDisabled" - placeholder="璇疯緭鍏ユ搷浣滅郴缁�" - ></a-input> - </a-form-model-item> - </a-col> - </a-row> - <a-row> - <a-col :span="6"> - <a-form-model-item - label="绯荤粺" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="system" - > - <a-input - v-model="model.system" - :disabled="formDisabled" - placeholder="璇疯緭鍏ョ郴缁�" - ></a-input> - </a-form-model-item> - </a-col> - <a-col :span="6"> - <a-form-model-item - label="绔彛" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="port" - > - <a-input - v-model="model.port" - :disabled="formDisabled" - placeholder="璇疯緭鍏ョ鍙�" - ></a-input> - </a-form-model-item> - </a-col> - <a-col :span="6"> - <a-form-model-item - label="鍧愭爣鏁伴噺" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="coordinateNum" - > - <a-input-number - v-model="model.coordinateNum" - :disabled="formDisabled" - placeholder="璇疯緭鍏ュ潗鏍囨暟閲�" - style="width: 100%" - /> - </a-form-model-item> - </a-col> - <a-col :span="6"> - <a-form-model-item label="澶囨敞" :labelCol="labelCol" :wrapperCol="wrapperCol" @@ -615,12 +668,8 @@ ></a-input> </a-form-model-item> </a-col> - <a-divider - orientation="center" - style="font-size: large;font-style: italic;color: #66aeed;" - >ABC鏍囪瘑</a-divider> - </a-row> - <a-row> + </a-row> + <a-row hidden> <a-col :span="6"> <a-form-model-item label="骞冲潎浣跨敤鐜�" @@ -639,6 +688,8 @@ /> </a-form-model-item> </a-col> + </a-row> + <a-row hidden> <a-col :span="6"> <a-form-model-item label="鍙浛鎹㈡��" @@ -693,26 +744,6 @@ /> </a-form-model-item> </a-col> - </a-row> - <a-row> - <a-col :span="6"> - <a-form-model-item - label="鏁呴殰棰戠巼" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="standardE" - > - <j-dict-select-tag - allow-clear - placeholder="璇烽�夋嫨鏁呴殰棰戠巼" - :disabled="formDisabled" - :triggerChange="true" - dictCode="ABC-standardE" - @change="standardResultCompute" - v-model="model.standardE" - /> - </a-form-model-item> - </a-col> <a-col :span="6"> <a-form-model-item label="璁惧浠峰��" @@ -728,41 +759,6 @@ dictCode="ABC-standardF" v-model="model.standardF" @change="standardResultCompute" - /> - </a-form-model-item> - </a-col> - <a-col :span="6"> - <a-form-model-item - label="ABC鏍囪瘑" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="equipmentImportanceId" - > - <j-dict-select-tag - allow-clear - :disabled="formDisabled" - placeholder="璇烽�夋嫨ABC鏍囪瘑" - :triggerChange="true" - dictCode="ABC-standard-result" - @change="changeNeedSpecific" - v-model="model.equipmentImportanceId" - /> - </a-form-model-item> - </a-col> - <a-col :span="6" v-if="needSpecific"> - <a-form-model-item - label="鍏抽敭璁惧鏍囪瘑" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="specificEquipment" - > - <j-dict-select-tag - allow-clear - placeholder="璇烽�夋嫨鍏抽敭璁惧鏍囪瘑" - :disabled="formDisabled" - :triggerChange="true" - dictCode="specific_equipment" - v-model="model.specificEquipment" /> </a-form-model-item> </a-col> @@ -926,44 +922,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 +968,7 @@ loadOptions: '/sys/sysDepart/loadDepartTreeOptions', }, treeData: [], - needSpecific:false, + needSpecific: false, } }, @@ -1141,7 +1137,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 +1161,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