diff --git a/jshERP-web/src/api/api.js b/jshERP-web/src/api/api.js index 57197a57..a8670c81 100644 --- a/jshERP-web/src/api/api.js +++ b/jshERP-web/src/api/api.js @@ -105,6 +105,7 @@ const findBySelectRetail = (params)=>postAction("/supplier/findBySelect_retail", const findBySelectOrgan = (params)=>postAction("/supplier/findBySelect_organ",params); //单据相关 const findBillDetailByNumber = (params)=>getAction("/depotHead/getDetailByNumber",params); +const waitBillCount = (params)=>getAction("/depotHead/waitBillCount",params); const findStockByDepotAndBarCode = (params)=>getAction("/depotItem/findStockByDepotAndBarCode",params); const getBatchNumberList = (params)=>getAction("/depotItem/getBatchNumberList",params); const findFinancialDetailByNumber = (params)=>getAction("/accountHead/getDetailByNumber",params); @@ -194,6 +195,7 @@ export { findBySelectRetail, findBySelectOrgan, findBillDetailByNumber, + waitBillCount, findStockByDepotAndBarCode, getBatchNumberList, findFinancialDetailByNumber diff --git a/jshERP-web/src/views/bill/OtherInList.vue b/jshERP-web/src/views/bill/OtherInList.vue index f3be38ec..6f69703f 100644 --- a/jshERP-web/src/views/bill/OtherInList.vue +++ b/jshERP-web/src/views/bill/OtherInList.vue @@ -52,7 +52,7 @@ - + {{ depot.depotName }} @@ -92,6 +92,7 @@
新增 + 待入库({{waitTotal}}) 删除 审核 反审核 @@ -161,6 +162,7 @@ + @@ -170,6 +172,7 @@ import OtherInModal from './modules/OtherInModal' import BillDetail from './dialog/BillDetail' import BillExcelIframe from '@/components/tools/BillExcelIframe' + import BatchWaitBillList from './dialog/BatchWaitBillList' import { JeecgListMixin } from '@/mixins/JeecgListMixin' import { BillListMixin } from './mixins/BillListMixin' import JEllipsis from '@/components/jeecg/JEllipsis' @@ -182,6 +185,7 @@ OtherInModal, BillDetail, BillExcelIframe, + BatchWaitBillList, JEllipsis, JDate }, @@ -201,6 +205,8 @@ remark: "" }, prefixNo: 'QTRK', + //出入库管理开关,适合独立仓管场景 + inOutManageFlag: false, labelCol: { span: 5 }, @@ -246,13 +252,36 @@ }, computed: { }, - created () { + created() { this.initSystemConfig() this.initSupplier() this.getDepotData() this.initUser() + this.initWaitBillCount('入库', '采购,销售退货', '1,3') }, methods: { + searchQuery() { + this.loadData(1) + if(this.inOutManageFlag) { + this.initWaitBillCount('入库', '采购,销售退货', '1,3') + } + }, + searchReset() { + this.queryParam = {} + this.loadData(1) + if(this.inOutManageFlag) { + this.initWaitBillCount('入库', '采购,销售退货', '1,3') + } + }, + //待入库 + handleWaitBill() { + this.$refs.batchWaitBill.show('入库', '采购,销售退货', "1,3") + this.$refs.batchWaitBill.title = "批量选择采购入库或销售退货" + }, + waitModalFormClose() { + this.loadData() + this.initWaitBillCount('入库', '采购,销售退货', '1,3') + }, } } diff --git a/jshERP-web/src/views/bill/OtherOutList.vue b/jshERP-web/src/views/bill/OtherOutList.vue index cf5b6708..5c535d29 100644 --- a/jshERP-web/src/views/bill/OtherOutList.vue +++ b/jshERP-web/src/views/bill/OtherOutList.vue @@ -52,7 +52,7 @@ - + {{ depot.depotName }} @@ -92,6 +92,7 @@
新增 + 待出库({{waitTotal}}) 删除 审核 反审核 @@ -161,6 +162,7 @@ + @@ -170,6 +172,7 @@ import OtherOutModal from './modules/OtherOutModal' import BillDetail from './dialog/BillDetail' import BillExcelIframe from '@/components/tools/BillExcelIframe' + import BatchWaitBillList from './dialog/BatchWaitBillList' import { JeecgListMixin } from '@/mixins/JeecgListMixin' import { BillListMixin } from './mixins/BillListMixin' import JEllipsis from '@/components/jeecg/JEllipsis' @@ -182,6 +185,7 @@ OtherOutModal, BillDetail, BillExcelIframe, + BatchWaitBillList, JEllipsis, JDate }, @@ -201,6 +205,8 @@ remark: "" }, prefixNo: 'QTCK', + //出入库管理开关,适合独立仓管场景 + inOutManageFlag: false, labelCol: { span: 5 }, @@ -251,8 +257,31 @@ this.initCustomer() this.getDepotData() this.initUser() + this.initWaitBillCount('出库', '销售,采购退货', '1,3') }, methods: { + searchQuery() { + this.loadData(1) + if(this.inOutManageFlag) { + this.initWaitBillCount('出库', '销售,采购退货', '1,3') + } + }, + searchReset() { + this.queryParam = {} + this.loadData(1) + if(this.inOutManageFlag) { + this.initWaitBillCount('出库', '销售,采购退货', '1,3') + } + }, + //待出库 + handleWaitBill() { + this.$refs.batchWaitBill.show('出库', '销售,采购退货', "1,3") + this.$refs.batchWaitBill.title = "批量选择销售出库或采购退货" + }, + waitModalFormClose() { + this.loadData() + this.initWaitBillCount('出库', '销售,采购退货', '1,3') + }, } } diff --git a/jshERP-web/src/views/bill/dialog/BatchWaitBillList.vue b/jshERP-web/src/views/bill/dialog/BatchWaitBillList.vue new file mode 100644 index 00000000..1cf3e91b --- /dev/null +++ b/jshERP-web/src/views/bill/dialog/BatchWaitBillList.vue @@ -0,0 +1,211 @@ + + + + + \ No newline at end of file diff --git a/jshERP-web/src/views/bill/mixins/BillListMixin.js b/jshERP-web/src/views/bill/mixins/BillListMixin.js index 2e327df6..3d376458 100644 --- a/jshERP-web/src/views/bill/mixins/BillListMixin.js +++ b/jshERP-web/src/views/bill/mixins/BillListMixin.js @@ -1,7 +1,7 @@ import Vue from 'vue' import {getAction } from '@/api/manage' import { FormTypes } from '@/utils/JEditableTableUtil' -import {findBillDetailByNumber, findBySelectSup, findBySelectCus, findBySelectRetail, getUserList, getAccount, +import {findBillDetailByNumber, findBySelectSup, findBySelectCus, findBySelectRetail, getUserList, getAccount, waitBillCount, getCurrentSystemConfig, getPlatformConfigByKey} from '@/api/api' import { getCheckFlag } from "@/utils/util" @@ -12,6 +12,7 @@ export const BillListMixin = { checkFlag: true, /* 单据Excel是否开启 */ isShowExcel: false, + waitTotal: 0, billExcelUrl: '', supList: [], cusList: [], @@ -121,6 +122,7 @@ export const BillListMixin = { let multiBillType = res.data.multiBillType let multiLevelApprovalFlag = res.data.multiLevelApprovalFlag this.checkFlag = getCheckFlag(multiBillType, multiLevelApprovalFlag, this.prefixNo) + this.inOutManageFlag = res.data.inOutManageFlag==='1'?true:false } }) getPlatformConfigByKey({ "platformKey": "bill_excel_url" }).then((res) => { @@ -174,8 +176,16 @@ export const BillListMixin = { initAccount() { getAccount({}).then((res)=>{ if(res && res.code === 200) { - let list = res.data.accountList - this.accountList = list + this.accountList = res.data.accountList + } + }) + }, + initWaitBillCount(type, subType, status) { + waitBillCount({search: { + type: type, subType: subType, status: status + }}).then((res)=>{ + if(res && res.code === 200) { + this.waitTotal = res.data.total } }) },