Commit bf738dca by 前端

feat 通联版本提交

1 parent 91fdb2cc
...@@ -106,3 +106,9 @@ export function insertOrUpdatePrivacyAgreement(data) { ...@@ -106,3 +106,9 @@ export function insertOrUpdatePrivacyAgreement(data) {
data.method = `${path2}privacyAgreement.insertOrUpdate` data.method = `${path2}privacyAgreement.insertOrUpdate`
return request(data, "post") return request(data, "post")
} }
// 获取支付渠道列表
export function paymentChannelList(data) {
data.method = `${path2}paymentChannel.list`
return request(data, "post")
}
...@@ -112,3 +112,9 @@ export function updateAccountMode(data) { ...@@ -112,3 +112,9 @@ export function updateAccountMode(data) {
data.method = `${djPath}yseMerchant.updateReceiptMode` data.method = `${djPath}yseMerchant.updateReceiptMode`
return request(data, "post") return request(data, "post")
} }
// 分页查询商户各支付渠道的虚账信息
export function accountPage(data) {
data.method = `${djPath2}merchant.paymentChannel.account.page`
return request(data, "post")
}
...@@ -1329,3 +1329,20 @@ export const transferStatusOpt = [ ...@@ -1329,3 +1329,20 @@ export const transferStatusOpt = [
{ confId: 1, confValue: "推送付款单" }, { confId: 1, confValue: "推送付款单" },
{ confId: 2, confValue: "重推付款单" } { confId: 2, confValue: "重推付款单" }
] ]
// 申请虚拟账户成本-通联 证件类型
export const legalCertTypeOpt = [
{ confId: "00", confValue: "身份证" },
{ confId: "01", confValue: "中国护照" },
{ confId: "03", confValue: "警官证" },
{ confId: "04", confValue: "户口簿" },
{ confId: "05", confValue: "临时身份证" },
{ confId: "07", confValue: "港澳通行证" },
{ confId: "08", confValue: "台胞通行证" },
{ confId: "14", confValue: "军官证" },
{ confId: "16", confValue: "军人士兵证" },
{ confId: "17", confValue: "武警士兵证" },
{ confId: "19", confValue: "营业执照" },
{ confId: "24", confValue: "外国人居留证" },
{ confId: "99", confValue: "其他证件" }
]
...@@ -76,8 +76,8 @@ service.interceptors.request.use( ...@@ -76,8 +76,8 @@ service.interceptors.request.use(
const type = Object.prototype.toString.call(config.data) const type = Object.prototype.toString.call(config.data)
const methodList = [ const methodList = [
"dj.api.common.uploadImg", "dj.api.common.uploadImg",
"dj.api.common.ocr.recognition", "dj.api.common.ocr.recognition"
"dj.api.smartcarlife.sms.sendSmsCode" // "dj.api.smartcarlife.sms.sendSmsCode"
] ]
if ( if (
type == "[object Object]" && type == "[object Object]" &&
......
...@@ -352,6 +352,11 @@ export const routerName = { ...@@ -352,6 +352,11 @@ export const routerName = {
authId: "90611", authId: "90611",
name: "申请虚拟账户成本", name: "申请虚拟账户成本",
parentId: "90610" parentId: "90610"
},
{
authId: "90631",
name: "申请虚拟账户成本-通联",
parentId: "90610"
} }
] ]
}, },
...@@ -408,6 +413,18 @@ export const routerName = { ...@@ -408,6 +413,18 @@ export const routerName = {
}, },
component: _import("systemConfig/accountNew/applyAccount") component: _import("systemConfig/accountNew/applyAccount")
}, },
90631: {
path: "/applyAccount_tonglian",
name: "applyAccount_tonglian",
meta: {
title: "申请虚拟账户成本",
authId: "90631",
parentId: "90610",
cache: false,
activePath: "/applyAccount_tonglian"
},
component: _import("systemConfig/accountNew/applyAccount_tonglian")
},
90612: { 90612: {
path: "/sceneCategoryManage", path: "/sceneCategoryManage",
name: "sceneCategoryManage", name: "sceneCategoryManage",
......
...@@ -4,16 +4,26 @@ ...@@ -4,16 +4,26 @@
<!-- class="order-detail" --> <!-- class="order-detail" -->
<d2-container> <d2-container>
<!-- <div class="offline-account"> --> <!-- <div class="offline-account"> -->
<div class="header" slot="header" style="padding: 10px 20px;"> <div class="header"
<d2-search ref="showSearch" class="show-search" :search-form="searchForm" :search-select-obj="searchSelectObj" :form-data="showFormData" /> slot="header"
style="padding: 10px 20px;">
<d2-search ref="showSearch"
class="show-search"
:search-form="searchForm"
:search-select-obj="searchSelectObj"
:form-data="showFormData" />
<div class="up-btns"> <div class="up-btns">
<el-button @click="handleSearch" size="small" type="primary"> <el-button @click="handleSearch"
size="small"
type="primary">
查询 查询
</el-button> </el-button>
<el-button size="small" @click="handleReset"> <el-button size="small"
@click="handleReset">
重置 重置
</el-button> </el-button>
<el-button size="small" @click="handleRecord"> <el-button size="small"
@click="handleRecord">
返回 返回
</el-button> </el-button>
</div> </div>
...@@ -22,10 +32,16 @@ ...@@ -22,10 +32,16 @@
<d2-container> --> <d2-container> -->
<div class="d2-container-content"> <div class="d2-container-content">
<d2-table-header :left-span="13"> <d2-table-header :left-span="13">
<span slot="left" class="leftSpan">共<span class="count-txt">{{ countObj.totalCount }}</span>条交易记录,总金额<span class="count-txt">{{ countObj.totalAmount }}</span>元,已补录<span class="count-txt">{{ countObj.inputtedCount <span slot="left"
}}</span>条,未补录<span class="count-txt">{{ countObj.waitInputCount }}</span>条,未关联<span class="count-txt">{{ class="leftSpan">共<span
class="count-txt">{{ countObj.totalCount }}</span>条交易记录,总金额<span
class="count-txt">{{ countObj.totalAmount }}</span>元,已补录<span class="count-txt">{{ countObj.inputtedCount
}}</span>条,未补录<span
class="count-txt">{{ countObj.waitInputCount }}</span>条,未关联<span
class="count-txt">{{
countObj.notAssociatedCount }}</span>条,无需补录<span class="count-txt">{{ countObj.needNoSupplementCount countObj.notAssociatedCount }}</span>条,无需补录<span class="count-txt">{{ countObj.needNoSupplementCount
}}</span>条,待确认补录<span class="count-txt">{{ countObj.waitConfirmInputCount }}</span>条。</span> }}</span>条,待确认补录<span
class="count-txt">{{ countObj.waitConfirmInputCount }}</span>条。</span>
<!-- <el-button type="primary" @click="batchRecord"> <!-- <el-button type="primary" @click="batchRecord">
批量确认补录 批量确认补录
</el-button> --> </el-button> -->
...@@ -39,16 +55,28 @@ ...@@ -39,16 +55,28 @@
<el-button type="primary" @click="handleExport"> <el-button type="primary" @click="handleExport">
导出 导出
</el-button> --> </el-button> -->
<auth-button :show-btn-ids="['9040206', '9040201', '9040202', '9040203', '9040205']" category="Button" /> <auth-button :show-btn-ids="['9040206', '9040201', '9040202', '9040203', '9040205']"
category="Button" />
</d2-table-header> </d2-table-header>
<!-- :beforeSearchFn="beforeSearchFn" --> <!-- :beforeSearchFn="beforeSearchFn" -->
<d2-table ref="recordTable" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams" :before-search-fn="beforeSearchFn" :selectable-fn="selectableFn" @setTableFinishFun="setTableFinishFun"> <d2-table ref="recordTable"
<div slot="inputtedOrderCode" slot-scope="scope"> :get-list-api="getListApi"
<div v-for="(item, idx) in scope.scope.inputtedOrderCodeList" :key="idx"> :search-form="searchFormSearch"
<span class="code-link" @click="orderDetail(scope.scope)">{{item}}</span> :table-params="tableParams"
<span v-if="idx != (scope.scope.inputtedOrderCodeList.length - 1)">,</span></div> :before-search-fn="beforeSearchFn"
:selectable-fn="selectableFn"
@setTableFinishFun="setTableFinishFun">
<div slot="inputtedOrderCode"
slot-scope="scope">
<div v-for="(item, idx) in scope.scope.inputtedOrderCodeList"
:key="idx">
<span class="code-link"
@click="orderDetail(scope.scope)">{{ item }}</span>
<span v-if="idx != (scope.scope.inputtedOrderCodeList.length - 1)">,</span>
</div> </div>
<template slot="auth-button" slot-scope="scope"> </div>
<template slot="auth-button"
slot-scope="scope">
<!-- 已分帐无可操作内容 --> <!-- 已分帐无可操作内容 -->
<div v-if="scope.scope.distributeStatus != '1'"> <div v-if="scope.scope.distributeStatus != '1'">
<!-- <el-button type="text" v-if="scope.scope.inputStatus == '1'" @click="orderDetail(scope.scope)"> <!-- <el-button type="text" v-if="scope.scope.inputStatus == '1'" @click="orderDetail(scope.scope)">
...@@ -95,15 +123,31 @@ ...@@ -95,15 +123,31 @@
</div> </div>
</d2-container> </d2-container>
<!-- 批量修改所属园区店 --> <!-- 批量修改所属园区店 -->
<update-yqMerchant-dialog :merchant-visible="merchantDialogVisible" :id-list="ids" v-if="merchantDialogVisible" @dialogClose="dialogClose" /> <update-yqMerchant-dialog :merchant-visible="merchantDialogVisible"
:id-list="ids"
v-if="merchantDialogVisible"
@dialogClose="dialogClose" />
<!-- 关联活动订单 --> <!-- 关联活动订单 -->
<relat-activity-order-dialog :relat-activity-visible="relatActivityVisible" :order-id="orderId" v-if="relatActivityVisible" @dialogClose="relatDialogClose" /> <relat-activity-order-dialog :relat-activity-visible="relatActivityVisible"
:order-id="orderId"
v-if="relatActivityVisible"
@dialogClose="relatDialogClose" />
<!-- 选择分账规则 --> <!-- 选择分账规则 -->
<choose-rule-dialog :rule-visible="ruleVisible" :record-info="recordInfo" v-if="ruleVisible" @dialogClose="ruleDialogClose" /> <choose-rule-dialog :rule-visible="ruleVisible"
:record-info="recordInfo"
v-if="ruleVisible"
@dialogClose="ruleDialogClose" />
<!-- 选择分账规则 --> <!-- 选择分账规则 -->
<rule-info-dialog :rule-info-visible="ruleInfoVisible" :record-info="recordInfo" v-if="ruleInfoVisible" @dialogClose="ruleInfoDialogClose" /> <rule-info-dialog :rule-info-visible="ruleInfoVisible"
:record-info="recordInfo"
v-if="ruleInfoVisible"
@dialogClose="ruleInfoDialogClose" />
<!-- 发起退款 --> <!-- 发起退款 -->
<new-sign-refund-dialog :sign-refund-visible="signRefundVisible" :order-list="infoList" :order-type="2" v-if="signRefundVisible" @dialogClose="refundDialogClose" /> <new-sign-refund-dialog :sign-refund-visible="signRefundVisible"
:order-list="infoList"
:order-type="2"
v-if="signRefundVisible"
@dialogClose="refundDialogClose" />
</div> </div>
</template> </template>
...@@ -119,6 +163,7 @@ import relatActivityOrderDialog from './relatActivityOrderDialog' ...@@ -119,6 +163,7 @@ import relatActivityOrderDialog from './relatActivityOrderDialog'
import chooseRuleDialog from './chooseRuleDialog' import chooseRuleDialog from './chooseRuleDialog'
import ruleInfoDialog from './ruleInfoDialog' import ruleInfoDialog from './ruleInfoDialog'
import newSignRefundDialog from './components/newSignRefundDialog' import newSignRefundDialog from './components/newSignRefundDialog'
import { paymentChannelList } from '@api/index'
const clonePayTypeList = deepClone(payTypeList) const clonePayTypeList = deepClone(payTypeList)
clonePayTypeList.splice(1, 1) clonePayTypeList.splice(1, 1)
export default { export default {
...@@ -143,7 +188,8 @@ export default { ...@@ -143,7 +188,8 @@ export default {
payType: '', payType: '',
shopMerchantId: '', shopMerchantId: '',
distributeStatus: '', distributeStatus: '',
refundStatus: '' refundStatus: '',
paymentChannelId: ''
}, },
searchFormSearch: {}, searchFormSearch: {},
searchSelectObj: { searchSelectObj: {
...@@ -251,6 +297,14 @@ export default { ...@@ -251,6 +297,14 @@ export default {
optionId: 'confId', optionId: 'confId',
optionLabel: 'confLabel', optionLabel: 'confLabel',
optionsName: 'refundStatusList' optionsName: 'refundStatusList'
}, {
label: '支付渠道',
name: 'paymentChannelId',
type: 'select',
optionList: [],
optionId: 'paymentChannelId',
optionLabel: 'paymentChannelName',
optionsName: 'payChannelList'
}], }],
getListApi: waitinputorderPage, getListApi: waitinputorderPage,
tableParams: { tableParams: {
...@@ -281,6 +335,10 @@ export default { ...@@ -281,6 +335,10 @@ export default {
return cellValue.accountDate ? Util.dateFormate(cellValue.accountDate, 'YYYY-MM-DD HH:mm:ss') : '' return cellValue.accountDate ? Util.dateFormate(cellValue.accountDate, 'YYYY-MM-DD HH:mm:ss') : ''
} }
}, { }, {
label: '支付渠道',
prop: 'paymentChannelName',
width: '150px'
}, {
label: '收款来源', label: '收款来源',
prop: 'payType', prop: 'payType',
width: '100px', width: '100px',
...@@ -415,7 +473,8 @@ export default { ...@@ -415,7 +473,8 @@ export default {
}, { }, {
confId: '2', confId: '2',
confLabel: '已退款' confLabel: '已退款'
}] }],
payChannelList: []
}, },
merchantDialogVisible: false, merchantDialogVisible: false,
...@@ -435,6 +494,7 @@ export default { ...@@ -435,6 +494,7 @@ export default {
}) })
}, },
mounted() { mounted() {
this.paymentChannelList()
this.getAllServiceStore() this.getAllServiceStore()
this.userInfo.beSuper && getParkStore({}).then(res => { this.userInfo.beSuper && getParkStore({}).then(res => {
res.forEach(item => { res.forEach(item => {
...@@ -520,7 +580,8 @@ export default { ...@@ -520,7 +580,8 @@ export default {
payType: '', payType: '',
shopMerchantId: '', shopMerchantId: '',
distributeStatus: '', distributeStatus: '',
refundStatus: '' refundStatus: '',
paymentChannelId: ''
} }
this.searchSelectObj = { this.searchSelectObj = {
orderOrTrade: { orderOrTrade: {
...@@ -845,6 +906,12 @@ export default { ...@@ -845,6 +906,12 @@ export default {
if (flag) { if (flag) {
this.$refs.recordTable.refreshTable() this.$refs.recordTable.refreshTable()
} }
},
paymentChannelList() {
paymentChannelList({}).then(res => {
this.baseData.payChannelList = res
})
} }
} }
} }
......
<!-- 图片上传 --> <!-- 图片上传 -->
<template> <template>
<div <div class="gl-upload-img"
class="gl-upload-img"
v-if="show"> v-if="show">
<el-upload <el-upload action=""
action=""
list-type="picture-card" list-type="picture-card"
accept=".jpg,.png" accept=".jpg,.png"
:auto-upload="false" :auto-upload="false"
...@@ -14,40 +12,33 @@ ...@@ -14,40 +12,33 @@
:on-preview="e => handlePreview(e, formObj[attrName])" :on-preview="e => handlePreview(e, formObj[attrName])"
:on-remove="e => handleRemove(e, formObj[attrName])"> :on-remove="e => handleRemove(e, formObj[attrName])">
<span class="img-btn"> <span class="img-btn">
<img <img v-if="picObj[formObj[attrName]].url"
v-if="picObj[formObj[attrName]].url"
:src="picObj[formObj[attrName]].url" :src="picObj[formObj[attrName]].url"
class="rectImg"> class="rectImg">
<span class="img-btns"> <span class="img-btns">
<span class="btn-item"> <span class="btn-item">
<i <i @click.stop="handleRemove(formObj[attrName], formObj)"
@click.stop="handleRemove(formObj[attrName], formObj)"
class="el-icon-delete" /> class="el-icon-delete" />
<i <i @click.stop="handleImgLook"
@click.stop="handleImgLook"
class="el-icon-zoom-in" /> class="el-icon-zoom-in" />
</span> </span>
</span> </span>
</span> </span>
<i <i v-if="!picObj[formObj[attrName]].url && formObj.useDefaultImg"
v-if="!picObj[formObj[attrName]].url && formObj.useDefaultImg"
class="el-icon-plus avatar-uploader-icon" class="el-icon-plus avatar-uploader-icon"
style="color: #8c939d;" /> style="color: #8c939d;" />
<img <img v-if="!picObj[formObj[attrName]].url && !formObj.useDefaultImg"
v-if="!picObj[formObj[attrName]].url && !formObj.useDefaultImg"
:src="examplePicUrl" :src="examplePicUrl"
class="rectImg"> class="rectImg">
</el-upload> </el-upload>
<span v-if="txtDescript">{{ txtDescript }}</span> <span v-if="txtDescript">{{ txtDescript }}</span>
<p <p v-show="!picObj[formObj[attrName]].url"
v-show="!picObj[formObj[attrName]].url"
slot="errorTips" slot="errorTips"
class="car-error-txt"> class="car-error-txt">
请上传{{ txtDescript }} 请上传{{ txtDescript }}
</p> </p>
<el-dialog :visible.sync="lookImgVisible"> <el-dialog :visible.sync="lookImgVisible">
<img <img width="100%"
width="100%"
:src="picObj[formObj[attrName]].url" :src="picObj[formObj[attrName]].url"
alt="图片"> alt="图片">
</el-dialog> </el-dialog>
......
<!-- 图片上传 -->
<template>
<div class="gl-upload-img"
v-if="show">
<el-upload action=""
list-type="picture-card"
accept=".jpg,.png"
:auto-upload="false"
:show-file-list="false"
:disabled="!!picObj[formObj[attrName]].url"
:on-change="e => handleChange(e, formObj[attrName], formObj)"
:on-preview="e => handlePreview(e, formObj[attrName])"
:on-remove="e => handleRemove(e, formObj[attrName])">
<span class="img-btn">
<img v-if="picObj[formObj[attrName]].url"
:src="picObj[formObj[attrName]].url"
class="rectImg">
<span class="img-btns">
<span class="btn-item">
<i @click.stop="handleRemove(formObj[attrName], formObj)"
class="el-icon-delete" />
<i @click.stop="handleImgLook"
class="el-icon-zoom-in" />
</span>
</span>
</span>
<i v-if="!picObj[formObj[attrName]].url && formObj.useDefaultImg"
class="el-icon-plus avatar-uploader-icon"
style="color: #8c939d;" />
<img v-if="!picObj[formObj[attrName]].url && !formObj.useDefaultImg"
:src="examplePicUrl"
class="rectImg">
</el-upload>
<span v-if="txtDescript">{{ txtDescript }}</span>
<p v-show="!picObj[formObj[attrName]].url"
slot="errorTips"
class="car-error-txt">
请上传{{ txtDescript }}
</p>
<el-dialog :visible.sync="lookImgVisible">
<img width="100%"
:src="picObj[formObj[attrName]].url"
alt="图片">
</el-dialog>
</div>
</template>
<script>
export default {
name: 'GlUploadImg',
data() {
return {
examplePicUrl: '',
lookImgVisible: false
}
},
props: {
// 表单对象
formObj: {
type: Object,
default: () => { }
},
// 标记拿绑定哪个属性
attrName: {
type: String,
default: 'slotName'
},
// 图片绑定的属性
picObj: {
type: Object,
default: () => { }
},
// 文字说明
txtDescript: {
type: String,
default: ''
},
// 显示/隐藏
show: {
type: Boolean,
default: true
}
},
mounted() {
// public 文件需要使用绝对路径引入
this.examplePicUrl = `${process.env.VUE_APP_PUBLIC_PATH}account/` + this.formObj[this.attrName] + '.png'
// console.log(this.picObj[this.formObj[this.attrName]])
// console.log(this.formObj[this.attrName])
},
methods: {
handleImgLook() {
this.lookImgVisible = !this.lookImgVisible
},
handleChange(file, attrName, targetItem) {
if (!(file.size / 1024 / 1024 < 2)) {
this.$message.error('请上传小于2M的图片')
return false
}
this.$emit('handleImgChange', { file: file, attrName: attrName, targetItem: targetItem })
},
handlePreview() { },
handleRemove(attrName, targetItem) {
this.$emit('handleImgRemove', { attrName: attrName, targetItem: targetItem })
}
}
}
</script>
<style>
.gl-upload-img .disabled .el-upload--picture-card {
display: none;
}
.gl-upload-img .el-upload--picture-card {
width: 140px;
height: 92px;
line-height: 98px;
}
.gl-upload-img .rectImg {
width: 137px;
height: 90px;
}
.gl-upload-img .img-btn {
display: inline-block;
position: relative;
}
.img-btn .img-btns {
display: none;
position: absolute;
width: 140px;
height: 92px;
left: 0;
top: 0;
z-index: 2;
color: #fff;
background: rgba(0, 0, 0, 0.5);
}
.img-btn .img-btns .btn-item {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.img-btn .img-btns .btn-item {
display: flex;
width: 70%;
justify-content: space-around;
}
.img-btn:hover .img-btns {
display: block;
}
.gl-upload-img .el-upload--picture-card i {
color: #fff;
}
.gl-upload-img .car-error-txt {
font-size: 12px;
line-height: 6px;
margin: 0 0;
}
</style>
<!-- 虚拟管理 --> <!-- 虚拟管理 -->
<template> <template>
<div> <div>
<div class="d2-container-content" style="padding: 10px 20px;"> <div class="d2-container-content"
<div class=" header" slot="header"> style="padding: 10px 20px;">
<d2-search ref="showSearch" :search-form="searchForm" :form-data="showFormData"> <div class=" header"
slot="header">
<d2-search ref="showSearch"
:search-form="searchForm"
:form-data="showFormData">
</d2-search> </d2-search>
<div class="up-btns"> <div class="up-btns">
<el-button :id="tableParams.btnId" size="small" type="primary"> <el-button :id="tableParams.btnId"
size="small"
type="primary">
查询 查询
</el-button> </el-button>
<el-button size="small" @click="handleReset"> <el-button size="small"
@click="handleReset">
重置 重置
</el-button> </el-button>
</div> </div>
...@@ -19,44 +26,61 @@ ...@@ -19,44 +26,61 @@
<!-- <span slot="left"> <!-- <span slot="left">
<auth-button category="Button" :show-btn-ids="['9061003']" /> <auth-button category="Button" :show-btn-ids="['9061003']" />
</span> --> </span> -->
<d2-table ref="merchantTable" :get-list-api="getListApi" :search-form="searchFormSearch" <d2-table ref="merchantTable"
:table-params="tableParams" :before-search-fn="beforeSearchFn"> :get-list-api="getListApi"
<template slot="yqMerchantName" slot-scope="scope"> :search-form="searchFormSearch"
:table-params="tableParams"
:before-search-fn="beforeSearchFn">
<template slot="yqMerchantName"
slot-scope="scope">
<div v-if="scope.scope.yseMerchantRefs && scope.scope.yseMerchantRefs.length > 0"> <div v-if="scope.scope.yseMerchantRefs && scope.scope.yseMerchantRefs.length > 0">
<!-- width="200" --> <!-- width="200" -->
<el-popover placement="top" trigger="hover"> <el-popover placement="top"
trigger="hover">
<div class="merchant-name-box"> <div class="merchant-name-box">
<!-- <div class="title">关联门店</div> --> <!-- <div class="title">关联门店</div> -->
<div class="merchant-item" v-for="(subItem, subIndex) in scope.scope.yseMerchantRefs" :key="subIndex"> <div class="merchant-item"
v-for="(subItem, subIndex) in scope.scope.yseMerchantRefs"
:key="subIndex">
{{ subItem.merchantName }}( {{ subItem.merchantId }}) {{ subItem.merchantName }}( {{ subItem.merchantId }})
</div> </div>
</div> </div>
<div slot="reference"> <div slot="reference">
<img style="width: 14px;height: 13px;" src="../images/merchant_icon.png"> <img style="width: 14px;height: 13px;"
src="../images/merchant_icon.png">
<span>x {{ scope.scope.yseMerchantRefs.length }}</span> <span>x {{ scope.scope.yseMerchantRefs.length }}</span>
</div> </div>
</el-popover> </el-popover>
</div> </div>
<div v-else> <div v-else>
<span style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">{{ '-' }}</span> <span
style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">{{ '-' }}</span>
</div> </div>
</template> </template>
<!-- <auth-button slot="auth-button" slot-scope="scope" :data="scope.scope" /> --> <!-- <auth-button slot="auth-button" slot-scope="scope" :data="scope.scope" /> -->
<div slot="auth-button" slot-scope="scope"> <div slot="auth-button"
slot-scope="scope">
<!-- <auth-button slot="auth-button" :show-btn-ids="['9061001']" :data="scope.scope" /> --> <!-- <auth-button slot="auth-button" :show-btn-ids="['9061001']" :data="scope.scope" /> -->
<auth-button slot="auth-button" :show-btn-ids="['9061004', '9061005', '9061006']" :data="scope.scope" /> <auth-button slot="auth-button"
:show-btn-ids="['9061004', '9061005', '9061006']"
:data="scope.scope" />
</div> </div>
</d2-table> </d2-table>
</div> </div>
<subordinateMerchantDialog v-if="subordinateMerchantVisible" <subordinateMerchantDialog v-if="subordinateMerchantVisible"
:subordinate-merchant-visible="subordinateMerchantVisible" :sub-shop-merchant-info="merchantRow" :subordinate-merchant-visible="subordinateMerchantVisible"
:sub-shop-merchant-info="merchantRow"
@dialogClose="colseSubordinateMerchant"></subordinateMerchantDialog> @dialogClose="colseSubordinateMerchant"></subordinateMerchantDialog>
<virtualAccountManagementDetailDialog :account-detail-visible="accountDetailVisibleDialog" <virtualAccountManagementDetailDialog :account-detail-visible="accountDetailVisibleDialog"
:merchant-row="merchantRow" @dialogClose="accountDetailVisibleDialog = false"> :merchant-row="merchantRow"
@dialogClose="accountDetailVisibleDialog = false">
</virtualAccountManagementDetailDialog> </virtualAccountManagementDetailDialog>
<baseDialog :is-show.sync="accountDetailVisible" :config="dialogConfig.setting" :dialog-config="dialogConfig.config" <baseDialog :is-show.sync="accountDetailVisible"
:config="dialogConfig.setting"
:dialog-config="dialogConfig.config"
@closeDialog="handleDetailClose"> @closeDialog="handleDetailClose">
<account-detail v-if="accountDetailVisible" :account-detail-visible="accountDetailVisible" <account-detail v-if="accountDetailVisible"
:account-detail-visible="accountDetailVisible"
:merchant-row="merchantRow" /> :merchant-row="merchantRow" />
</baseDialog> </baseDialog>
</div> </div>
...@@ -70,6 +94,7 @@ import { merchantClassifyList, receiptModeList } from '@/common/constants' ...@@ -70,6 +94,7 @@ import { merchantClassifyList, receiptModeList } from '@/common/constants'
import subordinateMerchantDialog from './components/subordinateMerchantDialog' import subordinateMerchantDialog from './components/subordinateMerchantDialog'
import virtualAccountManagementDetailDialog from './components/virtualAccountManagementDetailDialog' import virtualAccountManagementDetailDialog from './components/virtualAccountManagementDetailDialog'
import accountDetail from './accountDetail' import accountDetail from './accountDetail'
import { paymentChannelList } from '@api/index'
export default { export default {
name: 'VirtualAccountManagement', name: 'VirtualAccountManagement',
components: { components: {
...@@ -105,7 +130,8 @@ export default { ...@@ -105,7 +130,8 @@ export default {
yseUserCode: '', yseUserCode: '',
merchantName: '', merchantName: '',
merchantIdFuzzy: '', merchantIdFuzzy: '',
receiptMode: '' receiptMode: '',
paymentChannelId: ''
}, },
searchFormSearch: {}, searchFormSearch: {},
showFormData: [ showFormData: [
...@@ -144,6 +170,14 @@ export default { ...@@ -144,6 +170,14 @@ export default {
optionId: "confId", optionId: "confId",
optionLabel: "confValue", optionLabel: "confValue",
optionsName: "receiptModeList" optionsName: "receiptModeList"
}, {
label: '支付渠道',
name: 'paymentChannelId',
type: 'select',
optionList: [],
optionId: 'paymentChannelId',
optionLabel: 'paymentChannelName',
optionsName: 'payChannelList'
} }
], ],
// 表格 // 表格
...@@ -168,6 +202,10 @@ export default { ...@@ -168,6 +202,10 @@ export default {
type: 'slot', type: 'slot',
addHtml: 'yqMerchantName', addHtml: 'yqMerchantName',
width: 140 width: 140
}, {
label: '支付渠道',
prop: 'paymentChannelName',
width: '150px'
}, },
{ {
label: '创建时间', label: '创建时间',
...@@ -201,7 +239,8 @@ export default { ...@@ -201,7 +239,8 @@ export default {
}] }]
}, },
baseData: { baseData: {
receiptModeList: JSON.parse(JSON.stringify(receiptModeList)) receiptModeList: JSON.parse(JSON.stringify(receiptModeList)),
payChannelList: []
}, },
dialogConfig: { dialogConfig: {
setting: { setting: {
...@@ -219,6 +258,7 @@ export default { ...@@ -219,6 +258,7 @@ export default {
} }
}, },
mounted() { mounted() {
this.paymentChannelList()
this.getBaseData() this.getBaseData()
}, },
...@@ -277,7 +317,8 @@ export default { ...@@ -277,7 +317,8 @@ export default {
yseUserCode: '', yseUserCode: '',
merchantName: '', merchantName: '',
merchantIdFuzzy: '', merchantIdFuzzy: '',
receiptMode: '' receiptMode: '',
paymentChannelId: ''
} }
this.$refs.merchantTable.resetRefreshTable() this.$refs.merchantTable.resetRefreshTable()
}, },
...@@ -296,6 +337,13 @@ export default { ...@@ -296,6 +337,13 @@ export default {
handleDetailClose() { handleDetailClose() {
// console.log('visible') // console.log('visible')
this.accountDetailVisible = !this.accountDetailVisible this.accountDetailVisible = !this.accountDetailVisible
},
paymentChannelList() {
paymentChannelList({}).then(res => {
this.baseData.payChannelList = res
this.getOptionsList()
})
} }
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!