Commit ef918f30 by 王志慧

积分提现管理需求开发

1 parent 4517feb0
import { http } from '@/main'
// 积分提现订单列表
const getList = params => {
params.method = `scrm.api.shopmall.integral.transfer.out.page`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
// 获分提现获取管理员信息
const getAdmin = params => {
params.method = `scrm.api.shopmall.integral.transfer.out.getAdmin`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
// 积分提现列表-导出
const orderExport = params => {
params.method = `scrm.api.shopmall.integral.transfer.out.export`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
// 积分提现支付
const integralpay = params => {
params.method = `scrm.api.shopmall.integral.transfer.out.batch.pay`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 用户积分提现批量审核
const integralApprove = params => {
params.method = `scrm.api.shopmall.integral.transfer.out.batch.approve`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 用户积分提现审核/驳回
const integralOut = params => {
params.method = `scrm.api.shopmall.integral.transfer.out.approve`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 积分提现向管理员发送验证码
const getSms = params => {
params.method = `scrm.api.shopmall.integral.transfer.out.admin.sms`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 用户积分明细详情-客户积分详情
const customerDetail = params => {
params.method = `scrm.api.shopmall.integralcustomer.detail`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
export default { getList, getAdmin, orderExport, integralpay, integralApprove, integralOut,getSms, customerDetail }
.left{float:left}.right{float:right}.align-right{text-align:right}
.left {
float: left
}
.right {
float: right
}
.align-right {
text-align: right
}
\ No newline at end of file
......@@ -7,11 +7,19 @@ html {
overflow: hidden;
background-color: #f4f5fa;
}
div,
p{
margin:0;
box-sizing: border-box;
}
.flex {
display: flex;
}
.flex_sc{
display: flex;
align-items: center;
}
.points .container {
background: #ffffff;
padding: 20px;
......@@ -60,3 +68,9 @@ html {
.el-cascader-menu__wrap {
height: 204px !important;
}
.ellipsis-1{
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
\ No newline at end of file
/*
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-05-10 16:40:01
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-05-22 16:25:00
* @FilePath: \outbound\src\components\glsx-combi-form\common.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
/**
* 时间控件-限制月份
*/
export const rangePickerOptions = {
disabledDate(date) {
if (date > new Date()) {
return true
}
return false
}
}
export const rangetimePickerOptions = {
disabledDate(date) {
let dateHour = new Date()
dateHour.setDate(date.getDate())
dateHour.setHours(8)
dateHour.setMinutes(0)
dateHour.setSeconds(0)
if (dateHour.getTime() < date.getTime() < new Date(2016, 9, 10, 20, 0).getTime()) {
return true
}
return false
}
}
export const beforeRangePickerOptions = {
disabledDate(date) {
if (date > new Date()) {
return true
}
return false
}
}
export const afterRangePickerOptions = {
disabledDate(date) {
const yesterday = new Date(new Date().setDate(new Date().getDate() - 1))
if (date < yesterday) {
return true
}
return false
}
}
......@@ -10,6 +10,8 @@
import Vue from 'vue'
import glsxDialog from '@/components/glsx-dialog/index.vue'
import InputNumRange from '@/components/InputNumRange/index.vue'
import glsxCombiForm from '@/components/glsx-combi-form/index.vue'
Vue.component('glsx-dialog', glsxDialog)
Vue.component('input-num-range', InputNumRange)
Vue.component('glsx-combi-form', glsxCombiForm)
<!-- 盘点详情弹窗弹窗 -->
<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="154px" :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 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 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 operationDataRow" :key="index">
<el-form-item v-for="(subItem, subIndex) in item.rowList" :key="subIndex" :label="subItem.label + ':'" class="row-item">
<span 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>
</GLDialog>
</template>
<script>
export default {
name: 'DetailDialog',
data() {
return {
withdrawDataRow: [],
paymentDataRow: [],
operationDataRow: [],
withdrawData: [],
paymentData: [],
operationData: [],
isVisible: this.detailVisible
}
},
props: {
detailVisible: {
type: Boolean,
default: false
},
recordInfo: {
type: Object,
default: () => {}
}
},
watch: {
detailVisible(newVal) {
this.isVisible = newVal
this.getConfig()
}
},
computed: {},
mounted() {},
methods: {
async getConfig() {
let withdrawData = [
{
label: '提现单号',
name: 'outSettleOrderId'
},
{
label: '客户名称',
name: 'customerName'
},
{
label: '客户手机',
name: 'customerPhone'
},
{
label: '提现积分',
name: 'integralAmount'
},
{
label: '提现金额',
name: 'payAmount'
},
{
label: '所属门店',
name: 'merchantName'
},
{
label: '申请时间',
name: 'createdDate'
}
],
paymentData = [
{
label: '收款人姓名',
name: 'name'
},
{
label: '收款人身份证',
name: 'idCardNo'
},
{
label: '收款银行卡号',
name: 'recvBankCardNo'
},
{
label: '收款银行',
name: 'recvBank',
suffix: '%'
},
{
label: '收款手机号',
name: 'mobile'
},
{
label: '付款渠道',
name: 'channel'
},
{
label: '状态',
name: 'status'
},
{
label: '失败原因',
name: 'crowdFundingPrice'
}
],
operationData = [
{
label: '审核',
name: 'shipAddress'
},
{
label: '审核人',
name: 'weChatName'
},
{
label: '审核时间',
name: 'activityName'
},
{
label: '备注',
name: 'goodsName'
}
]
this.withdrawData = withdrawData
this.paymentData = paymentData
this.operationData = operationData
// this.getInfo()
this.formToRow('withdrawData')
this.formToRow('paymentData')
this.formToRow('operationData')
},
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])
}
}
}
console.log(this[formName + 'Row'])
},
handleClose() {
this.isVisible =false
this.$emit('dialogClose')
}
}
}
</script>
<style scoped lang="scss">
.edit-box .row-item {
width: 28%;
/deep/ {
.el-form-item__content {
height: 30px;
}
}
}
.detail-txt {
display: inline-block;
width: 100px;
}
.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;
}
</style>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!