Commit d0e2e922 by qinjianhui

feat: 称重分拣添加来源单号查询

parent f262d51d
......@@ -138,13 +138,16 @@ export function cancelOrderWithReasonApi(
export function suspendOrderApi(
ids: (number | string)[],
reason: string,
needCustomerHandle: string,
pauseType: string,
) {
return axios.post<never, BaseRespData<void>>('factory/orderNew/suspend', {
podOrderIds: ids,
pauseReason: reason,
needCustomerHandle,
})
return axios.post<never, BaseRespData<void>>(
'factory/podOrder/suspendOrders',
{
podOrderIds: ids,
pauseReason: reason,
pauseType,
},
)
}
export function cancelSuspendApi(ids: (number | string)[]) {
......
......@@ -207,17 +207,19 @@ const props = withDefaults(
* 提交称重时的请求体构造;默认 `{ podCnWeighingParams: rows }`,
* 若后端字段与 podCN 分叉时可单独传入。
*/
buildOrderWeighingPayload?: (
rows: IpodCnWeighingParams[],
) =>
buildOrderWeighingPayload?: (rows: IpodCnWeighingParams[]) =>
| {
podCnWeighingParams: { id?: string; outWarehouseWeight?: string }[]
}
| {
podOrderWeighingParams: { id?: string; outWarehouseWeight?: string }[]
}
/** 是否是新订单 */
isNewOrder?: boolean
}>(),
{},
{
isNewOrder: false,
},
)
const resolveListByNoApi = () => props.listByNoApi ?? defaultListByNoApi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment