| | |
| | | import detail from './detail'; |
| | | import myImport from '@/views/components/myImport'; |
| | | import {getBaseUrl} from '@/utils/base'; |
| | | import {inventoryDel, inventoryListApi} from '@/api/stock/inventory'; |
| | | import {inventoryDel, inventoryListApi,isAddInventory} from '@/api/stock/inventory'; |
| | | import * as DateFormatter from '@/utils/DateFormatter'; |
| | | import {mapGetters} from 'vuex'; |
| | | import listPage from '@/views/mixins/listPage'; |
| | |
| | | }); |
| | | }, |
| | | showAdd() { |
| | | this.editSetting.id = null; |
| | | this.editSetting.info = null; |
| | | this.editSetting.title = '新增'; |
| | | this.editSetting.show = true; |
| | | // 先查询是否能增加新的盘点任务 |
| | | // 编辑接口 |
| | | isAddInventory().then((res) => { |
| | | if(res == 0){ |
| | | this.$message.warning('当前有未完成的盘点任务!'); |
| | | }else if(res == -1){ |
| | | this.$message.warning('当前仓库无物品!'); |
| | | }else{ |
| | | this.editSetting.id = null; |
| | | this.editSetting.info = null; |
| | | this.editSetting.title = '新增'; |
| | | this.editSetting.show = true; |
| | | } |
| | | }).catch(()=>{ |
| | | //this.loading = false |
| | | }); |
| | | }, |
| | | showAudit(row) { |
| | | this.editSetting.id = row.id; |