| | |
| | | >状态及标识</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" |
| | |
| | | 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> |
| | |
| | | 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> |
| | |
| | | :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> |
| | |
| | | ], |
| | | warrantyEnd:[ |
| | | { required: true, message: '请选择结束日期!' }, |
| | | ] |
| | | ], |
| | | propertyStatus:[ |
| | | { required: true, message: '请选择资产状态!' }, |
| | | ], |
| | | }, |
| | | url: { |
| | | add: "/eam/equipment/add", |
| | |
| | | loadOptions: '/sys/sysDepart/loadDepartTreeOptions', |
| | | }, |
| | | treeData: [], |
| | | needSpecific:false, |
| | | |
| | | } |
| | | }, |
| | |
| | | }, |
| | | methods: { |
| | | add() { |
| | | this |
| | | this.edit(this.modelDefault); |
| | | }, |
| | | edit(record) { |
| | |
| | | } |
| | | this.model = Object.assign({}, this.model); |
| | | |
| | | }, |
| | | changeNeedSpecific(val){ |
| | | if(val=='A'){ |
| | | this.needSpecific=true; |
| | | }else{ |
| | | let that = this; |
| | | this.$confirm({ |
| | | title: '提示', |
| | | content: '非A类设备,是否要添加关键设备标识!', |
| | | okText: '确认', |
| | | cancelText: '取消', |
| | | onOk() { |
| | | that.needSpecific = true; |
| | | }, |
| | | onCancel(){ |
| | | that.needSpecific = false; |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | }, |
| | | computed: { |