pay.data.tsx
3.74 KB
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
import { FormSchema } from '/@/components/Form';
import { BasicColumn } from '/@/components/Table';
import { icon } from 'ant-design-vue';
import { FolderAddOutlined, FilePptOutlined } from '@ant-design/icons-vue';
import { size } from 'lodash-es';
export const searchFormSchema: FormSchema[] = [
{
field: 'checkNo',
label: '生产科对账单号',
component: 'Input',
colProps: { span: 8 },
},
{
field: 'productionDepartment',
label: '生产科',
component: 'Input',
colProps: { span: 8 },
},
{
field: 'status',
label: '总经理审核',
component: 'Select',
colProps: { span: 8 },
componentProps: {
options: [
{ label: '未提交审核', value: -1 },
{ label: '待审核', value: 0 },
{ label: '审核通过', value: 10 },
{ label: '审核驳回', value: 20 },
],
},
},
{
field: 'customerCode',
label: '客户编码',
component: 'Input',
colProps: {
span: 8,
},
},
];
export const columns: BasicColumn[] = [
{
title: '生产科对账单号',
dataIndex: 'checkNo',
width: 120,
},
{
title: '生产科应付款日期',
dataIndex: 'payedDate',
width: 140,
},
{
title: '生产科扣款金额¥',
dataIndex: 'deductAmount',
width: 160,
// customRender: (column) => {
// return column.record.deductAmount?.toFixed(2);
// },
},
{
title: '扣款责任部门',
dataIndex: 'deductDept',
width: 120,
},
{
title: '上传扣款单',
dataIndex: 'deductUrl',
width: 120,
customRender: (column) => {
const deductUrl = column.record.deductUrl;
if (deductUrl == undefined) {
return;
}
return <FilePptOutlined style="font-size:25px" />;
},
},
{
title: '生产科实际应付金额¥',
dataIndex: 'actualPayedAmount',
width: 180,
// customRender: (column) => {
// return column.record.actualPayedAmount?.toFixed(2);
// },
},
{
title: '生产科发票上传',
dataIndex: 'invoiceUrl',
width: 80,
customRender: (column) => {
const deductUrl = column.record.invoiceUrl;
if (deductUrl == undefined) {
return;
}
return <FilePptOutlined style="font-size:25px" />;
},
},
{
title: '实际付款金额1¥',
dataIndex: 'actualPayedAmount1',
width: 160,
// customRender: (column) => {
// console.log(column, '5656ccc');
// return column.record.actualPayedAmount1?.toFixed(2);
// },
},
{
title: '实际付款金额2¥',
dataIndex: 'actualPayedAmount2',
width: 160,
// customRender: (column) => {
// return column.record.actualPayedAmount2?.toFixed(2);
// },
},
{
title: '实际付款金额3¥',
dataIndex: 'actualPayedAmount3',
width: 160,
// customRender: (column) => {
// return column.record.actualPayedAmount3?.toFixed(2);
// },
},
{
title: '生产科发票审核',
dataIndex: 'departmentInvoiceStatus',
width: 120,
customRender: (column) => {
if (column.record.departmentInvoiceStatus == 0) {
return '待审核';
} else if (column.record.departmentInvoiceStatus == 10) {
return '审核通过';
} else if (column.record.departmentInvoiceStatus == 20) {
return '审核驳回';
}
},
},
{
title: '总经理审核',
dataIndex: 'status',
width: 120,
customRender: (column) => {
if (column.record.status == -1) {
return '未提交审核';
} else if (column.record.status == 0) {
return '待审核';
} else if (column.record.status == 10) {
return '审核通过';
} else if (column.record.status == 20) {
return '审核驳回';
}
},
},
];