| | |
| | | <a-row :gutter="24"> |
| | | <a-col :span="12"> |
| | | <a-form-item |
| | | label="专业保养方案" |
| | | label="预防性保养方案" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <a-input-search |
| | | :disabled="disableSubmit" |
| | | :placeholder="disableSubmit?'':'请选择专业保养方案'" |
| | | :placeholder="disableSubmit?'':'请选择预防性保养方案'" |
| | | enter-button |
| | | @search="onSpecialtyMaintenancePlanList()" |
| | | :read-only="true" |
| | |
| | | url: { |
| | | add: "/eam/specialtyMaintenanceOrder/add", |
| | | edit: "/eam/specialtyMaintenanceOrder/edit", |
| | | getNum: '/eam/sysIdentity/getNumNew' |
| | | }, |
| | | } |
| | | }, |
| | |
| | | methods: { |
| | | add() { |
| | | this.edit({}) |
| | | this.getSeq() |
| | | }, |
| | | |
| | | edit(record) { |
| | |
| | | }, |
| | | onSpecialtyMaintenancePlanList() { |
| | | this.$refs.SpecialtyMaintenancePlanList.list(); |
| | | this.$refs.SpecialtyMaintenancePlanList.title = "选择专业保养方案"; |
| | | this.$refs.SpecialtyMaintenancePlanList.title = "选择预防性保养方案"; |
| | | }, |
| | | sendSpecialtyMaintenancePlanRecord(data) { |
| | | let record = data.record; |
| | |
| | | } |
| | | }, |
| | | |
| | | getSeq() { |
| | | getAction(this.url.getNum, { type: 'SpecialtyMaintenanceOrder', length: 4 }).then(res => { |
| | | if (res.success) { |
| | | this.form.setFieldsValue({ "num": res.result }) |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | handleOk() { |
| | | const that = this; |
| | | this.form.validateFields((err, values) => { |