| | |
| | | }, |
| | | created() { |
| | | this.initOptions() |
| | | this.initNum() |
| | | }, |
| | | methods: { |
| | | |
| | |
| | | }); |
| | | } |
| | | }, */ |
| | | |
| | | initNum() { |
| | | getAction(this.url.getNum, { type: 'SparePartRequirement', length: '4' }).then((res) => { |
| | | if (res.success) { |
| | | this.model.num = res.message |
| | | |
| | | /* this.model.setFieldsValue({ num: res.message }); */ |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | initOptions() { |
| | | getAction(this.url.loadOptions).then(res => { |
| | |
| | | if (this.model.id) { |
| | | let params = { id: this.model.id } |
| | | this.requestSubTableData(this.url.sparesScrapRequirementDetail.list, params, this.sparesScrapRequirementDetailTable) |
| | | }else{ |
| | | getAction(this.url.getNum, { type: 'SparePartRequirement', length: '4' }).then((res) => { |
| | | if (res.success) { |
| | | this.model.num = res.message |
| | | } |
| | | }) |
| | | } |
| | | }, |
| | | //校验所有一对一子表表单 |