feat: 费用导入功能
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<fvSearchForm :searchConfig="searchConfig" @search="search" style="margin-left: 16px"></fvSearchForm>
|
<fvSearchForm :searchConfig="searchConfig" @search="search" style="margin-left: 15px"></fvSearchForm>
|
||||||
<div style="float: left">
|
<div style="float: left">
|
||||||
<import-cost-excel @success="importTheExpenseLedger"/>
|
<import-cost-excel @success="importTheExpenseLedger"/>
|
||||||
</div>
|
</div>
|
||||||
@@ -30,17 +30,39 @@ const searchConfig = ref([
|
|||||||
checkStrictly: true
|
checkStrictly: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// {
|
{
|
||||||
// label: '子项目',
|
label: '子项目',
|
||||||
// prop: 'subProjectName',
|
prop: 'subProjectName',
|
||||||
// component: 'el-input',
|
component: 'el-input',
|
||||||
// props: {
|
props: {
|
||||||
// placeholder: '请输入子项目查询',
|
placeholder: '请输入子项目查询',
|
||||||
// clearable: true,
|
clearable: true,
|
||||||
// filterable: true,
|
filterable: true,
|
||||||
// checkStrictly: true
|
checkStrictly: true
|
||||||
// }
|
}
|
||||||
// },
|
},
|
||||||
|
{
|
||||||
|
label: '会计凭证记载金额(元)',
|
||||||
|
prop: 'recordedAmount',
|
||||||
|
component: 'el-input',
|
||||||
|
props: {
|
||||||
|
placeholder: '请输入会计凭证记载金额查询',
|
||||||
|
clearable: true,
|
||||||
|
filterable: true,
|
||||||
|
checkStrictly: true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '归集研发费用金额(元)',
|
||||||
|
prop: 'rdAmount',
|
||||||
|
component: 'el-input',
|
||||||
|
props: {
|
||||||
|
placeholder: '请输入归集研发费用金额查询',
|
||||||
|
clearable: true,
|
||||||
|
filterable: true,
|
||||||
|
checkStrictly: true
|
||||||
|
}
|
||||||
|
},
|
||||||
// {
|
// {
|
||||||
// label: '项目类型',
|
// label: '项目类型',
|
||||||
// prop: 'projectType',
|
// prop: 'projectType',
|
||||||
@@ -82,14 +104,20 @@ const tableConfig = reactive({
|
|||||||
// }
|
// }
|
||||||
// },
|
// },
|
||||||
{
|
{
|
||||||
prop: 'paymentYear',
|
prop: 'rdYear',
|
||||||
label: '支付年份',
|
label: '年',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 80
|
width: 80
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'paymentMonth',
|
prop: 'rdMonth',
|
||||||
label: '支付月份',
|
label: '月',
|
||||||
|
align: 'center',
|
||||||
|
width: 80
|
||||||
|
},
|
||||||
|
{
|
||||||
|
prop: 'rdDay',
|
||||||
|
label: '日',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 80
|
width: 80
|
||||||
},
|
},
|
||||||
@@ -126,9 +154,10 @@ const tableConfig = reactive({
|
|||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'remarks',
|
prop: 'digest',
|
||||||
label: '摘要',
|
label: '摘要',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
|
showOverflowTooltip: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'accountCode',
|
prop: 'accountCode',
|
||||||
@@ -141,11 +170,13 @@ const tableConfig = reactive({
|
|||||||
prop: 'accountName',
|
prop: 'accountName',
|
||||||
label: '科目名称',
|
label: '科目名称',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
|
showOverflowTooltip: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'auxiliaryItem',
|
prop: 'auxiliaryItem',
|
||||||
label: '辅助项',
|
label: '辅助项',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
|
showOverflowTooltip: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'recordedAmount',
|
prop: 'recordedAmount',
|
||||||
@@ -160,7 +191,7 @@ const tableConfig = reactive({
|
|||||||
width: 170
|
width: 170
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
api: '/workflow/mosr/payment/list',
|
api: '/workflow/mosr/rd/expense/list',
|
||||||
params: {},
|
params: {},
|
||||||
btns: [
|
btns: [
|
||||||
{name: '模板下载', key: 'down', color: '#DED0B2'},
|
{name: '模板下载', key: 'down', color: '#DED0B2'},
|
||||||
@@ -220,7 +251,9 @@ const importTheExpenseLedger = () => {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
:deep(.el-form-item__label-wrap){
|
||||||
|
margin-left: 0!important;
|
||||||
|
}
|
||||||
:deep(.el-table__header) {
|
:deep(.el-table__header) {
|
||||||
.is-leaf:first-child {
|
.is-leaf:first-child {
|
||||||
.cell {
|
.cell {
|
||||||
|
|||||||
@@ -27,17 +27,17 @@ const searchConfig = ref(
|
|||||||
checkStrictly: true
|
checkStrictly: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// {
|
{
|
||||||
// label: '子项目',
|
label: '子项目',
|
||||||
// prop: 'subProjectName',
|
prop: 'subProjectName',
|
||||||
// component: 'el-input',
|
component: 'el-input',
|
||||||
// props: {
|
props: {
|
||||||
// placeholder: '请输入子项目查询',
|
placeholder: '请输入子项目查询',
|
||||||
// clearable: true,
|
clearable: true,
|
||||||
// filterable: true,
|
filterable: true,
|
||||||
// checkStrictly: true
|
checkStrictly: true
|
||||||
// }
|
}
|
||||||
// },
|
},
|
||||||
{
|
{
|
||||||
label: '项目类型',
|
label: '项目类型',
|
||||||
prop: 'projectType',
|
prop: 'projectType',
|
||||||
|
|||||||
@@ -88,20 +88,17 @@ const tableConfig = reactive({
|
|||||||
prop: 'masterProjectName',
|
prop: 'masterProjectName',
|
||||||
label: '主项目',
|
label: '主项目',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 120,
|
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
prop: 'subProjectName',
|
prop: 'subProjectName',
|
||||||
label: '子项目',
|
label: '子项目',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 120,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'researchPersonnel',
|
prop: 'researchPersonnel',
|
||||||
label: '研发人员',
|
label: '研发人员',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 120,
|
|
||||||
showOverflowTooltip: false,
|
showOverflowTooltip: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user