|
@@ -7,14 +7,14 @@
|
|
<el-input
|
|
<el-input
|
|
v-model="search.keyword"
|
|
v-model="search.keyword"
|
|
style="width: 250px"
|
|
style="width: 250px"
|
|
- placeholder="请输入资方名称 /授信编号"
|
|
|
|
|
|
+ placeholder="请输入店铺ID/店铺名称"
|
|
clearable
|
|
clearable
|
|
/>
|
|
/>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div>
|
|
<el-select
|
|
<el-select
|
|
v-model="search.capitalStatus"
|
|
v-model="search.capitalStatus"
|
|
- placeholder="请选择资方状态"
|
|
|
|
|
|
+ placeholder="请选择平台"
|
|
clearable
|
|
clearable
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
>
|
|
>
|
|
@@ -28,24 +28,20 @@
|
|
</el-select>
|
|
</el-select>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div>
|
|
- <el-date-picker
|
|
|
|
- v-model="search.creditStartDate"
|
|
|
|
- type="date"
|
|
|
|
- placeholder="请选择授信生效日"
|
|
|
|
- value-format="yyyy-MM-dd"
|
|
|
|
- clearable
|
|
|
|
- >
|
|
|
|
- </el-date-picker>
|
|
|
|
- </div>
|
|
|
|
- <div>
|
|
|
|
- <el-date-picker
|
|
|
|
- v-model="search.creditEndDate"
|
|
|
|
- type="date"
|
|
|
|
- placeholder="请选择授信到期"
|
|
|
|
- value-format="yyyy-MM-dd"
|
|
|
|
|
|
+ <el-select
|
|
|
|
+ v-model="search.capitalStatus"
|
|
|
|
+ placeholder="请选择账号绑定状态"
|
|
clearable
|
|
clearable
|
|
|
|
+ style="width: 100%"
|
|
>
|
|
>
|
|
- </el-date-picker>
|
|
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in constant.capitalStatus"
|
|
|
|
+ :key="item.code"
|
|
|
|
+ :label="item.name"
|
|
|
|
+ :value="item.code"
|
|
|
|
+ >
|
|
|
|
+ </el-option>
|
|
|
|
+ </el-select>
|
|
</div>
|
|
</div>
|
|
<div class="leftBtn">
|
|
<div class="leftBtn">
|
|
<el-button type="primary" @click="fetchData">查询</el-button>
|
|
<el-button type="primary" @click="fetchData">查询</el-button>
|
|
@@ -64,7 +60,80 @@
|
|
height: 'calc(100vh - 410px)'
|
|
height: 'calc(100vh - 410px)'
|
|
}"
|
|
}"
|
|
/>
|
|
/>
|
|
|
|
+ <cy-dialog ref="editStatus" title="修正账户绑定状态" width="800px">
|
|
|
|
+ <el-form
|
|
|
|
+ ref="editRuleForm"
|
|
|
|
+ :model="editRuleForm"
|
|
|
|
+ :rules="editRules"
|
|
|
|
+ label-position="top"
|
|
|
|
+ label-width="150px"
|
|
|
|
+ class="rule-form-orange"
|
|
|
|
+ >
|
|
|
|
+ <el-form-item label="账户绑定状态" prop="payBackMethod" style="width: 100%">
|
|
|
|
+ <el-select
|
|
|
|
+ v-model="editRuleForm.payBackMethod"
|
|
|
|
+ placeholder="请选择账户绑定状态"
|
|
|
|
+ clearable
|
|
|
|
+ style="width: 100%"
|
|
|
|
+ :disabled="disabled"
|
|
|
|
+ >
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in constant.payBackMethod"
|
|
|
|
+ :key="item.code"
|
|
|
|
+ :label="item.name"
|
|
|
|
+ :value="item.code"
|
|
|
|
+ >
|
|
|
|
+ </el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="备注" prop="donorAccountName" style="width: 100%">
|
|
|
|
+ <el-input v-model="editRuleForm.donorAccountName" placeholder="请输入备注" />
|
|
|
|
+ </el-form-item>
|
|
|
|
+
|
|
|
|
+ </el-form>
|
|
|
|
+ <div class="submit-btn">
|
|
|
|
+ <el-button @click="$refs.editStatus.show = false">关闭</el-button>
|
|
|
|
+ <el-button type="primary" @click="submit('submit')">确定</el-button>
|
|
|
|
+ </div>
|
|
|
|
+ </cy-dialog>
|
|
|
|
+ <cy-dialog ref="changeBind" title="换绑账号" width="800px">
|
|
|
|
+ <el-form
|
|
|
|
+ ref="changeRuleForm"
|
|
|
|
+ :model="changeRuleForm"
|
|
|
|
+ :rules="changeRules"
|
|
|
|
+ label-position="top"
|
|
|
|
+ label-width="150px"
|
|
|
|
+ class="rule-form-orange"
|
|
|
|
+ >
|
|
|
|
+ <el-form-item label="换绑账号" prop="payBackMethod" style="width: 100%">
|
|
|
|
+ <el-select
|
|
|
|
+ v-model="editRuleForm.payBackMethod"
|
|
|
|
+ placeholder="请选择换绑账号"
|
|
|
|
+ clearable
|
|
|
|
+ style="width: 100%"
|
|
|
|
+ :disabled="disabled"
|
|
|
|
+ >
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in constant.payBackMethod"
|
|
|
|
+ :key="item.code"
|
|
|
|
+ :label="item.name"
|
|
|
|
+ :value="item.code"
|
|
|
|
+ >
|
|
|
|
+ </el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="换绑账户名称" prop="donorAccountName" style="width: 100%">
|
|
|
|
+ <el-input v-model="editRuleForm.donorAccountName" placeholder="请输入换绑账户名称" />
|
|
|
|
+ </el-form-item>
|
|
|
|
+
|
|
|
|
+ </el-form>
|
|
|
|
+ <div class="submit-btn">
|
|
|
|
+ <el-button @click="$refs.changeBind.show = false">关闭</el-button>
|
|
|
|
+ <el-button type="primary" @click="submit('submit')">确定</el-button>
|
|
|
|
+ </div>
|
|
|
|
+ </cy-dialog>
|
|
</div>
|
|
</div>
|
|
|
|
+
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
@@ -74,7 +143,7 @@ export default {
|
|
return {
|
|
return {
|
|
search: {},
|
|
search: {},
|
|
total: 0,
|
|
total: 0,
|
|
- tableData: [],
|
|
|
|
|
|
+ tableData: [{ capitalName: '11111' }],
|
|
columns: [
|
|
columns: [
|
|
{
|
|
{
|
|
label: '序号',
|
|
label: '序号',
|
|
@@ -127,17 +196,99 @@ export default {
|
|
},
|
|
},
|
|
{
|
|
{
|
|
label: '操作',
|
|
label: '操作',
|
|
- prop: 'capitalName',
|
|
|
|
- showTooltip: true
|
|
|
|
|
|
+ render: (h, row) => {
|
|
|
|
+ const btnList = [
|
|
|
|
+ {
|
|
|
|
+ msg: '刷新账户绑定状态 ',
|
|
|
|
+ icon: 'iconfont icon-shuaxin',
|
|
|
|
+ power: '',
|
|
|
|
+ tabPower: [],
|
|
|
|
+ rowPower: [],
|
|
|
|
+ category: 'updateBind'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ msg: '换绑',
|
|
|
|
+ icon: 'iconfont icon-huanbang',
|
|
|
|
+ power: '',
|
|
|
|
+ tabPower: [],
|
|
|
|
+ rowPower: [],
|
|
|
|
+ category: 'changeBind'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ msg: '解绑',
|
|
|
|
+ icon: 'iconfont icon-jiebang',
|
|
|
|
+ power: '',
|
|
|
|
+ tabPower: [],
|
|
|
|
+ rowPower: [],
|
|
|
|
+ category: 'unbind'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ msg: '修正绑定状态',
|
|
|
|
+ icon: 'iconfont icon-xiugai',
|
|
|
|
+ power: '',
|
|
|
|
+ tabPower: [],
|
|
|
|
+ rowPower: [],
|
|
|
|
+ category: 'editStatus'
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
|
|
+ const options = btnList.map(item => {
|
|
|
|
+ // this.tablePower({ item, tab: this.activeName, row }) &&
|
|
|
|
+ return (
|
|
|
|
+ <el-tooltip class='item' effect='dark' content={item.msg} placement='top'>
|
|
|
|
+ <span class='table-icon-box' v-power={item.power}>
|
|
|
|
+ <i class={item.icon} onClick={() => { this.handlerOperate(item.category, row) }}></i>
|
|
|
|
+ </span>
|
|
|
|
+ </el-tooltip>
|
|
|
|
+ )
|
|
|
|
+ })
|
|
|
|
+ return <div>{ options }</div>
|
|
|
|
+ },
|
|
|
|
+ width: 160
|
|
}
|
|
}
|
|
- ]
|
|
|
|
|
|
+ ],
|
|
|
|
+ editRuleForm: {},
|
|
|
|
+ editRules: {},
|
|
|
|
+ changeRuleForm: {},
|
|
|
|
+ changeRules: {}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
- ...mapGetters(['constant'])
|
|
|
|
|
|
+ ...mapGetters(['constant']),
|
|
|
|
+ tablePower() {
|
|
|
|
+ return ({ item, tab, row }) => {
|
|
|
|
+ const { tabPower, rowPower } = item
|
|
|
|
+ if (rowPower && rowPower.length) {
|
|
|
|
+ if (tabPower.includes(tab) && rowPower.includes(row.capitalStatus)) {
|
|
|
|
+ return true
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ if (tabPower.includes(tab)) {
|
|
|
|
+ return true
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
this.$store.dispatch('getConstant', ['capitalStatus'])
|
|
this.$store.dispatch('getConstant', ['capitalStatus'])
|
|
|
|
+ },
|
|
|
|
+ methods: {
|
|
|
|
+ handlerOperate(type, row) {
|
|
|
|
+ if (type === 'editStatus' || type === 'changeBind') {
|
|
|
|
+ this.$refs[type].show = true
|
|
|
|
+ }
|
|
|
|
+ if (type === 'unbind') {
|
|
|
|
+ this.unBind()
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ unBind() {
|
|
|
|
+ this.$confirm('解绑后,将不能收到该店铺的回款,确认操作吗?', '解绑账号', {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ cancelButtonText: '取消'
|
|
|
|
+ }).then(() => {
|
|
|
|
+
|
|
|
|
+ })
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|