| | |
| | | :wrapperCol='wrapperCol' |
| | | > |
| | | <a-input |
| | | :disabled="disableSubmit" |
| | | :disabled="true" |
| | | placeholder='请输单据号' |
| | | v-decorator="['num', validatorRules.num]" |
| | | /> |
| | |
| | | :labelCol='labelCol' |
| | | :wrapperCol='wrapperCol' |
| | | > |
| | | <!-- <j-dict-select-tag |
| | | allow-clear |
| | | :disabled='disableSubmit' |
| | | :placeholder="disableSubmit?'':'请选择领用部门'" |
| | | :triggerChange='true' |
| | | dictCode="sys_depart,depart_name,id,del_flag!='1'" |
| | | v-decorator="['departId', validatorRules.departId]" |
| | | />--> |
| | | <!-- <a-select |
| | | :placeholder="'请选择领用部门'" |
| | | :options="this.departs" |
| | | :disabled="disableSubmit" |
| | | style="width: 100%" |
| | | v-model='model.departId' |
| | | />--> |
| | | <a-tree-select |
| | | style="width: 100%" |
| | | :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" |
| | |
| | | url: { |
| | | add: '/spare/sparePartCancellingStocks/add', |
| | | getSysDeparts: "/eam/equipment/getSysDeparts", |
| | | getNum: '/eam/sysIdentity/getNumNew', |
| | | loadOptions: '/sys/sysDepart/loadDepartTreeOptions', |
| | | edit: '/spare/sparePartCancellingStocks/edit' |
| | | }, |
| | |
| | | model: data[i].model, |
| | | mainUnitId: data[i].mainUnitId, |
| | | mainUnitName: data[i].mainUnitName, |
| | | /* auxiliaryUnitId: data[i].auxiliaryUnitId, |
| | | auxiliaryUnitName: data[i].auxiliaryUnitName, */ |
| | | /* conversionRatio: data[i].conversionRatio, */ |
| | | constructorId: data[i].constructorId, |
| | | constructorName: data[i].constructorName, |
| | | supplierId: data[i].supplierId, |
| | |
| | | this.codeDisable = true |
| | | } else { |
| | | this.codeDisable = false |
| | | this.$nextTick(() => { |
| | | getAction(this.url.getNum, { type: 'SparePartCancellingStocks', length: '4' }).then((res) => { |
| | | if (res.success) { |
| | | this.form.setFieldsValue({ num: res.message }); |
| | | } |
| | | }) |
| | | }); |
| | | } |
| | | }, |
| | | |