Commit 1a6439ca by 前端

Merge branch 'v2.12.0' of http://192.168.3.233:8090/glsx-web/glsx-oss-task into kyq_dev

2 parents aff4cde3 50cc9bd4
import request from './request'
import Vue from 'vue'
const path = 'merchants.api.'
const addNamelistApi = {
// 根据商户名称和渠道类型查询商户列表
getMerchantsList(data = {}) {
data.method = 'merchants.api.open.findMerchantList'
return request(
data,
'merchants.api.open.findMerchantList',
[],
Vue.prototype.otherUrl
)
}
}
export { addNamelistApi }
import request from './request'
const path = 'scrm.api.renewal.insurance.customer.name.list.'
const defaultPath = 'scrm.api.renewal.order.'
const profitApi = {
// 客户名单列表查询
searchProfitList(data = {}) {
data.method = `${path}get`
return request(data)
}
}
export { profitApi }
...@@ -7,7 +7,7 @@ import { ...@@ -7,7 +7,7 @@ import {
GlAxios GlAxios
} from 'glsx-vue-common' } from 'glsx-vue-common'
const request = (params = {}, method = RequestMethods.GET, noSignAttr = [], url = '') => { const request = (params = {}, method = RequestMethods.GET, noSignAttr = [], url = '') => {
params.source = 'glsx-oss-merchant-data' params.source = 'glsx-oss-withdrawal-data'
params.appKey = '48e5e13229b82c1b4e6e8c96151f0637' params.appKey = '48e5e13229b82c1b4e6e8c96151f0637'
params.timestamp = new Date().getTime() params.timestamp = new Date().getTime()
params.v = '1.0.0' params.v = '1.0.0'
......
import request from './request' import request from './request'
const path = 'merchants.api.accountype.' const path = 'withdrawals.api.accountype.'
const accountApi = { const accountApi = {
/** 账户类型分页数据*/ /** 账户类型分页数据*/
getPageApi(data = {}) { getPageApi(data = {}) {
......
import request from './request'
const path = 'scrm.api.renewal.insurance.customer.name.list.'
const defaultPath = 'scrm.api.renewal.order.'
const profitApi = {
// 客户名单列表查询
searchCustomerList(data = {}) {
data.method = `${path}get`
return request(data)
}
}
export { profitApi }
...@@ -95,3 +95,4 @@ const render = App => { ...@@ -95,3 +95,4 @@ const render = App => {
} }
export default { render, getConfig } export default { render, getConfig }
export const nearlyAMonth = {
data(){
return{
defalutStartTime:'',
defalutEndTime:''
}
},
created() {
let date = new Date()
let year = date.getFullYear()
let month = date.getMonth() + 1
let day = date.getDate()
let aheadOfMonth = month == '12' ? '1' : month - 1
this.defalutStartTime = year + '-' + aheadOfMonth + '-' + day
this.defalutEndTime = year + '-' + month + '-' + day
}
}
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
</div> </div>
<ul> <ul>
<li> <li>
<a href="../insurance/customer.html" target="_self"> <a href="../profitManagement/profitList/index.html" target="_self">
客户名单管理列表 客户名单管理列表11
</a> </a>
</li> </li>
<li> <li>
......
import App from './index.vue'
import base from '@/base'
import GlsxVueCommon from 'glsx-vue-common'
import Vue from 'vue'
base.getConfig().then(data => {
const { vue, config } = data
Vue.prototype.otherUrl = config.axios.otherURL
vue.use(GlsxVueCommon, config)
base.render(App)
})
<template>
<el-form
size='small'
inline
ref='withdrawalForm'
:model='profitSearchForm'
label-width='120px'
class='demo-form-inline'
>
<el-form-item label='员工名称'>
<el-input
clearable
v-model='profitSearchForm.staffName'
placeholder='请输入员工名称'
></el-input>
</el-form-item>
<el-form-item label='员工手机号'>
<el-input
clearable
v-model='profitSearchForm.staffPhone'
placeholder='请输入员工手机号'
></el-input>
</el-form-item>
<el-form-item label='所属业务场景'>
<el-select v-model='profitSearchForm.businessScene' placeholder='所属业务场景'>
<el-option label='全部' value=''></el-option>
</el-select>
</el-form-item>
<el-form-item label='所属商户:'>
<el-input
clearable
v-model='profitSearchForm.merchantName'
placeholder='请输入所属商户'
></el-input>
</el-form-item>
<el-form-item label='所属活动/产品:'>
<el-input
clearable
v-model='profitSearchForm.activityName'
placeholder='请输入所属活动/产品'
></el-input>
</el-form-item>
<el-form-item label='发放渠道:'>
<el-select v-model='profitSearchForm.channel' placeholder='请选择发放渠道'>
<el-option label='全部' value=''></el-option>
<el-option label='广联' value='0'></el-option>
<el-option label='服务商' value='2'></el-option>
<el-option label='门店' value='3'></el-option>
</el-select>
</el-form-item>
<el-form-item label='关联任务:'>
<el-input
clearable
v-model='profitSearchForm.activityName'
placeholder='请输入关联任务'
></el-input>
</el-form-item>
<el-form-item label='奖励时间'>
<el-date-picker
value-format='yyyy-MM-dd'
v-model='profitSearchForm.rewardTime'
type='daterange'
range-separator='至'
start-placeholder='开始日期'
end-placeholder='结束日期'>
</el-date-picker>
</el-form-item>
<el-form-item>
<el-button type='primary' @click='handleSearch'
>查询
</el-button
>
<el-button @click='reset'>重置</el-button>
</el-form-item>
</el-form>
</template>
<script>
import { nearlyAMonth } from '@/mixin/nearlyAMonth'
export default {
name: 'ProfitSearch',
mixins:[nearlyAMonth],
data() {
return {
profitSearchForm: {},
}
},
methods: {
handleSearch() {
if (this.profitSearchForm && this.profitSearchForm.rewardTime) {
this.profitSearchForm.rewardBeginTime = this.profitSearchForm.rewardTime[0]
this.profitSearchForm.rewardEndTime = this.profitSearchForm.rewardTime[1]
}
this.$emit('sendSearchForm', this.profitSearchForm)
},
reset() {
Object.keys(this.profitSearchForm).forEach((key) => {
this.profitSearchForm[key] = ''
})
this.$set(this.profitSearchForm, 'rewardTime', [this.defalutStartTime, this.defalutEndTime])
this.$nextTick(() => {
this.handleSearch()
})
}
},
created() {
this.$set(this.profitSearchForm, 'rewardTime', [this.defalutStartTime, this.defalutEndTime])
}
}
</script>
<style scoped>
</style>
<template>
<div style='margin: 16px'>
<ProfitSearch @sendSearchForm='getSearchForm' />
<el-button type='primary' size='small' class='handleOutput'>导出</el-button>
<div class='cumulativeAward'>累计发放奖励:{{ cumulativeAward }}</div>
<d2-table
class='my-row-height'
ref='withdrawalTable'
:hasNum='true'
:tableParams='profitTableParams'
:searchForm='profitSearchForm'
:getListApi='getListApi'
:pageConf='pageConf'
>
</d2-table>
</div>
</template>
<script>
import ProfitSearch from '@/views/profitManagement/profitList/cpns/ProfitSearch'
export default {
name: 'WithdrawalSearch',
components: {
ProfitSearch
},
data() {
return {
profitSearchForm:{},
cumulativeAward: '10000',
pageConf: {
pageSize: 'pageSize',
pageNum: 'pageNum',
totalCount: 'data.total'
},
// getListApi: profitApi.searchProfitList,
profitTableParams: {
listName: 'data.list',
tableColumns: [
{
label: '员工名称',
prop: 'staffName'
},
{
label: '员工手机号',
prop: 'staffPhone'
},
{
label: '奖励积分值',
prop: 'rewardScore'
},
{
label: '关联任务',
prop: 'missionName'
},
{
label: '发放渠道',
prop: 'channel'
},
{
label: '所属活动/产品',
prop: 'activityName'
},
{
label: '所属商户',
prop: 'merchantName'
},
{
label: '所属业务场景',
prop: 'businessScene'
},
{
label: '奖励时间',
prop: 'rewardTime'
}
]
}
}
},
methods: {
// 导出
handleOutput() {
let params = JSON.parse(JSON.stringify(this.profitSearchForm))
customerApi.orderListExport(params).then(res => {
if (res.code == 0) {
this.$Utils.exportFn(res.data)
} else {
this.$message({
type: 'error',
message: '导出失败!'
})
}
})
},
getSearchForm(val){
if (val.rewardTime) delete val.rewardTime
this.profitSearchForm = val
this.$refs.withdrawalTable.refreshTable()
}
},
}
</script>
<style scoped>
.cumulativeAward{
margin: 16px 0;
}
</style>
import App from './index.vue'
import base from '@/base'
import GlsxVueCommon from 'glsx-vue-common'
base.getConfig().then(data => {
const { vue, config } = data
vue.use(GlsxVueCommon, config)
base.render(App)
})
<template>
<div class='taskDetails'>
<div v-for='(item,index) in taskList' :key='index'>
<p>{{ item.type }}</p>
<p>{{ item.name }}</p>
<p>{{ item.desc }}</p>
<p>{{ item.text }}</p>
<img :src='item.img'>
<div class='taskAward'>
<div class='awardMode'>
<p>奖励模式:{{ item.mode }}</p>
<p>触发值:{{ item.attackVal }}</p>
</div>
<div>
<p>奖励次数:{{ item.times }}</p>
<p>奖励积分值:{{ item.awardCount }}</p>
</div>
</div>
</div>
<div class='copyLine'>
复制任务提醒链接
</div>
</div>
</template>
<script>
export default {
name: 'TaskDetails',
data() {
return {
taskList: [
{
type: '11',
name: '222',
desc: '333',
text: '',
img: '',
mode: '累计奖励',
times: '单次',
attackVal: '10',
awardCount: '10.00',
link: ''
}]
}
}
}
</script>
<style scoped>
.taskDetails{
display: flex;
justify-content: space-between;
align-items: center;
border: 1px solid #eee;
padding: 20px;
margin-bottom: 20px
;
}
.taskAward {
display: flex;
justify-content: space-between;
}
.awardMode{
padding-right: 20px;
}
.copyLine{
color: #409EFF;
cursor: pointer;
}
</style>
<template>
<div class='taskInfo'>
<div v-for='(item,index) in taskInfoList' :key='index'>
<span> {{item.name}}</span>
<span> {{item.value}}</span>
</div>
</div>
</template>
<script>
export default {
name: 'TaskInfo',
data(){
return{
taskInfoList:[
{
name:'业务场景:',
value:'1.3业务场景'
},
{
name:'商户:',
value:'我是商户名称'
},
{
name:'活动/产品:',
value:'dasd'
},
{
name:'任务指定人群:',
value:'1.3业务标签'
},
{
name:'发放渠道:',
value:'广联'
}
]
}
}
}
</script>
<style scoped>
.taskInfo{
display: flex;
justify-content: space-between;
font-size: 14px;
}
</style>
<template>
<d2-table
class="my-row-height"
ref="withdrawalTable"
:hasNum="true"
:tableParams="withdrawalTableParams"
:searchForm="withdrawalSearchForm"
:getListApi="getListApi"
:pageConf="pageConf"
>
</d2-table>
</template>
<script>
export default {
name: 'TaskTable',
data(){
return{
pageConf: {
pageSize: 'pageSize',
pageNum: 'pageNum',
totalCount: 'data.total',
},
// getListApi: customerApi.searchCustomerList,
withdrawalTableParams: {
mutiSelectUniqueKey:new Date().getTime() + parseInt(Math.random() * 1000),
mutiSelectName:'1111',
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'data.list',
tableColumns: [
{
label: '员工名称',
prop: 'withdrawalName',
},
{
label: '微信昵称',
prop: 'withdrawalId',
},
{
label: '员工手机号',
prop: 'mainBrandName',
},
{
label: '部门',
prop: 'customerNumber',
},
{
label: '任务状态',
prop: 'validCustomerNumber',
},
{
label: '已获得收益',
prop: 'batchNo',
},
{
label: '门店渠道',
prop: 'status',
addHtml: 'status',
},
{
label: '提现时间',
prop: 'createdBy',
}
],
},
}
}
}
</script>
<style scoped>
</style>
<template>
<div class='analyseTask'>
<TaskInfo></TaskInfo>
<el-form class='taskForm' :inline="true" :model="formInline">
<el-form-item label="任务时间:">
<el-select v-model="formInline.region" placeholder="请选择任务时间" @change="changeRegion">
<el-option label="区域一" value="shanghai"></el-option>
<el-option label="区域二" value="beijing"></el-option>
</el-select>
</el-form-item>
<el-form-item label="具体任务:">
<el-select v-model="formInline.region" placeholder="请选择具体任务">
<el-option label="区域一" value="shanghai"></el-option>
</el-select>
</el-form-item>
</el-form>
<TaskDetails></TaskDetails>
<TaskTable></TaskTable>
<div class='footer'>
<el-button @click='backUp'>返回</el-button>
</div>
</div>
</template>
<script>
import TaskInfo from '@/views/task/analyseTask/cpns/TaskInfo'
import TaskDetails from '@/views/task/analyseTask/cpns/TaskDetails'
import TaskTable from '@/views/task/analyseTask/cpns/TaskTable'
export default {
name: 'index',
components:{
TaskInfo,
TaskDetails,
TaskTable
},
data(){
return{
formInline:{},
taskTime:[],
specificTime:[]
}
},
methods:{
changeRegion(){
console.log('选择了')
},
backUp(){
this.$root.to([
'任务中心',
'任务平台',
'任务管理',
'任务模板管理',
'任务管理列表'
])
}
}
}
</script>
<style scoped>
.analyseTask{
padding: 20px;
}
.taskForm{
padding-top: 20px;
}
.footer{
position: fixed;
bottom: 0;
width: 100%;
text-align: center;
background-color: #fff;
}
</style>
import App from './index.vue'
import base from '@/base'
import GlsxVueCommon from 'glsx-vue-common'
base.getConfig().then(data => {
const { vue, config } = data
vue.use(GlsxVueCommon, config)
base.render(App)
})
<template>
<div class='basicInfo'>
<div class='headline'>基础信息</div>
<div v-for='(item,index) in basicInfoList' :key='index' class='basicInfoList'>
<span class='infoName'>{{item.infoName}}</span>
<span>{{item.infoVal}}</span>
</div>
</div>
</template>
<script>
export default {
name: 'BasicInfo',
data(){
return{
basicInfoList:[
{infoName:'业务场景:',infoVal:'1.3'},
{infoName:'商户:',infoVal:'1.3'},
{infoName:'活动/产品:',infoVal:'1.3'},
{infoName:'任务指定人群:',infoVal:'1.3'},
{infoName:'发放渠道:',infoVal:'1.3'},
{infoName:'备注:',infoVal:'1.3'},
]
}
}
}
</script>
<style scoped>
.headline{
font-weight: 600;
padding-bottom: 20px;
}
.basicInfoList{
font-size: 14px;
display: flex;
padding: 8px 0;
}
.infoName{
color: #999999;
width: 120px;
padding-right: 16px;
text-align: right;
}
</style>
<template>
<div class='taskPlan'>
<div class='headline'>任务计划</div>
<el-tabs v-model="activeName" type="card" @tab-click="handleClick">
<el-tab-pane label="第一天" name="first">用户管理</el-tab-pane>
<el-tab-pane label="完整周期" name="fourth">
<div class='taskInfo' v-for='(item,index) in taskPlanList' :key='index'>
<p>{{item.taskType}}</p>
<p>{{item.taskName}}</p>
<p>{{item.taskDescript}}</p>
<p>{{item.scornWard}}</p>
</div>
</el-tab-pane>
</el-tabs>
</div>
</template>
<script>
export default {
name: 'taskPlan',
data(){
return{
activeName: 'first',
taskPlanList:[
{
taskType:'我是任务类型',
taskName:'我是任务名称',
taskDescript:'我是任务描述',
scornWard:'111'
},
{
taskType:'我是任务类型',
taskName:'我是任务名称',
taskDescript:'我是任务描述',
scornWard:'111'
}
]
}
}
}
</script>
<style scoped>
.headline{
font-weight: 600;
padding-bottom: 20px;
}
</style>
<template>
<div class='observeTask'>
<BasicInfo></BasicInfo>
<taskPlan/>
<div class='footer'>
<el-button @click='backUp'>返回</el-button>
</div>
</div>
</template>
<script>
import BasicInfo from './cpns/BasicInfo'
import taskPlan from './cpns/taskPlan'
export default {
name: 'index',
components:{
BasicInfo,
taskPlan
},
methods:{
backUp(){
this.$root.to([
'任务中心',
'任务平台',
'任务管理',
'任务模板管理',
'任务管理列表'
])
}
}
}
</script>
<style scoped>
.observeTask{
padding: 20px;
}
.footer{
position: fixed;
bottom: 0;
width: 100%;
text-align: center;
background-color: #fff;
}
</style>
...@@ -273,6 +273,25 @@ export default { ...@@ -273,6 +273,25 @@ export default {
this.$refs.taskTable.refreshTable() this.$refs.taskTable.refreshTable()
}) })
}, },
handleObserve() {
this.$root.to([
'任务中心',
'任务平台',
'任务管理',
'任务模板管理',
'*查看任务',
])
},
handleAnalyse() {
this.$root.to([
'任务中心',
'任务平台',
'任务管理',
'任务模板管理',
'*任务分析',
])
},
// 编辑 // 编辑
handleEdit(scope, type) { handleEdit(scope, type) {
if (!type) { if (!type) {
......
import App from './index'
import base from '@/base'
import GlsxVueCommon from 'glsx-vue-common'
base.getConfig().then(data => {
const { vue, config } = data
vue.use(GlsxVueCommon, config)
base.render(App)
})
<template>
<el-dialog title='提示' :visible.sync='dialogVisible' width='30%'>
<span>{{ textTooltip }}</span>
<p>是否确定审核?</p>
<span slot='footer' class='dialog-footer'>
<el-button @click='dialogVisible = false'>取 消</el-button>
<el-button type='primary' @click='comfirmDialog()'
>确 定</el-button
>
</span>
</el-dialog>
</template>
<script>
export default {
name: 'WithdrawalDialog',
props: ['textTooltip','selectType'],
data() {
return {
dialogVisible: false
}
},
methods: {
comfirmDialog() {
console.log(this.selectType)
}
}
}
</script>
<style scoped>
</style>
<template>
<div style='margin: 16px'>
<el-form
size='small'
inline
ref='withdrawalForm'
:model='withdrawalSearchForm'
label-width='100px'
class='demo-form-inline'
>
<el-form-item label='员工名称'>
<el-input
clearable
v-model='withdrawalSearchForm.staffName'
placeholder='请输入员工名称'
></el-input>
</el-form-item>
<el-form-item label='员工手机号'>
<el-input
clearable
v-model='withdrawalSearchForm.staffPhone'
placeholder='请输入员工手机号'
></el-input>
</el-form-item>
<el-form-item label='状态'>
<el-select v-model='withdrawalSearchForm.status' placeholder='请选择状态'>
<el-option label='全部' value=''></el-option>
<el-option label='待审核' value='0'></el-option>
<el-option label='到账中' value='1'></el-option>
<el-option label='已到账' value='2'></el-option>
<el-option label='到账失败' value='3'></el-option>
</el-select>
</el-form-item>
<el-form-item label='提现时间'>
<el-date-picker
value-format='yyyy-MM-dd'
v-model='withdrawalSearchForm.withdrawalTime'
type='daterange'
range-separator='至'
start-placeholder='开始日期'
end-placeholder='结束日期'>
</el-date-picker>
</el-form-item>
<el-form-item label='审核时间'>
<el-date-picker
value-format='yyyy-MM-dd'
v-model='withdrawalSearchForm.reviewTime'
type='daterange'
range-separator='至'
start-placeholder='开始日期'
end-placeholder='结束日期'>
</el-date-picker>
</el-form-item>
<el-form-item>
<el-button type='primary'
@click='handleSearch'
>查询
</el-button
>
<el-button @click='reset'>重置</el-button>
</el-form-item>
</el-form>
</div>
</template>
<script>
import { nearlyAMonth } from '@/mixin/nearlyAMonth'
export default {
name: 'WithdrawalSearch',
mixins:[nearlyAMonth],
data() {
return {
withdrawalSearchForm: {}
}
},
created() {
this.$set(this.withdrawalSearchForm,'withdrawalTime',[this.defalutStartTime,this.defalutEndTime])
},
methods: {
handleSearch() {
if (this.withdrawalSearchForm && this.withdrawalSearchForm.withdrawalTime) {
this.withdrawalSearchForm.withdrawalBeginTime = this.withdrawalSearchForm.withdrawalTime[0]
this.withdrawalSearchForm.withdrawalEndTime = this.withdrawalSearchForm.withdrawalTime[1]
}
if (this.withdrawalSearchForm && this.withdrawalSearchForm.reviewTime) {
this.withdrawalSearchForm.reviewBeginTime = this.withdrawalSearchForm.reviewTime[0]
this.withdrawalSearchForm.reviewEndTime = this.withdrawalSearchForm.reviewTime[1]
}
this.$emit('sendSearchForm', this.withdrawalSearchForm)
},
reset() {
Object.keys(this.withdrawalSearchForm).forEach((key) => {
this.withdrawalSearchForm[key] = ''
})
this.$set(this.withdrawalSearchForm,'withdrawalTime',[this.defalutStartTime,this.defalutEndTime])
this.$nextTick(() => {
this.handleSearch()
})
}
}
}
</script>
<style scoped>
</style>
<template>
<d2-table
class="my-row-height"
ref="withdrawalTable"
@select="handleSelect"
:hasNum="true"
:tableParams="withdrawalTableParams"
:searchForm="searchForm"
:getListApi="getListApi"
:pageConf="pageConf"
>
</d2-table>
</template>
<script>
export default {
name: 'WithdrawalTable',
props:['searchForm'],
data(){
return{
pageConf: {
pageSize: 'pageSize',
pageNum: 'pageNum',
totalCount: 'data.total',
},
// getListApi: customerApi.searchCustomerList,
withdrawalTableParams: {
mutiSelectUniqueKey:new Date().getTime() + parseInt(Math.random() * 1000),
mutiSelectName:'1111',
// btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'data.list',
tableColumns: [
{
label: '员工名称',
prop: 'staffName',
},
{
label: '员工手机号',
prop: 'staffPhone',
},
{
label: '积分值',
prop: 'withdrawalScore',
},
{
label: '提现金额(元)',
prop: 'withdrawalAmount',
},
// {
// label: '广联渠道',
// prop: 'validCustomerNumber',
// },
// {
// label: '服务商渠道',
// prop: 'batchNo',
// },
// {
// label: '门店渠道',
// prop: 'status',
// addHtml: 'status',
// },
{
label: '提现时间',
prop: 'withdrawalTime',
},
{
label: '微信昵称',
prop: 'wechatName',
},
{
label: '微信手机号',
prop: 'wechatPhone',
},
{
label: '微信openid',
prop: 'wechatId',
},
{
label: '状态',
prop: 'status',
},
{
label: '审核人',
prop: 'reviewer',
},
{
label: '审核时间',
prop: 'reviewTime',
},
{
label: '到账时间',
prop: 'successTime',
}
],
},
}
},
methods:{
handleSelect(selection,row){
this.orgMultiSelection = selection;
let opSelection = this.res.map(item => {
let {status,id,...params} = item
return {status,id}
})
this.$emit('sendSelection',opSelection )
},
}
}
</script>
<style scoped>
</style>
<template>
<div>
<WithdrawalSearch @sendSearchForm='getSearchForm' />
<div class='btnOptons'>
<el-button
size='small'
type='primary'
@click="handleDialog('check')"
>批量审核
</el-button
>
<el-button
size='small'
type='primary'
@click="handleDialog('transfer')"
>
批量重新发起转账
</el-button
>
<el-button
size='small'
type='primary'
@click='handleOutput'
>导出
</el-button
>
</div>
<WithdrawalTable :searchForm='searchForm' @sendSelection='getSelection' />
<WithdrawalDialog :textTooltip='textTooltip' :selectType='selectType' :auditId='auditId' ref='dialogRef' />
</div>
</template>
<script>
// import { customerApi } from '@/api/customer'
import WithdrawalSearch from './components/WithdrawalSearch'
import WithdrawalTable from './components/WithdrawalTable'
import WithdrawalDialog from './components/WithdrawalDialog'
export default {
components: {
WithdrawalSearch,
WithdrawalTable,
WithdrawalDialog
},
data() {
return {
textTooltip: '',
selectType: '',
searchForm: {},
choiceStatus: [],
auditId: []
}
},
methods: {
getSearchForm(val) {
if (val.withdrawalTime) delete val.withdrawalTime
if (val.reviewTime) delete val.reviewTime
this.searchForm = val
},
handleOutput() {
let params = JSON.parse(JSON.stringify(this.searchForm))
// customerApi.orderListExport(params).then(res => {
// if (res.code == 0) {
// this.$Utils.exportFn(res.data)
// } else {
// this.$message({
// type: 'error',
// message: '导出失败!'
// })
// }
// })
},
vertify(selectType, status) {
console.log(arguments)
let errMsg = selectType == 'check' ? '请选择待审核的提现记录!' : '请选择到账失败的提现记录'
if ((selectType && !this.choiceStatus.length) || (selectType && this.choiceStatus.every(item => item.status !== status))) {
this.$message({
type: 'error',
message: errMsg
})
return false
}
},
getSelection(val) {
// this.selectId = val.map(item =>
// return item.id
// )
},
handleDialog(type) {
this.selectType = type
let vertifycheck = true
if (type == 'check') {
vertifycheck = this.vertify('check', '1')
} else {
vertifycheck = this.vertify('transfer', '2')
}
if (vertifycheck) {
this.auditId = this.getSelection()
this.textTooltip = type == 'check' ? '审核通过,系统将自动转账至员工的微信零钱中' : '手动发起转账,系统将重新发起转账至员工的微信零钱中'
this.$refs.dialogRef.dialogVisible = true
}
}
}
}
</script>
<style scoped>
.addList {
width: 112px;
background: #1994f9;
border-radius: 2px;
margin-bottom: 16px;
}
.el-icon-plus {
padding-right: 5px;
}
.my-row-height >>> .el-table__body-wrapper .el-table__row {
height: 48px;
}
.btnOptons {
margin-bottom: 10px;
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!