cosmoim-852 fix 泰国拣选订单功能
parent
65646241e6
commit
8e194532b9
@ -0,0 +1,39 @@
|
|||||||
|
/**
|
||||||
|
* 看单交接明细表格列
|
||||||
|
*/
|
||||||
|
import vm from '@/main';
|
||||||
|
export const headers = [
|
||||||
|
{
|
||||||
|
label: vm.$t('message.Delivery'),
|
||||||
|
key: 'proMoveCode', //单号
|
||||||
|
width: 250,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: vm.$t('message.ModelCode'),
|
||||||
|
key: 'materialCode', //型号编码
|
||||||
|
width: 220,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: vm.$t('message.ModelName'),
|
||||||
|
key: 'materialDesc', //型号名称
|
||||||
|
width: 430,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: vm.$t('message.product_barCode'),
|
||||||
|
key: 'barCode', //条码号
|
||||||
|
width: 260,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: vm.$t('message.SourceLocation'),
|
||||||
|
key: 'wlFromCode', //源库位
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: vm.$t('message.Warehouse_TargetLocation'),
|
||||||
|
key: 'wlToCode', //目标库位
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: vm.$t('message.operatingTime'),
|
||||||
|
key: 'moveTime', //操作时间
|
||||||
|
width: 465,
|
||||||
|
},
|
||||||
|
];
|
@ -0,0 +1,70 @@
|
|||||||
|
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.ingoods.SpareInbound.pickOrder',
|
||||||
|
})
|
||||||
|
export class wholeTransfer extends VuexModule {
|
||||||
|
WlList = [];
|
||||||
|
@MutationAction
|
||||||
|
async queryLocation() {
|
||||||
|
const result: any = await http.post(url.warehouse.wholeTransfer.getSpareMdLocation, {
|
||||||
|
factoryCode: session.factoryCode,
|
||||||
|
loginName: session.loginName,
|
||||||
|
});
|
||||||
|
const WlList = result.data.map((_: any) => ({
|
||||||
|
label: _.locationCode,
|
||||||
|
value: _.locationCode,
|
||||||
|
}));
|
||||||
|
return { WlList };
|
||||||
|
}
|
||||||
|
orderNoItemList: any = [];
|
||||||
|
productCodeList: any = [];
|
||||||
|
//查单号
|
||||||
|
@MutationAction
|
||||||
|
async queryOrderNo(orderNo: any) {
|
||||||
|
const result: any = await http.post(url.warehouse.wholeTransfer.queryPickingOrders, {
|
||||||
|
factoryCode: session.factoryCode,
|
||||||
|
loginName: session.loginName,
|
||||||
|
orderNumber: orderNo,
|
||||||
|
});
|
||||||
|
const orderNoItemList = result.data;
|
||||||
|
const productCodeList = result.data.map((_: any) => ({
|
||||||
|
label: _.rowItem,
|
||||||
|
value: _.rowItem,
|
||||||
|
..._,
|
||||||
|
}));
|
||||||
|
return { orderNoItemList, productCodeList };
|
||||||
|
}
|
||||||
|
SubmitCode: any = '';
|
||||||
|
boxreturndata: any = {};
|
||||||
|
//扫箱码
|
||||||
|
@MutationAction
|
||||||
|
async OnSubmit(params: any) {
|
||||||
|
const result: any = await http.post(url.warehouse.wholeTransfer.queryPickingOrders, params);
|
||||||
|
const SubmitCode = result.code;
|
||||||
|
const boxreturndata = result.data;
|
||||||
|
return { SubmitCode, boxreturndata };
|
||||||
|
}
|
||||||
|
matreturndata: any = {};
|
||||||
|
//扫物料条码
|
||||||
|
@MutationAction
|
||||||
|
async OnSubmitmart(params: any) {
|
||||||
|
const result: any = await http.post(url.warehouse.wholeTransfer.queryPickingOrders, params);
|
||||||
|
const SubmitCode = result.code;
|
||||||
|
const matreturndata = result.data;
|
||||||
|
return { SubmitCode, matreturndata };
|
||||||
|
}
|
||||||
|
@MutationAction
|
||||||
|
async empty() {
|
||||||
|
const productCodeList = [];
|
||||||
|
return { productCodeList };
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export default getModule(wholeTransfer);
|
Loading…
Reference in New Issue