Bläddra i källkod

财务管理:开票记录,开票来源数据源使用字典

shipeng 2 månader sedan
förälder
incheckning
b464134097
1 ändrade filer med 3 tillägg och 11 borttagningar
  1. 3 11
      src/views/finance/InvoiceRecords/index.vue

+ 3 - 11
src/views/finance/InvoiceRecords/index.vue

@@ -59,11 +59,7 @@
               style="width: 150px"
             >
               <el-option
-                v-for="dict in [
-                  { label: '小程序',value: 0 },
-                  { label: '团购H5',value: 1 },
-                  { label: '线下(诺诺系统)',value: 2 },
-                ]"
+                v-for="dict in dict.type.Invoice_source"
                 :key="dict.value"
                 :label="dict.label"
                 :value="dict.value"
@@ -105,11 +101,7 @@
             </el-table-column>
             <el-table-column label="开票来源" align="center">
               <template slot-scope="scope">
-                <dict-tag :options="[
-                    { label: '小程序',value: '0',raw: {listClass:'default'} },
-                    { label: '团购H5',value: '1',raw: {listClass:'default'} },
-                    { label: '线下(诺诺系统)',value: '2',raw: {listClass:'default'} },
-                  ]" :value="scope.row.invoiceSource"/>
+                <dict-tag :options="dict.type.Invoice_source" :value="scope.row.invoiceSource"/>
               </template>
             </el-table-column>
             <el-table-column label="申请时间" align="center">
@@ -175,7 +167,7 @@ import { myMixin } from "@/utils/mixin.js"
 export default {
   name: "InvoiceRecords",
   //mixins: [myMixin],
-  dicts: ['Invoicing_type','lookup_type'],
+  dicts: ['Invoicing_type','lookup_type','Invoice_source'],
   components: { detailsDia,relatedOrders },
   data() {
     return {