From b7e68d833b667aa5d87f58f90ae3c1de063bdfc0 Mon Sep 17 00:00:00 2001 From: “linengliang” <vanSuperEnergy@163.com> Date: 星期五, 08 九月 2023 16:24:33 +0800 Subject: [PATCH] 设备台账 1.ABC标识变更记录功能 2.质保日期变更记录功能 3.质保到期提醒 4.ABC标识与关键设备标识联动 5.设备质保期字段添加 --- src/views/eam/modules/equipmentNew/EquipmentModal.vue | 130 ++++++++++++++++++++++++++++-------------- 1 files changed, 86 insertions(+), 44 deletions(-) diff --git a/src/views/eam/modules/equipmentNew/EquipmentModal.vue b/src/views/eam/modules/equipmentNew/EquipmentModal.vue index 82ac48a..a9b5db4 100644 --- a/src/views/eam/modules/equipmentNew/EquipmentModal.vue +++ b/src/views/eam/modules/equipmentNew/EquipmentModal.vue @@ -242,23 +242,6 @@ >鐘舵�佸強鏍囪瘑</a-divider> <a-col :span="6"> <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-col :span="6"> - <a-form-model-item label="璁惧鐘舵��" :labelCol="labelCol" :wrapperCol="wrapperCol" @@ -289,6 +272,49 @@ dictCode="technology_status" v-model="model.technologyStatus" /> + </a-form-model-item> + </a-col> + <a-col :span="6"> + <a-form-model-item + label="璧勪骇鐘舵��" + :labelCol="labelCol" + :wrapperCol="wrapperCol" + prop="propertyStatus" + > + <j-dict-select-tag + allow-clear + :disabled="formDisabled" + placeholder="璇疯緭鍏ヨ祫浜х姸鎬�" + :triggerChange="true" + dictCode="property_status" + v-model="model.propertyStatus" + /> + </a-form-model-item> + </a-col> + </a-row> + <a-row v-if="model.propertyStatus=='warranty'"> + <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> @@ -718,7 +744,25 @@ 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> @@ -798,32 +842,6 @@ :read-only="true" 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> @@ -943,7 +961,10 @@ ], warrantyEnd:[ { required: true, message: '璇烽�夋嫨缁撴潫鏃ユ湡!' }, - ] + ], + propertyStatus:[ + { required: true, message: '璇烽�夋嫨璧勪骇鐘舵��!' }, + ], }, url: { add: "/eam/equipment/add", @@ -951,6 +972,7 @@ loadOptions: '/sys/sysDepart/loadDepartTreeOptions', }, treeData: [], + needSpecific:false, } }, @@ -961,6 +983,7 @@ }, methods: { add() { + this this.edit(this.modelDefault); }, edit(record) { @@ -1141,6 +1164,25 @@ } this.model = Object.assign({}, this.model); + }, + 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; + } + }) + } } }, computed: { -- Gitblit v1.9.3