|
@@ -7,6 +7,7 @@
|
|
|
custom
|
|
custom
|
|
|
:searchData.sync="searchData"
|
|
:searchData.sync="searchData"
|
|
|
:tableConfig="tableConfig"
|
|
:tableConfig="tableConfig"
|
|
|
|
|
+ @selectionChange="selectionChange"
|
|
|
:btnGroup="btnGroup"
|
|
:btnGroup="btnGroup"
|
|
|
:data="tableData"
|
|
:data="tableData"
|
|
|
@findPage="findPage"
|
|
@findPage="findPage"
|
|
@@ -23,16 +24,6 @@
|
|
|
<el-button size="small" type="primary">导入</el-button>
|
|
<el-button size="small" type="primary">导入</el-button>
|
|
|
</el-upload>
|
|
</el-upload>
|
|
|
</template>
|
|
</template>
|
|
|
- <div v-if="!Object.keys(moneyList).length == 0">
|
|
|
|
|
- <el-row class="customStyle" >
|
|
|
|
|
- <el-col :span="4">预收金额:{{moneyList.totalFeevalue}}</el-col>
|
|
|
|
|
- <el-col :span="4">手续费金额:{{moneyList.commissionFeevalue}}</el-col>
|
|
|
|
|
- <el-col :span="4">跟单费金额:{{moneyList.otherFeevalue}}</el-col>
|
|
|
|
|
- <el-col :span="4">未结算金额:{{moneyList.readyTotalFeevalue}}</el-col>
|
|
|
|
|
- <el-col :span="4">未结算手续费金额:{{moneyList.readyCommissionFeevalue}}</el-col>
|
|
|
|
|
- <el-col :span="4">未结算跟单金额:{{moneyList.readyOtherFeevalue}}</el-col>
|
|
|
|
|
- </el-row>
|
|
|
|
|
- </div>
|
|
|
|
|
<template slot="data">
|
|
<template slot="data">
|
|
|
<yearMonthYay ref="yearMonthYay" @getYearData="getYearData" @getMonthData="getMonthData" @getDayData="getDayData"></yearMonthYay>
|
|
<yearMonthYay ref="yearMonthYay" @getYearData="getYearData" @getMonthData="getMonthData" @getDayData="getDayData"></yearMonthYay>
|
|
|
</template>
|
|
</template>
|
|
@@ -138,6 +129,21 @@
|
|
|
<el-button size="small" type="primary" @click="onSubmit">保存</el-button>
|
|
<el-button size="small" type="primary" @click="onSubmit">保存</el-button>
|
|
|
</span>
|
|
</span>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
+ <el-dialog
|
|
|
|
|
+ title="批量结算"
|
|
|
|
|
+ :visible.sync="dialogVisibleBatch"
|
|
|
|
|
+ width="35%"
|
|
|
|
|
+ :before-close="handleCloseBatch">
|
|
|
|
|
+ <el-row class="customStyle" >
|
|
|
|
|
+ <el-col :span="8">预收金额:{{moneyList.totalFeevalue}}</el-col>
|
|
|
|
|
+ <el-col :span="8">手续费金额:{{moneyList.commissionFeevalue}}</el-col>
|
|
|
|
|
+ <el-col :span="8">跟单费金额:{{moneyList.otherFeevalue}}</el-col>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
|
|
+ <el-button size="small" @click="dialogVisibleBatch = false">取消</el-button>
|
|
|
|
|
+ <el-button size="small" type="primary" @click="onSubmitBatch">保存</el-button>
|
|
|
|
|
+ </span>
|
|
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
@@ -161,6 +167,7 @@ export default {
|
|
|
formDataList:{},
|
|
formDataList:{},
|
|
|
formDataId:'',
|
|
formDataId:'',
|
|
|
dialogVisibleDetail:false,
|
|
dialogVisibleDetail:false,
|
|
|
|
|
+ dialogVisibleBatch:false,
|
|
|
moneyList:{},
|
|
moneyList:{},
|
|
|
searchData:{},
|
|
searchData:{},
|
|
|
tableDataselect:[],
|
|
tableDataselect:[],
|
|
@@ -242,6 +249,10 @@ export default {
|
|
|
btnGroup:[
|
|
btnGroup:[
|
|
|
{
|
|
{
|
|
|
name:'批量结算',
|
|
name:'批量结算',
|
|
|
|
|
+ disabled:()=>{
|
|
|
|
|
+ let isdisabled=this.selectionList && this.selectionList.length>0?false:true
|
|
|
|
|
+ return isdisabled
|
|
|
|
|
+ },
|
|
|
click:(row, index) => {return this.balanceFunPro()},
|
|
click:(row, index) => {return this.balanceFunPro()},
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
@@ -283,7 +294,8 @@ export default {
|
|
|
{
|
|
{
|
|
|
prop: "companyName",
|
|
prop: "companyName",
|
|
|
label: "保险公司",
|
|
label: "保险公司",
|
|
|
- type: "text"
|
|
|
|
|
|
|
+ type: "text",
|
|
|
|
|
+ width:'100',
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
prop: "riskcode",
|
|
prop: "riskcode",
|
|
@@ -293,7 +305,8 @@ export default {
|
|
|
{
|
|
{
|
|
|
prop: "partnerCompaniesName",
|
|
prop: "partnerCompaniesName",
|
|
|
label: "保司机构",
|
|
label: "保司机构",
|
|
|
- type: "text"
|
|
|
|
|
|
|
+ type: "text",
|
|
|
|
|
+ width:'150',
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
prop: "agreementId",
|
|
prop: "agreementId",
|
|
@@ -424,12 +437,19 @@ export default {
|
|
|
loading:true,
|
|
loading:true,
|
|
|
isPaginationShow:true,
|
|
isPaginationShow:true,
|
|
|
isShowIndex: true,
|
|
isShowIndex: true,
|
|
|
|
|
+ isCheckBox:true,
|
|
|
|
|
+ operationWidth:'180',
|
|
|
optBtns:[
|
|
optBtns:[
|
|
|
{
|
|
{
|
|
|
type:'primary',
|
|
type:'primary',
|
|
|
label:'编辑',
|
|
label:'编辑',
|
|
|
click:(row, index) => {return this.haldUpload(row)},
|
|
click:(row, index) => {return this.haldUpload(row)},
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ type:'primary',
|
|
|
|
|
+ label:'结算',
|
|
|
|
|
+ click:(row, index) => {return this.balanceFun(row)},
|
|
|
|
|
+ },
|
|
|
]
|
|
]
|
|
|
},
|
|
},
|
|
|
formTableData:[],
|
|
formTableData:[],
|
|
@@ -523,12 +543,11 @@ export default {
|
|
|
agreementType: '1',
|
|
agreementType: '1',
|
|
|
isNotCar:'0',
|
|
isNotCar:'0',
|
|
|
isOther:'0',
|
|
isOther:'0',
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
handlingFeesStatus:'0'
|
|
handlingFeesStatus:'0'
|
|
|
},
|
|
},
|
|
|
dataValue:'',
|
|
dataValue:'',
|
|
|
selectionOption:[],
|
|
selectionOption:[],
|
|
|
|
|
+ selectionList:[],
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
created(){
|
|
created(){
|
|
@@ -574,31 +593,36 @@ export default {
|
|
|
a.href = `${process.env.BASE_URL}/template/SettlementTemplate.xlsx`;
|
|
a.href = `${process.env.BASE_URL}/template/SettlementTemplate.xlsx`;
|
|
|
a.click();
|
|
a.click();
|
|
|
},
|
|
},
|
|
|
|
|
+ selectionChange(row){
|
|
|
|
|
+ this.selectionList=[]
|
|
|
|
|
+ if(row &&row.length>0){
|
|
|
|
|
+ this.selectionList=row.map(e=>e.id)
|
|
|
|
|
+ }
|
|
|
|
|
+ console.log(this.selectionList,1111111);
|
|
|
|
|
+
|
|
|
|
|
+ },
|
|
|
// 查询
|
|
// 查询
|
|
|
handleSearchList(data) {
|
|
handleSearchList(data) {
|
|
|
- // if( this.formData.year || this.formData.month || this.formData.date){
|
|
|
|
|
- let signDateStart=''
|
|
|
|
|
- let signDateEnd=''
|
|
|
|
|
- if(data && data.signDate && data.signDate.length>0){
|
|
|
|
|
- signDateStart=data.signDate[0]
|
|
|
|
|
- signDateEnd=data.signDate[1]
|
|
|
|
|
- }
|
|
|
|
|
- else{
|
|
|
|
|
- signDateStart=''
|
|
|
|
|
- signDateEnd=''
|
|
|
|
|
- }
|
|
|
|
|
- this.$api.task
|
|
|
|
|
- .totalAmount({...this.formData,...this.pageData,...data,signDateStart,signDateEnd})
|
|
|
|
|
- .then(res => {
|
|
|
|
|
- if (res.code==200) {
|
|
|
|
|
- console.log(res.data,222222);
|
|
|
|
|
- this.moneyList=res.data
|
|
|
|
|
- }
|
|
|
|
|
- else{
|
|
|
|
|
- this.$message.error(res.msg)
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ // let signDateStart=''
|
|
|
|
|
+ // let signDateEnd=''
|
|
|
|
|
+ // if(data && data.signDate && data.signDate.length>0){
|
|
|
|
|
+ // signDateStart=data.signDate[0]
|
|
|
|
|
+ // signDateEnd=data.signDate[1]
|
|
|
// }
|
|
// }
|
|
|
|
|
+ // else{
|
|
|
|
|
+ // signDateStart=''
|
|
|
|
|
+ // signDateEnd=''
|
|
|
|
|
+ // }
|
|
|
|
|
+ // this.$api.task
|
|
|
|
|
+ // .totalAmount({...this.formData,...this.pageData,...data,signDateStart,signDateEnd})
|
|
|
|
|
+ // .then(res => {
|
|
|
|
|
+ // if (res.code==200) {
|
|
|
|
|
+ // this.moneyList=res.data
|
|
|
|
|
+ // }
|
|
|
|
|
+ // else{
|
|
|
|
|
+ // this.$message.error(res.msg)
|
|
|
|
|
+ // }
|
|
|
|
|
+ // });
|
|
|
this.findPage(data);
|
|
this.findPage(data);
|
|
|
},
|
|
},
|
|
|
//列表数据
|
|
//列表数据
|
|
@@ -633,6 +657,9 @@ export default {
|
|
|
closdialogVisible() {
|
|
closdialogVisible() {
|
|
|
this.dialogVisible = false;
|
|
this.dialogVisible = false;
|
|
|
},
|
|
},
|
|
|
|
|
+ handleCloseBatch() {
|
|
|
|
|
+ this.dialogVisibleBatch = false;
|
|
|
|
|
+ },
|
|
|
handExport(){
|
|
handExport(){
|
|
|
let signDateStart=''
|
|
let signDateStart=''
|
|
|
let signDateEnd=''
|
|
let signDateEnd=''
|
|
@@ -662,38 +689,35 @@ export default {
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
- balanceFunPro(){
|
|
|
|
|
- if(( this.formData.year || this.formData.month || this.formData.date ) && this.$refs.templateTable.searchDataClone){
|
|
|
|
|
- let signDateStart=''
|
|
|
|
|
- let signDateEnd=''
|
|
|
|
|
- if(this.$refs.templateTable.searchDataClone && this.$refs.templateTable.searchDataClone.signDate && this.$refs.templateTable.searchDataClone.signDate.length>0){
|
|
|
|
|
- signDateStart=this.$refs.templateTable.searchDataClone.signDate[0]
|
|
|
|
|
- signDateEnd=this.$refs.templateTable.searchDataClone.signDate[1]
|
|
|
|
|
- }
|
|
|
|
|
- else{
|
|
|
|
|
- signDateStart=''
|
|
|
|
|
- signDateEnd=''
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ onSubmitBatch(){
|
|
|
this.$api.task
|
|
this.$api.task
|
|
|
- .batchPinBalance({...this.formData,...this.$refs.templateTable.searchDataClone,signDateStart,signDateEnd})
|
|
|
|
|
|
|
+ .batchPinBalance({...this.formData,selectIds:this.selectionList,...this.moneyList})
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
if (res.code==200) {
|
|
if (res.code==200) {
|
|
|
this.$message({
|
|
this.$message({
|
|
|
message: '批量结算成功',
|
|
message: '批量结算成功',
|
|
|
type: 'success'
|
|
type: 'success'
|
|
|
})
|
|
})
|
|
|
|
|
+ this.findPage()
|
|
|
|
|
+ this.dialogVisibleBatch=false
|
|
|
|
|
+ }
|
|
|
|
|
+ else{
|
|
|
|
|
+ this.$message.error(res.msg)
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+ balanceFunPro(){
|
|
|
|
|
+ this.dialogVisibleBatch=true
|
|
|
|
|
+ this.$api.task
|
|
|
|
|
+ .totalAmount({selectIds:this.selectionList})
|
|
|
|
|
+ .then(res => {
|
|
|
|
|
+ if (res.code==200) {
|
|
|
|
|
+ this.moneyList=res.data
|
|
|
}
|
|
}
|
|
|
else{
|
|
else{
|
|
|
this.$message.error(res.msg)
|
|
this.$message.error(res.msg)
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
- }
|
|
|
|
|
- else{
|
|
|
|
|
- this.$message.error('请先输入年月日和搜索条件!!!')
|
|
|
|
|
-
|
|
|
|
|
- }
|
|
|
|
|
- // this.dataValue=''
|
|
|
|
|
- // this.dialogVisible=true
|
|
|
|
|
},
|
|
},
|
|
|
handImport(file){
|
|
handImport(file){
|
|
|
var file = file.raw;
|
|
var file = file.raw;
|