|
|
|
@ -11,7 +11,7 @@ import { getModule, Module, MutationAction, VuexModule } from 'vuex-module-decor
|
|
|
|
|
import store from '@/store';
|
|
|
|
|
//import http from '@/utils/request';
|
|
|
|
|
import { url } from '@/utils/url';
|
|
|
|
|
//import { session } from '@/store/modules/session';
|
|
|
|
|
import { session } from '@/store/modules/session';
|
|
|
|
|
import request from '@/utils/request';
|
|
|
|
|
import { stringify } from 'query-string';
|
|
|
|
|
// import { page } from '@/utils/page';
|
|
|
|
@ -47,6 +47,21 @@ export class wholeTransfer extends VuexModule {
|
|
|
|
|
dnNo = '';
|
|
|
|
|
orderInInfo: OrderInInfo = new OrderInInfo();
|
|
|
|
|
@MutationAction
|
|
|
|
|
async queryLocation() {
|
|
|
|
|
const result: any = await request.get(url.warehouse.wholeTransfer.getMdLocationSfgLine, {
|
|
|
|
|
params: {
|
|
|
|
|
factoryCode: session.factoryCode,
|
|
|
|
|
loginName: session.loginName,
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
console.log('库位数据', result);
|
|
|
|
|
const WlList = result.data.map((_: any) => ({
|
|
|
|
|
label: _.locationCode,
|
|
|
|
|
value: _.locationCode,
|
|
|
|
|
}));
|
|
|
|
|
return { WlList };
|
|
|
|
|
}
|
|
|
|
|
@MutationAction
|
|
|
|
|
async centerRecordTableRecovery(list: any) {
|
|
|
|
|
const records: any = await request.post(url.warehouse.center.centerRecordTableRecovery, stringify(list));
|
|
|
|
|
const code = records.code;
|
|
|
|
|