|
|
|
@ -31,8 +31,9 @@ export class wholeTransfer extends VuexModule {
|
|
|
|
|
userDefined: any = '';
|
|
|
|
|
detailedList: any;
|
|
|
|
|
code = '';
|
|
|
|
|
removeList:any = []
|
|
|
|
|
removeMaterialList:any = []
|
|
|
|
|
delCode = '';
|
|
|
|
|
removeList: any = [];
|
|
|
|
|
removeMaterialList: any = [];
|
|
|
|
|
/**
|
|
|
|
|
* 物料型号类型
|
|
|
|
|
*/
|
|
|
|
@ -88,12 +89,8 @@ export class wholeTransfer extends VuexModule {
|
|
|
|
|
* @param dnNo
|
|
|
|
|
*/
|
|
|
|
|
@MutationAction
|
|
|
|
|
async getProductCode(barcode: string) {
|
|
|
|
|
const res: any = await http.post(url.warehouse.wholeTransfer.content, {
|
|
|
|
|
barcode,
|
|
|
|
|
factoryCode: session.factoryCode,
|
|
|
|
|
loginName: session.loginName,
|
|
|
|
|
});
|
|
|
|
|
async getProductCode(params: any) {
|
|
|
|
|
const res: any = await http.post(url.warehouse.wholeTransfer.content, params);
|
|
|
|
|
const code = res.code;
|
|
|
|
|
const orderInInfo = res.data.records[0];
|
|
|
|
|
if (orderInInfo.custCode == '0') {
|
|
|
|
@ -107,6 +104,13 @@ export class wholeTransfer extends VuexModule {
|
|
|
|
|
}
|
|
|
|
|
return { orderInInfo, code };
|
|
|
|
|
}
|
|
|
|
|
//退扫
|
|
|
|
|
@MutationAction
|
|
|
|
|
async codeDel(params: any) {
|
|
|
|
|
const res: any = await http.post(url.warehouse.wholeTransfer.del, params);
|
|
|
|
|
const delCode = res.code;
|
|
|
|
|
return { delCode };
|
|
|
|
|
}
|
|
|
|
|
//清除数据
|
|
|
|
|
@MutationAction
|
|
|
|
|
async empty() {
|
|
|
|
@ -125,30 +129,30 @@ export class wholeTransfer extends VuexModule {
|
|
|
|
|
//生成移库码
|
|
|
|
|
@MutationAction
|
|
|
|
|
async getCpMoveBatchNo(loginName: any) {
|
|
|
|
|
let res: any = await http.post(url.warehouse.rowTransfer.getCode, loginName);
|
|
|
|
|
let userDefined: any = res.data;
|
|
|
|
|
const res: any = await http.post(url.warehouse.rowTransfer.getCode, loginName);
|
|
|
|
|
const userDefined: any = res.data;
|
|
|
|
|
return { userDefined };
|
|
|
|
|
}
|
|
|
|
|
//查询已扫物料
|
|
|
|
|
@MutationAction
|
|
|
|
|
async QueryHistory(params: any = {}) {
|
|
|
|
|
let res: any = await http.post(url.warehouse.rowTransfer.queryGroupLis, params);
|
|
|
|
|
console.log('res>>>>>>>>>>>>>>>>',res)
|
|
|
|
|
const removeList:any = res.data
|
|
|
|
|
const removeMaterialList:any = []
|
|
|
|
|
res.data.forEach((item:any) =>{
|
|
|
|
|
let arr:any = {
|
|
|
|
|
value:item.materialCode,
|
|
|
|
|
laber:item.materialCode,
|
|
|
|
|
}
|
|
|
|
|
removeMaterialList.push(arr)
|
|
|
|
|
})
|
|
|
|
|
return { removeList,removeMaterialList };
|
|
|
|
|
const res: any = await http.post(url.warehouse.rowTransfer.queryGroupLis, params);
|
|
|
|
|
console.log('res>>>>>>>>>>>>>>>>', res);
|
|
|
|
|
const removeList: any = res.data;
|
|
|
|
|
const removeMaterialList: any = [];
|
|
|
|
|
res.data.forEach((item: any) => {
|
|
|
|
|
const arr: any = {
|
|
|
|
|
value: item.materialCode,
|
|
|
|
|
laber: item.materialCode,
|
|
|
|
|
};
|
|
|
|
|
removeMaterialList.push(arr);
|
|
|
|
|
});
|
|
|
|
|
return { removeList, removeMaterialList };
|
|
|
|
|
}
|
|
|
|
|
//查询明细
|
|
|
|
|
@Action({ commit: 'updateCheckedOrderInInfoListKw' })
|
|
|
|
|
async querydetaildlist(content: any) {
|
|
|
|
|
let res: any = await http.post('/wmspda/fg/queryListByMoveCode', content);
|
|
|
|
|
const res: any = await http.post('/wmspda/fg/queryListByMoveCode', content);
|
|
|
|
|
console.log('明细》》》》》》》》》', res.list);
|
|
|
|
|
this.detailedList = res.data;
|
|
|
|
|
return res;
|
|
|
|
|