Commit d0e2e922 by qinjianhui

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

parent f262d51d
...@@ -138,13 +138,16 @@ export function cancelOrderWithReasonApi( ...@@ -138,13 +138,16 @@ export function cancelOrderWithReasonApi(
export function suspendOrderApi( export function suspendOrderApi(
ids: (number | string)[], ids: (number | string)[],
reason: string, reason: string,
needCustomerHandle: string, pauseType: string,
) { ) {
return axios.post<never, BaseRespData<void>>('factory/orderNew/suspend', { return axios.post<never, BaseRespData<void>>(
podOrderIds: ids, 'factory/podOrder/suspendOrders',
pauseReason: reason, {
needCustomerHandle, podOrderIds: ids,
}) pauseReason: reason,
pauseType,
},
)
} }
export function cancelSuspendApi(ids: (number | string)[]) { export function cancelSuspendApi(ids: (number | string)[]) {
......
...@@ -207,17 +207,19 @@ const props = withDefaults( ...@@ -207,17 +207,19 @@ const props = withDefaults(
* 提交称重时的请求体构造;默认 `{ podCnWeighingParams: rows }`, * 提交称重时的请求体构造;默认 `{ podCnWeighingParams: rows }`,
* 若后端字段与 podCN 分叉时可单独传入。 * 若后端字段与 podCN 分叉时可单独传入。
*/ */
buildOrderWeighingPayload?: ( buildOrderWeighingPayload?: (rows: IpodCnWeighingParams[]) =>
rows: IpodCnWeighingParams[],
) =>
| { | {
podCnWeighingParams: { id?: string; outWarehouseWeight?: string }[] podCnWeighingParams: { id?: string; outWarehouseWeight?: string }[]
} }
| { | {
podOrderWeighingParams: { id?: string; outWarehouseWeight?: string }[] podOrderWeighingParams: { id?: string; outWarehouseWeight?: string }[]
} }
/** 是否是新订单 */
isNewOrder?: boolean
}>(), }>(),
{}, {
isNewOrder: false,
},
) )
const resolveListByNoApi = () => props.listByNoApi ?? defaultListByNoApi 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