浏览代码

产品档案-去除规格字段/在税率后增加’%‘

jingbb 4 月之前
父节点
当前提交
714f377712
共有 2 个文件被更改,包括 10 次插入8 次删除
  1. 1 1
      src/views/BasicData/components/productArchiveModel.vue
  2. 9 7
      src/views/BasicData/productArchive.vue

+ 1 - 1
src/views/BasicData/components/productArchiveModel.vue

@@ -63,7 +63,7 @@
              </a-col>
              <a-col :xs="24" :sm="24" :md="24" :lg="24" :xl="12">
                <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="taxRate" label="税率(tax rate)">
-                  <a-input  placeholder="请输入" v-model:value="model.taxRate" AutoComplete='off'/>
+                  <a-input  placeholder="请输入" v-model:value="model.taxRate" AutoComplete='off' addon-after="%"/>
                </a-form-item>
              </a-col>
              <a-col :xs="24" :sm="24" :md="24" :lg="24" :xl="12">

+ 9 - 7
src/views/BasicData/productArchive.vue

@@ -172,12 +172,6 @@
             dataIndex: 'englishName',
             align:"center"
         },
-        {
-            title: '规格(specifications)',
-            key: 'specifications',
-            dataIndex: 'specifications',
-            align:"center"
-        },
         {
             title: '型号(model)',
             key: 'model',
@@ -195,13 +189,21 @@
             title: '税率(tax rate)',
             key: 'taxRate',
             dataIndex: 'taxRate',
-            align:"center"
+            align:"center",
+            customRender:function (t, r, index) {
+                if(t.text&&t.text!==''){
+                return t.text+'%'
+                }else{
+                return ''
+                }
+            }
         },
         {
             title: '虚拟产品(virtual product)',
             key: 'virtualProduct',
             dataIndex: 'virtualProduct',
             align:"center",
+            
             customRender:function (t, r, index) {
               if(t.text==1){
                 return '是(yes)'