|
|
@ -75,6 +75,13 @@ |
|
|
<el-option v-for="item in dictSalesman" :key="item.id" :label="item.surname" :value="item.surname" /> |
|
|
<el-option v-for="item in dictSalesman" :key="item.id" :label="item.surname" :value="item.surname" /> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div class="query"> |
|
|
|
|
|
<span>支付方式:</span> |
|
|
|
|
|
<el-select v-model="query.payModeIds" placeholder="请选择" style="margin-left: 10px" filterable clearable |
|
|
|
|
|
size="small" multiple collapse-tags> |
|
|
|
|
|
<el-option v-for="item in dict.payMode" :key="item.id" :label="item.displayName" :value="item.id" /> |
|
|
|
|
|
</el-select> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div style="display: block;width: 110px;"> |
|
|
<div style="display: block;width: 110px;"> |
|
|
@ -103,9 +110,11 @@ |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column label="营收金额" min-width="80" align="center"> |
|
|
<el-table-column label="营收金额" min-width="80" align="center"> |
|
|
<el-table-column prop="turnoverTotal" label="汇总" min-width="80" align="center" /> |
|
|
<el-table-column prop="turnoverTotal" label="汇总" min-width="80" align="center" /> |
|
|
<el-table-column v-for="(col,index) in asyncCols" :key="index" :prop="col" :label="col" min-width="80" align="center"> |
|
|
|
|
|
|
|
|
<el-table-column v-for="(col, index) in asyncCols" :key="index" :prop="col" :label="col" min-width="80" |
|
|
|
|
|
align="center"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<el-tooltip class="item" :content="`收款:${scope.row[col+'_p']} 退款:${scope.row[col+'_b']}`" placement="top"> |
|
|
|
|
|
|
|
|
<el-tooltip class="item" :content="`收款:${scope.row[col + '_p']} 退款:${scope.row[col + '_b']}`" |
|
|
|
|
|
placement="top"> |
|
|
<div v-if="scope.row[col] != 0 ? true : false">{{ scope.row[col] }}</div> |
|
|
<div v-if="scope.row[col] != 0 ? true : false">{{ scope.row[col] }}</div> |
|
|
</el-tooltip> |
|
|
</el-tooltip> |
|
|
</template> |
|
|
</template> |
|
|
@ -140,7 +149,6 @@ export default { |
|
|
medicalType: [], |
|
|
medicalType: [], |
|
|
personnelType: [], |
|
|
personnelType: [], |
|
|
dictSalesman: [], |
|
|
dictSalesman: [], |
|
|
|
|
|
|
|
|
query: { |
|
|
query: { |
|
|
dateType: '6', |
|
|
dateType: '6', |
|
|
startDate: '', |
|
|
startDate: '', |
|
|
@ -149,6 +157,7 @@ export default { |
|
|
medicalTypeIds: [], |
|
|
medicalTypeIds: [], |
|
|
personnelTypeIds: [], |
|
|
personnelTypeIds: [], |
|
|
salesmans: [], |
|
|
salesmans: [], |
|
|
|
|
|
payModeIds: [], |
|
|
// isMedicalTypeId: 'Y', |
|
|
// isMedicalTypeId: 'Y', |
|
|
isPreRegistration: 'N', |
|
|
isPreRegistration: 'N', |
|
|
isChild: 'Y', |
|
|
isChild: 'Y', |
|
|
@ -218,6 +227,12 @@ export default { |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
//支付方式 |
|
|
|
|
|
getapi("/api/app/pay-mode").then((res) => { |
|
|
|
|
|
if (res.code == 1) { |
|
|
|
|
|
this.dict.payMode = res.data; |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
//通用导出 |
|
|
//通用导出 |
|
|
@ -252,11 +267,9 @@ export default { |
|
|
//let body = deepCopy(this.query) |
|
|
//let body = deepCopy(this.query) |
|
|
postapi("/api/app/CustomerReport/GetCustomerOrgAmountReceivedStatistics", this.query).then(res => { |
|
|
postapi("/api/app/CustomerReport/GetCustomerOrgAmountReceivedStatistics", this.query).then(res => { |
|
|
if (res.code > -1) { |
|
|
if (res.code > -1) { |
|
|
if (Array.isArray(res.data) && res.data.length > 0) { |
|
|
|
|
|
// 动态生成新的显示数据 |
|
|
// 动态生成新的显示数据 |
|
|
this.makeDispData(res.data) |
|
|
this.makeDispData(res.data) |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
@ -264,6 +277,9 @@ export default { |
|
|
makeDispData(orgData) { |
|
|
makeDispData(orgData) { |
|
|
this.tableData = [] |
|
|
this.tableData = [] |
|
|
this.asyncCols = [] |
|
|
this.asyncCols = [] |
|
|
|
|
|
// 没有数据返回 |
|
|
|
|
|
if (!(Array.isArray(orgData) && orgData.length > 0)) return |
|
|
|
|
|
|
|
|
orgData.forEach(e => { |
|
|
orgData.forEach(e => { |
|
|
if (this.query.isChild == 'Y') { |
|
|
if (this.query.isChild == 'Y') { |
|
|
e.customerOrgName = (e.customerOrgName == e.departmentName ? e.customerOrgName : e.customerOrgName + '--' + e.departmentName) |
|
|
e.customerOrgName = (e.customerOrgName == e.departmentName ? e.customerOrgName : e.customerOrgName + '--' + e.departmentName) |
|
|
|