cosmoim-852 fix 俄罗斯拣配问题修复

master
guoshuang 3 years ago
parent 65e4aa7cec
commit ef4b956053

@ -80,7 +80,7 @@
</u-button>
</u-col>
<u-col :span="4">
<u-button type="error" @click="uni.navigateBack()">
<u-button type="error" @click="uni.navigateBack({})">
{{ $t('message.po_Return') }}
</u-button>
</u-col>
@ -223,7 +223,7 @@ export default class RawReceiptDetail extends BasePage {
this.Location = [];
this.Location.push(arr);
this.wlCode = this.Location[0];
this.qty = this.Container.qty - parseFloat(this.Container.cpRef4);
this.qty = this.Container.qty - parseFloat(this.Container.cpRef4 ? this.Container.cpRef4 : 0);
//let num = 0;
// if (this.LocationList.length != 0) {
// this.LocationList.forEach((item: any) => {
@ -265,13 +265,13 @@ export default class RawReceiptDetail extends BasePage {
}
});
//
if (allqty + parseFloat(this.qty) > parseFloat(this.Container.qty) - parseFloat(this.Container.cpRef4)) {
if (allqty + parseFloat(this.qty) > parseFloat(this.Container.qty) - parseFloat(this.Container.cpRef4 ? this.Container.cpRef4 : 0)) {
this.customToast(this.$t('message.Pi_tip20') as any);
return (isTrue = false);
}
} else {
//
if (parseFloat(this.qty) > parseFloat(this.Container.qty) - parseFloat(this.Container.cpRef4)) {
if (parseFloat(this.qty) > parseFloat(this.Container.qty) - parseFloat(this.Container.cpRef4 ? this.Container.cpRef4 : 0)) {
this.customToast(this.$t('message.Pi_tip20') as any);
return (isTrue = false);
}

@ -214,7 +214,7 @@ export default class RawReceiptDetail extends BasePage {
this.Location = [];
this.Location.push(arr);
this.wlCode = this.Location[0];
this.qty = this.Container.qty - parseFloat(this.Container.cpRef4);
this.qty = this.Container.qty - parseFloat(this.Container.cpRef4 ? this.Container.cpRef4 : 0);
//let num = 0;
// if (this.LocationList.length != 0) {
// this.LocationList.forEach((item: any) => {
@ -255,12 +255,12 @@ export default class RawReceiptDetail extends BasePage {
allqty += parseFloat(item.qty);
}
});
if (allqty + parseFloat(this.qty) > parseFloat(this.Container.qty) - parseFloat(this.Container.cpRef4)) {
if (allqty + parseFloat(this.qty) > parseFloat(this.Container.qty) - parseFloat(this.Container.cpRef4 ? this.Container.cpRef4 : 0)) {
this.customToast(this.$t('message.Pi_tip20') as any);
return (isTrue = false);
}
} else {
if (parseFloat(this.qty) > parseFloat(this.Container.qty) - parseFloat(this.Container.cpRef4)) {
if (parseFloat(this.qty) > parseFloat(this.Container.qty) - parseFloat(this.Container.cpRef4 ? this.Container.cpRef4 : 0)) {
this.customToast(this.$t('message.Pi_tip20') as any);
return (isTrue = false);
}

Loading…
Cancel
Save