Commit 19c29cf9 by wangzhihui

积分提现审批

1 parent 9302a45a
......@@ -200,6 +200,17 @@ const checkRecordsTransferType = params => {
}
// 详情查询
const approvalDetail = params => {
params.method = `scrm.api.shopmall.integral.transfer.out.approval.detail`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
// 积分提现 生成批次
const integralorderBatch = params => {
params.method = `scrm.api.shopmall.integral.transfer.out.approval.generate`
......@@ -231,8 +242,7 @@ const getApprovalLog = params => {
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
sign: true
})
}
// 积分提现审批分页查询
......@@ -242,8 +252,7 @@ const getApprovalPage = params => {
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
sign: true
})
}
......
......@@ -77,4 +77,7 @@ p{
.el-message{
z-index: 9999999 !important;
}
.el-message-box__content{
height:auto !important;
}
\ No newline at end of file
......@@ -17,7 +17,7 @@
</div>
<!-- 详情 -->
<detail-dialog :detail-visible="detailVisible" :id="id" @dialogClose="dialogClose"></detail-dialog>
<pay-approval :payVisible="payVisible" :id="id" @cancelPay="cancelPay" ></pay-approval>
<pay-approval :payVisible="payVisible" :id="id" @cancelPay="cancelPay"></pay-approval>
</div>
</template>
......@@ -28,7 +28,7 @@ import util from '@/utils/index'
import DetailDialog from './approveView.vue'
import PayApproval from './payApproval.vue'
const colors = ['#FDB757', '#2CCA74', '#5850FF', '#2CCA74', '#999999', '#EB4E4E', '#2CCA74']
const tableStatus = ['待审批', '审批中', '审批通过', '已驳回', '已付款', '到账异常']
const tableStatus = ['待审批', '审批中', '审批通过', '审批驳回', '已付款', '到账异常']
export default {
components: {
DetailDialog,
......@@ -36,7 +36,7 @@ export default {
},
data() {
return {
recordInfo:{},
recordInfo: {},
id: '',
checkLoading: false,
loading: false,
......@@ -47,42 +47,37 @@ export default {
size: 'small',
url: url,
searchForm: {
outSettleOrderId: '',
customerName: '',
customerPhone: '',
status: '',
channel: '',
merchantName: '',
transferType: '',
mode: '',
withdrawalSource: ''
batchNo: '',
paymentSubject: '',
paymentChannel: '',
approvalTime: [],
oaApprovalTime: [],
userSettleTime: []
},
hasFooter: false,
tableSearchForm: {},
showFormData: [
{
label: '批次号',
name: 'outSettleOrderId',
name: 'batchNo',
type: 'input',
isClear: true,
maxlength: 20
},
{
label: '付款渠道',
name: 'channel',
name: 'paymentChannel',
type: 'select',
optionList: [],
addHtml: 'channel',
optionId: 'confId',
optionLabel: 'confLabel',
optionsName: 'channelList'
},
{
label: '付款主体',
name: 'channel',
name: 'paymentSubject',
type: 'select',
optionList: [],
addHtml: 'channel',
optionId: 'confId',
optionLabel: 'confLabel',
optionsName: 'PayerelList'
......@@ -98,21 +93,21 @@ export default {
},
{
label: '审批时间',
name: 'applyDateStr',
name: 'approvalTime',
type: 'datePicker',
isClear: true,
pickerOptions: 'beforeRangePickerOptions'
},
{
label: 'OA审批时间',
name: 'applyDateStr',
name: 'oaApprovalTimeStart',
type: 'datePicker',
isClear: true,
pickerOptions: 'beforeRangePickerOptions'
},
{
label: '付款时间',
name: 'payTimeStr',
name: 'userSettleTime',
type: 'datePicker',
isClear: true,
pickerOptions: 'beforeRangePickerOptions'
......@@ -166,9 +161,9 @@ export default {
type: 'text',
fn: '到账明细'
},
condition: row => {
return row.status == 0 || row.status == 1 || row.status == 6
},
// condition: row => {
// return row.status == 0 || row.status == 1 || row.status == 6
// },
listeners: {
click: row => {
this.handleParticulars(row)
......@@ -202,46 +197,43 @@ export default {
tableColumns: [
{
label: '批次号',
prop: 'outSettleOrderId',
line: 1,
minWidth: 200
prop: 'batchNo'
},
{
label: '客户数量',
prop: 'outSettleOrderId',
line: 1,
minWidth: 200
prop: 'customerCount',
width: 110,
},
{
label: '积分总额',
prop: 'integralAmount',
width: 100
prop: 'pointTotal',
width: 110,
},
{
label: '付款总额/元',
prop: 'payAmount',
width: 100,
prop: 'paymentTotal',
width: 120,
formatter: cellValue => {
return cellValue.payAmount ? (cellValue.payAmount / 100).toFixed(2) : '--'
return cellValue.paymentTotal ? (cellValue.paymentTotal / 100).toFixed(2) : '--'
}
},
{
label: '付款渠道',
prop: 'channel',
prop: 'paymentChannel',
width: '200px',
formatter: cellValue => {
let arr = this.baseData.channelList.filter(item => item.value == cellValue.channel)
let arr = this.baseData.channelList.filter(item => item.confId == cellValue.paymentChannel)
return arr.length > 0 ? arr[0].label : '--'
}
},
{
label: '付款主体',
prop: 'transferType',
prop: 'paymentSubject',
width: '200px',
formatter: cellValue => {
let arr = this.baseData.withdrawalTypeList.filter(item => item.confId == cellValue.transferType)
return arr.length > 0 ? arr[0].confLabel : '--'
}
// formatter: cellValue => {
// let arr = this.baseData.withdrawalTypeList.filter(item => item.confId == cellValue.transferType)
// return arr.length > 0 ? arr[0].confLabel : '--'
// }
},
{
......@@ -252,8 +244,8 @@ export default {
},
{
label: '批次生成时间',
prop: 'payDate',
width: '200px'
prop: 'updatedDate',
width: 150
},
{
label: '审批人',
......@@ -262,29 +254,28 @@ export default {
},
{
label: '审批时间',
prop: 'payDate',
prop: 'approvalTime',
width: '200px'
},
{
label: 'OA审批时间',
prop: 'merchantName',
prop: 'oaApprovalTimeStart',
line: 1,
width: 150
},
{
label: '渠道到账时间',
prop: 'name',
width: '110px'
prop: 'channelSettleTime',
width: 150
},
{
label: '用户到账时间',
prop: 'idCardNo',
width: '180px'
prop: 'userSettleTime',
width: 150
}
]
},
providers: {},
pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' },
// 基本数据
baseData: {
......@@ -328,46 +319,12 @@ export default {
],
channelList: [
{
value: 'SHENBIANYUN',
label: '身边云-银行卡',
children: [
{
value: 'SHENBIANYUN-XH',
label: '翔禾'
},
{
value: 'SHENBIANYUN-YJ',
label: '雅钧'
},
{
value: 'SHENBIANYUN-BC',
label: '博晟'
},
{
value: 'SHENBIANYUN-CJ',
label: '晨景'
}
]
},
{
value: 'TXIAT',
label: '熠轩-银行卡'
},
{
value: 'ZX',
label: '中雄-银行卡'
},
{
value: 'YUNHUO',
label: '云获(嘀加)-银行卡'
confId: 'BIRDWORK',
confLabel: '智鸟-银行卡'
},
{
value: 'YUNHUO-ZY',
label: '云获(中赢)-银行卡'
},
{
value: 'YUNHUO-WX',
label: '云获(中赢)-微信'
confId: 'SHENBIANYUN_JX',
confLabel: '身边云(江西)-银行卡'
}
],
withdrawalTypeList: [
......@@ -383,50 +340,20 @@ export default {
confId: '2',
confLabel: '阳光激励'
}
],
modeTypeList: [
{
confId: '0',
confLabel: '银行卡'
},
{
confId: '1',
confLabel: '微信'
}
],
sourceList: [
{
confId: '0',
confLabel: '车生活助手'
},
{
confId: '1',
confLabel: '系统导入'
},
{
confId: '2',
confLabel: '生意助手员工版'
},
{
confId: '3',
confLabel: '门店助手'
}
]
}
}
},
mounted() {
// this.$utils.getOptionsList(this, 'showFormData')
// this.getMerchantList()
// this.getSettleAmount()
this.$utils.getOptionsList(this, 'showFormData')
},
methods: {
dialogClose() {
this.detailVisible = false
},
handleCheck(row) {
this.recordInfo=row
this.recordInfo = row
this.payVisible = true
},
cancelPay() {
......@@ -458,133 +385,42 @@ export default {
}
})
},
//选择服务商
selectChannelProvider(e) {
console.log(e, this.payForm.channelProvider)
if (this.payForm.channelProvider) {
this.payForm.channel = this.providers.channel
this.getBalance()
this.getAdmin()
}
},
//获取批量付款的金额
getAllPayAmount(index, type) {
return new Promise(resolve => {
let key = index == 0 ? 'canApprove' : 'canPay',
Method = type == 'batch' ? 'getPayAmount' : 'getAllPayAmount',
textErr = ['请选择待审核的提现记录', '请选择已审核或受理失败的提现记录']
let params = {}
if (type == 'batch') {
if (!this.ids || this.ids.length == 0) {
this.$message.error(textErr[index])
return
}
params.ids = this.ids
} else {
params = {
...this.tableSearchForm
}
}
params[key] = false
this.$apis.withdraw[Method](params).then(res => {
if (!res[key]) {
this.$message.error(textErr[index])
resolve(false)
} else {
if (index == 1) {
this.payForm.payMoney = (res.payAmount / 100).toFixed(2)
}
resolve(true)
}
})
})
},
isZeroTrue(value) {
return value === 0 ? true : Boolean(value)
},
checkRecordsTransferType(type) {
return new Promise(resolve => {
let params = {}
if (type == 'batch') {
params.ids = this.ids
} else {
params = {
...this.tableSearchForm
}
}
this.$apis.withdraw.checkRecordsTransferType(params).then(res => {
// console.log(res)
if (this.isZeroTrue(res)) {
resolve(res)
}
})
})
},
getSettleAmount() {
let params = {
...this.tableSearchForm
}
this.$apis.withdraw.getSettleAmount(params).then(res => {
this.settleAmount = res
})
},
getMerchantList() {
this.$apis.withdraw.getMerchantList({}).then(res => {
this.baseData.merchantList = res.map(item => {
return {
merchantName: item
}
})
this.$utils.getOptionsList(this, 'showFormData', false, 'merchantName')
})
},
getParams() {
var params = JSON.parse(JSON.stringify(this.searchForm))
console.log(this.searchForm)
if (this.searchForm.applyDateStr) {
params.applyDateStart = dayjs(this.searchForm.applyDateStr[0]).format('YYYY-MM-DD') + ' 00:00:01'
params.applyDateEnd = dayjs(this.searchForm.applyDateStr[1]).format('YYYY-MM-DD') + ' 23:59:59'
}
if (this.searchForm.payTimeStr) {
params.payDateStart = dayjs(this.searchForm.payTimeStr[0]).format('YYYY-MM-DD') + ' 00:00:01'
params.payDateEnd = dayjs(this.searchForm.payTimeStr[1]).format('YYYY-MM-DD') + ' 23:59:59'
if (this.searchForm.approvalTime) {
params.approvalTimeStart = dayjs(this.searchForm.approvalTime[0]).format('YYYY-MM-DD') + ' 00:00:01'
params.approvalTimeEnd = dayjs(this.searchForm.approvalTime[1]).format('YYYY-MM-DD') + ' 23:59:59'
}
if (this.searchForm.receiptDateStr) {
params.receiptDateStart = dayjs(this.searchForm.receiptDateStr[0]).format('YYYY-MM-DD') + ' 00:00:01'
params.receiptDateEnd = dayjs(this.searchForm.receiptDateStr[1]).format('YYYY-MM-DD') + ' 23:59:59'
if (this.searchForm.userSettleTime) {
params.userSettleTimeStart = dayjs(this.searchForm.userSettleTime[0]).format('YYYY-MM-DD') + ' 00:00:01'
params.userSettleTimeEnd = dayjs(this.searchForm.userSettleTime[1]).format('YYYY-MM-DD') + ' 23:59:59'
}
if (this.searchForm.channel) {
params.channel = this.searchForm.channel[0]
params.channelProvider = this.searchForm.channel.length > 1 ? this.searchForm.channel[1] : ''
if (this.searchForm.oaApprovalTime) {
params.oaApprovalTimeStart = dayjs(this.searchForm.oaApprovalTime[0]).format('YYYY-MM-DD') + ' 00:00:01'
params.oaApprovalTimeEnd = dayjs(this.searchForm.oaApprovalTime[1]).format('YYYY-MM-DD') + ' 23:59:59'
}
delete params.payTimeStr, delete params.applyDateStr, delete params.receiptDateStr
delete params.userSettleTime, delete params.approvalTime, delete params.oaApprovalTime
return params
},
beforeSearchFn() {
return new Promise(resolve => {
this.tableSearchForm = this.getParams()
delete this.tableSearchForm.payTimeStr
delete this.tableSearchForm.applyDateStr
resolve()
})
},
handleSearch() {
this.$refs.withdrawRef.refreshTable()
this.getSettleAmount()
},
handleReset() {
this.searchForm = {
outSettleOrderId: '',
customerName: '',
customerPhone: '',
status: '',
channel: '',
merchantName: '',
mode: '',
withdrawalSource: ''
batchNo: '',
paymentSubject: '',
paymentChannel: '',
approvalTime: [],
oaApprovalTime: [],
userSettleTime: []
}
this.handleSearch()
},
......
......@@ -31,34 +31,36 @@ export default {
data() {
return {
id: '',
checkLoading: false,
loading: false,
colors,
tableStatus,
size: 'small',
url: url,
settleAmount: {},
searchForm: {
customerName: ''
customerName: '',
customerPhone:''
},
hasFooter: false,
tableSearchForm: {},
showFormData: [
{
label: '',
labelWidth: '0',
{
label: '客户名称',
name: 'customerName',
placeholder: '客户名称/手机号',
type: 'input',
isClear: true,
maxlength: 20
},
{
label: '手机号',
name: 'customerPhone',
type: 'input',
isClear: true,
maxlength: 11
}
],
// 表格
getListApi: this.$apis.withdraw.getList,
tableParams: {
listName: 'list',
tableColumns: [
{
label: '客户名称',
......@@ -68,11 +70,11 @@ export default {
{
label: '提现方式',
prop: 'mode',
width: '200px'
// formatter: cellValue => {
// let arr = this.baseData.modeTypeList.filter(item => item.confId == cellValue.mode)
// return arr.length > 0 ? arr[0].confLabel : '--'
// }
width: '200px',
formatter: cellValue => {
let arr = this.baseData.modeTypeList.filter(item => item.confId == cellValue.mode)
return arr.length > 0 ? arr[0].confLabel : '--'
}
},
{
label: '手机号',
......@@ -155,6 +157,11 @@ export default {
}
},
{
label: '提现时间',
prop: 'updatedDate',
width: 150
},
{
label: '收款人姓名',
prop: 'name',
width: '110px'
......@@ -179,54 +186,34 @@ export default {
label: '收款手机号',
prop: 'mobile',
width: '130px'
},
{
label: '到账情况',
prop: 'customerOpenId',
width: '130px'
},
{
label: '到账时间',
prop: 'receiptDate',
width: '200px'
}
]
},
pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' },
// 基本数据
baseData: {}
baseData: {
modeTypeList: [
{
confId: '0',
confLabel: '银行卡'
},
{
confId: '1',
confLabel: '微信'
}
],
}
}
},
mounted() {},
methods: {
getParams() {
var params = JSON.parse(JSON.stringify(this.searchForm))
console.log(this.searchForm)
if (this.searchForm.applyDateStr) {
params.applyDateStart = dayjs(this.searchForm.applyDateStr[0]).format('YYYY-MM-DD') + ' 00:00:01'
params.applyDateEnd = dayjs(this.searchForm.applyDateStr[1]).format('YYYY-MM-DD') + ' 23:59:59'
}
if (this.searchForm.payTimeStr) {
params.payDateStart = dayjs(this.searchForm.payTimeStr[0]).format('YYYY-MM-DD') + ' 00:00:01'
params.payDateEnd = dayjs(this.searchForm.payTimeStr[1]).format('YYYY-MM-DD') + ' 23:59:59'
}
if (this.searchForm.receiptDateStr) {
params.receiptDateStart = dayjs(this.searchForm.receiptDateStr[0]).format('YYYY-MM-DD') + ' 00:00:01'
params.receiptDateEnd = dayjs(this.searchForm.receiptDateStr[1]).format('YYYY-MM-DD') + ' 23:59:59'
}
if (this.searchForm.channel) {
params.channel = this.searchForm.channel[0]
params.channelProvider = this.searchForm.channel.length > 1 ? this.searchForm.channel[1] : ''
}
delete params.payTimeStr, delete params.applyDateStr, delete params.receiptDateStr
return params
},
beforeSearchFn() {
return new Promise(resolve => {
this.tableSearchForm = this.getParams()
delete this.tableSearchForm.payTimeStr
delete this.tableSearchForm.applyDateStr
resolve()
})
},
......@@ -235,14 +222,8 @@ export default {
},
handleReset() {
this.searchForm = {
outSettleOrderId: '',
customerName: '',
customerPhone: '',
status: '',
channel: '',
merchantName: '',
mode: '',
withdrawalSource: ''
customerPhone:''
}
this.handleSearch()
}
......@@ -260,11 +241,7 @@ export default {
border-bottom: 1px solid #e5e5e5;
}
}
.gl-form-page /deep/ .search-list .search-item .name {
width: 0px !important;
}
.gl-form-page /deep/ .glsx-combi-form .el-form-item--small {
width: auto;
}
</style>
\ No newline at end of file
......@@ -6,9 +6,10 @@
<div class="title">编辑</div>
</div>
<div class="container gl-form-page">
<div class="flex-sb">
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="showFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<el-button size="small" @click="handleCheck('', true)" type="primary" plain>全部驳回</el-button>
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="showFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<div class="table-header flex-sb">
<h2>积分提现明细</h2>
<el-button size="small" @click="handleDissolve(true)" type="primary" plain>解散批次</el-button>
</div>
<!-- 表格区域 开始 -->
......@@ -56,7 +57,6 @@ export default {
id: '',
isAll: true,
checkLoading: false,
showPassDialog: false,
loading: false,
colors,
tableStatus,
......@@ -64,34 +64,40 @@ export default {
url: url,
settleAmount: {},
searchForm: {
customerName: ''
customerName: '',
customerPhone: ''
},
hasFooter: false,
tableSearchForm: {},
tableButtonList: [
{
type: 'el-button',
name: '驳回',
name: '移除',
attrs: {
type: 'text',
fn: '驳回'
fn: '移除'
},
listeners: {
click: row => {
this.handleCheck(row, false)
this.handleDissolve(false, row)
}
}
}
],
showFormData: [
{
label: '',
labelWidth: '0',
label: '客户名称',
name: 'customerName',
placeholder: '客户名称/手机号',
type: 'input',
isClear: true,
maxlength: 20
},
{
label: '手机号',
name: 'customerPhone',
type: 'input',
isClear: true,
maxlength: 11
}
],
// 表格
......@@ -110,11 +116,11 @@ export default {
{
label: '提现方式',
prop: 'mode',
width: '200px'
// formatter: cellValue => {
// let arr = this.baseData.modeTypeList.filter(item => item.confId == cellValue.mode)
// return arr.length > 0 ? arr[0].confLabel : '--'
// }
width: '200px',
formatter: cellValue => {
let arr = this.baseData.modeTypeList.filter(item => item.confId == cellValue.mode)
return arr.length > 0 ? arr[0].confLabel : '--'
}
},
{
label: '手机号',
......@@ -197,6 +203,11 @@ export default {
}
},
{
label: '提现时间',
prop: 'updatedDate',
width: 150
},
{
label: '收款人姓名',
prop: 'name',
width: '110px'
......@@ -221,16 +232,6 @@ export default {
label: '收款手机号',
prop: 'mobile',
width: '130px'
},
{
label: '到账情况',
prop: 'customerOpenId',
width: '130px'
},
{
label: '到账时间',
prop: 'receiptDate',
width: '200px'
}
]
},
......@@ -242,69 +243,40 @@ export default {
},
pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' },
// 基本数据
baseData: {}
baseData: {
modeTypeList: [
{
confId: '0',
confLabel: '银行卡'
},
{
confId: '1',
confLabel: '微信'
}
]
}
}
},
mounted() {},
methods: {
clearSelect() {
this.ids = ''
this.form.remark = ''
this.showPassDialog = false
},
comfirmCheck() {
this.$refs.form.validate(valid => {
if (valid) {
// this.checkLoading = true
// this.$apis.withdraw[Methods](params)
// .then(res => {
// this.$message({
// message: res.code == '0' ? '操作成功' : res.message,
// type: res.code == '0' ? 'success' : 'error'
// })
// })
// .finally(() => {
// this.handleReset()
// this.clearSelect()
// this.checkLoading = false
// })
}
})
},
//驳回
handleCheck(row, isAll) {
this.isAll = isAll
this.form.id = !this.isAll ? row.id : ''
this.showPassDialog = true
handleDissolve(isAll, row) {
let title = isAll ? '解散批次提示' : '移除提示',
cxt = isAll ? '解散本批次,所有未驳回的积分提现记录将恢复「待审核」状态,如需重新生成批次,请选中后重新生成批次。' : '移除该记录,该条积分提现记录将恢复「待审核」状态,如需重新生成批次,请选中后重新生成批次。',
params = {
type: isAll ? 2 : 1
},
Method = 'removeApproval'
!isAll ? (params.id = row.id) : ''
this.$utils.secondConfirm(this, title, cxt, 'withdraw', Method, params)
},
getParams() {
var params = JSON.parse(JSON.stringify(this.searchForm))
console.log(this.searchForm)
if (this.searchForm.applyDateStr) {
params.applyDateStart = dayjs(this.searchForm.applyDateStr[0]).format('YYYY-MM-DD') + ' 00:00:01'
params.applyDateEnd = dayjs(this.searchForm.applyDateStr[1]).format('YYYY-MM-DD') + ' 23:59:59'
}
if (this.searchForm.payTimeStr) {
params.payDateStart = dayjs(this.searchForm.payTimeStr[0]).format('YYYY-MM-DD') + ' 00:00:01'
params.payDateEnd = dayjs(this.searchForm.payTimeStr[1]).format('YYYY-MM-DD') + ' 23:59:59'
}
if (this.searchForm.receiptDateStr) {
params.receiptDateStart = dayjs(this.searchForm.receiptDateStr[0]).format('YYYY-MM-DD') + ' 00:00:01'
params.receiptDateEnd = dayjs(this.searchForm.receiptDateStr[1]).format('YYYY-MM-DD') + ' 23:59:59'
}
if (this.searchForm.channel) {
params.channel = this.searchForm.channel[0]
params.channelProvider = this.searchForm.channel.length > 1 ? this.searchForm.channel[1] : ''
}
delete params.payTimeStr, delete params.applyDateStr, delete params.receiptDateStr
return params
},
beforeSearchFn() {
return new Promise(resolve => {
this.tableSearchForm = this.getParams()
delete this.tableSearchForm.payTimeStr
delete this.tableSearchForm.applyDateStr
resolve()
})
},
......@@ -313,14 +285,8 @@ export default {
},
handleReset() {
this.searchForm = {
outSettleOrderId: '',
customerName: '',
customerPhone: '',
status: '',
channel: '',
merchantName: '',
mode: '',
withdrawalSource: ''
customerPhone: ''
}
this.handleSearch()
}
......@@ -337,31 +303,14 @@ export default {
font-weight: 600;
border-bottom: 1px solid #e5e5e5;
}
.remind {
display: flex;
.table-header {
align-items: center;
width: 680px;
height: 36px;
border-radius: 3.6px;
border: 1px solid #5850ff;
background: #ebebff;
padding-left: 16px;
box-sizing: border-box;
color: #000000a6;
font-size: 14px;
margin-bottom: 20px;
.tip {
width: 14px;
height: 14px;
margin-right: 8px;
h2 {
color: #333333;
font-size: 16px;
}
}
}
.gl-form-page /deep/ .search-list .search-item .name {
width: 0px !important;
}
.gl-form-page /deep/ .glsx-combi-form .el-form-item--small {
width:auto;
}
</style>
\ No newline at end of file
<!-- 查看 -->
<!-- 盘点详情弹窗弹窗 -->
<template>
<GLDialog bigTitle="详细信息" :visible.sync="isVisible" :hasFooter="false" :before-close="handleClose" class="points" mode="big" okText="关闭" @onCancel="handleClose" @onOk="handleClose">
<div class="wrap edit-box">
<div>
<p class="edit-title">订单信息</p>
<el-form label-width="150px" :inline="true">
<el-row v-for="(item, index) in withdrawDataRow" :key="index">
<el-form-item v-for="(subItem, subIndex) in item.rowList" :key="subIndex" :label="subItem.label + ':'" class="row-item">
<span v-if="subItem.addHtml">
{{ subItem.addHtml(recordInfo) }}
</span>
<span v-else class="detail-txt ellipsis-1" :title="recordInfo[subItem.name]">{{ recordInfo[subItem.name] ? recordInfo[subItem.name] + (subItem.suffix || '') : '-' }}</span>
</el-form-item>
</el-row>
</el-form>
</div>
<div>
<p class="edit-title">付款信息</p>
<el-form label-width="154px" :inline="true">
<el-row v-for="(item, index) in paymentDataRow" :key="index">
<el-form-item v-for="(subItem, subIndex) in item.rowList" :key="subIndex" :label="subItem.label + ':'" class="row-item">
<span v-if="subItem.addHtml">
{{ subItem.addHtml(recordInfo) }}
</span>
<span v-else-if="subItem.addStyle" class="flex_sc">
<div class="table_point" :style="{ background: subItem.addStyle(recordInfo).color }"></div>
{{ subItem.addStyle(recordInfo).status }}
</span>
<span v-else class="detail-txt ellipsis-1" :title="recordInfo[subItem.name]">{{ recordInfo[subItem.name] ? recordInfo[subItem.name] + (subItem.suffix || '') : '-' }}</span>
</el-form-item>
</el-row>
</el-form>
</div>
<div v-if="recordInfo.operationList">
<p class="edit-title">操作记录</p>
<!-- <template v-for="(record, recordIdx) in recordInfo.operationList">
<GLDialog bigTitle="详细信息" :visible.sync="isVisible" :hasFooter="false" :before-close="handleClose" class="points" mode="big" okText="关闭" @onCancel="handleClose" @onOk="handleClose">
<div class="wrap edit-box">
<div>
<p class="edit-title">订单信息</p>
<el-form label-width="150px" :inline="true">
<el-row v-for="(item, index) in withdrawDataRow" :key="index">
<el-form-item v-for="(subItem, subIndex) in item.rowList" :key="subIndex" :label="subItem.label + ':'" class="row-item">
<span v-if="subItem.addHtml">
{{ subItem.addHtml(recordInfo) }}
</span>
<span v-else class="detail-txt ellipsis-1" :title="recordInfo[subItem.name]">{{ recordInfo[subItem.name] ? recordInfo[subItem.name] + (subItem.suffix || '') : '-' }}</span>
</el-form-item>
</el-row>
</el-form>
</div>
<div>
<p class="edit-title">付款信息</p>
<el-form label-width="154px" :inline="true">
<el-row v-for="(item, index) in paymentDataRow" :key="index">
<el-form-item v-for="(subItem, subIndex) in item.rowList" :key="subIndex" :label="subItem.label + ':'" class="row-item">
<span v-if="subItem.addHtml">
{{ subItem.addHtml(recordInfo) }}
</span>
<span v-else-if="subItem.addStyle" class="flex_sc">
<div class="table_point" :style="{ background: subItem.addStyle(recordInfo).color }"></div>
{{ subItem.addStyle(recordInfo).status }}
</span>
<span v-else class="detail-txt ellipsis-1" :title="recordInfo[subItem.name]">{{ recordInfo[subItem.name] ? recordInfo[subItem.name] + (subItem.suffix || '') : '-' }}</span>
</el-form-item>
</el-row>
</el-form>
</div>
<div v-if="recordInfo.operationList">
<p class="edit-title">操作记录</p>
<!-- <template v-for="(record, recordIdx) in recordInfo.operationList">
<el-form label-width="154px" :inline="true" :key="recordIdx">
<el-row v-for="(item, index) in operationDataRow" :key="index">
<el-form-item v-for="(subItem, subIndex) in item.rowList" :key="subIndex" :label="subItem.label(record) + ':'" class="row-item">
......@@ -48,182 +48,187 @@
</el-row>
</el-form>
</template> -->
</div>
</div>
</GLDialog>
</template>
</div>
</GLDialog>
</template>
<script>
const tableStatus = ['待审核', '已审核', '第三方处理', '成功', '失败', '驳回']
const colors = ['#FDB757', '#2CCA74', '#5850FF', '#2CCA74', '#999999', '#EB4E4E']
const channelObj = {
'TXIAT': '熠轩-银行卡',
'ZX': '中雄-银行卡',
'YUNHUO': '云获(嘀加)-银行卡',
"YUNHUO-ZY": '云获(中赢)-银行卡',
'YUNHUO-WX': '云获(中赢)-微信',
'SHENBIANYUN':'身边云-银行卡'
}
export default {
name: 'DetailDialog',
data() {
return {
recordInfo: {},
withdrawDataRow: [],
paymentDataRow: [],
operationDataRow: [],
withdrawData: [],
paymentData: [],
operationData: [],
isVisible: this.detailVisible,
}
},
props: {
detailVisible: {
type: Boolean,
default: false
const tableStatus = ['待审核', '已审核', '第三方处理', '成功', '失败', '驳回']
const colors = ['#FDB757', '#2CCA74', '#5850FF', '#2CCA74', '#999999', '#EB4E4E']
const channelObj = {
TXIAT: '熠轩-银行卡',
ZX: '中雄-银行卡',
YUNHUO: '云获(嘀加)-银行卡',
'YUNHUO-ZY': '云获(中赢)-银行卡',
'YUNHUO-WX': '云获(中赢)-微信',
SHENBIANYUN: '身边云-银行卡'
}
export default {
name: 'DetailDialog',
data() {
return {
recordInfo: {
detail:{},
operationList:[]
},
id: {
type: Number,
default: 0
}
withdrawDataRow: [],
paymentDataRow: [],
operationDataRow: [],
withdrawData: [],
paymentData: [],
operationData: [],
isVisible: this.detailVisible
}
},
props: {
detailVisible: {
type: Boolean,
default: false
},
watch: {
detailVisible(newVal) {
this.isVisible = newVal
this.getDetails()
}
id: {
type: Number,
default: 0
}
},
watch: {
detailVisible(newVal) {
this.isVisible = newVal
this.getDetails()
}
},
computed: {},
mounted() {},
methods: {
getDetails() {
this.$apis.withdraw.approvalDetail({ id: this.id }).then(res => {
this.recordInfo.detail = res
this.getConfig()
})
},
computed: {},
mounted() {},
methods: {
getDetails() {
this.$apis.withdraw.getDetails({ id: this.id }).then(res => {
this.recordInfo = res
this.getConfig()
})
},
getConfig() {
this.withdrawData = [
{
label: '批次号',
name: 'outSettleOrderId'
},
{
label: '客户数量',
name: 'transferType',
addHtml: obj => {
return obj.transferType == 0 ? '积分提现' : obj.transferType == 1 ? '普通提现' : '阳光激励'
}
},
{
label: '积分总额:',
name: 'integralAmount'
},
{
label: '付款总额/元:',
name: 'payAmount',
addHtml: obj => {
return obj.payAmount ? (obj.payAmount / 100).toFixed(2) : '--'
}
},
{
label: '状态',
name: 'status',
addStyle: obj => {
return {
status: tableStatus[obj.status],
color: colors[obj.status]
}
}
}
]
this.paymentData = [
{
label: '付款渠道',
name: 'name'
},
{
label: '付款主体',
name: 'idCardNo'
},
{
label: '渠道到账时间',
name: 'receiptDate'
getApprovalLog() {
this.$apis.withdraw.getApprovalLog({ id: this.id }).then(res => {
this.recordInfo.operationList = res
})
},
getConfig() {
this.withdrawData = [
{
label: '批次号',
name: 'batchNo '
},
{
label: '客户数量',
name: 'customerCount'
},
{
label: '积分总额:',
name: 'pointTotal'
},
{
label: '付款总额/元:',
name: 'paymentTotal',
addHtml: obj => {
return obj.paymentTotal ? (obj.paymentTotal / 100).toFixed(2) : '--'
}
]
this.formToRow('withdrawData')
// this.formToRow('operationData')
this.formToRow('paymentData')
},
handleJudgment(target, key) {
let arr = target,
len = arr.length,
item
for (let i = 0; i < len; i++) {
item = arr[i]
if (item.name == key) {
arr.splice(i, 1)
},
{
label: '状态',
name: 'status',
addStyle: obj => {
return {
status: tableStatus[obj.status],
color: colors[obj.status]
}
}
}
},
formToRow(formName, numOfRow = 3) {
var rowNum = Math.ceil(this[formName].length / numOfRow)
for (var i = 0; i < rowNum; i++) {
for (var j = 0; j < numOfRow; j++) {
if (j == 0) {
this[formName + 'Row'][i] = {
rowList: []
}
}
if (i * numOfRow + j < this[formName].length) {
this[formName + 'Row'][i].rowList.push(this[formName][i * numOfRow + j])
]
this.paymentData = [
{
label: '付款渠道',
name: 'paymentChannel'
},
{
label: '付款主体',
name: 'paymentSubject'
},
{
label: '渠道到账时间',
name: 'channelSettleTime'
}
]
this.formToRow('withdrawData')
// this.formToRow('operationData')
this.formToRow('paymentData')
},
handleJudgment(target, key) {
let arr = target,
len = arr.length,
item
for (let i = 0; i < len; i++) {
item = arr[i]
if (item.name == key) {
arr.splice(i, 1)
}
}
},
formToRow(formName, numOfRow = 3) {
var rowNum = Math.ceil(this[formName].length / numOfRow)
for (var i = 0; i < rowNum; i++) {
for (var j = 0; j < numOfRow; j++) {
if (j == 0) {
this[formName + 'Row'][i] = {
rowList: []
}
}
if (i * numOfRow + j < this[formName].length) {
this[formName + 'Row'][i].rowList.push(this[formName][i * numOfRow + j])
}
}
},
handleClose() {
this.isVisible = false
this.$emit('dialogClose')
}
},
handleClose() {
this.isVisible = false
this.$emit('dialogClose')
}
}
</script>
}
</script>
<style scoped lang="scss">
.edit-box .row-item {
width: 30%;
/deep/ {
.el-form-item__content {
height: 30px;
}
.edit-box .row-item {
width: 30%;
/deep/ {
.el-form-item__content {
height: 30px;
}
}
.detail-txt {
display: inline-block;
width: 136px;
}
.edit-title {
font-weight: 600;
font-size: 16px;
color: #000000d9;
line-height: 24px;
}
.m-b-20 {
margin-top: 20px;
}
/deep/ .el-form-item {
margin-bottom: 0;
}
.table_point {
width: 6px;
height: 6px;
border-radius: 50%;
margin-right: 8px;
}
.copy {
color: #5850ff;
margin-left: 20px;
cursor: pointer;
}
</style>
\ No newline at end of file
}
.detail-txt {
display: inline-block;
width: 136px;
}
.edit-title {
font-weight: 600;
font-size: 16px;
color: #000000d9;
line-height: 24px;
}
.m-b-20 {
margin-top: 20px;
}
/deep/ .el-form-item {
margin-bottom: 0;
}
.table_point {
width: 6px;
height: 6px;
border-radius: 50%;
margin-right: 8px;
}
.copy {
color: #5850ff;
margin-left: 20px;
cursor: pointer;
}
</style>
\ No newline at end of file
......@@ -848,7 +848,8 @@ export default {
//全部生成批次
async handleAllBatch(all = true) {
let title = all ? '全部生成批次提示' : '生成批次提示',
cxt = await this.generateBatchCount(all),
// cxt = await this.generateBatchCount(all),
cxt='当前共 ${numberOfRecord}条未处理【积分提现】记录,付款金额共',
params = {
type: all ? 2 : 1
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!