Commit 0e64c95c by wusiyi

feat: 修改快捷生产扫码接口传参

parent 98720be4
...@@ -537,10 +537,14 @@ export function completeDeliveryApi(ids: (number | string)[]) { ...@@ -537,10 +537,14 @@ export function completeDeliveryApi(ids: (number | string)[]) {
} }
// 生产扫码 // 生产扫码
export function productionScanApi(id: number | string, status: string) { export function productionScanApi(
id: number | string,
status: string,
type: string,
) {
return axios.get<never, BaseRespData<never>>( return axios.get<never, BaseRespData<never>>(
'factory/podOrderOperation/scan-produce', 'factory/podOrderOperation/scan-produce',
{ params: { id, status } }, { params: { id, status, type } },
) )
} }
......
...@@ -2998,7 +2998,7 @@ const completeOperationById = ( ...@@ -2998,7 +2998,7 @@ const completeOperationById = (
) => { ) => {
if (trigger === 'auto') { if (trigger === 'auto') {
const detailStatus = String(detailData?.status ?? '') const detailStatus = String(detailData?.status ?? '')
return productionScanApi(ids[0], detailStatus) return productionScanApi(ids[0], detailStatus, 'web')
} }
return completeDeliveryApi(ids) return completeDeliveryApi(ids)
} }
......
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