✨ 客户余额页增加只读账单弹窗

This commit is contained in:
caojia
2026-10-27 16:19:44 +08:00
parent fe30345045
commit 4067bfc277
4 changed files with 166 additions and 10 deletions
@@ -11,8 +11,11 @@ import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.bms.ar.domain.ArBill;
import com.bms.ar.domain.ArBalanceWriteoff;
import com.bms.ar.domain.vo.ArBillQuery;
import com.bms.ar.service.IArBalanceWriteoffService;
import com.bms.ar.service.IArBillService;
import com.bms.common.annotation.Log;
import com.bms.common.core.controller.BaseController;
import com.bms.common.core.domain.AjaxResult;
@@ -20,7 +23,7 @@ import com.bms.common.core.page.TableDataInfo;
import com.bms.common.enums.BusinessType;
/**
* 客户余额核销应收账单 Controller(账单查看统一走应收管理-应收账单页面)
* 客户余额账单查询与核销 Controller
*
* @author bms
* @date 2026-09-16
@@ -32,6 +35,27 @@ public class CustomerBillController extends BaseController
@Autowired
private IArBalanceWriteoffService balanceWriteoffService;
@Autowired
private IArBillService billService;
/**
* 查询指定客户的应收账单(分页)。客户ID来自路径并覆盖查询对象中的同名参数。
*/
@PreAuthorize("@ss.hasPermi('customersupplier:customerinfo:list')")
@GetMapping("/list/{customerId}")
public TableDataInfo billList(@PathVariable("customerId") Long customerId, ArBillQuery query)
{
if (customerId == null || customerId <= 0L)
{
return getDataTable(Collections.emptyList());
}
ArBillQuery billQuery = query == null ? new ArBillQuery() : query;
billQuery.setCustomerId(customerId);
startPage();
List<ArBill> list = billService.selectArBillList(billQuery);
return getDataTable(list);
}
/**
* 查询客户可核销账单(已确认/部分核销,未核销额大于0)
*/