Pārlūkot izejas kodu

开票配置—开票内容显示为:开票内容+税务分类名称

ZhangWenQiang 3 gadi atpakaļ
vecāks
revīzija
3e9871e957

+ 6 - 1
src/views/hlwsubcontractor/modules/HlwSubcontractorForm.vue

@@ -33,6 +33,10 @@
         :pagination="false"
         class="j-table-force-nowrap">
 
+        <span slot="invoiceCategoryName" slot-scope="text, record, index">
+          *{{record.invoiceCategoryName}}*{{record.taxCategoryName}}
+        </span>
+
         <span slot="action" slot-scope="text, record, index">
           <a @click="handleDelete(record)" v-has="'hlw:subcontractor:deleteInvoice'">删除</a>
           <a-divider type="vertical" v-has="'hlw:subcontractor:isOnInvoice'"/>
@@ -82,7 +86,8 @@
           {
             title:'开票内容',
             align:"center",
-            dataIndex: 'invoiceCategoryName'
+            dataIndex: 'invoiceCategoryName',
+            scopedSlots: { customRender: 'invoiceCategoryName' }
           },
           {
             title:'启用状态',

+ 1 - 1
src/views/hlwsubcontractor/modules/HlwSubcontractorInvoiceCategoryIsOnModal.vue

@@ -133,7 +133,7 @@
           if(res.success){
             this.invoiceCategoryOptions=[]
             for(let i = 0;i<res.result.length;i++){
-              var name = res.result[i].invoiceCategoryName;
+              var name = '*' + res.result[i].invoiceCategoryName + '*' + res.result[i].taxCategoryName;
               var value = res.result[i].id.toString()
               this.invoiceCategoryOptions.push({label: name, value:value})
             }