|
@@ -8,6 +8,7 @@ import {getServiceList,getPreRegistrationList,preRegistrationAdd,preRegistration
|
|
|
preRegistrationDetail,preRegistrationEdit,preRegistrationDelete,preRegistrationSave} from '@/api/financialMana'
|
|
|
import financialCommon from './composition/common'
|
|
|
import serviceCascader from './composition/serivceCascader.js'
|
|
|
+import {downloadByFlow} from '@/utils/common-methods'
|
|
|
// 套餐的composition
|
|
|
const serviceComposition = serviceCascader()
|
|
|
// 合同类型数组
|
|
@@ -318,6 +319,13 @@ const editRegistrationPre=(row)=>{
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+// 导出数据
|
|
|
+const exportData=()=>{
|
|
|
+ getPreRegistrationList({...placemenetPre.searchParams,is_export:1}).then(res=>{
|
|
|
+ downloadByFlow(res,'xlsx',`财务预登记列表`)
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
//弹窗关闭动画 回调
|
|
|
const dialogClosed=()=>{
|
|
|
hasDeleteContractInvoiceIds=[]
|
|
@@ -697,14 +705,16 @@ placementPreList()
|
|
|
<div class="placemenetPre-top-zone">
|
|
|
<div class="placemenetPre-top-search-zone">
|
|
|
<el-input v-model="placemenetPre.searchParams.keyword" placeholder="客户姓名" :prefix-icon="Search"
|
|
|
- style="width: 240px;" @input="searchPlacementPre" clearable />
|
|
|
+ style="width: 240px;margin-right: 30px;" @input="searchPlacementPre" clearable />
|
|
|
</div>
|
|
|
<!-- 按钮区域 -->
|
|
|
<div class="placemenetPre-top-option-zone">
|
|
|
<el-button type="primary" @click="addRegistrationPre('开票')" class="main-button-large"
|
|
|
- style="margin-left: 30px;" v-permission="'financial:registrationPre:AEDInvoice'">开票预登记</el-button>
|
|
|
- <el-button type="primary" @click="addRegistrationPre('到款')" class="main-button-large" style="margin-left: 30px;"
|
|
|
- v-permission="'financial:registrationPre:AEDPayment'">到款预登记</el-button>
|
|
|
+ v-permission="'financial:registrationPre:AEDInvoice'">开票预登记</el-button>
|
|
|
+ <el-button type="primary" @click="addRegistrationPre('到款')" class="main-button-large"
|
|
|
+ v-permission="'financial:registrationPre:AEDPayment'">到款预登记</el-button>
|
|
|
+ <el-button type="primary" class="main-button-large"
|
|
|
+ v-permission="'financial:registrationPre:export'" @click="exportData">导出</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="placemenetPre-table-zone">
|
|
@@ -713,18 +723,17 @@ placementPreList()
|
|
|
size="default">
|
|
|
<el-table-column label="客户名称" prop="company_name"
|
|
|
show-overflow-tooltip min-width="120"></el-table-column>
|
|
|
- <el-table-column label="约定有效期" width="210" prop="start_date">
|
|
|
- <template #default="{row}">
|
|
|
- {{row.start_date&&row.start_date!='0001-01-01'?(row.start_date+' 至 '+row.end_date):''}}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
+ <el-table-column label="约定起始日期" width="110" prop="start_date"></el-table-column>
|
|
|
+ <el-table-column label="约定结束日期" width="110" prop="end_date"></el-table-column>
|
|
|
<el-table-column label="合同类型" align="center" width="90" prop="contract_type_string"></el-table-column>
|
|
|
<el-table-column label="套餐" prop="services" show-overflow-tooltip></el-table-column>
|
|
|
<el-table-column label="开票日" prop="invoice_time" width="110"></el-table-column>
|
|
|
<el-table-column label="开票金额" prop="origin_amount" width="120"></el-table-column>
|
|
|
+ <el-table-column label="开票换算金额(元)" prop="amount" width="151"></el-table-column>
|
|
|
<el-table-column label="开票销售" width="100" prop="seller_name"></el-table-column>
|
|
|
<el-table-column label="到款日" prop="arrive_time" width="110"></el-table-column>
|
|
|
<el-table-column label="到款金额" prop="arrive_origin_amount" width="120"></el-table-column>
|
|
|
+ <el-table-column label="到款换算金额(元)" prop="arrive_amount" width="151"></el-table-column>
|
|
|
<el-table-column label="到款销售" width="100" prop="payment_seller_name"></el-table-column>
|
|
|
<el-table-column label="操作" fixed="right" min-width="100">
|
|
|
<template #default="{row}">
|
|
@@ -983,6 +992,12 @@ placementPreList()
|
|
|
align-items: center;
|
|
|
margin-bottom: 8px;
|
|
|
}
|
|
|
+ .placemenetPre-top-option-zone{
|
|
|
+ margin-left: -30px;
|
|
|
+ .main-button-large{
|
|
|
+ margin-left: 30px;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
.placemenetPre-table-zone{
|
|
|
margin-top: 20px;
|