add:采购退货更换批次接口

This commit is contained in:
郭飞 2025-05-15 18:07:24 +08:00
parent c536ed36e9
commit ac02c62622
2 changed files with 27 additions and 4 deletions

View File

@ -86,6 +86,13 @@ export function purReturnCommit(data: any) {
data: data, data: data,
}); });
} }
export function getPackingList(data: any) {
return request({
url: '/api/purchase/getPackingList',
method: 'post',
data: data,
});
}
export function AssignShipRequestByCharge(data: any) { export function AssignShipRequestByCharge(data: any) {
return request({ return request({

View File

@ -133,7 +133,7 @@ import { useRouter } from "vue-router";
import { create } from "sortablejs"; import { create } from "sortablejs";
import { FirstInFirstOut, IFTRUE } from '@/utils/CommonUtil' import { FirstInFirstOut, IFTRUE } from '@/utils/CommonUtil'
import { bTableHeight } from "../../../composables/calcTableHeight"; import { bTableHeight } from "../../../composables/calcTableHeight";
import { AssignAndDessign, purReturnCommit } from '@/api/StockOut' import { AssignAndDessign, purReturnCommit,getPackingList } from '@/api/StockOut'
import { localStorage } from '@/utils/storage' import { localStorage } from '@/utils/storage'
const { tableContainer, tableHeight, updateTableHeight, handleResize } = bTableHeight(440); const { tableContainer, tableHeight, updateTableHeight, handleResize } = bTableHeight(440);
@ -378,10 +378,26 @@ function handle(row: any, event: any, column: any) {
state.queryParams.params.PHASE = row.PHASE; state.queryParams.params.PHASE = row.PHASE;
state.queryParams.params.SHIPREQUESTNAME = row.RECEIVEREQUESTNAME; state.queryParams.params.SHIPREQUESTNAME = row.RECEIVEREQUESTNAME;
state.queryParams.params.SHIPREQUESTDETAILNAME = row.RECEIVEREQUESTDETAILNAME; 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.queryId = 'GetPackingRow';
state.RightqueryParams.version = '00002'; state.RightqueryParams.version = '00002';
state.RightqueryParams.params.MATERIALSPECNAME = row.MATERIALSPECNAME; state.RightqueryParams.params.MATERIALSPECNAME = row.MATERIALSPECNAME;