Compare commits

...

2 Commits

Author SHA1 Message Date
李兴辉
c01512967f 8) 采购退货 bugfix 2025-03-24 12:26:51 +08:00
李兴辉
26c1820f44 8) 采购退货 2025-03-24 11:58:03 +08:00
2 changed files with 17 additions and 15 deletions

View File

@ -79,6 +79,14 @@ export function AssignAndDessign(data: any) {
data: data, data: data,
}); });
} }
export function purReturnCommit(data: any) {
return request({
url: '/api/purchase/CompleteReceiveRequest',
method: 'post',
data: data,
});
}
export function AssignShipRequestByCharge(data: any) { export function AssignShipRequestByCharge(data: any) {
return request({ return request({
url: '/api/SaleOut/AssignShipRequestByCharge', url: '/api/SaleOut/AssignShipRequestByCharge',

View File

@ -128,7 +128,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 } from '@/api/StockOut' import { AssignAndDessign, purReturnCommit } 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);
@ -486,20 +486,14 @@ function resetQuery() {
async function handleStockOut() { async function handleStockOut() {
if (state.MaterialPackingUsername.length > 0) { if (state.MaterialPackingUsername.length > 0) {
state.loading = true; let param = {
state.loading2 = true; userId: localStorage.get('userId'),
state.button_state = true; siteName : "SDK",
state.button_loadings = true; receiveRequestName: state.queryParams.params.SHIPREQUESTNAME,
state.ReserveParams.header.MESSAGENAME = 'CompleteShipRequestForPurReturn' receiveRequestDetailName: state.queryParams.params.SHIPREQUESTDETAILNAME,
state.ReserveParams.body.SITENAME = localStorage.get("siteName") == null ? "SDK" : localStorage.get("siteName"); shipRequestName : state.queryParams.params.SHIPREQUESTNAME,
state.ReserveParams.body.RECEIVEREQUESTNAME = state.queryParams.params.RECEIVEREQUESTNAME };
state.ReserveParams.body.RECEIVEREQUESTNAME = state.queryParams.params.RECEIVEREQUESTNAME purReturnCommit(param).then((res: any) => {
state.ReserveParams.body.RECEIVEREQUESTDETAILNAME = state.queryParams.params.SHIPREQUESTDETAILNAME
state.ReserveParams.body.RECEIVEREQUESTDETAILTYPE = state.queryParams.params.SHIPREQUESTDETAILTYPE
state.ReserveParams.body.MATERIALSPECNAME = state.queryParams.params.MATERIALSPECNAME
state.ReserveParams.body.CHECKBOX = false
state.ReserveParams.body.ACTTYPE = "STCO"
await BpelEvent(state.ReserveParams).then((res: any) => {
// handle(tempRow); // handle(tempRow);
// handleQuery(); // handleQuery();
if (IFTRUE(res)) { if (IFTRUE(res)) {