diff --git a/src/i18n/lang/cn.ts b/src/i18n/lang/cn.ts
index 6e5a0ab..d477c2e 100644
--- a/src/i18n/lang/cn.ts
+++ b/src/i18n/lang/cn.ts
@@ -482,6 +482,7 @@ export default {
POPlan: 'PO计划',
WPMInformation: 'WPM信息',
Container: '容器码',
+ ContainerCode: '容器码',
returner: '退料人必须等于登录人',
Inbound: '备件入库',
InboundDetail: '入库明细',
@@ -510,6 +511,7 @@ export default {
source: '源容器',
barcodeSource: '请扫描源容器条码',
ContainerBarcode: '容器条码',
+ scan: '扫描',
LocalReceiving: '本地DN收货',
OverseasShipping: '海外DN收货',
OverseasPO: '海外PO收货',
diff --git a/src/i18n/lang/en.ts b/src/i18n/lang/en.ts
index 3069752..e592686 100644
--- a/src/i18n/lang/en.ts
+++ b/src/i18n/lang/en.ts
@@ -489,7 +489,8 @@ export default {
WPMtotal: 'container',
POPlan: 'PO-Plan',
WPMInformation: 'WPM-Information',
- Container: 'Container Code',
+ Container: 'Code',
+ ContainerCode: 'Barcode',
returner: 'The returner must be equal to the login',
Inbound: 'Spare Inbound',
InboundDetail: 'Inbound Detail',
@@ -518,6 +519,7 @@ export default {
source: 'Source',
barcodeSource: 'Scan the barcode of the source container',
ContainerBarcode: 'Container barcode',
+ scan: 'scan',
//ss
LocalReceiving: 'DN Receive',
OverseasShipping: 'Import DN',
diff --git a/src/i18n/lang/ru.ts b/src/i18n/lang/ru.ts
index 8585ac7..51c56b8 100644
--- a/src/i18n/lang/ru.ts
+++ b/src/i18n/lang/ru.ts
@@ -417,5 +417,8 @@ export default {
SemiFinished_SO: 'SO полуфабриката',
SemiFinishedOffline: 'Полуфабрикаты от линии',
create: 'Создание дополнительного материалов',
+ ContainerCode: 'ярд',
+ Container: 'ярд',
+ scan: 'сканирован',
},
};
diff --git a/src/pages/raw/ingoods/RUS-dnReceipt/config.ts b/src/pages/raw/ingoods/RUS-dnReceipt/config.ts
index 67b2341..a00dbfe 100644
--- a/src/pages/raw/ingoods/RUS-dnReceipt/config.ts
+++ b/src/pages/raw/ingoods/RUS-dnReceipt/config.ts
@@ -27,7 +27,7 @@ export const headers = [
},
{
label: vm.$t('message.Container'),
- key: 'palletCode', //容器码
+ key: 'sn', //容器码
width: 700,
},
// {
diff --git a/src/pages/raw/ingoods/RUS-dnReceipt/dnReceiving.vue b/src/pages/raw/ingoods/RUS-dnReceipt/dnReceiving.vue
index ff4d8aa..226ed31 100644
--- a/src/pages/raw/ingoods/RUS-dnReceipt/dnReceiving.vue
+++ b/src/pages/raw/ingoods/RUS-dnReceipt/dnReceiving.vue
@@ -55,12 +55,12 @@
- {{ $t('message.Container') }}:
+ {{ $t('message.ContainerCode') }}:
- {{ $t('message.Query') }}
+ {{ $t('message.scan') }}
@@ -317,22 +317,26 @@ export default class dnReceiptDom extends BasePage {
};
await this.model.searchBarcode(params);
this.Container = this.model.ContainerCode;
- let num = 0;
- if (this.LocationList.length != 0) {
- this.LocationList.forEach((item: any) => {
- if (item.palletCode == this.Container.barcode) {
- num += parseFloat(item.receiptAmount);
- }
- });
- }
+ // let num = 0;
+ // if (this.LocationList.length != 0) {
+ // this.LocationList.forEach((item: any) => {
+ // if (item.palletCode == this.Container.barcode) {
+ // num += parseFloat(item.receiptAmount);
+ // }
+ // });
+ // }
if (this.Container.cpRef4 == null) {
- this.receiptAmount = parseFloat(this.Container.qty) - num;
+ this.receiptAmount = parseFloat(this.Container.qty);
} else {
- this.receiptAmount = parseFloat(this.Container.qty) - parseFloat(this.Container.cpRef4) - num;
+ this.receiptAmount = parseFloat(this.Container.qty) - parseFloat(this.Container.cpRef4);
}
}
//点击添加
Add() {
+ if (this.Barcode == '') {
+ this.customToast(this.$t('message.scanningContainer') as any);
+ return;
+ }
const count = parseFloat(this.every.requestAmount);
if (this.receiptAmount == '' || !this.wl.value) {
this.customToast(this.$t('message.Commission_tips2') as any);
@@ -346,38 +350,39 @@ export default class dnReceiptDom extends BasePage {
this.customToast(this.$t('message.Commission_tips4') as any);
return;
}
- let num = 0;
+ // if (this.Container.cpRef4 == null) {
+ // if (num + parseFloat(this.receiptAmount) > parseFloat(this.Container.qty)) {
+ // this.customToast(this.$t('message.dn_Tip') as any);
+ // return;
+ // }
+ // } else {
+ // if (num + parseFloat(this.receiptAmount) > parseFloat(this.Container.qty) - parseFloat(this.Container.cpRef4)) {
+ // this.customToast(this.$t('message.dn_Tip') as any);
+ // return;
+ // }
+ // }
+ let isTrue = true;
+ // this.DNReceivingList[this.everyIndex].wllist.forEach((item: any) => {
+ // if (item.materialCode == this.every.materialCode && item.wlCode == this.wl.label) {
+ // this.customToast(this.$t('message.repeatedly') as any);
+ // return (isTrue = false);
+ // }
+ // });
if (this.LocationList.length != 0) {
this.LocationList.forEach((item: any) => {
if (item.palletCode == this.Container.barcode) {
- num += parseFloat(item.receiptAmount);
+ this.customToast(this.$t('message.repeatedly') as any);
+ return (isTrue = false);
}
});
}
- if (this.Container.cpRef4 == null) {
- if (num + parseFloat(this.receiptAmount) > parseFloat(this.Container.qty)) {
- this.customToast(this.$t('message.dn_Tip') as any);
- return;
- }
- } else {
- if (num + parseFloat(this.receiptAmount) > parseFloat(this.Container.qty) - parseFloat(this.Container.cpRef4)) {
- this.customToast(this.$t('message.dn_Tip') as any);
- return;
- }
- }
- let isTrue = true;
- this.DNReceivingList[this.everyIndex].wllist.forEach((item: any) => {
- if (item.materialCode == this.every.materialCode && item.wlCode == this.wl.label) {
- this.customToast(this.$t('message.repeatedly') as any);
- return (isTrue = false);
- }
- });
if (isTrue == true) {
this.LocationList.push({
...this.every,
receiptAmount: this.receiptAmount,
wlCode: this.wl.label,
- palletCode: this.Container.barcode,
+ // palletCode: this.Container.barcode,
+ palletCode: this.Barcode,
});
this.DNReceivingList[this.everyIndex].wllist.push(this.LocationList[this.LocationList.length - 1]);
console.log('3 this.DNReceivingList[externalIndex].wllist', this.DNReceivingList[this.everyIndex].wllist);
@@ -447,9 +452,11 @@ export default class dnReceiptDom extends BasePage {
// 清空 当前累计数量
this.receiptAmount = null;
this.DNReceivingList = [];
+ this.Barcode = '';
await this.query();
}
empty() {
+ this.Barcode = '';
this.LocationList = [];
this.Location = [];
this.poNo = '';
@@ -513,7 +520,7 @@ export default class dnReceiptDom extends BasePage {
dnNo: this.form.documentNo,
};
await this.model.querydetaildlist(content);
- this.toPage(this.page.raw.ingoods.dnReceipt.Local);
+ this.toPage(this.page.raw.ingoods.dnReceipt.RUSLocal);
}
}
@@ -568,7 +575,7 @@ export default class dnReceiptDom extends BasePage {
display: flex;
.single-left {
- width: 80%;
+ width: 79%;
height: 100%;
display: flex;
diff --git a/src/pages/raw/ingoods/RUS-dnReceipt/model.ts b/src/pages/raw/ingoods/RUS-dnReceipt/model.ts
index 696d5bd..aaa33de 100644
--- a/src/pages/raw/ingoods/RUS-dnReceipt/model.ts
+++ b/src/pages/raw/ingoods/RUS-dnReceipt/model.ts
@@ -22,7 +22,7 @@ class OrderInInfo {
namespaced: true,
dynamic: true,
store,
- name: 'raw.ingoods.dnReceipt',
+ name: 'raw.ingoods.RUS-dnReceipt',
})
export class ReceiptModule extends VuexModule {
// 容器码
diff --git a/src/utils/page.ts b/src/utils/page.ts
index 03fbfb3..ccd27ed 100644
--- a/src/utils/page.ts
+++ b/src/utils/page.ts
@@ -144,6 +144,7 @@ export const page = {
importDN: '/pages/raw/ingoods/dnReceipt/ImportDN',
bill: '/pages/raw/ingoods/dnReceipt/bill',
Local: '/pages/raw/ingoods/dnReceipt/Local-details',
+ RUSLocal: '/pages/raw/ingoods/RUS-dnReceipt/Local-details',
},
dnReturnGoods: {
index: '/pages/raw/ingoods/dnReturnGoods/index',