Commit 000e8d6d by 李长胜

会员中心修改

1 parent e0a0f178
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<el-form-item size="small" label="名称" style="margin-left:20px"> <el-form-item size="small" label="名称" style="margin-left:20px">
<el-input :size="size" v-model="searchForm.packageName" placeholder="请输入名称" clearable></el-input> <el-input :size="size" v-model="searchForm.packageName" placeholder="请输入名称" clearable></el-input>
</el-form-item> </el-form-item>
<el-form-item size="small" label="类型" style="margin-left:-10px;"> <el-form-item size="small" label="类型" style="margin-left:-10px">
<el-select size="small" v-model="searchForm.orderType" placeholder="请选择"> <el-select size="small" v-model="searchForm.orderType" placeholder="请选择">
<el-option v-for="item in orderTypeList" :key="item.dictValue" :label="item.dictLabel" :value="item.dictValue"></el-option> <el-option v-for="item in orderTypeList" :key="item.dictValue" :label="item.dictLabel" :value="item.dictValue"></el-option>
</el-select> </el-select>
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<el-form-item size="small" label="用户信息"> <el-form-item size="small" label="用户信息">
<el-input :size="size" v-model="searchForm.userInfo" placeholder="请输入用户名或手机号" clearable></el-input> <el-input :size="size" v-model="searchForm.userInfo" placeholder="请输入用户名或手机号" clearable></el-input>
</el-form-item> </el-form-item>
<el-form-item size="small" label="下单时间" style="margin-left:20px"> <el-form-item size="small" label="下单时间" style="margin-left: 20px">
<el-date-picker :size="size" v-model="searchForm.daterange" type="daterange" value-format="yyyy-MM-dd" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="pickerOptions || {}"></el-date-picker> <el-date-picker :size="size" v-model="searchForm.daterange" type="daterange" value-format="yyyy-MM-dd" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="pickerOptions || {}"></el-date-picker>
</el-form-item> </el-form-item>
...@@ -31,6 +31,11 @@ ...@@ -31,6 +31,11 @@
</el-row> </el-row>
</el-form> </el-form>
</div> </div>
<div class="choseRow">
<div class="choseItem" :class="{ active: currentIndex == index + 1 }" v-for="(item, index) in choseList" :key="index" @click="tabClick(index + 1)">
{{ item }}
</div>
</div>
<GLTable ref="memberOrderRef" :searchForm="searchFormTable" :tableParams="tableParams" :getListApi="getListApi" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"> <GLTable ref="memberOrderRef" :searchForm="searchFormTable" :tableParams="tableParams" :getListApi="getListApi" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<!-- <span slot="shareImgUrl" slot-scope="scope"> <!-- <span slot="shareImgUrl" slot-scope="scope">
<img class="img-60" :src="scope.scope.shareImgUrl" /> <img class="img-60" :src="scope.scope.shareImgUrl" />
...@@ -56,10 +61,13 @@ export default { ...@@ -56,10 +61,13 @@ export default {
}, },
size: 'small', size: 'small',
searchForm: { searchForm: {
orderStatus: '' //默认查询全部
// name: '', // name: '',
// daterange:'' // daterange:''
// orderType: '' // orderType: ''
}, },
choseList: ['全部', '待收货', '已完成', '退款|售后'],
currentIndex: 1,
searchFormTable: {}, searchFormTable: {},
orderTypeList: [ orderTypeList: [
{ {
...@@ -86,7 +94,7 @@ export default { ...@@ -86,7 +94,7 @@ export default {
{ {
label: '名称', label: '名称',
prop: 'packageName', prop: 'packageName',
width: '180', width: '180'
// formatter: cellValue => { // formatter: cellValue => {
// return cellValue.startTime + '-' + cellValue.endTime // return cellValue.startTime + '-' + cellValue.endTime
// } // }
...@@ -96,7 +104,7 @@ export default { ...@@ -96,7 +104,7 @@ export default {
prop: 'orderType', prop: 'orderType',
formatter: cellValue => { formatter: cellValue => {
return this.baseDataList.orderTypesList.find(item => item.confId == cellValue.orderType).confName return this.baseDataList.orderTypesList.find(item => item.confId == cellValue.orderType).confName
} }
}, },
{ {
label: '价格', label: '价格',
...@@ -104,8 +112,7 @@ export default { ...@@ -104,8 +112,7 @@ export default {
}, },
{ {
label: '实收金额', label: '实收金额',
prop: 'realPayPrice', prop: 'realPayPrice'
}, },
{ {
label: '订单状态', label: '订单状态',
...@@ -118,11 +125,11 @@ export default { ...@@ -118,11 +125,11 @@ export default {
{ {
label: '下单时间', label: '下单时间',
prop: 'createDate', prop: 'createDate',
width: 95 width: 95
}, },
{ {
label: '用户信息', label: '用户信息',
prop: 'accountName', prop: 'accountName'
}, },
{ {
label: '订单号', label: '订单号',
...@@ -136,7 +143,38 @@ export default { ...@@ -136,7 +143,38 @@ export default {
} }
} }
}, },
methods: { methods: {
tabClick(index) {
this.currentIndex = index
switch (index) {
case 1:
delete this.searchForm['orderStatus[0]']
delete this.searchForm['orderStatus[1]']
delete this.searchForm['orderStatus[2]']
this.searchForm.orderStatus = ''
break
case 2:
delete this.searchForm.orderStatus
delete this.searchForm['orderStatus[1]']
delete this.searchForm['orderStatus[2]']
this.searchForm['orderStatus[0]'] = 2
break
case 3:
delete this.searchForm.orderStatus
delete this.searchForm['orderStatus[1]']
delete this.searchForm['orderStatus[2]']
this.searchForm['orderStatus[0]'] = 3
break
case 4:
delete this.searchForm.orderStatus
this.searchForm['orderStatus[0]'] = 4
this.searchForm['orderStatus[1]'] = 5
this.searchForm['orderStatus[2]'] = 6
break
}
this.handleSearch()
},
beforeSearchFn() { beforeSearchFn() {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
this.searchFormTable = JSON.parse(JSON.stringify(this.searchForm)) this.searchFormTable = JSON.parse(JSON.stringify(this.searchForm))
...@@ -173,7 +211,7 @@ export default { ...@@ -173,7 +211,7 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
/deep/.el-input--small .el-input__inner{ /deep/.el-input--small .el-input__inner {
width: 215px; width: 215px;
} }
.el-range-editor.is-active, .el-range-editor.is-active,
...@@ -185,4 +223,24 @@ export default { ...@@ -185,4 +223,24 @@ export default {
.el-range-editor--small.el-input__inner { .el-range-editor--small.el-input__inner {
width: 215px; width: 215px;
} }
.container {
.choseRow {
display: flex;
height: 34px;
.choseItem {
width: 120px;
height: 34px;
line-height: 34px;
text-align: center;
font-size: 14px;
font-weight: 400;
color: #333333;
}
.active {
color: #5850ff;
background-color: #f4f6fc;
}
}
}
</style> </style>
...@@ -63,7 +63,8 @@ export default { ...@@ -63,7 +63,8 @@ export default {
getListApi: getServiceListApi, getListApi: getServiceListApi,
searchForm: { searchForm: {
couponName: '', couponName: '',
merchantId: 44184606 merchantId: 44184606,
discountType:7//6:商品折扣券,7:会员服务
}, },
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' }, pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
// 表格参数 // 表格参数
...@@ -126,6 +127,7 @@ export default { ...@@ -126,6 +127,7 @@ export default {
if (window.__POWERED_BY_QIANKUN__) { if (window.__POWERED_BY_QIANKUN__) {
//运行在qiankun容器中 //运行在qiankun容器中
this.merchantId = this.$globalState.session.merchantId this.merchantId = this.$globalState.session.merchantId
this.searchForm.merchantId=this.merchantId
} }
this.getLoginCountFun() this.getLoginCountFun()
}, },
...@@ -162,7 +164,7 @@ export default { ...@@ -162,7 +164,7 @@ export default {
}, },
handleReset() { handleReset() {
this.searchForm = { couponName: '', merchantId: 44184606 } this.searchForm = { couponName: '', merchantId: this.merchantId, discountType:7 }
this.handleSearch() this.handleSearch()
}, },
handleSearch() { handleSearch() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!