| | |
| | | <a-row> |
| | | <a-col :span='12'> |
| | | <a-form-model-item label='申请单编号' :labelCol='labelCol' :wrapperCol='wrapperCol' prop='num'> |
| | | <a-input v-model='model.num' placeholder="将由系统生成"></a-input> |
| | | <a-input v-model='model.num' placeholder="将由系统生成" disabled></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span='12'> |
| | |
| | | } |
| | | }, |
| | | created() { |
| | | this.initNum() |
| | | }, |
| | | methods: { |
| | | |
| | | initNum(){ |
| | | getAction(this.url.getNum, { type: 'OperationCertificateApply', length: '4' }).then((res) => { |
| | | if (res.success) { |
| | | this.model.num = res.message |
| | | } |
| | | }) |
| | | }, |
| | | addBefore() { |
| | | this.operationCertificateApplyDetailTable.dataSource = [] |
| | | }, |
| | |
| | | if (this.model.id) { |
| | | let params = { id: this.model.id } |
| | | this.requestSubTableData(this.url.operationCertificateApplyDetail.list, params, this.operationCertificateApplyDetailTable) |
| | | }else{ |
| | | getAction(this.url.getNum, { type: 'OperationCertificateApply', length: '4' }).then((res) => { |
| | | if (res.success) { |
| | | this.model.num = res.message |
| | | } |
| | | }) |
| | | } |
| | | }, |
| | | //校验所有一对一子表表单 |