|
|
|
@ -15,7 +15,7 @@ export class receiveSRM extends VuexModule {
|
|
|
|
|
orderNoItemListdes: any = [];
|
|
|
|
|
@MutationAction
|
|
|
|
|
async PurchaseOrderPda(data: any) {
|
|
|
|
|
const result: any = await http.post(url.lanjuwms.raw.ReceivePO.PurchaseOrderPda, data);
|
|
|
|
|
const result: any = await http.post(url.lanjuwms.raw.ReceiveSRM.PurchaseOrderPda, data);
|
|
|
|
|
let orderNoItemList: any = [];
|
|
|
|
|
if (result.data.length) {
|
|
|
|
|
orderNoItemList = result.data.map((item: any) => ({
|
|
|
|
@ -32,7 +32,7 @@ export class receiveSRM extends VuexModule {
|
|
|
|
|
ProcureOrderAlreadylist: any = '';
|
|
|
|
|
@MutationAction
|
|
|
|
|
async selectOdsProcureOrderAlready(data: any) {
|
|
|
|
|
const result: any = await http.post(url.lanjuwms.raw.ReceivePO.selectOdsProcureOrderAlready, data);
|
|
|
|
|
const result: any = await http.post(url.lanjuwms.raw.ReceiveSRM.selectOdsProcureOrderAlready, data);
|
|
|
|
|
const Alreadycode = result.code;
|
|
|
|
|
const ProcureOrderAlreadylist = result.data;
|
|
|
|
|
return { Alreadycode, ProcureOrderAlreadylist };
|
|
|
|
@ -40,35 +40,35 @@ export class receiveSRM extends VuexModule {
|
|
|
|
|
sapPurchasecode: any = '';
|
|
|
|
|
@MutationAction
|
|
|
|
|
async sapPurchaseOrderSync(data: any) {
|
|
|
|
|
const result: any = await http.post(url.lanjuwms.raw.ReceivePO.sapPurchaseOrderSync, data);
|
|
|
|
|
const result: any = await http.post(url.lanjuwms.raw.ReceiveSRM.sapPurchaseOrderSync, data);
|
|
|
|
|
const sapPurchasecode = result.code;
|
|
|
|
|
return { sapPurchasecode };
|
|
|
|
|
}
|
|
|
|
|
deliverycode: any = '';
|
|
|
|
|
@MutationAction
|
|
|
|
|
async getDeliveryNoteDetail(data: any) {
|
|
|
|
|
const result: any = await http.post(url.lanjuwms.raw.ReceivePO.getDeliveryNoteDetail, data);
|
|
|
|
|
const result: any = await http.post(url.lanjuwms.raw.ReceiveSRM.getDeliveryNoteDetail, data);
|
|
|
|
|
const deliverycode = result.code;
|
|
|
|
|
return { deliverycode };
|
|
|
|
|
}
|
|
|
|
|
SubmitCode: any = '';
|
|
|
|
|
@MutationAction
|
|
|
|
|
async PurchaseOrderdeliPda(data: any) {
|
|
|
|
|
const result: any = await http.post(url.lanjuwms.raw.ReceivePO.PurchaseOrderdeliPda, data);
|
|
|
|
|
const result: any = await http.post(url.lanjuwms.raw.ReceiveSRM.PurchaseOrderdeliPda, data);
|
|
|
|
|
const SubmitCode: [] = result;
|
|
|
|
|
return { SubmitCode };
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@MutationAction
|
|
|
|
|
async PurchaseOrderdetailPda(data: any) {
|
|
|
|
|
const result: any = await http.post(url.lanjuwms.raw.ReceivePO.PurchaseOrderdetailPda, data);
|
|
|
|
|
const result: any = await http.post(url.lanjuwms.raw.ReceiveSRM.PurchaseOrderdetailPda, data);
|
|
|
|
|
const orderNoItemListdes = result.data;
|
|
|
|
|
return { orderNoItemListdes };
|
|
|
|
|
}
|
|
|
|
|
DictTypeList: any = [];
|
|
|
|
|
@MutationAction
|
|
|
|
|
async Stashlist() {
|
|
|
|
|
const result: any = await http.post(url.lanjuwms.raw.ReceivePO.list, {
|
|
|
|
|
const result: any = await http.post(url.lanjuwms.raw.ReceiveSRM.list, {
|
|
|
|
|
factoryCode: session.FactoryCode,
|
|
|
|
|
});
|
|
|
|
|
const DictTypeListoild: [] = result.data;
|
|
|
|
@ -79,10 +79,26 @@ export class receiveSRM extends VuexModule {
|
|
|
|
|
}));
|
|
|
|
|
return { DictTypeList };
|
|
|
|
|
}
|
|
|
|
|
//库区查询
|
|
|
|
|
wacodelist: any = [];
|
|
|
|
|
@MutationAction
|
|
|
|
|
async WarehouseList(data: any) {
|
|
|
|
|
const result: any = await http.post(url.lanjuwms.raw.ReceiveSRM.WarehouseList, data);
|
|
|
|
|
const oldwacode = result.data;
|
|
|
|
|
let wacodelist = oldwacode.map((item: any) => ({
|
|
|
|
|
label: item.areaDesc,
|
|
|
|
|
value: item.areaCode,
|
|
|
|
|
...item,
|
|
|
|
|
}));
|
|
|
|
|
if (!wacodelist.length) {
|
|
|
|
|
wacodelist = [];
|
|
|
|
|
}
|
|
|
|
|
return { wacodelist };
|
|
|
|
|
}
|
|
|
|
|
submitcode: any = '';
|
|
|
|
|
@MutationAction
|
|
|
|
|
async OnSubmit(data: any) {
|
|
|
|
|
const result: any = await http.post(url.lanjuwms.raw.ReceivePO.PurchaseOrderdeliPdaConfirm, data);
|
|
|
|
|
const result: any = await http.post(url.lanjuwms.raw.ReceiveSRM.PurchaseOrderdeliPdaConfirm, data);
|
|
|
|
|
const submitcode = result.code;
|
|
|
|
|
return {
|
|
|
|
|
submitcode,
|
|
|
|
@ -91,7 +107,7 @@ export class receiveSRM extends VuexModule {
|
|
|
|
|
Arrivalcode: any = '';
|
|
|
|
|
@MutationAction
|
|
|
|
|
async ArrivalRegistration(data: any) {
|
|
|
|
|
const result: any = await http.post(url.lanjuwms.raw.ReceivePO.ArrivalRegistration, data);
|
|
|
|
|
const result: any = await http.post(url.lanjuwms.raw.ReceiveSRM.ArrivalRegistration, data);
|
|
|
|
|
const Arrivalcode = result.code;
|
|
|
|
|
return {
|
|
|
|
|
Arrivalcode,
|
|
|
|
@ -101,7 +117,7 @@ export class receiveSRM extends VuexModule {
|
|
|
|
|
singobj: any = {};
|
|
|
|
|
@MutationAction
|
|
|
|
|
async selectArrivalRegistration(data: any) {
|
|
|
|
|
const result: any = await http.post(url.lanjuwms.raw.ReceivePO.selectArrivalRegistration, data);
|
|
|
|
|
const result: any = await http.post(url.lanjuwms.raw.ReceiveSRM.selectArrivalRegistration, data);
|
|
|
|
|
const singcode = result.code;
|
|
|
|
|
const singobj = result.data;
|
|
|
|
|
return { singcode, singobj };
|
|
|
|
|