| | |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <!-- <a-col :span="12"> |
| | | <a-form-item |
| | | label="开工条件" |
| | | :labelCol="labelCol" |
| | |
| | | @change="handle2Switch(model.startWorkCondition)" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-col> --> |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="12"> |
| | |
| | | hidden |
| | | :gutter="24" |
| | | > |
| | | |
| | | <a-col :span="12"> |
| | | <a-form-item |
| | | label="有效时长" |
| | |
| | | :scroll="{x:true}" |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | @change="handleTableChange" |
| | | :pagination="false" |
| | | > |
| | | <!-- @change="handleTableChange" --> |
| | | <template |
| | | slot="photo" |
| | | slot-scope="text,record" |
| | |
| | | @click="handleOk()" |
| | | type="primary" |
| | | :loading="confirmLoading" |
| | | :disabled="disableSubmit || confirmLoading" |
| | | >确定</a-button> |
| | | </template> |
| | | |
| | |
| | | }, |
| | | width: 50, |
| | | }, |
| | | { |
| | | title: '部位', |
| | | align: 'center', |
| | | dataIndex: 'location' |
| | | }, |
| | | // { |
| | | // title: '部位', |
| | | // align: 'center', |
| | | // dataIndex: 'location' |
| | | // }, |
| | | { |
| | | title: '点检项目', |
| | | align: 'center', |
| | | dataIndex: 'inspectionProjectNum' |
| | | dataIndex: 'inspectionProjectName' |
| | | }, |
| | | { |
| | | title: '检测标准', |
| | | align: 'center', |
| | | dataIndex: 'detectionStandard' |
| | | }, |
| | | { |
| | | title: '合格范围', |
| | | align: 'center', |
| | | dataIndex: 'acceptabilityLimit' |
| | | }, |
| | | { |
| | | title: '方法', |
| | | align: 'center', |
| | | dataIndex: 'inspectionMethodName' |
| | | }, |
| | | { |
| | | title: '工具', |
| | | align: 'center', |
| | | dataIndex: 'inspectionTool' |
| | | }, |
| | | { |
| | | title: '示意图', |
| | | align: "center", |
| | | dataIndex: 'photo', |
| | | scopedSlots: { customRender: 'photo' }, |
| | | }, |
| | | // { |
| | | // title: '合格范围', |
| | | // align: 'center', |
| | | // dataIndex: 'acceptabilityLimit' |
| | | // }, |
| | | // { |
| | | // title: '方法', |
| | | // align: 'center', |
| | | // dataIndex: 'inspectionMethodName' |
| | | // }, |
| | | // { |
| | | // title: '工具', |
| | | // align: 'center', |
| | | // dataIndex: 'inspectionTool' |
| | | // }, |
| | | // { |
| | | // title: '示意图', |
| | | // align: "center", |
| | | // dataIndex: 'photo', |
| | | // scopedSlots: { customRender: 'photo' }, |
| | | // }, |
| | | ], |
| | | title: "操作", |
| | | visible: false, |
| | |
| | | validatorRules: { |
| | | num: { |
| | | rules: [ |
| | | { required: true, message: '请输入设备编码!' }, |
| | | { required: true, message: '请输入统一编码!' }, |
| | | ] |
| | | }, |
| | | equipmentId: { |
| | |
| | | getInspectionCycles: "/eam/inspectionOrder/getInspectionCycles", |
| | | getInspectionProjectId: "/eam/inspectionOrder/getInspectionProjectId", |
| | | // getEquipmentIdById: "/eam/equipment/list", |
| | | getNum: '/eam/sysIdentity/getNumNew' |
| | | }, |
| | | |
| | | dataSource: [], |
| | |
| | | |
| | | methods: { |
| | | add() { |
| | | this.edit({ startWorkCondition: "1", inspectionOrderDetails: [] }) |
| | | this.edit({ inspectionOrderDetails: [] }) |
| | | // this.edit({ startWorkCondition: "1", inspectionOrderDetails: [] }) |
| | | this.getSeq() |
| | | }, |
| | | |
| | | edit(record) { |
| | |
| | | }) |
| | | }, |
| | | |
| | | |
| | | getSeq() { |
| | | getAction(this.url.getNum, { type: 'DailylnspectionOrder', length: 4 }).then(res => { |
| | | if (res.success) { |
| | | this.form.setFieldsValue({ "num": res.result }) |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | // getEquipmentIdById(equipmentId) { |
| | | // if (equipmentId != null && equipmentId != "") { |
| | | // getAction(this.url.getEquipmentIdById, { id: equipmentId }).then((res) => { |
| | |
| | | // } |
| | | // }, |
| | | |
| | | handle2Switch(startWorkCondition) { |
| | | if ('1' == startWorkCondition) { |
| | | this.model.startWorkCondition = '0' |
| | | } else { |
| | | this.model.startWorkCondition = '1' |
| | | } |
| | | }, |
| | | // handle2Switch(startWorkCondition) { |
| | | // if ('1' == startWorkCondition) { |
| | | // this.model.startWorkCondition = '0' |
| | | // } else { |
| | | // this.model.startWorkCondition = '1' |
| | | // } |
| | | // }, |
| | | |
| | | // handle2Change(val) { |
| | | // this.inspectionCycles = []; |
| | |
| | | this.inspectionStandardId = record.id; |
| | | this.form.setFieldsValue({ inspectionStandardId: record.id, inspectionStandardNum: record.num + "/" + record.version }); |
| | | this.form.setFieldsValue({ equipmentId: record.equipmentId, equipmentName: record.equipmentNum + "/" + record.equipmentName }); |
| | | this.form.setFieldsValue({ assignMode: record.assignMode, teamId: record.teamId, teamName: record.teamName }); |
| | | this.form.setFieldsValue({ assignMode: "1", teamId: record.teamId, teamName: record.teamName }); |
| | | this.form.setFieldsValue({ effectiveTime: null, inspectionCycleId: null, unit: null }); |
| | | this.getInspectionCycles(record.id) |
| | | if ("3" == record.assignMode) { |