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

master
hou 3 years ago
parent bb4ded8f5a
commit 71d541d53e

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

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

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

@ -269,10 +269,21 @@ export default class dnReceiptDom extends BasePage {
this.customToast(this.$t('message.Commission_tips5') as any); this.customToast(this.$t('message.Commission_tips5') as any);
return; return;
} }
await this.model.submitOutsourcing(this.list); 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(); this.empty();
await this.QueryLoc(); await this.QueryLoc();
await this.query(); await this.query();
} else {
this.empty();
await this.QueryLoc();
await this.query();
}
} }
// //
async bill() { async bill() {

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

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

Loading…
Cancel
Save