| | |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-item |
| | | label="对象部门" |
| | | label="使用部门" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | |
| | | style="width: 100%" |
| | | :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" |
| | | :tree-data="treeData" |
| | | placeholder="请选择对象部门" |
| | | placeholder="请选择使用部门" |
| | | tree-default-expand-all |
| | | v-decorator="['departId', validatorRules.departId]" |
| | | @change="(e)=>handle2Change(e)" |
| | |
| | | dataIndex: 'versionStatusName' |
| | | }, |
| | | { |
| | | title: '设备编码', |
| | | title: '统一编码', |
| | | align: 'center', |
| | | dataIndex: 'equipmentNum' |
| | | }, |
| | |
| | | getMaintenanceCycles: "/eam/maintenanceStandardDetail/getMaintenanceCycle", |
| | | getSysDeparts: "/eam/equipment/getSysDeparts", |
| | | loadOptions: '/sys/sysDepart/loadDepartTreeOptions', |
| | | getNum: '/eam/sysIdentity/getNumNew' |
| | | }, |
| | | dataSource: [], |
| | | //用于展示文件 |
| | |
| | | selectMaintenanceProjects: function () { |
| | | let dataDepartId = this.form.getFieldsValue(['departId']); |
| | | if (dataDepartId.departId === "" || dataDepartId.departId === null || dataDepartId.departId === undefined) { |
| | | this.$message.warning("请选择对象部门!"); |
| | | this.$message.warning("请选择使用部门!"); |
| | | return |
| | | } |
| | | let data = this.form.getFieldsValue(['maintenanceCycleId']); |
| | |
| | | |
| | | add() { |
| | | this.edit({ specialtyMaintenancePlanDetailList: [] }) |
| | | this.getSeq() |
| | | }, |
| | | |
| | | edit(record) { |
| | |
| | | }) |
| | | }, |
| | | |
| | | getSeq() { |
| | | getAction(this.url.getNum, { type: 'SpecialtyMaintenancePlan', length: 4 }).then(res => { |
| | | if (res.success) { |
| | | this.form.setFieldsValue({ "num": res.result }) |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | handleOk() { |
| | | const that = this; |
| | | // 触发表单验证 |