| | |
| | | :wrapperCol='wrapperCol' |
| | | > |
| | | <a-input |
| | | :disabled="disableSubmit" |
| | | placeholder='请输单据号' |
| | | v-decorator="['num', validatorRules.num]" |
| | | /> |
| | |
| | | dictCode="sys_depart,depart_name,id,del_flag!='1'" |
| | | v-decorator="['departId', validatorRules.departId]" |
| | | />--> |
| | | <a-select |
| | | <!-- <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' }" |
| | | :tree-data="treeData" |
| | | placeholder="请选择领用部门" |
| | | tree-default-expand-all |
| | | v-model='model.departId' |
| | | /> |
| | | </a-form-item> |
| | |
| | | type='primary' |
| | | :style="{ marginRight: '8px',marginBottom:'8px' }" |
| | | :loading='confirmLoading' |
| | | :disabled="disableSubmit" |
| | | @click='selectSparePartInventory()' |
| | | >增加备件库存信息 |
| | | </a-button> |
| | |
| | | <div :key='col.dataIndex'> |
| | | <a-input-number |
| | | :value='text' |
| | | :disabled="disableSubmit" |
| | | v-if="col.dataIndex == 'mainQuantity'" |
| | | :min='0' |
| | | :max='record.outboundMainQuantity' |
| | |
| | | > |
| | | <a-popconfirm |
| | | title='确定删除吗?' |
| | | :disabled="disableSubmit" |
| | | @confirm='() => handleDelete(text,record, index)' |
| | | > |
| | | <a>删除</a> |
| | |
| | | <a-button |
| | | @click='handleOk()' |
| | | type='primary' |
| | | :disabled="disableSubmit" |
| | | :loading='confirmLoading' |
| | | >确定 |
| | | </a-button> |
| | |
| | | data() { |
| | | return { |
| | | departId:[], |
| | | treeData:[], |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | |
| | | dataIndex: 'warehouseLocationNum' |
| | | }, |
| | | { |
| | | title: '主单位', |
| | | title: '单位', |
| | | align: 'center', |
| | | dataIndex: 'mainUnitName' |
| | | }, |
| | |
| | | align: 'center', |
| | | dataIndex: 'outboundMainQuantity' |
| | | }, |
| | | { |
| | | /* { |
| | | title: '辅单位', |
| | | align: 'center', |
| | | dataIndex: 'auxiliaryUnitName' |
| | | }, |
| | | }, */ |
| | | { |
| | | title: '退库数量', |
| | | align: 'center', |
| | |
| | | url: { |
| | | add: '/spare/sparePartCancellingStocks/add', |
| | | getSysDeparts: "/eam/equipment/getSysDeparts", |
| | | 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, |
| | | /* auxiliaryUnitId: data[i].auxiliaryUnitId, |
| | | auxiliaryUnitName: data[i].auxiliaryUnitName, */ |
| | | /* conversionRatio: data[i].conversionRatio, */ |
| | | constructorId: data[i].constructorId, |
| | | constructorName: data[i].constructorName, |
| | | supplierId: data[i].supplierId, |
| | |
| | | }) |
| | | }, |
| | | created() { |
| | | this.getSysDeparts() |
| | | }, |
| | | |
| | | methods: { |
| | | initOptions() { |
| | | getAction(this.url.loadOptions).then(res => { |
| | | if (res.success) { |
| | | this.treeData = res.result |
| | | } else { |
| | | this.$message.warning(res.message) |
| | | } |
| | | }) |
| | | }, |
| | | getSysDeparts() { |
| | | getAction(this.url.getSysDeparts).then((res) => { |
| | | if (res.success) { |
| | |
| | | that.form.resetFields() |
| | | that.model = Object.assign({}, record) |
| | | that.visible = true |
| | | that.initOptions() |
| | | that.warehouseId = record.warehouseId |
| | | if (record.sparePartCancellingStocksDetailList != undefined) { |
| | | const temp = [...record.sparePartCancellingStocksDetailList] |