|
|
|
@ -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);
|
|
|
|
|
}
|
|
|
|
|