Ver Fonte

feat(财务模块): 添加支付与收款来源枚举并优化来源类型显示

liujt há 6 meses atrás
pai
commit
bcf70f85a7

+ 31 - 0
src/enum/dict.js

@@ -560,3 +560,34 @@ export const topLevel2 = [
     value: '9'
   }
 ];
+
+export const payAndReceiveEnum = [
+  {
+    label: '对账单',
+    value: 1
+  },
+  {
+    label: '合同',
+    value: 2
+  },
+  {
+    label: '销售订单',
+    value: 3
+  },
+  {
+    label: '售后管理',
+    value: 4
+  },
+  {
+    label: '发货单',
+    value: 5
+  },
+  {
+    label: '采购收货单',
+    value: 6
+  },
+  {
+    label: '其他',
+    value: 99
+  },
+];

+ 3 - 1
src/views/financialManage/payableManage/components/detailDialog.vue

@@ -91,7 +91,7 @@
               label="来源类型"
               prop="sourceType"
               >
-              <el-input :value="form.sourceType==2?'合同':form.sourceType==3?'采购订单':'对账单'" disabled></el-input>
+              <el-input :value="payAndReceiveEnum.find(item=>item.value==form.sourceType)?.label" disabled></el-input>
             </el-form-item>
           </el-col>
           <el-col :span="12">
@@ -157,6 +157,7 @@ import {getFinPayableInfoAPI} from "@/api/financialManage/payableManage";
 import {getTreeByPid} from "@/api/classifyManage";
 import infoTable from "@/views/financialManage/payableManage/components/infoTable.vue";
 import bpmDetail from "@/views/bpm/processInstance/detail.vue";
+import { payAndReceiveEnum } from "@/enum/dict";
 
 export default {
   mixins: [dictMixins],
@@ -169,6 +170,7 @@ export default {
   data() {
     return {
       activeComp: 'main',
+      payAndReceiveEnum,
       tabOptions: [
         {key: 'main', name: '付款详情'},
         {key: 'bpm', name: '流程详情'}