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 () => {