拣配 推荐库位优化 列表展示优化

master
hou 3 years ago
parent c4f4817baa
commit 5ab53049b4

@ -81,5 +81,14 @@
"redhat.telemetry.enabled": true, "redhat.telemetry.enabled": true,
"gitlens.advanced.messages": { "gitlens.advanced.messages": {
"suppressGitMissingWarning": true "suppressGitMissingWarning": true
} },
"python.testing.unittestArgs": [
"-v",
"-s",
"./src",
"-p",
"test*.py"
],
"python.testing.pytestEnabled": false,
"python.testing.unittestEnabled": true
} }

@ -100,6 +100,7 @@ export default {
po_DemandQuantity: '需求数量', po_DemandQuantity: '需求数量',
DemandQuantity: '需求', DemandQuantity: '需求',
po_ActualQuantity: '实际数量', po_ActualQuantity: '实际数量',
selected: '所选物料库存不足',
Picked: '已拣数量', Picked: '已拣数量',
po_ReturnGoodsQuantity: '退货数量', po_ReturnGoodsQuantity: '退货数量',
po_RemainingQuantity: '剩余数量', po_RemainingQuantity: '剩余数量',
@ -233,6 +234,7 @@ export default {
Requisition: '领用单', Requisition: '领用单',
greater: '不能大于总数', greater: '不能大于总数',
receiveAStation: '接收工位', receiveAStation: '接收工位',
target: '目标工位',
collecting: '请输入领用单号', collecting: '请输入领用单号',
MaterialCount: '物料盘点', MaterialCount: '物料盘点',

@ -24,7 +24,9 @@ export default {
request_Tip11: 'HTTP version is not supported', request_Tip11: 'HTTP version is not supported',
Pi_tip12: 'The current handover quantity must be equal to the picked quantity', Pi_tip12: 'The current handover quantity must be equal to the picked quantity',
Inventory_query: 'Inventory query', Inventory_query: 'Inventory query',
target: 'The target location',
success: 'Success', success: 'Success',
selected: 'Insufficient stock of selected material',
error: 'Error', error: 'Error',
successful: 'Query was successful', successful: 'Query was successful',
operation: 'Operation', operation: 'Operation',

@ -193,7 +193,6 @@ export default class LoginPage extends BasePage {
} catch (e) { } catch (e) {
console.log('error', e); console.log('error', e);
} }
this.go(); this.go();
} }
///////////////// /////////////////

@ -180,10 +180,18 @@ export default class RawReceiptDetail extends BasePage {
factoryCode: session.factoryCode, factoryCode: session.factoryCode,
}); });
this.Location = []; this.Location = [];
if (this.model.LocList.length == 0) {
uni.showModal({
content: this.$t('message.selected') as any,
showCancel: false,
confirmText: this.$t('message.workArea_Confirm') as any,
});
} else {
this.Location = this.model.LocList; this.Location = this.model.LocList;
console.log('this.Location', this.Location); console.log('this.Location', this.Location);
this.wlCode = this.Location[0]; this.wlCode = this.Location[0];
} }
}
Add() { Add() {
if (this.qty == '' || this.wlCode == '') { if (this.qty == '' || this.wlCode == '') {
this.customToast(this.$t('message.Commission_tips2') as any); this.customToast(this.$t('message.Commission_tips2') as any);

@ -169,10 +169,18 @@ export default class RawReceiptDetail extends BasePage {
factoryCode: session.factoryCode, factoryCode: session.factoryCode,
}); });
this.Location = []; this.Location = [];
if (this.model.LocList.length == 0) {
uni.showModal({
content: this.$t('message.selected') as any,
showCancel: false,
confirmText: this.$t('message.workArea_Confirm') as any,
});
} else {
this.Location = this.model.LocList; this.Location = this.model.LocList;
console.log('this.Location', this.Location); console.log('this.Location', this.Location);
this.wlCode = this.Location[0]; this.wlCode = this.Location[0];
} }
}
// //
Add() { Add() {
if (this.qty == '' || this.wlCode == '') { if (this.qty == '' || this.wlCode == '') {

@ -123,11 +123,11 @@ export const summaryHeaders = [
label: vm.$t('message.Pi_unit'), label: vm.$t('message.Pi_unit'),
key: 'unit', key: 'unit',
}, },
// { {
// label: '成品型号', label: vm.$t('message.target'),
// key: 'prdMaterialDesc', key: 'sendSpot',
// width: 300, // width: 300,
// }, },
// { // {
// label: '工位', // label: '工位',
// key: 'sendSpot', // key: 'sendSpot',
@ -165,7 +165,7 @@ export const orderHeaders = [
key: 'totalHvAmount', key: 'totalHvAmount',
}, },
{ {
label: vm.$t('message.po_Location'), label: vm.$t('message.target'),
// key: 'currentWkposCode', // key: 'currentWkposCode',
//key: 'wkposCode', //key: 'wkposCode',
key: 'sendSpot', key: 'sendSpot',

@ -150,10 +150,11 @@ export default class returningDom extends BasePage {
screen() { screen() {
this.redirectTo(this.page.raw.handover.returning.filter); this.redirectTo(this.page.raw.handover.returning.filter);
} }
async query(){ async query() {
await this.model.queryOrderInInfo(this.form.prdOrder) await this.model.queryOrderInInfo(this.form.prdOrder);
this.form.wlName = this.model.orderInInfo.materialCode; this.form.wlName = this.model.orderInInfo.materialCode;
this.form.sendSpot = this.model.orderInInfo.sendSpot this.form.sendSpot = this.model.orderInInfo.sendSpot;
this.form.totalBackAmount = this.model.orderInInfo.totalBackAmount;
} }
LocationChoice(e: any) { LocationChoice(e: any) {
console.log('e>>>>>>>>>>>>>>>>>>>>>>>>', e); console.log('e>>>>>>>>>>>>>>>>>>>>>>>>', e);
@ -167,7 +168,6 @@ export default class returningDom extends BasePage {
this.form.sapFactoryCode = await this.model.queryDefaultFactoryCode(); this.form.sapFactoryCode = await this.model.queryDefaultFactoryCode();
// //
let means: any = JSON.parse(localStorage.getItem('__GWMS_APP_STATE_DATA__') as any); let means: any = JSON.parse(localStorage.getItem('__GWMS_APP_STATE_DATA__') as any);
let sendSpot = JSON.parse(localStorage.getItem('sendSpot') as any);
if (JSON.parse(sessionStorage.getItem('data') as any)) { if (JSON.parse(sessionStorage.getItem('data') as any)) {
this.data = JSON.parse(sessionStorage.getItem('data') as any); this.data = JSON.parse(sessionStorage.getItem('data') as any);
this.form.prdOrder = this.data.label; this.form.prdOrder = this.data.label;
@ -208,12 +208,14 @@ export default class returningDom extends BasePage {
this.$form.resetFields(); this.$form.resetFields();
} }
materialConfirm(v: any) { materialConfirm(v: any) {
console.log('vvvvvv',v) console.log('vvvvvv', v);
this.form.materialCode = v[0].value; this.form.materialCode = v[0].value;
this.form.wlName = v[0].label; this.form.wlName = v[0].label;
console.log('this.model.materielList', this.model.materielList);
this.model.materielList.forEach((item: any) => { this.model.materielList.forEach((item: any) => {
if (this.form.materialCode == item.label) { if (this.form.materialCode == item.label) {
// this.form.amount = item.amount; // this.form.amount = item.amount;
console.log('item', item);
this.form.sendSpot = item.sendSpot; this.form.sendSpot = item.sendSpot;
this.form.totalBackAmount = item.totalBackAmount; this.form.totalBackAmount = item.totalBackAmount;
// this.form.wkposCode = item.wkposCode; // this.form.wkposCode = item.wkposCode;
@ -236,7 +238,7 @@ export default class returningDom extends BasePage {
// (this.form.sendSpot as any) = this.model.orderInInfo.sendSpot; // (this.form.sendSpot as any) = this.model.orderInInfo.sendSpot;
(this.form.sapFactoryCode as any) = this.model.orderInInfo.sapFactoryCode; (this.form.sapFactoryCode as any) = this.model.orderInInfo.sapFactoryCode;
// delete this.form.wlName; // delete this.form.wlName;
this.form.wlCode = this.wlCode.label this.form.wlCode = this.wlCode.label;
await this.model.tluSubmit(this.form); await this.model.tluSubmit(this.form);
// this.$form.resetFields(); // this.$form.resetFields();
this.operatorName = ''; this.operatorName = '';
@ -245,15 +247,15 @@ export default class returningDom extends BasePage {
this.model.orderInInfo.sapFactoryCode = ''; this.model.orderInInfo.sapFactoryCode = '';
// this.model.materielList = []; // this.model.materielList = [];
this.model.materielList.length = 0; this.model.materielList.length = 0;
this.empty() this.empty();
}); });
} }
} }
async empty(){ async empty() {
this.form.wlName = '' this.form.wlName = '';
this.form.sendSpot = '' this.form.sendSpot = '';
this.form.amount = '' this.form.amount = '';
await this.query() await this.query();
} }
/** /**
* 操作人输入回车 * 操作人输入回车

@ -10,6 +10,7 @@ class OrderInInfo {
sapFactoryCode?: any; sapFactoryCode?: any;
materialCode?: any; materialCode?: any;
sendSpot?: any; sendSpot?: any;
totalBackAmount?: any;
} }
@Module({ @Module({
@ -68,6 +69,7 @@ export class ReturningModule extends VuexModule {
amount: item.amount, amount: item.amount,
wkposCode: item.wkposCode, wkposCode: item.wkposCode,
sendSpot: item.sendSpot, sendSpot: item.sendSpot,
totalBackAmount: item.totalBackAmount,
})); }));
console.log('物料列表', data); console.log('物料列表', data);
console.log('物料名列表', materielList); console.log('物料名列表', materielList);
@ -92,6 +94,7 @@ export class ReturningModule extends VuexModule {
amount: item.amount, amount: item.amount,
wkposCode: item.wkposCode, wkposCode: item.wkposCode,
sendSpot: item.sendSpot, sendSpot: item.sendSpot,
totalBackAmount: item.totalBackAmount,
})); }));
//materielList 包含页面table想要展示的字段sendSpot接收人value物料号label订单号 //materielList 包含页面table想要展示的字段sendSpot接收人value物料号label订单号
console.log('时间查询物料列表', data); console.log('时间查询物料列表', data);

Loading…
Cancel
Save