| | |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <a-input-search |
| | | <!-- <a-input-search |
| | | :disabled="disableSubmit" |
| | | placeholder="请选择对象部门" |
| | | enter-button |
| | | @search="onDepartList()" |
| | | :read-only="true" |
| | | v-decorator="['useDepartName', validatorRules.useDepartName]" |
| | | /> --> |
| | | <a-tree-select |
| | | style="width: 100%" |
| | | :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" |
| | | :tree-data="treeData" |
| | | placeholder="请选择部门" |
| | | tree-default-expand-all |
| | | v-decorator="['departId', validatorRules.useId ]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | |
| | | allow-clear |
| | | :disabled="true" |
| | | :placeholder="disableSubmit?'':'请输入责任班组'" |
| | | v-decorator="['teamName', validatorRules.teamName ]" |
| | | v-decorator="['teamName', {} ]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <!-- <a-col :span="12"> |
| | | <a-form-item |
| | | label="对象部门Id" |
| | | :labelCol="labelCol" |
| | |
| | | v-decorator="['departId', validatorRules.useId ]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-col> --> |
| | | <a-col :span="12"> |
| | | <a-form-item |
| | | label="班组Id" |
| | |
| | | model: {}, |
| | | upload: {}, |
| | | maintenanceCycles: {}, |
| | | treeData: [], |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 6 }, |
| | |
| | | realDelete: "/eam/maintenanceStandardDetail/realDelete", |
| | | revise: '/eam/maintenanceStandard/revise', |
| | | getReviseVersion: "/eam/maintenanceStandard/getReviseVersion", |
| | | loadOptions: '/sys/sysDepart/loadDepartTreeOptions', |
| | | }, |
| | | |
| | | dataSource: [], |
| | |
| | | |
| | | edit(record) { |
| | | let that = this; |
| | | this.initOptions(); |
| | | this.getMaintenanceCycle() |
| | | this.dataSource = []; |
| | | this.form.resetFields(); |
| | |
| | | } |
| | | }, |
| | | |
| | | initOptions() { |
| | | getAction(this.url.loadOptions).then(res => { |
| | | if (res.success) { |
| | | this.treeData = res.result |
| | | } else { |
| | | this.$message.warning(res.message) |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | |
| | | onEquipmentList() { |
| | | let data = this.form.getFieldsValue(['departId']); |
| | | if (data.departId == null || data.departId == "") { |