Browse Source

fix: 添加 excludeStatementId 参数以支持在途判定,避免当前对账单自身占用

xieyong 1 tuần trước cách đây
mục cha
commit
26494c3dd9
1 tập tin đã thay đổi với 7 bổ sung và 0 xóa
  1. 7 0
      src/api/saleManage/accountPool.js

+ 7 - 0
src/api/saleManage/accountPool.js

@@ -71,6 +71,10 @@ export async function createStatementByPoolIds(poolIds) {
  * @param {string} params.orderNo      订单编码(模糊)
  * @param {number} params.pageNum
  * @param {number} params.size
+ * @param {string|number} [params.excludeStatementId]
+ *        当前对账单id:仅「修改对账单」场景由前端传入,
+ *        用于在途判定时剔除本单自身的占用,避免本单客户/订单在候选列表里被自己过滤掉。
+ *        新增场景不传(原样透传字符串雪花 id,禁止参与数值运算)
  */
 export async function getAccountPoolCustomerList(params) {
   return parse(
@@ -83,6 +87,9 @@ export async function getAccountPoolCustomerList(params) {
  *
  * ⚠️ 同上,当前无视图消费。另外后端该接口的响应 schema 标注为 Pagination«object»,
  *    未定义任何字段,list 元素的字段名未知,调用方需自行兼容。
+ * @param {Object} params 同 getAccountPoolCustomerList,另含
+ *        @param {string|number} [params.excludeStatementId] 当前对账单id,仅修改场景传入,
+ *        在途判定时剔除本单自身占用(同 getAccountPoolCustomerList.excludeStatementId)
  */
 export async function getAccountPoolOrderList(params) {
   return parse(await request.post('/eom/accountstatementpool/orders', params));