|
@@ -83,53 +83,60 @@ export const columns = [
|
|
|
label: '序号',
|
|
|
width: '70px'
|
|
|
},
|
|
|
- {
|
|
|
- prop: mapFields.invoiceNo,
|
|
|
- label: '发票申请编号',
|
|
|
- width: '110px',
|
|
|
- required: true
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // prop: mapFields.invoiceNo,
|
|
|
+ // label: '发票申请编号',
|
|
|
+ // width: '110px',
|
|
|
+ // required: true,
|
|
|
+ // },
|
|
|
{
|
|
|
prop: mapFields.invoiceType,
|
|
|
label: '发票类型',
|
|
|
width: '120px',
|
|
|
- required: true
|
|
|
+ required: true,
|
|
|
+ templateData:'增值税普通发票'
|
|
|
},
|
|
|
{
|
|
|
prop: mapFields.invoiceNumber,
|
|
|
label: '发票号码',
|
|
|
width: '156px',
|
|
|
- required: true
|
|
|
+ required: true,
|
|
|
+ templateData:'10000'
|
|
|
},
|
|
|
{
|
|
|
prop: mapFields["invoiceCode"],
|
|
|
label: '发票代码',
|
|
|
width: '156px',
|
|
|
- required: true
|
|
|
+ required: true,
|
|
|
+ templateData:'10000000'
|
|
|
},
|
|
|
{
|
|
|
prop: mapFields["openTime"],
|
|
|
label: '开票日期',
|
|
|
width: '180px',
|
|
|
- required: true
|
|
|
+ required: true,
|
|
|
+ templateData:'2023-01-01'
|
|
|
},
|
|
|
{
|
|
|
prop: mapFields["afterTax"],
|
|
|
label: '税后金额',
|
|
|
width: '156px',
|
|
|
- required: true
|
|
|
+ required: true,
|
|
|
+ templateData: 106
|
|
|
},
|
|
|
{
|
|
|
prop: mapFields["beforeTax"],
|
|
|
label: '税前金额',
|
|
|
width: '150px',
|
|
|
- required: true
|
|
|
+ required: true,
|
|
|
+ templateData: 100
|
|
|
},
|
|
|
{
|
|
|
prop: mapFields["checkNumber"],
|
|
|
label: '校验码',
|
|
|
minWidth: '150px',
|
|
|
- required: false
|
|
|
+ required: false,
|
|
|
+ templateData:'10000'
|
|
|
},
|
|
|
]
|
|
|
|
|
@@ -141,8 +148,8 @@ export const getTableProperty = (key) => {
|
|
|
return (columns.find(({label}) => key === label) || {}).prop
|
|
|
}
|
|
|
|
|
|
-export const template = Array(1).fill(1).map(() => columns.slice(2).reduce((prev, {label}) => {
|
|
|
- prev[label] = ''
|
|
|
+export const template = Array(1).fill(1).map(() => columns.slice(1).reduce((prev, {label,templateData}) => {
|
|
|
+ prev[label] = templateData
|
|
|
return prev
|
|
|
}, {}))
|
|
|
|