|
|
|
import { 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';
|
|
|
|
@Module({
|
|
|
|
namespaced: true,
|
|
|
|
dynamic: true,
|
|
|
|
store,
|
|
|
|
name: 'page.raw.receivePO',
|
|
|
|
})
|
|
|
|
export class receivePO extends VuexModule {
|
|
|
|
WlList = [];
|
|
|
|
orderNoItemList: any = [];
|
|
|
|
orderNoItemListdes: any = [];
|
|
|
|
@MutationAction
|
|
|
|
async PurchaseOrderPda(data: any) {
|
|
|
|
const result: any = await http.post(url.lanjuwms.raw.ReceivePO.PurchaseOrderPda, data);
|
|
|
|
const orderNoItemList = result.data;
|
|
|
|
return { orderNoItemList };
|
|
|
|
}
|
|
|
|
@MutationAction
|
|
|
|
async PurchaseOrderdeliPda(data: any) {
|
|
|
|
const result: any = await http.post(url.lanjuwms.raw.ReceivePO.PurchaseOrderdeliPda, data);
|
|
|
|
const SubmitCode: [] = result;
|
|
|
|
return { SubmitCode };
|
|
|
|
}
|
|
|
|
SubmitCode: any = '';
|
|
|
|
@MutationAction
|
|
|
|
async PurchaseOrderdetailPda(data: any) {
|
|
|
|
const result: any = await http.post(url.lanjuwms.raw.ReceivePO.PurchaseOrderdetailPda, data);
|
|
|
|
const orderNoItemListdes = result.data;
|
|
|
|
return { orderNoItemListdes };
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default getModule(receivePO);
|