From ca5a20d199dafa36f69a436e097233cc672bd231 Mon Sep 17 00:00:00 2001 From: "han\\hanst" Date: Wed, 10 Jun 2026 16:21:06 +0800 Subject: [PATCH] bu --- src/views/modules/ecss/hsCode.vue | 23 +++++++++++++---- src/views/modules/ecss/partHsCode.vue | 36 +++++++++++++++++++++++++-- 2 files changed, 52 insertions(+), 7 deletions(-) diff --git a/src/views/modules/ecss/hsCode.vue b/src/views/modules/ecss/hsCode.vue index 82a4d7e..6cdfb4f 100644 --- a/src/views/modules/ecss/hsCode.vue +++ b/src/views/modules/ecss/hsCode.vue @@ -123,7 +123,7 @@ - + @@ -194,7 +194,8 @@ codeNo:'', unit:'', remark:'', - brand:'无' + brand:'无', + oldBrand:'' }, addDisabledFlag:true, activeName:'attribute', @@ -523,7 +524,8 @@ codeNo:'', unit:'', remark:'', - brand:'' + brand:'', + oldBrand:'' } this.addModelFlag=true }, @@ -551,6 +553,7 @@ }, updateModelOpen(row){ this.addDisabledFlag=false + let currentBrand = row.brand || '无' this.addModel={ addFlag:1, site:row.site, @@ -561,7 +564,8 @@ codeNo:row.codeNo, unit:row.unit, remark:row.remark, - brand:row.brand || '无' + brand:currentBrand, + oldBrand:currentBrand } this.addModelFlag=true }, @@ -610,12 +614,21 @@ }) return false } - if(this.addModel.brand==null||this.addModel.brand===''){ + const brand = this.addModel.brand == null ? '' : String(this.addModel.brand).trim() + if(brand===''){ this.$alert('请输入品牌!', '错误', { confirmButtonText: '确定' }) return false } + this.addModel.brand = brand + if (this.addModel.addFlag === 0) { + this.addModel.oldBrand = '' + } else { + this.addModel.oldBrand = this.addModel.oldBrand + ? String(this.addModel.oldBrand).trim() + : this.addModel.brand + } if(!this.isCodeNoOptionalBu(this.addModel.buNo) && (this.addModel.codeNo==null||this.addModel.codeNo==='')){ this.$alert('请选择属性模板!', '错误', { confirmButtonText: '确定' diff --git a/src/views/modules/ecss/partHsCode.vue b/src/views/modules/ecss/partHsCode.vue index 1dc8b75..e6b6dd3 100644 --- a/src/views/modules/ecss/partHsCode.vue +++ b/src/views/modules/ecss/partHsCode.vue @@ -136,11 +136,16 @@ - + + + + + +