| | |
| | | <a-row :gutter="24"> |
| | | <a-col :span="24/2"> |
| | | <a-form-item label="单据号" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-input |
| | | <a-input |
| | | allow-clear |
| | | placeholder="请输入单据号" |
| | | placeholder="请输入单据号" |
| | | v-decorator="['num', validatorRules.num]" |
| | | /> |
| | | </a-form-item> |
| | |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="24/2" > |
| | | <a-form-item label="委外单位" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-form-item label="外委单位" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | :disabled="disableSubmit" |
| | | :placeholder="disableSubmit?'':'请选择委外单位'" |
| | | :placeholder="disableSubmit?'':'请选择外委单位'" |
| | | :triggerChange="true" |
| | | dictCode="mom_base_supplier,name,id, del_flag='0'" |
| | | v-decorator="['outsourcingUnit', validatorRules.outsourcingUnit]" |
| | |
| | | <j-date placeholder="请选择计划结束时间" v-decorator="['planEndTime', validatorRules.planEndTime ]" :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" style="width: 100%" /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="24/2" > |
| | | <a-form-item label="故障原因" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-input v-decorator="['faultReason', validatorRules.faultReason]" placeholder="请输入故障原因" ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="24/2" > |
| | | <a-form-item label="故障现象" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-input :disabled="disableSubmit" v-decorator="['faultPhenomenon', validatorRules.faultPhenomenon]" placeholder="请输入故障现象" ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="24/2" > |
| | | <a-form-item label="故障排除" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-input :disabled="disableSubmit" v-decorator="['faultRemove', validatorRules.faultRemove]" placeholder="请输入故障排除" ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="24/2" > |
| | | <a-form-item label="预防措施" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-input :disabled="disableSubmit" v-decorator="['preventiveMeasure', validatorRules.preventiveMeasure]" placeholder="请输入预防措施" ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-item label="故障描述" :labelCol="{span:3}" :wrapperCol="{span:21}" > |
| | | <a-textarea rows="2" v-decorator="['faultDescription', validatorRules.faultDescription ]" placeholder="请输入故障描述" ></a-textarea> |
| | |
| | | |
| | | export default { |
| | | name: "RepairOrderModal", |
| | | components: { |
| | | components: { |
| | | JMultiSelectTag, |
| | | Tooltip, |
| | | FaultReportRepair, |
| | |
| | | rules: [ |
| | | { required: true, message: '请选择责任班组!' }, |
| | | ] |
| | | }, |
| | | faultReason:{ |
| | | rules: [ |
| | | { required: true, message: '请填写故障原因!' }, |
| | | ] |
| | | }, |
| | | faultPhenomenon:{ |
| | | rules: [ |
| | | { required: true, message: '请填写故障现象!' }, |
| | | ] |
| | | }, |
| | | preventiveMeasure:{ |
| | | rules: [ |
| | | { required: true, message: '请填写预防措施!' }, |
| | | ] |
| | | }, |
| | | faultRemove:{ |
| | | rules: [ |
| | | { required: true, message: '请填写故障排除!' }, |
| | | ] |
| | | } |
| | | }, |
| | | url: { |
| | |
| | | equipmentList:[], |
| | | teamList:[], |
| | | userList:[], |
| | | |
| | | |
| | | } |
| | | }, |
| | | created () { |
| | |
| | | that.form.setFieldsValue(pick(that.model, 'num', 'equipmentId','equipmentNum','equipmentModel', |
| | | 'equipmentName','urgency','businessType','projectMaintenanceOrderNum','reportRepairId','reportRepairId_dictText','reportRepairNum','dispatchMethod', |
| | | 'maintenanceMethod','responsibilityName','outsourcingUnit','responsibilityId','teamId','workingHourQuota','planStartTime','departName', |
| | | 'planEndTime','faultDescription','photo','remark')); |
| | | 'planEndTime','faultDescription','photo','remark','faultReason','faultPhenomenon','preventiveMeasure','faultRemove')); |
| | | }); |
| | | }, |
| | | close () { |
| | |
| | | }, |
| | | handleOk () { |
| | | const that = this; |
| | | |
| | | |
| | | // 触发表单验证 |
| | | |
| | | |
| | | this.form.validateFields((err, values) => { |
| | | if (!err) { |
| | | that.confirmLoading = true; |
| | |
| | | sendFaultReportRepairRecord(data) { |
| | | let record = data.record; |
| | | this.form.setFieldsValue({ reportRepairId:record.id,equipmentId: record.equipmentId,equipmentNum:record.equipmentNum,equipmentName: record.equipmentName,equipmentModel:record.equipmentModel,reportRepairNum:record.num, |
| | | urgency:record.urgency, departId: record.useDepartId,departName:record.useDepartId_dictText }); |
| | | urgency:record.urgency, departId: record.useDepartId,departName:record.useDepartId_dictText,faultReason:record.faultReason }); |
| | | }, |
| | | onProjectMaintenanceOrder() { |
| | | this.$refs.ProjectMaintenanceOrder.list(); |