dam-7 feat 成品移库 && 原材料补料调整

master
hou 3 years ago
parent bb4ded8f5a
commit 71d541d53e

@ -438,6 +438,7 @@ export default {
DocumentNumber: '文件号',
Posting: '过账',
fileNumber: '请输入文件号',
failed: '过账失败',
Warehouse_Tip10: '请选择sap库存地点',
Warehouse_Tip11: '该单号不存在或已经操作完成',
Warehouse_TotalNumber: '总数',

@ -21,6 +21,7 @@ export default {
request_Tip8: 'Gateway error',
inventory: 'inventory',
request_Tip9: 'Service Unavailable',
failed: 'Posting failed',
request_Tip10: 'Gateway timeout',
differences: 'differences',
shortage: 'shortage',

@ -71,9 +71,6 @@
<u-col :span="6">
<u-button type="primary" @click="Posting">{{ $t('message.Posting') }}</u-button>
</u-col>
<!-- <u-col :span="3">-->
<!-- <u-button type="success" @click="uni.navigateBack()"></u-button>-->
<!-- </u-col>-->
</u-row>
</view>
</view>

@ -269,10 +269,21 @@ export default class dnReceiptDom extends BasePage {
this.customToast(this.$t('message.Commission_tips5') as any);
return;
}
await this.model.submitOutsourcing(this.list);
this.empty();
await this.QueryLoc();
await this.query();
let res: any = await this.model.submitOutsourcing(this.list);
if (res.code == '2') {
uni.showToast({
duration: 2000,
title: this.$t('message.failed') as string,
image: '/static/icons/icon-52.png',
});
this.empty();
await this.QueryLoc();
await this.query();
} else {
this.empty();
await this.QueryLoc();
await this.query();
}
}
//
async bill() {

@ -140,9 +140,6 @@ export default class RawReceiptDetail extends BasePage {
receiverName: '',
password: '',
};
/**
* 页面Module
*/
model = model;
materialList: any = [];
type = 'text';
@ -151,15 +148,11 @@ export default class RawReceiptDetail extends BasePage {
operatorName = '';
//
LocationList: any = [];
gather: any = [];
//
Location: any = [];
someIndex = 0;
some: any = {};
qty: any = '';
/**
* 表单数据
*/
form: any = {
documentNo: '',
amount: null,
@ -168,17 +161,9 @@ export default class RawReceiptDetail extends BasePage {
operatorPass: '', //
rfPwd: '',
};
/**
* 表单校验
*/
rules: VFormRules<any> = {
amount: [{ required: true, message: this.$t('message.Pi_tip1') as string }],
};
/**
* 库存地点选择
*/
locationCodeSelect = false;
detailHeader = detailHeader;
empty() {
this.some = {};
@ -232,22 +217,23 @@ export default class RawReceiptDetail extends BasePage {
this.Location = this.model.LocList;
this.wlCode = this.Location[0];
} else {
this.Location = [];
let content = {
loginName: session.loginName,
sendSpot: null,
factoryCode: session.factoryCode,
workArea: session.workareaCode,
};
let res: any = await this.model.queryByFactoryCodeAndWorkAreaCode(content);
res.forEach((item: any) => {
let pickerName: any = {};
pickerName.label = item.locationCode;
pickerName.value = item.locationCode + '(' + item.sendSpot + ')';
pickerName.sendSpot = item.sendSpot;
this.Location.push(pickerName);
});
this.wlCode = this.Location[0];
console.log('1');
// this.Location = [];
// let content = {
// loginName: session.loginName,
// sendSpot: null,
// factoryCode: session.factoryCode,
// workArea: session.workareaCode,
// };
// let res: any = await this.model.queryByFactoryCodeAndWorkAreaCode(content);
// res.forEach((item: any) => {
// let pickerName: any = {};
// pickerName.label = item.locationCode;
// pickerName.value = item.locationCode + '(' + item.sendSpot + ')';
// pickerName.sendSpot = item.sendSpot;
// this.Location.push(pickerName);
// });
// this.wlCode = this.Location[0];
}
}
async materialChoice(e: any) {
@ -269,22 +255,23 @@ export default class RawReceiptDetail extends BasePage {
this.Location = this.model.LocList;
this.wlCode = this.Location[0];
} else {
this.Location = [];
let content = {
loginName: session.loginName,
sendSpot: null,
factoryCode: session.factoryCode,
workArea: session.workareaCode,
};
let res: any = await this.model.queryByFactoryCodeAndWorkAreaCode(content);
res.forEach((item: any) => {
let pickerName: any = {};
pickerName.label = item.locationCode;
pickerName.value = item.locationCode + '(' + item.sendSpot + ')';
pickerName.sendSpot = item.sendSpot;
this.Location.push(pickerName);
});
this.wlCode = this.Location[0];
console.log('1');
// this.Location = [];
// let content = {
// loginName: session.loginName,
// sendSpot: null,
// factoryCode: session.factoryCode,
// workArea: session.workareaCode,
// };
// let res: any = await this.model.queryByFactoryCodeAndWorkAreaCode(content);
// res.forEach((item: any) => {
// let pickerName: any = {};
// pickerName.label = item.locationCode;
// pickerName.value = item.locationCode + '(' + item.sendSpot + ')';
// pickerName.sendSpot = item.sendSpot;
// this.Location.push(pickerName);
// });
// this.wlCode = this.Location[0];
}
this.qty = '';
}

@ -167,7 +167,7 @@ export const url = {
save: {
aggregate: '/wmspda/sortscan/save/aggregate',
order: '/wmspda/sortscan/save/order',
queryWlByMat: '/wmspda/sortscan/queryWlByMat',
queryWlByMat: '/wmspda/sortscan/queryWlByMatBL',
},
unlock: {
list: '/wmspda/sortscan/unlock/list',
@ -223,7 +223,7 @@ export const url = {
commit: '/wmspda/fg/completePd',
},
wholeTransfer: {
list: '/wmspda/fg/getMdLocation',
list: '/wmspda/fg/getMdLocationFgAll',
content: '/wmspda/fg/getMaterialByCode',
del: '/wmspda/fg/scanBarcodeStock/del',
},

Loading…
Cancel
Save