Commit 7c1373d5 by qinjianhui

fix: 刷新商品信息修改

parent 2bd67dac
...@@ -91,8 +91,8 @@ export function getFactoryOrderNewLogApi(id: number | string) { ...@@ -91,8 +91,8 @@ export function getFactoryOrderNewLogApi(id: number | string) {
} }
export function refreshProductInfoApi(data: { export function refreshProductInfoApi(data: {
orderIds?: (number | string) orderIds?: number | string
productIds?: (number | string) productIds?: number | string
}) { }) {
return axios.post<never, BaseRespData<void>>( return axios.post<never, BaseRespData<void>>(
'factory/podOrderProduct/refreshProductInfo', 'factory/podOrderProduct/refreshProductInfo',
...@@ -185,10 +185,14 @@ export function batchDeleteApi(ids: (number | string)[]) { ...@@ -185,10 +185,14 @@ export function batchDeleteApi(ids: (number | string)[]) {
) )
} }
export function restockCheckApi(id: number | string) { export function restockCheckApi(
return axios.post<never, BaseRespData<void>>( factoryId: number | string,
'factory/orderNew/restockCheck', thirdSkuCode: string,
{ id }, warehouseId: number | string,
) {
return axios.get<never, BaseRespData<void>>(
'factory/podOrder/replenishVerify',
{ params: { factoryId, thirdSkuCode, warehouseId } },
) )
} }
......
...@@ -221,6 +221,7 @@ export interface RestockData { ...@@ -221,6 +221,7 @@ export interface RestockData {
currencyCode?: string currencyCode?: string
currencyName?: string currencyName?: string
sumOccupyInventory?: number sumOccupyInventory?: number
thirdSkuCode?: string
} }
export interface PickCompleteData { export interface PickCompleteData {
......
...@@ -22,7 +22,12 @@ ...@@ -22,7 +22,12 @@
placeholder="" placeholder=""
> >
<el-option label="跟踪号" value="trackingNumber"></el-option> <el-option label="跟踪号" value="trackingNumber"></el-option>
<el-option label="交运单号" value="shopNumber"></el-option> <el-option label="客户单号" value="shopNumber"></el-option>
<el-option
v-if="isNewOrder"
label="客户交运单号"
value="customerNo"
></el-option>
</el-select> </el-select>
<input <input
ref="weighInput" ref="weighInput"
......
...@@ -135,7 +135,7 @@ const columns = [ ...@@ -135,7 +135,7 @@ const columns = [
prop: 'stockOutNum', prop: 'stockOutNum',
label: '缺货数量', label: '缺货数量',
width: 90, width: 90,
align: 'right' align: 'right',
}, },
{ {
label: '可用数量', label: '可用数量',
...@@ -178,7 +178,7 @@ const handleReset = () => { ...@@ -178,7 +178,7 @@ const handleReset = () => {
const handleRestockCheck = async (row: RestockData) => { const handleRestockCheck = async (row: RestockData) => {
try { try {
await restockCheckApi(row.id) await restockCheckApi(row.id, row.thirdSkuCode ?? '', row.warehouseId)
ElMessage.success('补货校验成功') ElMessage.success('补货校验成功')
refresh() refresh()
} catch (e) { } catch (e) {
......
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