From 5bfaf3a96b48b92ed859adefbdfb5bbddf65b7a0 Mon Sep 17 00:00:00 2001 From: hou <1601990943@qq.com> Date: Wed, 26 Jan 2022 17:27:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=90=E5=93=81=E4=B8=8B=E7=BA=BF=20=20?= =?UTF-8?q?=E9=87=8D=E6=96=B0=E6=A0=A1=E9=AA=8C=E6=9D=A1=E7=A0=8120?= =?UTF-8?q?=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/i18n/lang/cn.ts | 1 + src/i18n/lang/en.ts | 1 + src/pages/product/inbound/finishProductOffline/index.vue | 4 ++++ 3 files changed, 6 insertions(+) diff --git a/src/i18n/lang/cn.ts b/src/i18n/lang/cn.ts index 55c290c..217e41f 100644 --- a/src/i18n/lang/cn.ts +++ b/src/i18n/lang/cn.ts @@ -412,6 +412,7 @@ export default { Warehouse_Tip6: '请选择物料', Warehouse_Tip7: '盘点未完成,确定继续吗', selectCode: '请先选择编码', + standard:'条码不规范', Warehouse_Tip8: '请输入成本中心', Warehouse_Tip9: '操作成功', DocumentNumber: '文件号', diff --git a/src/i18n/lang/en.ts b/src/i18n/lang/en.ts index 763940a..bf6deec 100644 --- a/src/i18n/lang/en.ts +++ b/src/i18n/lang/en.ts @@ -65,6 +65,7 @@ export default { LBWK: 'List is empty', CommissionedDetails:'detail', closing:'Confirm closing order?', + standard:'Non standard barcode', rawMenu_InTheLibrary: 'RAW WH', rawMenu_ReturnGoods: 'Return', rawMenu_SignOut: 'Sign out', diff --git a/src/pages/product/inbound/finishProductOffline/index.vue b/src/pages/product/inbound/finishProductOffline/index.vue index 37e44a7..4931f91 100644 --- a/src/pages/product/inbound/finishProductOffline/index.vue +++ b/src/pages/product/inbound/finishProductOffline/index.vue @@ -246,6 +246,10 @@ export default class finishProductOfflineDom extends BasePage { this.customToast(this.$t('message.product_Tip3') as string); return; } + if(this.form.barCode.trim().length != 20){ + this.customToast(this.$t('message.standard') as string); + return + } console.log('this.form', this.form); if (this.materielList.length == 0) { this.model.queryOrderInInfo(this.form).then(async () => {