add:采购退货更换批次接口
This commit is contained in:
parent
c536ed36e9
commit
ac02c62622
@ -86,6 +86,13 @@ export function purReturnCommit(data: any) {
|
||||
data: data,
|
||||
});
|
||||
}
|
||||
export function getPackingList(data: any) {
|
||||
return request({
|
||||
url: '/api/purchase/getPackingList',
|
||||
method: 'post',
|
||||
data: data,
|
||||
});
|
||||
}
|
||||
|
||||
export function AssignShipRequestByCharge(data: any) {
|
||||
return request({
|
||||
|
@ -133,7 +133,7 @@ import { useRouter } from "vue-router";
|
||||
import { create } from "sortablejs";
|
||||
import { FirstInFirstOut, IFTRUE } from '@/utils/CommonUtil'
|
||||
import { bTableHeight } from "../../../composables/calcTableHeight";
|
||||
import { AssignAndDessign, purReturnCommit } from '@/api/StockOut'
|
||||
import { AssignAndDessign, purReturnCommit,getPackingList } from '@/api/StockOut'
|
||||
import { localStorage } from '@/utils/storage'
|
||||
|
||||
const { tableContainer, tableHeight, updateTableHeight, handleResize } = bTableHeight(440);
|
||||
@ -378,9 +378,25 @@ function handle(row: any, event: any, column: any) {
|
||||
state.queryParams.params.PHASE = row.PHASE;
|
||||
state.queryParams.params.SHIPREQUESTNAME = row.RECEIVEREQUESTNAME;
|
||||
state.queryParams.params.SHIPREQUESTDETAILNAME = row.RECEIVEREQUESTDETAILNAME;
|
||||
getQueryList(state.queryParams).then((res: any) => {
|
||||
state.MaterialPackingList = res.data;
|
||||
});
|
||||
|
||||
// 原直接查询出左边批次信息
|
||||
// getQueryList(state.queryParams).then((res: any) => {
|
||||
// state.MaterialPackingList = res.data;
|
||||
// });
|
||||
|
||||
// 改为查询表里带出的批次
|
||||
state.queryParams.params.WMSRETURNCHARGENO = row.WMSRETURNCHARGENO;
|
||||
getPackingList(state.queryParams.params).then((res: any) => {
|
||||
console.log(res)
|
||||
state.MaterialPackingList = res.resultObj;
|
||||
|
||||
}).catch((error: any) => {
|
||||
ElMessageBox.alert(error, '提示框', {
|
||||
confirmButtonText: 'OK',
|
||||
})
|
||||
|
||||
});
|
||||
|
||||
|
||||
state.RightqueryParams.queryId = 'GetPackingRow';
|
||||
state.RightqueryParams.version = '00002';
|
||||
|
Loading…
x
Reference in New Issue
Block a user