|
|
@ -61,7 +61,16 @@ |
|
|
|
</el-switch> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="渠道" align="center" prop="platformChannelName" /> |
|
|
|
<!-- <el-table-column label="渠道" align="center" prop="platformChannelName" /> --> |
|
|
|
|
|
|
|
<el-table-column :label="'渠道'" align="center" prop="platformChannelName" min-width="180"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span v-for="item, index in scope.row.channelNames" :key="index"> |
|
|
|
{{ item }} |
|
|
|
</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
<el-table-column label="所属码商" align="center" prop="carddealerName" /> |
|
|
|
<el-table-column label="银行名称" align="center" prop="bankName" /> |
|
|
|
<el-table-column label="姓名" align="center" prop="cardHolder" /> |
|
|
@ -140,6 +149,8 @@ |
|
|
|
|
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right" min-width="150"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button size="small" type="text" @click="handleChannel(scope.row)" style="color: #006eff">分配通道</el-button> |
|
|
|
|
|
|
|
<el-button size="small" type="text" @click="handleKill(scope.row)" style="color: #006eff">清除</el-button> |
|
|
|
<el-button size="small" type="text" @click="handleDelete(scope.row)" style="color: #006eff">删除</el-button> |
|
|
|
<el-button size="small" type="text" @click="handleAudit(scope.row, 1)" style="color: #006eff" |
|
|
@ -172,6 +183,26 @@ |
|
|
|
<el-button @click="cancel">取 消</el-button> |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<!-- openChannel --> |
|
|
|
<el-dialog :title="title" :visible.sync="openChannel" width="500px" append-to-body> |
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="110px"> |
|
|
|
<el-form-item label="通道" prop="ids"> |
|
|
|
<el-select v-model="form.ids" multiple placeholder="请选择通道" clearable size="medium" @change="changeChannel"> |
|
|
|
<el-option v-for="(item, i) in findChannelList" :key="i" :label="item.channelName" |
|
|
|
:value="item.id"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
|
|
</el-form> |
|
|
|
<div slot="footer" class="dialog-footer"> |
|
|
|
<el-button type="primary" @click="submitFormChannel('form')">保 存</el-button> |
|
|
|
<el-button @click="cancel">取 消</el-button> |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
@ -203,10 +234,12 @@ export default { |
|
|
|
total: 0, |
|
|
|
// 卡商-银行卡表格数据 |
|
|
|
infoList: [], |
|
|
|
findChannelList: [], |
|
|
|
// 弹出层标题 |
|
|
|
title: "", |
|
|
|
// 是否显示弹出层 |
|
|
|
open: false, |
|
|
|
openChannel: false, |
|
|
|
// 查询参数 |
|
|
|
queryParams: { |
|
|
|
pageNum: 1, |
|
|
@ -293,12 +326,14 @@ export default { |
|
|
|
this.getList(); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
|
|
|
|
changeChannel(e) { |
|
|
|
this.$forceUpdate() |
|
|
|
}, |
|
|
|
tableRowClassName({ row, rowIndex }) { |
|
|
|
if (row.dayReceiveMax == row.todayReceived) { |
|
|
|
return "greenOrder"; |
|
|
|
} |
|
|
|
if(row.singleReceiveMax == row.singleMax){ |
|
|
|
if (row.singleReceiveMax == row.singleMax) { |
|
|
|
return "redOrder"; |
|
|
|
} |
|
|
|
}, |
|
|
@ -347,6 +382,7 @@ export default { |
|
|
|
// 取消按钮 |
|
|
|
cancel() { |
|
|
|
this.open = false; |
|
|
|
this.openChannel = false; |
|
|
|
this.reset(); |
|
|
|
}, |
|
|
|
// 表单重置 |
|
|
@ -372,6 +408,23 @@ export default { |
|
|
|
this.single = selection.length !== 1 |
|
|
|
this.multiple = !selection.length |
|
|
|
}, |
|
|
|
/** 分配通道操作 */ |
|
|
|
handleChannel(row) { |
|
|
|
this.reset(); |
|
|
|
if(row.channelIds.length){ |
|
|
|
this.form.ids=row.channelIds |
|
|
|
} |
|
|
|
this.form.cardId = row.id |
|
|
|
common_api.findChannelListAll({ |
|
|
|
channelType: 1, |
|
|
|
carddealerId: row.carddealerId |
|
|
|
}).then(response => { |
|
|
|
this.findChannelList = response.data |
|
|
|
this.openChannel = true; |
|
|
|
this.title = "分配通道"; |
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
/** 新增按钮操作 */ |
|
|
|
handleAdd() { |
|
|
|
this.reset(); |
|
|
@ -391,6 +444,28 @@ export default { |
|
|
|
}); |
|
|
|
}, |
|
|
|
/** 提交按钮 */ |
|
|
|
submitFormChannel() { |
|
|
|
if (!this.form.ids) { |
|
|
|
this.$message.error("请选择通道"); |
|
|
|
return; |
|
|
|
} |
|
|
|
if (!this.form.ids.length) { |
|
|
|
this.$message.error("请选择通道"); |
|
|
|
return; |
|
|
|
} |
|
|
|
let ids = this.form.ids.join(',') |
|
|
|
payShouCard.allocationChannel({ |
|
|
|
ids: ids, |
|
|
|
cardId: this.form.cardId |
|
|
|
}).then((res) => { |
|
|
|
if (res.code === 200) { |
|
|
|
this.$message.success("分配成功"); |
|
|
|
this.openChannel = false |
|
|
|
this.getList() |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
/** 提交按钮 */ |
|
|
|
submitForm() { |
|
|
|
this.$refs["form"].validate(valid => { |
|
|
|
if (valid) { |
|
|
@ -461,6 +536,7 @@ export default { |
|
|
|
.greenOrder { |
|
|
|
background: #E9FEEA !important; |
|
|
|
} |
|
|
|
|
|
|
|
.redOrder { |
|
|
|
background: #FDF2F2 !important; |
|
|
|
} |
|
|
|