cloudroam
2025-03-28 cef2bb0eeeb91a22860cf5d23c7348af1ba921dc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<template>
  <div>
    <el-bus-crud ref="crud" v-bind="tableConfig" />
  </div>
</template>
 
<script>
 
export default {
  data() {
    return {
      tableConfig: {
        url: 'flower/v2/wallet-bill-record/list',
        hasNew: false,
        hasEdit: false,
        hasDelete: false,
        hasView: false,
        hasExport: true,
        exportUrl: 'flower/v2/wallet-bill-record/export',
        exportText: '导出',
        hasOperation:false,
        columns: [
          {label: '供应商信息',
            minWidth: 120,
            formatter: (row) => `${row.supplierName || ''}:[ID:${row.supplierId || ''}]`},
          {label: '变动类型', prop: 'typeName', minWidth: 100},
          {label: '原金额', prop: 'originalAmount', minWidth: 100},
          {
            label: '变动金额',
            formatter: (row) => (row.method ==='add' ? '+'+row.changeAmount : '-'+row.changeAmount),
            minWidth: 120
          },
          {label: '现余额', prop: 'balance', minWidth: 120},
          {label: '提交时间', prop: 'createTime', minWidth: 120},
          {label: '审核时间', prop: 'approveTime', minWidth: 80},
          {label: '备注', prop: 'remark', minWidth: 160},
          {label: '操作人', prop: 'approveName', minWidth: 120},
        ],
        searchFormAttrs: {
          labelWidth: 'auto',
        },
        searchForm: [
          {
            type: 'row',
            items: [
 
              {label: '供应商ID:', id: 'supplierId', type: 'input'},
              {label: '供应商名称:', id: 'supplierName', type: 'input'},
              {
                label: '提交时间',
                id: 'createStartDate',
                component: 'el-bus-date-range',
                commonFormat: true,
                commonFormatProps: ['createStartDate', 'endEndDate'],
                customClass: 'in-bus-form',
              },
              {
                label: '审核时间',
                id: 'approveStartDate',
                component: 'el-bus-date-range',
                commonFormat: true,
                commonFormatProps: ['approveStartDate', 'approveEndDate'],
                customClass: 'in-bus-form',
              },
              {
                label: '变动类型',
                id: 'type',
                type: 'bus-select-dict',
                el: {
                  code: 'BILL_CHANGE_TYPE',
                  clearable: true,
                  style: 'width:100%',
                },
              },
              {label: '订单号:', id: 'orderNo', type: 'input'},
 
            ],
          },
        ],
      },
    }
  },
  head() {
    return {
      title: '供应商财务',
    }
  },
}
 
</script>