|
@@ -7,8 +7,48 @@
|
|
|
v-bind="{ stripe: true, size: 'small', border: true, fit: true, highlightCurrentRow: true }"
|
|
|
>
|
|
|
<el-table-column align="center" min-width="80" prop="recordId" label="ID" show-overflow-tooltip />
|
|
|
- <!-- <el-table-column align="center" min-width="150" prop="acquirerId" label="得到方ID" show-overflow-tooltip /> -->
|
|
|
- <el-table-column align="center" min-width="100" label="类型" prop="type">
|
|
|
+ <el-table-column align="center" min-width="120" label="来源用户ID" prop="buyerUserId">
|
|
|
+ <template slot-scope="{ row }">
|
|
|
+ <div>
|
|
|
+ <span>{{ row.buyerUserId }}</span>
|
|
|
+ <el-button
|
|
|
+ v-if="formData.relatedBuyerUsers.find((item) => item.buyerUserId === row.buyerUserId)"
|
|
|
+ style="margin-left: 14px;"
|
|
|
+ type="warning" size="mini"
|
|
|
+ @click="handleOpenUserDetails(row.buyerUserId)"
|
|
|
+ >
|
|
|
+ 详情
|
|
|
+ </el-button>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <!-- <el-table-column align="center" width="100" label="来源用户头像" prop="imgOne">
|
|
|
+ <template slot-scope="{ row }">
|
|
|
+ <el-image
|
|
|
+ v-if="row.imgOne" lazy :src="common.seamingImgUrl(row.imgOne)"
|
|
|
+ style="width:40px; height:40px" fit="cover"
|
|
|
+ :preview-src-list="[ common.seamingImgUrl(row.imgOne) ]"
|
|
|
+ />
|
|
|
+ <span v-else>--</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column align="center" min-width="150" prop="userNameOne" label="来源用户名称" show-overflow-tooltip /> -->
|
|
|
+ <el-table-column align="center" min-width="120" label="目标用户ID" prop="acquirerId">
|
|
|
+ <template slot-scope="{ row }">
|
|
|
+ <div>
|
|
|
+ <span>{{ row.acquirerId }}</span>
|
|
|
+ <el-button
|
|
|
+ v-if="formData.relatedBuyerUsers.find((item) => item.buyerUserId === row.acquirerId)"
|
|
|
+ style="margin-left: 14px;"
|
|
|
+ type="warning" size="mini"
|
|
|
+ @click="handleOpenUserDetails(row.acquirerId)"
|
|
|
+ >
|
|
|
+ 详情
|
|
|
+ </el-button>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column align="center" min-width="100" label="来源类型" prop="type">
|
|
|
<template slot-scope="{ row }">
|
|
|
<span v-if="row.type === 1">关系链</span>
|
|
|
<span v-else-if="row.type === 2">商城</span>
|
|
@@ -20,7 +60,7 @@
|
|
|
<span v-else>--</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" min-width="100" label="变化金额" prop="amount">
|
|
|
+ <el-table-column align="center" min-width="100" label="分配佣金" prop="amount">
|
|
|
<template slot-scope="{ row }">
|
|
|
<span>
|
|
|
{{ [5, 7].includes(row.type) ? '-' : [1, 2, 3, 4, 6].includes(row.type) ? '+' : '' }}
|
|
@@ -29,21 +69,20 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" min-width="150" prop="orderSn" label="订单编号" show-overflow-tooltip />
|
|
|
- <el-table-column align="center" min-width="100" prop="totalAmount" label="订单总额" show-overflow-tooltip />
|
|
|
+ <el-table-column align="center" min-width="100" prop="totalAmount" label="佣金总额" show-overflow-tooltip />
|
|
|
<el-table-column align="center" min-width="150" prop="createTime" label="创建时间" show-overflow-tooltip />
|
|
|
- <el-table-column align="center" min-width="80" prop="buyerUserId" label="用户ID" show-overflow-tooltip />
|
|
|
- <el-table-column align="center" width="100" label="来源用户头像" prop="imgOne">
|
|
|
+ <el-table-column align="center" min-width="100" label="佣金比例" prop="proportion">
|
|
|
<template slot-scope="{ row }">
|
|
|
- <el-image
|
|
|
- v-if="row.imgOne" lazy :src="common.seamingImgUrl(row.imgOne)"
|
|
|
- style="width:40px; height:40px" fit="cover"
|
|
|
- :preview-src-list="[ common.seamingImgUrl(row.imgOne) ]"
|
|
|
- />
|
|
|
- <span v-else>--</span>
|
|
|
+ <span>
|
|
|
+ {{ typeof row.proportion === Number ? `${row.proportion * 100}%` : '--' }}
|
|
|
+ </span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" min-width="150" prop="userNameOne" label="来源用户名称" show-overflow-tooltip />
|
|
|
+ <el-table-column align="center" min-width="150" prop="transactionSn" label="佣金支付流水" show-overflow-tooltip />
|
|
|
</el-table>
|
|
|
+
|
|
|
+ <!-- 用户详情 -->
|
|
|
+ <UserDetails ref="UserDetails" />
|
|
|
</div>
|
|
|
<template #footer>
|
|
|
<span class="dialog-footer">
|
|
@@ -54,9 +93,13 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import UserDetails from './UserDetails'
|
|
|
|
|
|
export default {
|
|
|
name: 'RelatedCommissionLogs',
|
|
|
+ components: {
|
|
|
+ UserDetails
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
modalOptions: {
|
|
@@ -66,7 +109,8 @@ export default {
|
|
|
},
|
|
|
visible: false,
|
|
|
formData: {
|
|
|
- relatedCommissionLogsList: []
|
|
|
+ relatedCommissionLogsList: [],
|
|
|
+ relatedBuyerUsers: []
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -74,12 +118,19 @@ export default {
|
|
|
handleClose() {
|
|
|
this.visible = false
|
|
|
},
|
|
|
- handleOpen(params = []) {
|
|
|
+ handleOpen(params = [], { userList = [] }) {
|
|
|
this.formData.relatedCommissionLogsList = params
|
|
|
+ this.formData.relatedBuyerUsers = userList
|
|
|
this.visible = true
|
|
|
this.$forceUpdate()
|
|
|
// this.$refs.formData && this.$refs.formData.resetFields()
|
|
|
},
|
|
|
+ handleOpenUserDetails(buyerUserId) {
|
|
|
+ const userMsg = this.formData.relatedBuyerUsers.find((item) => item.buyerUserId === buyerUserId)
|
|
|
+ if (userMsg) {
|
|
|
+ this.$refs.UserDetails && this.$refs.UserDetails.handleOpen(userMsg)
|
|
|
+ }
|
|
|
+ },
|
|
|
handleSubmit() {
|
|
|
}
|
|
|
}
|