Compare commits

..

No commits in common. "6776d1bfd194a79cfa5bc26d800e2227472d7423" and "d31791c8ee2e72460e2816c2db1791e08b4133b1" have entirely different histories.

3 changed files with 41 additions and 45 deletions

View File

@ -72,13 +72,6 @@ export function DeAssignShipRequest(data: any) {
data: data, data: data,
}); });
} }
export function AssignAndDessign(data: any) {
return request({
url: '/api/AssignAndDessign/AssignAndDessignM',
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,8 +128,6 @@ 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 { localStorage } from '@/utils/storage'
const { tableContainer, tableHeight, updateTableHeight, handleResize } = bTableHeight(440); const { tableContainer, tableHeight, updateTableHeight, handleResize } = bTableHeight(440);
const queryFormRef = ref(ElForm); const queryFormRef = ref(ElForm);
@ -155,7 +153,7 @@ const state: any = reactive({
queryId: "", queryId: "",
version: "", version: "",
params: { params: {
SITENAME: 'SDK',//localStorage.get("siteName"), SITENAME: 'SDK',//localStorage.getItem("siteName"),
DELIVERYTYPE: "", // DELIVERYTYPE: "", //
SUPPLIERNAME: "", SUPPLIERNAME: "",
RECEIVEREQUESTNAME: "", RECEIVEREQUESTNAME: "",
@ -213,7 +211,7 @@ const state: any = reactive({
header: { header: {
MESSAGENAME: '', MESSAGENAME: '',
LANGUAGE: 'Chinese', LANGUAGE: 'Chinese',
EventUser: localStorage.get('userId') EventUser: localStorage.getItem('userId') || '10975133'
}, },
body: { body: {
RECEIVEREQUESTNAME: '', RECEIVEREQUESTNAME: '',
@ -390,21 +388,25 @@ async function LeftIn() {
if (state.MaterialPackingList.length > 0 && state.column4.length > 0) { if (state.MaterialPackingList.length > 0 && state.column4.length > 0) {
state.loading = true; state.loading = true;
let boxList = []; state.ChangeParams.header.MESSAGENAME = 'AssignReceiveRequestToBox2ForSDK';
for (const item of state.column4) { state.ChangeParams.body.RECEIVEREQUESTDETAILNAME = state.queryParams.params.SHIPREQUESTDETAILNAME
boxList.push({ // state.ChangeParams.body.RECEIVEREQUESTDETAILNAME = "0001"
materialPackingName: item.MATERIALPACKINGNAME, state.ChangeParams.body.RECEIVEREQUESTNAME = state.queryParams.params.SHIPREQUESTNAME
siteName: "SDK" state.ChangeParams.body.MATERIALQUANTITY = 0
}); // state.column4 MATERIALPACKINGNAME packingNames
} state.ChangeParams.body.objPara = []
let param = { for (const item of state.column4) {
userId: localStorage.get('userId'), state.ChangeParams.body.objPara.push(item.MATERIALPACKINGNAME);
opType: "Assign", state.ChangeParams.body.MATERIALQUANTITY += item.MATERIALQUANTITY;
receiveRequestName: state.queryParams.params.SHIPREQUESTNAME, }
receiveRequestDetailName: state.queryParams.params.SHIPREQUESTDETAILNAME, // packingNames
boxList : boxList if (state.ChangeParams.body.objPara.length > 0) {
}; state.ChangeParams.body.MATERIALPACKINGNAME = state.ChangeParams.body.objPara.join(";");
AssignAndDessign(param).then((res: any) => { } else {
// packingNames
state.ChangeParams.body.MATERIALPACKINGNAME = "";
}
await BpelEvent(state.ChangeParams).then((res: any) => {
if (IFTRUE(res)) { if (IFTRUE(res)) {
handle(tempRow, tempevent, tempcolumn); handle(tempRow, tempevent, tempcolumn);
handleQuery(); handleQuery();
@ -437,22 +439,25 @@ async function LeftIn() {
async function RightIn() { async function RightIn() {
if (state.column3.length > 0) { if (state.column3.length > 0) {
state.loading2 = true; state.loading2 = true;
let boxList = []; state.ChangeParams.header.MESSAGENAME = 'DeassignShipRequestFromBox2';
state.ChangeParams.body.RECEIVEREQUESTDETAILNAME = state.RightqueryParams.params.RECEIVEREQUESTDETAILNAME
state.ChangeParams.body.RECEIVEREQUESTNAME = state.RightqueryParams.params.RECEIVEREQUESTNAME
state.ChangeParams.body.MATERIALQUANTITY = 0
// state.column4 MATERIALPACKINGNAME packingNames
state.ChangeParams.body.objPara = []
for (const item of state.column3) { for (const item of state.column3) {
boxList.push({ state.ChangeParams.body.objPara.push(item.MATERIALPACKINGNAME);
materialPackingName: item.MATERIALPACKINGNAME, state.ChangeParams.body.MATERIALQUANTITY += item.MATERIALQUANTITY;
siteName: "SDK"
});
} }
let param = { // packingNames
userId: localStorage.get('userId'), if (state.ChangeParams.body.objPara.length > 0) {
opType: "Dessign", state.ChangeParams.body.MATERIALPACKINGNAME = state.ChangeParams.body.objPara.join(";");
receiveRequestName: state.queryParams.params.SHIPREQUESTNAME, } else {
receiveRequestDetailName: state.queryParams.params.SHIPREQUESTDETAILNAME, // packingNames
boxList : boxList state.ChangeParams.body.MATERIALPACKINGNAME = "";
}; }
AssignAndDessign(param).then((res: any) => { await BpelEvent(state.ChangeParams).then((res: any) => {
if (IFTRUE(res)) { if (IFTRUE(res)) {
handle(tempRow, tempevent, tempcolumn); handle(tempRow, tempevent, tempcolumn);
handleQuery(); handleQuery();
@ -491,7 +496,7 @@ async function handleStockOut() {
state.button_state = true; state.button_state = true;
state.button_loadings = true; state.button_loadings = true;
state.ReserveParams.header.MESSAGENAME = 'CompleteShipRequestForPurReturn' state.ReserveParams.header.MESSAGENAME = 'CompleteShipRequestForPurReturn'
state.ReserveParams.body.SITENAME = localStorage.get("siteName") == null ? "SDK" : localStorage.get("siteName"); state.ReserveParams.body.SITENAME = localStorage.getItem("siteName") == null ? "SDK" : localStorage.getItem("siteName");
state.ReserveParams.body.RECEIVEREQUESTNAME = state.queryParams.params.RECEIVEREQUESTNAME state.ReserveParams.body.RECEIVEREQUESTNAME = state.queryParams.params.RECEIVEREQUESTNAME
state.ReserveParams.body.RECEIVEREQUESTNAME = state.queryParams.params.RECEIVEREQUESTNAME state.ReserveParams.body.RECEIVEREQUESTNAME = state.queryParams.params.RECEIVEREQUESTNAME
state.ReserveParams.body.RECEIVEREQUESTDETAILNAME = state.queryParams.params.SHIPREQUESTDETAILNAME state.ReserveParams.body.RECEIVEREQUESTDETAILNAME = state.queryParams.params.SHIPREQUESTDETAILNAME

View File

@ -419,15 +419,13 @@ async function handleReserve() {
state.button_loading = true state.button_loading = true
state.BoxList = [] state.BoxList = []
state.Button_state = true state.Button_state = true
console.log(state.column3) if (state.column3.length > 0 || state.column4.length > 0) {
console.log(state.column4)
if (state.MaterialPackingUsername.length > 0 ) {
state.ChangeParams.header.EVENTUSER = localStorage.getItem('userId') || '10975133' state.ChangeParams.header.EVENTUSER = localStorage.getItem('userId') || '10975133'
state.ChangeParams.header.MESSAGENAME = 'ModifyERPLocation' state.ChangeParams.header.MESSAGENAME = 'ModifyERPLocation'
state.ChangeParams.body.AREANAME = state.StorageSelect[0] state.ChangeParams.body.AREANAME = state.StorageSelect[0]
state.ChangeParams.body.LOCATIONNAME = state.StorageSelect[1] state.ChangeParams.body.LOCATIONNAME = state.StorageSelect[1]
for (let item = 0; item < state.MaterialPackingUsername.length; item++) { for (let item = 0; item < state.column3.length; item++) {
state.BoxList.push({ BoxL: state.MaterialPackingUsername[item].MATERIALPACKINGNAME }) state.BoxList.push({ BoxL: state.column3[item].MATERIALPACKINGNAME })
} }
state.ChangeParams.body.BOXList = state.BoxList state.ChangeParams.body.BOXList = state.BoxList
// await BpelEvent(state.ChangeParams) // await BpelEvent(state.ChangeParams)