Browse Source

feat:发票审核申请时类型显示

snow 1 năm trước cách đây
mục cha
commit
e0b940a291

+ 3 - 3
src/views/customerService/invoiceApply/columns.js

@@ -29,13 +29,13 @@ const listCol = [
   {
     prop: 'total_price',
     label: '申请金额',
-    width: '155'
+    width: '120px'
   },
 
   {
     prop: 'invoice_type',
-    label: '发票类型',
-    width: '155px',
+    label: '开票申请发票类型',
+    width: '120px',
     _slot_: 'invoice_type'
   },
   {

+ 8 - 3
src/views/customerService/invoiceApply/index.vue

@@ -161,7 +161,11 @@
                     pageInfo.curr = 1;
                     parmValue.page = 1;
                     searchList();">
-                  <el-option />
+                  <el-option 
+                    v-for="invoice in openInvoiceTypeList" 
+                    :key="invoice.value" 
+                    :value="invoice.value" 
+                    :label="invoice.label" />
                 </el-select>
               </el-col>
             </el-row>
@@ -182,7 +186,7 @@
        <template #invoice_type="{ scope: { row } }">
         <el-tag size="mini">
           {{  
-            (invoiceTypeList.find(({value}) => value === String(row.invoice_type)) || {}).label || '--'
+            (openInvoiceTypeList.find(({value}) => value === String(row.invoice_type)) || {}).label || '--'
           }}
         </el-tag>
        </template>
@@ -206,7 +210,7 @@
 import mixinPage from "@/mixins/elPaginationHandle";
 import resToken from "@/mixins/resToken";
 import asyncRequest from "@/apis/service/customerService/invoiceApply";
-import { invoiceTypeList } from '@/assets/js/statusList';
+import { invoiceTypeList ,openInvoiceTypeList } from '@/assets/js/statusList';
 import companyHelper from "@/mixins/companyHelper"
 import { listCol, statusList } from "./columns";
 import { mapGetters } from "vuex";
@@ -240,6 +244,7 @@ export default {
   },
   data() {
     return {
+      openInvoiceTypeList,
       invoiceTypeList,
       customerCode: [], //客户公司code
       statusList,

+ 3 - 3
src/views/customerService/invoiceApproval/columns.js

@@ -27,8 +27,8 @@ const listCol = [
   {
     prop: 'invoiceType',
     label: '开票申请发票类型',
-    width: '125px',
-    _slot_:'invoiceType'
+    width: '120px',
+    _slot_:'invType'
     // reuqired:true
   },
 
@@ -60,7 +60,7 @@ const listCol = [
   {
     prop: 'invoiceType',
     label: '发票类型',
-    'width': '125px',
+    'width': '135px',
     _slot_:'invoiceType'
   },
   {

+ 8 - 1
src/views/customerService/invoiceApproval/index.vue

@@ -164,6 +164,12 @@
           </div>
         </template>
 
+        <template #invType="{ scope }">
+          <el-tag size="mini">
+            {{(openInvoiceTypeList.find(({value}) => value === scope.row.inv_type) || {}).label || '--'}}
+          </el-tag>
+        </template>
+
         <template #invoiceType="{ scope }">
           <el-tag size="mini">
             {{(invoiceTypeList.find(({value}) => value === scope.row.invoiceType) || {}).label || '--'}}
@@ -214,7 +220,7 @@ import asyncRequest from "@/apis/service/platformService/invoice";
 import companyHelper from "@/mixins/companyHelper"
 import { listCol, statusList } from "./columns";
 import { mapGetters } from "vuex";
-import { invoiceTypeList } from '@/assets/js/statusList';
+import { invoiceTypeList, openInvoiceTypeList } from '@/assets/js/statusList';
 import InvoiceModal from "./components/invoice-modal.vue"
 import urlConfig from "@/apis/url-config";
 
@@ -257,6 +263,7 @@ export default {
       select: "1",
       s_input: "",
       invoiceTypeList,
+      openInvoiceTypeList,
       customerCode: [], //客户公司code
       statusList,
       sitem: null,

+ 2 - 2
src/views/platformService/invoice/columns.js

@@ -25,10 +25,10 @@ const listCol = [
   },
 
   {
-    prop: 'invoiceType',
+    prop: 'inv_type',
     label: '开票申请发票类型',
     width: '125px',
-    _slot_:'invoiceType'
+    _slot_:'invType'
     // reuqired:true
   },
 

+ 9 - 1
src/views/platformService/invoice/index.vue

@@ -165,6 +165,13 @@
           </div>
         </template>
 
+
+        <template #invType="{ scope }">
+          <el-tag size="mini">
+            {{(openInvoiceTypeList.find(({value}) => value === scope.row.inv_type) || {}).label || '--'}}
+          </el-tag>
+        </template>
+
         <template #invoiceType="{ scope }">
           <el-tag size="mini">
             {{(invoiceTypeList.find(({value}) => value === scope.row.invoiceType) || {}).label || '--'}}
@@ -210,7 +217,7 @@ import asyncRequest from "@/apis/service/platformService/invoice";
 import companyHelper from "@/mixins/companyHelper"
 import { listCol, statusList } from "./columns";
 import { mapGetters } from "vuex";
-import { invoiceTypeList } from '@/assets/js/statusList';
+import { invoiceTypeList, openInvoiceTypeList } from '@/assets/js/statusList';
 import InvoiceModal from "./components/invoice-modal.vue"
 import urlConfig from "@/apis/url-config";
 
@@ -254,6 +261,7 @@ export default {
                   //全局url
       fileUrl: urlConfig.baseURL,
       invoiceTypeList,
+      openInvoiceTypeList,
       customerCode: [], //客户公司code
       statusList,
       sitem: null,