给收款单和付款单页面增加欠款列表界面
This commit is contained in:
@@ -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<String, Object> 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;
|
||||
|
||||
@@ -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 = "入库";
|
||||
|
||||
Reference in New Issue
Block a user