diff --git a/jshERP-boot/src/main/java/com/jsh/erp/controller/DepotHeadController.java b/jshERP-boot/src/main/java/com/jsh/erp/controller/DepotHeadController.java index 52835006..535ba422 100644 --- a/jshERP-boot/src/main/java/com/jsh/erp/controller/DepotHeadController.java +++ b/jshERP-boot/src/main/java/com/jsh/erp/controller/DepotHeadController.java @@ -502,10 +502,16 @@ public class DepotHeadController extends BaseController { */ @GetMapping(value = "/getNeedCount") @ApiOperation(value = "获取待收款或付款的条数") - public BaseResponseInfo getNeedCount(@RequestParam("supplierType") String supplierType, HttpServletRequest request)throws Exception { + public BaseResponseInfo getNeedCount(@RequestParam("type") String type, HttpServletRequest request)throws Exception { BaseResponseInfo res = new BaseResponseInfo(); Map map = new HashMap<>(); try { + String supplierType = ""; + if (("vendor").equals(type)) { + supplierType = "供应商"; + } else if (("customer").equals(type)) { + supplierType = "客户"; + } int needCount = depotHeadService.getNeedCount(supplierType); map.put("needCount", needCount); res.code = 200; diff --git a/jshERP-boot/src/main/java/com/jsh/erp/service/DepotHeadService.java b/jshERP-boot/src/main/java/com/jsh/erp/service/DepotHeadService.java index baab1aee..59237b9b 100644 --- a/jshERP-boot/src/main/java/com/jsh/erp/service/DepotHeadService.java +++ b/jshERP-boot/src/main/java/com/jsh/erp/service/DepotHeadService.java @@ -934,13 +934,13 @@ public class DepotHeadService { String typeBack = ""; String subTypeBack = ""; String billType = ""; - if (("vendor").equals(supplierType)) { + if (("供应商").equals(supplierType)) { type = "入库"; subType = "采购"; typeBack = "出库"; subTypeBack = "采购退货"; billType = "付款"; - } else if (("customer").equals(supplierType)) { + } else if (("客户").equals(supplierType)) { type = "出库"; subType = "销售"; typeBack = "入库"; diff --git a/jshERP-web/src/views/financial/MoneyInList.vue b/jshERP-web/src/views/financial/MoneyInList.vue index 1f2bb765..ac558194 100644 --- a/jshERP-web/src/views/financial/MoneyInList.vue +++ b/jshERP-web/src/views/financial/MoneyInList.vue @@ -100,7 +100,7 @@
新增 - 待收款({{waitTotal}}) + 待收款({{waitTotal}}) 删除 审核 反审核 @@ -145,6 +145,7 @@ + @@ -153,6 +154,7 @@ + + \ No newline at end of file diff --git a/jshERP-web/src/views/financial/mixins/FinancialListMixin.js b/jshERP-web/src/views/financial/mixins/FinancialListMixin.js index a3ac839a..88ae14ab 100644 --- a/jshERP-web/src/views/financial/mixins/FinancialListMixin.js +++ b/jshERP-web/src/views/financial/mixins/FinancialListMixin.js @@ -187,8 +187,8 @@ export const FinancialListMixin = { } }) }, - initGetNeedCount(supplierType) { - getNeedCount({supplierType: supplierType}).then((res)=>{ + initGetNeedCount(type) { + getNeedCount({type: type}).then((res)=>{ if(res && res.code === 200) { this.waitTotal = res.data.needCount } @@ -204,6 +204,9 @@ export const FinancialListMixin = { onDateOk(value) { console.log(value); }, + handleWaitNeed(organType) { + this.$refs.waitNeedList.show(organType) + }, //导出单据 handleExport() { let search = this.getQueryParams().search