Commit 50497cb2 by 徐忆琳

Merge branch 'xuyl_dev_v3.6.0' into 'v3.6.0'

更新v3.6.0代码

See merge request !89
2 parents 09d3748f ef6a2fd6
import request from './request'
const path = 'merchants.api.staff.withdrawal.'
const bankCardApi = {
// 客户名单列表查询
bankCardListApi(data = {}) {
data.method = `${path}page`
return request(data)
},
// 批量核销
batchWriteOff(data = {}) {
data.method = `${path}batchWithdrawal`
return request(data)
},
// 批量失败
batchFail(data = {}) {
data.method = `${path}batchFail`
return request(data)
}
}
export { bankCardApi }
...@@ -9,7 +9,8 @@ const request = ( ...@@ -9,7 +9,8 @@ const request = (
method = RequestMethods.GET, method = RequestMethods.GET,
noSignAttr = [], noSignAttr = [],
url = '', url = '',
isMd5 = false isMd5 = false,
isParams=true
) => { ) => {
params.source = 'glsx-oss-withdrawal-data' params.source = 'glsx-oss-withdrawal-data'
params.appKey = '48e5e13229b82c1b4e6e8c96151f0637' params.appKey = '48e5e13229b82c1b4e6e8c96151f0637'
...@@ -24,9 +25,12 @@ const request = ( ...@@ -24,9 +25,12 @@ const request = (
// return axios.post(`${url}/router?method=${method}`, qs.stringify(data)) // return axios.post(`${url}/router?method=${method}`, qs.stringify(data))
} }
var data = isMd5 ? sign(params, noSignAttr, true) : sign(params, noSignAttr) var data = isMd5 ? sign(params, noSignAttr, true) : sign(params, noSignAttr)
if (url) { if (url && isParams) {
return axios.post(`${url}/router?method=${method}`, qs.stringify(data)) return axios.post(`${url}/router?method=${method}`, qs.stringify(data))
} }
if (url && !isParams) {
return axios.post(`${url}/router`, qs.stringify(data))
}
return method === RequestMethods.GET return method === RequestMethods.GET
? GlAxios.get('router', { ? GlAxios.get('router', {
params: sign(params, noSignAttr), params: sign(params, noSignAttr),
......
...@@ -49,5 +49,31 @@ const taskApi = { ...@@ -49,5 +49,31 @@ const taskApi = {
data.method = 'merchants.api.mission.staticMission' data.method = 'merchants.api.mission.staticMission'
return request(data, 'post') return request(data, 'post')
}, },
// 获取机器人列表
getlistDepartmentTree(data) {
data.method = 'entmicro.api.department.listDepartmentTreeNoSession'
return request(
data,
'entmicro.api.department.listDepartmentTreeNoSession',
[],
Vue.prototype.entmicroURL
)
},
// 获取群聊列表
getGroupList(data) {
data.method =
'entmicro.api.wechatcloudcontrol.batchmessaging.group.list.nosession'
return request(
data,
'entmicro.api.wechatcloudcontrol.batchmessaging.group.list.nosession',
[],
Vue.prototype.entmicroURL
)
},
// 获取企业接口
findEntmicroList(data) {
data.method = 'merchants.api.mission.findEntmicroList'
return request(data, 'post')
},
} }
export { taskApi } export { taskApi }
import request from './request' import request from './request'
import Vue from 'vue'
const uploadApi = { const uploadApi = {
// 多文件上传接口 // 多文件上传接口
multipleUpload(data = {}) { multipleUpload(data = {}) {
// 'http://192.168.1.182:8561/rop-scrm-renewal' // 'http://192.168.1.182:8561/rop-scrm-renewal'
data.method = 'scrm.api.renewal.common.upload.common.multiple' data.method = 'glsx.accounts.biz.common.pictureUpload'
// return request(data, 'scrm.api.equity.common.upload.common.multiple', [], 'http://scrm.test.glsx.com.cn/rop-scrm-renewal') // return request(data, 'scrm.api.equity.common.upload.common.multiple', [], 'http://scrm.test.glsx.com.cn/rop-scrm-renewal')
return request(data, 'post') return request(data, 'glsx.accounts.biz.common.pictureUpload',['file'], Vue.prototype.fileUploadURL,true)
} }
} }
export { uploadApi } export { uploadApi }
import Vue from 'vue' import Vue from 'vue'
export const Util = { export const Util = {
getExplorer: function() { getExplorer: function () {
var ua = navigator.userAgent.toLocaleLowerCase() var ua = navigator.userAgent.toLocaleLowerCase()
var browserType = null var browserType = null
if (ua.match(/msie/) != null || ua.match(/trident/) != null) { if (ua.match(/msie/) != null || ua.match(/trident/) != null) {
...@@ -29,7 +29,7 @@ export const Util = { ...@@ -29,7 +29,7 @@ export const Util = {
return browserType return browserType
}, },
exportFn: function(url) { exportFn: function (url) {
console.log(url) console.log(url)
let browserType = getExplorer() let browserType = getExplorer()
if (browserType == 'QQ') { if (browserType == 'QQ') {
...@@ -42,8 +42,48 @@ export const Util = { ...@@ -42,8 +42,48 @@ export const Util = {
iframe.src = url iframe.src = url
document.body.appendChild(iframe) document.body.appendChild(iframe)
console.log(document.body) console.log(document.body)
} },
deepClone: function (obj) {
// Handle the 3 simple types, and null or undefined or function
if (obj == null || typeof obj !== 'object') return obj
// Handle Date
if (obj instanceof Date) {
const copy = new Date()
copy.setTime(obj.getTime())
return copy
}
// Handle Array or Object
if ((obj instanceof Array) | (obj instanceof Object)) {
const copy = obj instanceof Array ? [] : {}
for (var attr in obj) {
if (obj.hasOwnProperty(attr)) {
copy[attr] = Util.deepClone(obj[attr])
}
}
return copy
}
throw new Error("Unable to clone obj! Its type isn't supported.")
},
timeTransfer: function (time) {
const date = new Date(time)
const y = date.getFullYear()
let m = date.getMonth() + 1
m = m < 10 ? '0' + m : m
let d = date.getDate()
d = d < 10 ? '0' + d : d
let h = date.getHours()
h = h < 10 ? '0' + h : h
let minute = date.getMinutes()
minute = minute < 10 ? '0' + minute : minute
let s = date.getSeconds()
s = s < 10 ? '0' + s : s
return y + '-' + m + '-' + d + ' ' + h + ':' + minute + ':' + s
},
} }
export const getExplorer = Util.getExplorer export const getExplorer = Util.getExplorer
export const exportFn = Util.exportFn export const exportFn = Util.exportFn
export const deepClone = Util.deepClone
export const timeTransfer = Util.timeTransfer
...@@ -438,6 +438,7 @@ export default { ...@@ -438,6 +438,7 @@ export default {
watch: { watch: {
previewList: { previewList: {
handler(val) { handler(val) {
console.log(val)
this.$emit('shareMatrial', val) this.$emit('shareMatrial', val)
this.$emit('getEditor') this.$emit('getEditor')
}, },
......
import App from './index'
import base from '@/base'
import GlsxVueCommon from 'glsx-vue-common'
import Vue from 'vue'
base.getConfig().then(data => {
const { vue, config } = data
Vue.prototype.fileUploadURL = config.axios.fileUploadURL
vue.use(GlsxVueCommon, config)
base.render(App)
})
<template>
<el-form
size='small'
inline
ref='bankCardForm'
:model='bankCardSearchForm'
label-width='120px'
class='demo-form-inline'
>
<el-form-item label='员工名称:'>
<el-input
clearable
v-model='bankCardSearchForm.staffName'
placeholder='请输入员工名称'
maxlength='20'
maxLen
></el-input>
</el-form-item>
<el-form-item label='员工手机号:'>
<el-input
clearable
v-model='bankCardSearchForm.staffPhone'
maxlength='11'
placeholder='请输入员工手机号'
></el-input>
</el-form-item>
<el-form-item label='门店名称:'>
<el-input
clearable
v-model='bankCardSearchForm.merchantName'
maxlength='50'
placeholder='请输入门店名称'
></el-input>
</el-form-item>
<el-form-item label='状态:'>
<el-select
v-model='bankCardSearchForm.status'
placeholder='请选择状态'
>
<el-option label='全部' value=''></el-option>
<el-option label='待核销' value='1'></el-option>
<el-option label='已核销' value='2'></el-option>
<el-option label='未核销' value='3'></el-option>
<el-option label='提现失败' value='4'></el-option>
</el-select>
</el-form-item>
<el-form-item label='提现时间:'>
<el-date-picker
value-format='yyyy-MM-dd'
v-model='bankCardSearchForm.withdrawal'
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='bankCardSearchForm.review'
type='daterange'
range-separator='至'
start-placeholder='开始日期'
end-placeholder='结束日期'
>
</el-date-picker>
</el-form-item>
<el-form-item label='导出状态:'>
<el-select
v-model='bankCardSearchForm.exportStatus'
placeholder='请选择导出状态'
>
<el-option label='全部' value=''></el-option>
<el-option label='已导出' value='0'></el-option>
<el-option label='未导出' value='1'></el-option>
</el-select>
</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: 'bankCardSearch',
mixins: [nearlyAMonth],
data() {
return {
bankCardSearchForm: {
status: '',
exportStatus: '',
isWithdrawal: 3
}
}
},
methods: {
handleSearch() {
this.$emit('sendSearchForm', this.bankCardSearchForm)
},
reset() {
Object.keys(this.bankCardSearchForm).forEach((key) => {
this.bankCardSearchForm[key] = ''
})
this.bankCardSearchForm.isWithdrawal = 3
this.$emit('sendResetTable', 'reset')
this.$nextTick(() => {
this.handleSearch()
})
}
}
}
</script>
<style scoped></style>
<template>
<div style='margin: 16px'>
<BankCardSearch
ref='bankCardSearch'
@sendSearchForm='getSearchForm'
@sendResetTable='reset'
/>
<div class='buttonSet'>
<el-button v-for='(itm,idx) in buttonTraversal' :key='idx' size='small' type='primary'
@click='openDialog(itm.byValue)'>{{ itm.btnName }}
</el-button>
</div>
<d2-table
class='my-row-height'
ref='bankCardTable'
:hasNum='true'
:tableParams='bankCardTableParams'
:searchForm='bankCardSearchForm'
:getListApi='getListApi'
:pageConf='pageConf'
>
<div slot='exportStatus' slot-scope='scope'>
{{
scope.scope.exportStatus == '0'
? '未导出'
: scope.scope.exportStatus == '1'
? '已导出'
: ''
}}
</div>
<div slot='status' slot-scope='scope'>
<span v-if="scope.scope.status == '1'">待核销</span>
<span v-if="scope.scope.status == '2'">到账中</span>
<span v-if="scope.scope.status == '3'">已到账</span>
<span v-if="scope.scope.status == '4'">到账失败</span>
</div>
</d2-table>
<BankCardDialog ref='bankCardDialog' @sendResetTable='reset' :bankCardSearchForm='bankCardSearchForm' :choiceData='choiceData'
:dialogType='dialogType'></BankCardDialog>
</div>
</template>
<script>
import BankCardSearch from '@/views/bankCardWithdrawal/bankCardList/cpns/bankCardSearch'
import BankCardDialog from '@/views/bankCardWithdrawal/bankCardList/cpns/BankCardDialog'
import { bankCardApi } from '@/api/bankCardWithdrawal'
export default {
name: 'bankCardList',
components: {
BankCardSearch,
BankCardDialog
},
data() {
return {
buttonTraversal: [
{ byValue: 'resultImport', btnName: '结果导入' },
{ byValue: 'export', btnName: '导出' },
{ byValue: 'batchWriteOff', btnName: '批量核销' },
{ byValue: 'batchWithdrawalFailed', btnName: '批量提现失败' }
],
dialogType: '',
bankCardSearchForm: {},
dialogVisible: false,
totalScore: '',
choiceData: [],
choiceDataBack: [],
pageConf: {
pageSize: 'pageSize',
pageNum: 'pageNum',
totalCount: 'data.count'
},
getListApi: bankCardApi.bankCardListApi,
bankCardTableParams: {
mutiSelectUniqueKey: 'id',
mutiSelectName: 'list',
listName: 'data.data',
tableColumns: [
{
label: '流水号',
prop: 'rewardScore'
},
{
label: '员工名称',
prop: 'staffName'
},
{
label: '员工手机号',
prop: 'staffPhone'
},
{
label: '所属商户',
prop: 'merchantName'
},
{
label: '积分值',
prop: 'withdrawalScore'
},
{
label: '提现金额(元)',
prop: 'withdrawalAmount'
},
{
label: '提现时间',
prop: 'withdrawalTime'
},
{
label: '银行名称',
prop: 'bankName'
},
{
label: '银行卡号',
prop: 'bankNumber'
},
{
label: '持卡人姓名',
prop: 'bankuserName'
},
{
label: '银行预留手机号',
prop: 'bankPhone'
},
{
label: '身份证号',
prop: 'idCardNo'
},
{
label: '状态',
prop: 'status',
addHtml: 'status'
},
{
label: '导出状态',
prop: 'exportStatus',
addHtml: 'exportStatus'
},
{
label: '核销人',
prop: 'reviewer'
},
{
label: '核销时间',
prop: 'reviewTime'
},
{
label: '失败原因',
prop: 'failReason'
}
]
},
timeout: null
}
},
computed: {},
methods: {
openDialog(type) {
this.dialogType = type
this.getSeletedData()
if (type == 'batchWriteOff' || type == 'batchWithdrawalFailed') {
if (this.choiceData && (this.choiceData.length == 0 || this.choiceData.some((item) => {
return item.status !== 1
}))) {
this.$message({
type: 'error',
message: '请勾选需要核销的积分记录!'
})
return
}
}
this.$refs.bankCardDialog.bankCardVisible = true
},
getSeletedData() {
this.choiceData =
this.$refs.bankCardTable.mutiSelectArr.list &&
this.$refs.bankCardTable.mutiSelectArr.list.map((item) => {
let {
status,
id
} = item
return {
status,
id
}
})
},
getSearchForm(val) {
let params = JSON.parse(JSON.stringify(val))
this.bankCardSearchForm = params
setTimeout(() => {
this.$refs.bankCardTable.refreshTable(false, true)
}, 500)
},
reset() {
if (this.choiceData) {
this.$refs.bankCardTable.mutiSelectArr.list = []
this.$refs.bankCardTable.$children[0].clearSelection()
}
let params = {
isWithdrawal: 3
}
this.getSearchForm(params)
}
}
}
</script>
<style scoped>
.my-row-height >>> .el-table__body-wrapper .el-table__row {
height: 48px;
}
.buttonSet {
margin-bottom: 16px;
}
</style>
...@@ -206,7 +206,6 @@ export default { ...@@ -206,7 +206,6 @@ export default {
numberOfStoresArr.includes(next.merchantName) numberOfStoresArr.includes(next.merchantName)
? '' ? ''
: numberOfStoresArr.push(next.merchantName) : numberOfStoresArr.push(next.merchantName)
console.log(totalPoints)
next.rewardScore next.rewardScore
? (totalPoints += next.rewardScore) ? (totalPoints += next.rewardScore)
: (totalPoints += 0) : (totalPoints += 0)
......
...@@ -7,6 +7,7 @@ base.getConfig().then((data) => { ...@@ -7,6 +7,7 @@ base.getConfig().then((data) => {
Vue.prototype.otherUrl = config.axios.otherURL Vue.prototype.otherUrl = config.axios.otherURL
Vue.prototype.fileUploadURL = config.axios.fileUploadURL Vue.prototype.fileUploadURL = config.axios.fileUploadURL
Vue.prototype.businessURL = config.axios.businessURL Vue.prototype.businessURL = config.axios.businessURL
Vue.prototype.entmicroURL = config.axios.entmicroURL
vue.use(GlsxVueCommon, config) vue.use(GlsxVueCommon, config)
base.render(App) base.render(App)
}) })
...@@ -37,6 +37,20 @@ ...@@ -37,6 +37,20 @@
</template> </template>
<div class="taskAward"> <div class="taskAward">
<div class="showInfoForm"> <div class="showInfoForm">
<span v-if="item.autoReminderFlag"
>自动提醒:{{
item.autoReminderFlag && item.autoReminderFlag == 1
? '无提醒'
: '自动提醒'
}}</span
>
<span v-if="item.autoReminderFlag && item.autoReminderFlag != 1"
>提醒时间:{{ item.autoReminderTime }}</span
><span v-if="item.autoReminderFlag && item.autoReminderFlag != 1"
>企微机器人:{{ item.enterMicroRobotName }}</span
><span v-if="item.autoReminderFlag && item.autoReminderFlag != 1"
>目标群聊:{{ item.groupChatName }}</span
>
<span v-if="item.rewardTypeName" <span v-if="item.rewardTypeName"
>奖励模式:{{ item.rewardTypeName }}</span >奖励模式:{{ item.rewardTypeName }}</span
> >
......
...@@ -22,46 +22,46 @@ export default { ...@@ -22,46 +22,46 @@ export default {
{ {
name: '业务场景:', name: '业务场景:',
value: 'businessSceneName', value: 'businessSceneName',
id:'businessSceneName' id: 'businessSceneName'
}, },
{ {
name: '商户:', name: '商户:',
value: 'merchantName', value: 'merchantName',
id:'merchantName' id: 'merchantName'
}, },
{ {
name: '活动/产品:', name: '活动/产品:',
value: 'activityName', value: 'activityName',
id:'activityName' id: 'activityName'
}, },
{ {
name: '任务指定人群:', name: '任务指定人群:',
value: 'crowdName', value: 'crowdName',
id:'crowdName' id: 'crowdName'
}, },
{ {
name: '发放渠道:', name: '发放渠道:',
value: 'channelName', value: 'channelName',
id:'channelName' id: 'channelName'
}, },
{ {
name: '积分提现:', name: '积分提现:',
value: 'withdrawalFlag', value: 'withdrawalFlag',
id:'withdrawalFlag' id: 'withdrawalFlag'
} }
] ]
} }
}, },
watch: { watch: {
taskInfo:{ taskInfo: {
handler(newVal,oldVal){ handler(newVal, oldVal) {
if (!oldVal || newVal !== oldVal) { if (!oldVal || newVal !== oldVal) {
this.taskInfoList.map(item => { this.taskInfoList.map(item => {
Object.keys(newVal).forEach(key => { Object.keys(newVal).forEach(key => {
if (item.id == key) { if (item.id == key) {
item.value = newVal[key] item.value = newVal[key]
if (item.id == 'withdrawalFlag') { if (item.id == 'withdrawalFlag') {
item.value = item.value == '1' ? '员工发起提现' : item.value == '2' ? '运营从后台核销' : '' item.value = item.value == '1' ? '员工发起提现' : item.value == '2' ? '运营从后台核销' : item.value == '3' ? '银行卡提现' : ''
} }
} }
}) })
...@@ -70,7 +70,7 @@ export default { ...@@ -70,7 +70,7 @@ export default {
}, },
immediate: true, immediate: true,
deep: true deep: true
}, }
} }
} }
</script> </script>
......
...@@ -39,7 +39,7 @@ export default { ...@@ -39,7 +39,7 @@ export default {
if (item.id == key) { if (item.id == key) {
item.infoVal = newVal[key] item.infoVal = newVal[key]
if (item.id == 'withdrawalFlag') { if (item.id == 'withdrawalFlag') {
item.infoVal = item.infoVal == '1' ? '员工发起提现' : item.infoVal == '2' ? '运营从后台核销' : '' item.infoVal = item.infoVal == '1' ? '员工发起提现' : item.infoVal == '2' ? '运营从后台核销' : item.infoVal == '3' ? '银行卡提现' : ''
} }
} }
......
...@@ -48,6 +48,30 @@ ...@@ -48,6 +48,30 @@
</div> </div>
</template> </template>
<div class="showInfoForm"> <div class="showInfoForm">
<span v-if="displayList.autoReminderFlag"
>自动提醒:{{
displayList.autoReminderFlag == 1 ? '无提醒' : '自动提醒'
}}</span
>
<span
v-if="
displayList.autoReminderFlag &&
displayList.autoReminderFlag != 1
"
>提醒时间:{{ displayList.autoReminderTime }}</span
><span
v-if="
displayList.autoReminderFlag &&
displayList.autoReminderFlag != 1
"
>企微机器人:{{ displayList.enterMicroRobotName }}</span
><span
v-if="
displayList.autoReminderFlag &&
displayList.autoReminderFlag != 1
"
>目标群聊:{{ displayList.groupChatName }}</span
>
<span v-if="displayList.rewardTypeName" <span v-if="displayList.rewardTypeName"
>奖励模式:{{ displayList.rewardTypeName }}</span >奖励模式:{{ displayList.rewardTypeName }}</span
> >
......
...@@ -81,6 +81,7 @@ ...@@ -81,6 +81,7 @@
<span v-if="scope.scope.businessScene == 1">1.1精品升级</span> <span v-if="scope.scope.businessScene == 1">1.1精品升级</span>
<span v-if="scope.scope.businessScene == 2">1.2膨胀金活动</span> <span v-if="scope.scope.businessScene == 2">1.2膨胀金活动</span>
<span v-if="scope.scope.businessScene == 3">1.3众筹活动</span> <span v-if="scope.scope.businessScene == 3">1.3众筹活动</span>
<span v-if="scope.scope.businessScene == 4">5.2私域用户代运营</span>
</div> </div>
<div slot="activityStatus" slot-scope="scope"> <div slot="activityStatus" slot-scope="scope">
<span v-if="scope.scope.activityStatus == statusNum.UNPUBLISH" <span v-if="scope.scope.activityStatus == statusNum.UNPUBLISH"
...@@ -125,7 +126,10 @@ ...@@ -125,7 +126,10 @@
@click="handleInactive(scope.scope)" @click="handleInactive(scope.scope)"
>结束</el-button >结束</el-button
> >
<el-button type="text" @click="handleClone(scope.scope)" <el-button
type="text"
@click="handleClone(scope.scope)"
v-if="scope.scope.businessScene != 4"
>复制</el-button >复制</el-button
> >
<el-button <el-button
...@@ -161,6 +165,10 @@ const sceneOption = [ ...@@ -161,6 +165,10 @@ const sceneOption = [
label: '1.3众筹活动', label: '1.3众筹活动',
value: '3', value: '3',
}, },
{
label: '5.2私域用户代运营',
value: '4',
},
] ]
const statusNum = { const statusNum = {
ALL: '', ALL: '',
......
...@@ -24,27 +24,28 @@ export default { ...@@ -24,27 +24,28 @@ export default {
} }
}, },
methods: { methods: {
handleDebounce:debounce( handleDebounce: debounce(
async function(){ async function() {
const params = { const params = {
...JSON.parse(JSON.stringify( ...JSON.parse(JSON.stringify(
{ idList: this.auditId } { idList: this.auditId }
)) )),
withDrawType: 1
} }
await withdrawalApi.batchWithdrawal(params).then(res => { await withdrawalApi.batchWithdrawal(params).then(res => {
if (res.code !== '0'){ if (res.code !== '0') {
this.$message.error('审核失败') this.$message.error('审核失败')
}else{ } else {
this.$message.success('审核成功') this.$message.success('审核成功')
} }
}).catch(err=>{ }).catch(err => {
this.$message.error(err) this.$message.error(err)
} }
) )
this.dialogVisible = false this.dialogVisible = false
}, },
1000 1000
), )
} }
} }
</script> </script>
......
<template> <template>
<div style="margin: 16px"> <div style='margin: 16px'>
<el-form <el-form
size="small" size='small'
inline inline
ref="withdrawalForm" ref='withdrawalForm'
:model="withdrawalSearchForm" :model='withdrawalSearchForm'
label-width="100px" label-width='100px'
class="demo-form-inline" class='demo-form-inline'
> >
<el-form-item label="员工名称"> <el-form-item label='员工名称'>
<el-input <el-input
clearable clearable
v-model="withdrawalSearchForm.staffName" v-model='withdrawalSearchForm.staffName'
placeholder="请输入员工名称" placeholder='请输入员工名称'
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="员工手机号"> <el-form-item label='员工手机号'>
<el-input <el-input
clearable clearable
v-model="withdrawalSearchForm.staffPhone" v-model='withdrawalSearchForm.staffPhone'
placeholder="请输入员工手机号" placeholder='请输入员工手机号'
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="门店名称"> <el-form-item label='门店名称'>
<el-input <el-input
clearable clearable
v-model="withdrawalSearchForm.merchantName" v-model='withdrawalSearchForm.merchantName'
placeholder="请输入门店名称" placeholder='请输入门店名称'
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="状态"> <el-form-item label='状态'>
<el-select <el-select
v-model="withdrawalSearchForm.status" v-model='withdrawalSearchForm.status'
placeholder="请选择状态" placeholder='请选择状态'
> >
<el-option label="全部" value=""></el-option> <el-option label='全部' value=''></el-option>
<el-option label="待审核" value="1"></el-option> <el-option label='待审核' value='1'></el-option>
<el-option label="到账中" value="2"></el-option> <el-option label='到账中' value='2'></el-option>
<el-option label="已到账" value="3"></el-option> <el-option label='已到账' value='3'></el-option>
<el-option label="到账失败" value="4"></el-option> <el-option label='到账失败' value='4'></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="提现时间"> <el-form-item label='提现时间'>
<el-date-picker <el-date-picker
value-format="yyyy-MM-dd" value-format='yyyy-MM-dd'
v-model="withdrawalSearchForm.withdrawalTime" v-model='withdrawalSearchForm.withdrawalTime'
type="daterange" type='daterange'
range-separator="至" range-separator='至'
start-placeholder="开始日期" start-placeholder='开始日期'
end-placeholder="结束日期" end-placeholder='结束日期'
> >
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="审核时间"> <el-form-item label='审核时间'>
<el-date-picker <el-date-picker
value-format="yyyy-MM-dd" value-format='yyyy-MM-dd'
v-model="withdrawalSearchForm.reviewTime" v-model='withdrawalSearchForm.reviewTime'
type="daterange" type='daterange'
range-separator="至" range-separator='至'
start-placeholder="开始日期" start-placeholder='开始日期'
end-placeholder="结束日期" end-placeholder='结束日期'
> >
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="handleSearch">查询 </el-button> <el-button type='primary' @click='handleSearch'>查询</el-button>
<el-button @click="reset">重置</el-button> <el-button @click='reset'>重置</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
...@@ -81,13 +81,14 @@ export default { ...@@ -81,13 +81,14 @@ export default {
return { return {
withdrawalSearchForm: { withdrawalSearchForm: {
status: '', status: '',
}, isWithdrawal: 1
}
} }
}, },
created() { created() {
this.$set(this.withdrawalSearchForm, 'withdrawalTime', [ this.$set(this.withdrawalSearchForm, 'withdrawalTime', [
this.defalutStartTime, this.defalutStartTime,
this.defalutEndTime, this.defalutEndTime
]) ])
}, },
mounted() { mounted() {
...@@ -101,15 +102,16 @@ export default { ...@@ -101,15 +102,16 @@ export default {
Object.keys(this.withdrawalSearchForm).forEach((key) => { Object.keys(this.withdrawalSearchForm).forEach((key) => {
this.withdrawalSearchForm[key] = '' this.withdrawalSearchForm[key] = ''
}) })
this.withdrawalSearchForm.isWithdrawal = 3
this.$set(this.withdrawalSearchForm, 'withdrawalTime', [ this.$set(this.withdrawalSearchForm, 'withdrawalTime', [
this.defalutStartTime, this.defalutStartTime,
this.defalutEndTime, this.defalutEndTime
]) ])
this.$nextTick(() => { this.$nextTick(() => {
this.handleSearch() this.handleSearch()
}) })
}, }
}, }
} }
</script> </script>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!