| | |
| | | type="primary" |
| | | icon="plus" |
| | | >新增</a-button> |
| | | |
| | | <a-button |
| | | @click="handleInto" |
| | | type="primary" |
| | | icon="plus" |
| | | >入库</a-button> |
| | | <!-- <a-button |
| | | type="primary" |
| | | icon="download" |
| | |
| | | ref="modalForm" |
| | | @ok="modalFormOk" |
| | | ></eamSpareParts-modal> |
| | | |
| | | <eamSpare-part-into-modal |
| | | ref="intoModalForm" |
| | | @ok="modalFormOk" |
| | | ></eamSpare-part-into-modal> |
| | | </a-card> |
| | | </template> |
| | | |
| | |
| | | import '@assets/less/TableExpand.less' |
| | | import EamSparePartsModal from './modules/EamSpareParts/EamSparePartsModal.vue' |
| | | import EamSparePartInventoryList from './modules/EamSpareParts/EamSparePartInventoryList.vue' |
| | | import EamSparePartIntoModal from './modules/EamSpareParts/EamSparePartIntoModal.vue' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | |
| | | export default { |
| | |
| | | mixins: [JeecgListMixin], |
| | | components: { |
| | | EamSparePartsModal, |
| | | EamSparePartInventoryList |
| | | EamSparePartInventoryList, |
| | | EamSparePartIntoModal |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | dataIndex: 'inventoryWarning' |
| | | }, |
| | | { |
| | | title: '库存总数', |
| | | align: "center", |
| | | dataIndex: 'totalQuantity' |
| | | }, |
| | | { |
| | | title: '操作', |
| | | dataIndex: 'action', |
| | | align: "center", |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | |
| | | handleInto() { |
| | | this.$refs.intoModalForm.add(); |
| | | this.$refs.intoModalForm.title = "入库"; |
| | | }, |
| | | searchReset() { |
| | | this.queryParam = {} |
| | | this.onClearSelected() |
| | | this.loadData(1); |
| | | }, |
| | | searchQuery() { |
| | | this.onClearSelected() |
| | | this.loadData(1); |
| | | }, |
| | | clickThenSelect(record) { |
| | | return { |
| | | on: { |