|
|
|
@ -1,10 +1,16 @@
|
|
|
|
|
import { Action, getModule, Module, MutationAction, VuexModule } from 'vuex-module-decorators';
|
|
|
|
|
import store from '@/store';
|
|
|
|
|
import http from '@/utils/request';
|
|
|
|
|
import { url } from '@/utils/url';
|
|
|
|
|
import { session } from '@/store/modules/session';
|
|
|
|
|
import {
|
|
|
|
|
Action,
|
|
|
|
|
getModule,
|
|
|
|
|
Module,
|
|
|
|
|
MutationAction,
|
|
|
|
|
VuexModule,
|
|
|
|
|
} from "vuex-module-decorators";
|
|
|
|
|
import store from "@/store";
|
|
|
|
|
import http from "@/utils/request";
|
|
|
|
|
import { url } from "@/utils/url";
|
|
|
|
|
import { session } from "@/store/modules/session";
|
|
|
|
|
// import { page } from '@/utils/page';
|
|
|
|
|
import vm from '@/main';
|
|
|
|
|
import vm from "@/main";
|
|
|
|
|
|
|
|
|
|
class OrderInInfo {
|
|
|
|
|
productDescZh?: string;
|
|
|
|
@ -20,7 +26,7 @@ class OrderInInfo {
|
|
|
|
|
namespaced: true,
|
|
|
|
|
dynamic: true,
|
|
|
|
|
store,
|
|
|
|
|
name: 'product.warehouse.wholeCollect',
|
|
|
|
|
name: "product.warehouse.wholeCollect",
|
|
|
|
|
})
|
|
|
|
|
export class wholeCollect extends VuexModule {
|
|
|
|
|
/**
|
|
|
|
@ -40,7 +46,7 @@ export class wholeCollect extends VuexModule {
|
|
|
|
|
/**
|
|
|
|
|
* 隐藏看单号
|
|
|
|
|
*/
|
|
|
|
|
dnNo = '';
|
|
|
|
|
dnNo = "";
|
|
|
|
|
/**
|
|
|
|
|
* 看单号查询结果
|
|
|
|
|
*/
|
|
|
|
@ -89,25 +95,28 @@ export class wholeCollect extends VuexModule {
|
|
|
|
|
factoryCode: session.factoryCode,
|
|
|
|
|
loginName: session.loginName,
|
|
|
|
|
});
|
|
|
|
|
console.log('获取来的数据', res.data.records);
|
|
|
|
|
console.log("获取来的数据", res.data.records);
|
|
|
|
|
const orderInInfo = res.data.records[0] || {};
|
|
|
|
|
if (orderInInfo.custCode == '0') {
|
|
|
|
|
orderInInfo.custCodeName = vm.$t('message.Warehouse_NX') as any;
|
|
|
|
|
} else if (orderInInfo.custCode == '1') {
|
|
|
|
|
orderInInfo.custCodeName = vm.$t('message.Warehouse_WX') as any;
|
|
|
|
|
} else if (orderInInfo.custCode == '2') {
|
|
|
|
|
orderInInfo.custCodeName = vm.$t('message.Warehouse_YJ') as any;
|
|
|
|
|
} else if (orderInInfo.custCode == '4') {
|
|
|
|
|
orderInInfo.custCodeName = vm.$t('message.Warehouse_BCP') as any;
|
|
|
|
|
if (orderInInfo.custCode == "0") {
|
|
|
|
|
orderInInfo.custCodeName = vm.$t("message.Warehouse_NX") as any;
|
|
|
|
|
} else if (orderInInfo.custCode == "1") {
|
|
|
|
|
orderInInfo.custCodeName = vm.$t("message.Warehouse_WX") as any;
|
|
|
|
|
} else if (orderInInfo.custCode == "2") {
|
|
|
|
|
orderInInfo.custCodeName = vm.$t("message.Warehouse_YJ") as any;
|
|
|
|
|
} else if (orderInInfo.custCode == "4") {
|
|
|
|
|
orderInInfo.custCodeName = vm.$t("message.Warehouse_BCP") as any;
|
|
|
|
|
}
|
|
|
|
|
return { orderInInfo };
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@MutationAction
|
|
|
|
|
async onTakeoutConfirm(list: any[]) {
|
|
|
|
|
const records: any = await http.post(url.warehouse.rowTransfer.commit, list);
|
|
|
|
|
const records: any = await http.post(
|
|
|
|
|
url.warehouse.rowTransfer.commit,
|
|
|
|
|
list
|
|
|
|
|
);
|
|
|
|
|
if (records.code == 1) {
|
|
|
|
|
uni.showToast({ icon: 'success', title: 'success' });
|
|
|
|
|
uni.showToast({ icon: "success", title: "success" });
|
|
|
|
|
// uni.navigateTo({ url: page.product.warehouse.index });
|
|
|
|
|
}
|
|
|
|
|
return {};
|
|
|
|
@ -141,11 +150,11 @@ export class wholeCollect extends VuexModule {
|
|
|
|
|
/**
|
|
|
|
|
* 修改库位
|
|
|
|
|
*/
|
|
|
|
|
@Action({ commit: 'updateCheckedOrderInInfoListKw' })
|
|
|
|
|
@Action({ commit: "updateCheckedOrderInInfoListKw" })
|
|
|
|
|
async changeOrderInLocation(kw: string) {
|
|
|
|
|
await http.post('/material/orderin/enter', {
|
|
|
|
|
await http.post("/wmspda/material/orderin/enter", {
|
|
|
|
|
loginName: session.loginName,
|
|
|
|
|
warehouseCode: '',
|
|
|
|
|
warehouseCode: "",
|
|
|
|
|
factoryCode: session.factoryCode,
|
|
|
|
|
locationCode: kw,
|
|
|
|
|
});
|
|
|
|
|