| | |
| | | <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="true"></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span='12'> |
| | |
| | | getSysDeparts: "/eam/equipment/getSysDeparts", |
| | | loadOptions: '/sys/sysDepart/loadDepartTreeOptions', |
| | | queryById: '/spare/sparePartScrap/queryById', |
| | | getNum: '/eam/sysIdentity/getNumNew', |
| | | sparesScrapDetail: { |
| | | list: '/spare/sparePartScrap/querySparesScrapDetailByMainId' |
| | | } |
| | |
| | | }, |
| | | created() { |
| | | this.initOptions() |
| | | this.initNum() |
| | | }, |
| | | methods: { |
| | | initNum() { |
| | | getAction(this.url.getNum, { type: 'SparePartScrap', length: '4' }).then((res) => { |
| | | if (res.success) { |
| | | this.model.num = res.message |
| | | } |
| | | }) |
| | | }, |
| | | initOptions() { |
| | | getAction(this.url.loadOptions).then(res => { |
| | | if (res.success) { |