cosmoim-852 fix 泰国委外入库光标问题&&俄罗斯国际修改

master
guoshuang 2 years ago
parent c415b2a546
commit f2b2438835

@ -578,5 +578,6 @@ export default {
stoPcPleaseInput: '请输入批次号', stoPcPleaseInput: '请输入批次号',
FactorySTOoutbound: '工厂间STO 出库', FactorySTOoutbound: '工厂间STO 出库',
FactorySTOStorage: '工厂间STO 入库', FactorySTOStorage: '工厂间STO 入库',
ConfirmPosting: '确认过账?',
}, },
}; };

@ -580,5 +580,6 @@ export default {
stoPcPleaseInput: 'Please input batch No', stoPcPleaseInput: 'Please input batch No',
FactorySTOoutbound: 'STO outbound between factories', FactorySTOoutbound: 'STO outbound between factories',
FactorySTOStorage: 'STO storage between factories', FactorySTOStorage: 'STO storage between factories',
ConfirmPosting: 'Confirm posting?',
}, },
}; };

@ -575,5 +575,6 @@ export default {
stoPcPleaseInput: 'Please input batch No', stoPcPleaseInput: 'Please input batch No',
FactorySTOoutbound: 'Заводское хранилище STO', FactorySTOoutbound: 'Заводское хранилище STO',
FactorySTOStorage: 'Заводское хранилище СТО', FactorySTOStorage: 'Заводское хранилище СТО',
ConfirmPosting: 'Подтвердить счет?',
}, },
}; };

@ -171,9 +171,9 @@ export default class LoginPage extends BasePage {
console.log('......', server.serverAddress); console.log('......', server.serverAddress);
if (server.serverAddress.includes('https://eurmom.haier.net')) { if (server.serverAddress.includes('https://eurmom.haier.net')) {
// //
this.Version = '1.1.39'; this.Version = '1.1.40';
} else { } else {
this.Version = '1.0.52'; this.Version = '1.0.53';
} }
console.log('////', this.Version); console.log('////', this.Version);
} }

@ -243,6 +243,8 @@ export default class stoOutboundDom extends BasePage {
} }
uni.showModal({ uni.showModal({
title: this.$t('message.ConfirmPosting') as string, title: this.$t('message.ConfirmPosting') as string,
confirmText: this.$t('message.workArea_Confirm') as string,
cancelText: this.$t('message.Cancel') as string,
success: async (res) => { success: async (res) => {
if (res.confirm) { if (res.confirm) {
let params = { let params = {

@ -244,6 +244,8 @@ export default class stoOutboundDom extends BasePage {
} }
uni.showModal({ uni.showModal({
title: this.$t('message.ConfirmPosting') as string, title: this.$t('message.ConfirmPosting') as string,
confirmText: this.$t('message.workArea_Confirm') as string,
cancelText: this.$t('message.Cancel') as string,
success: async (res) => { success: async (res) => {
if (res.confirm) { if (res.confirm) {
let params = { let params = {

@ -246,6 +246,8 @@ export default class stoOutboundDom extends BasePage {
} }
uni.showModal({ uni.showModal({
title: this.$t('message.ConfirmPosting') as string, title: this.$t('message.ConfirmPosting') as string,
confirmText: this.$t('message.workArea_Confirm') as string,
cancelText: this.$t('message.Cancel') as string,
success: async (res) => { success: async (res) => {
if (res.confirm) { if (res.confirm) {
let params = { let params = {

@ -184,6 +184,8 @@ export default class rawMaterialInventory extends BasePage {
async checkRawOrderComplete() { async checkRawOrderComplete() {
uni.showModal({ uni.showModal({
title: this.$t('message.Closecount') as string, title: this.$t('message.Closecount') as string,
confirmText: this.$t('message.workArea_Confirm') as string,
cancelText: this.$t('message.Cancel') as string,
success: async (res) => { success: async (res) => {
if (res.confirm) { if (res.confirm) {
await model.checkRawOrderComplete(this.pddNo); await model.checkRawOrderComplete(this.pddNo);

@ -185,6 +185,8 @@ export default class rawMaterialInventory extends BasePage {
async checkRawOrderComplete() { async checkRawOrderComplete() {
uni.showModal({ uni.showModal({
title: this.$t('message.Closecount') as string, title: this.$t('message.Closecount') as string,
confirmText: this.$t('message.workArea_Confirm') as string,
cancelText: this.$t('message.Cancel') as string,
success: async (res) => { success: async (res) => {
if (res.confirm) { if (res.confirm) {
await model.checkRawOrderComplete(this.pddNo); await model.checkRawOrderComplete(this.pddNo);

@ -13,7 +13,7 @@
<view class="single"> <view class="single">
<view class="single-left"> <view class="single-left">
<view>{{ $t('message.dn_OddNumbers') }}</view> <view>{{ $t('message.dn_OddNumbers') }}</view>
<u-search :placeholder="$t('message.dn_PleaseScan')" v-model.trim="form.documentNo" @search="query" :show-action="false"></u-search> <u-search :placeholder="$t('message.dn_PleaseScan')" v-model.trim="form.documentNo" @search="query" :focus="isfocus" :show-action="false"></u-search>
</view> </view>
<view class="single-right"> <view class="single-right">
<u-button type="primary" @click="query">{{ $t('message.Query') }}</u-button> <u-button type="primary" @click="query">{{ $t('message.Query') }}</u-button>
@ -110,6 +110,7 @@ export default class dnReceiptDom extends BasePage {
materialList: any = []; materialList: any = [];
// //
every: any = {}; every: any = {};
isfocus = true;
everyIndex: any = ''; everyIndex: any = '';
value = ''; value = '';
headers = DNheader; headers = DNheader;
@ -187,37 +188,47 @@ export default class dnReceiptDom extends BasePage {
this.customToast(this.$t('message.Commission_tips1') as any); this.customToast(this.$t('message.Commission_tips1') as any);
return; return;
} }
await this.model.subcDnInfo(this.form.documentNo); try {
if (model.code == '1') { await this.model.subcDnInfo(this.form.documentNo);
if (this.model.orderInInfoList.length == 0) { if (model.code == '1') {
this.empty(); if (this.model.orderInInfoList.length == 0) {
return; this.empty();
return;
}
uni.showToast({
//icon: 'success',
title: this.$t('message.successful') as any,
duration: 2000,
image: '/static/icons/icon-51.png',
});
let list: any = uni.getStorageSync('list');
uni.removeStorageSync('list');
this.material = JSON.parse(list);
this.DNReceivingList = JSON.parse(list);
this.DNReceivingList.forEach((item: any) => {
item.wllist = [];
});
this.poList = [...this.DNReceivingList]; //
let arr = this.removeDuplicates(this.poList, 'poNo');
//
arr.forEach((item: any) => {
item.label = item.poNo;
item.value = item.poNo;
});
this.poList = arr;
//
this.poListChoice({
pickerName: this.poList.find(() => true),
});
}
} catch {
if (this.poList.length == 0) {
this.form.documentNo = '';
this.isfocus = false;
this.$nextTick(() => {
this.isfocus = true;
});
} }
uni.showToast({
//icon: 'success',
title: this.$t('message.successful') as any,
duration: 2000,
image: '/static/icons/icon-51.png',
});
let list: any = uni.getStorageSync('list');
uni.removeStorageSync('list');
this.material = JSON.parse(list);
this.DNReceivingList = JSON.parse(list);
this.DNReceivingList.forEach((item: any) => {
item.wllist = [];
});
this.poList = [...this.DNReceivingList]; //
let arr = this.removeDuplicates(this.poList, 'poNo');
//
arr.forEach((item: any) => {
item.label = item.poNo;
item.value = item.poNo;
});
this.poList = arr;
//
this.poListChoice({
pickerName: this.poList.find(() => true),
});
} }
} }
// //
@ -431,6 +442,10 @@ export default class dnReceiptDom extends BasePage {
} else if (res.data.code == '0' && res.data.list == null) { } else if (res.data.code == '0' && res.data.list == null) {
this.empty(); this.empty();
this.form.documentNo = ''; this.form.documentNo = '';
this.isfocus = false;
this.$nextTick(() => {
this.isfocus = true;
});
} }
}, },
}); });

@ -236,6 +236,8 @@ export default class RawReceiptDetail extends BasePage {
console.log(e); console.log(e);
uni.showModal({ uni.showModal({
title: this.$t('message.product_Delete') as any, title: this.$t('message.product_Delete') as any,
confirmText: this.$t('message.workArea_Confirm') as string,
cancelText: this.$t('message.Cancel') as string,
success: (res: any) => { success: (res: any) => {
if (res.confirm) { if (res.confirm) {
this.List.splice(e.contentIndex, 1); this.List.splice(e.contentIndex, 1);

Loading…
Cancel
Save