Commit 23c49eff authored by 华国豪's avatar 华国豪 🙄

优化部分页面

parent 3d5ffea6
...@@ -71,6 +71,7 @@ input:-webkit-autofill{-webkit-box-shadow: 0 0 0px 1000px white inset;} ...@@ -71,6 +71,7 @@ input:-webkit-autofill{-webkit-box-shadow: 0 0 0px 1000px white inset;}
.mt30{margin-top: 30px;} .mt30{margin-top: 30px;}
.mb30{margin-bottom: 30px;} .mb30{margin-bottom: 30px;}
.padding10{padding: 10px;} .padding10{padding: 10px;}
.paddinglr10{padding: 0 10px;}
.tleft{text-align: left!important} .tleft{text-align: left!important}
.tright{text-align: right!important} .tright{text-align: right!important}
.tcenter{text-align: center!important} .tcenter{text-align: center!important}
......
...@@ -144,7 +144,28 @@ ...@@ -144,7 +144,28 @@
<th width="7%">{{$t('salesModule.belongUnion')}}</th> <th width="7%">{{$t('salesModule.belongUnion')}}</th>
<th width="8%">{{$t('salesModule.SuoSales')}}</th> <th width="8%">{{$t('salesModule.SuoSales')}}</th>
<th width="8%">{{$t('salesModule.CustomerStatus')}}</th> <th width="8%">{{$t('salesModule.CustomerStatus')}}</th>
<th width="5%">{{$t('salesModule.belongUnion')}}</th> <th width="5%" class="cursorpointer" @click="changeSort(1, 'TradeMoney')">
<div class="sort-th">
<div>
{{$t('fnc.jiaoyie')}}
</div>
<div class="width15 ">
<p class=" _bold el-icon-caret-top sort-icon-top" :class="{sortActive: msg.jySort === 'asc'}" ></p>
<p class=" _bold el-icon-caret-bottom sort-icon-bottom" :class="{sortActive: msg.jySort === 'desc'}" ></p>
</div>
</div>
</th>
<th width="5%" class="cursorpointer" @click="changeSort(2, 'TotalGuestNum')">
<div class="sort-th">
<div>
{{$t('fnc.retoushu')}}
</div>
<div class="width15 cursorpointer">
<p class=" _bold el-icon-caret-top sort-icon-top" :class="{sortActive: msg.rtsSort === 'asc'}"></p>
<p class=" _bold el-icon-caret-bottom sort-icon-bottom" :class="{sortActive: msg.rtsSort === 'desc'}"></p>
</div>
</div>
</th>
<th width="5%">{{$t('salesModule.HappinessPassbook')}}</th> <th width="5%">{{$t('salesModule.HappinessPassbook')}}</th>
<th width="4%">优惠券</th> <th width="4%">优惠券</th>
<th width="8%">{{$t('pub.pubRemark')}}</th> <th width="8%">{{$t('pub.pubRemark')}}</th>
...@@ -177,6 +198,7 @@ ...@@ -177,6 +198,7 @@
<td>{{item.EmName}}</td> <td>{{item.EmName}}</td>
<td>{{valueToWord(item.CustomerStatus)}}</td> <td>{{valueToWord(item.CustomerStatus)}}</td>
<td>{{item.TotalPrice}}</td> <td>{{item.TotalPrice}}</td>
<td>{{item.TotalGuestNum}}</td>
<td>{{item.CL_Balance}}</td> <td>{{item.CL_Balance}}</td>
<td> <td>
<span style="cursor: pointer;text-decoration: underline;" @click.stop="goUrC('CouponsList',item.CustomerAccountId)"> <span style="cursor: pointer;text-decoration: underline;" @click.stop="goUrC('CouponsList',item.CustomerAccountId)">
...@@ -524,6 +546,9 @@ export default { ...@@ -524,6 +546,9 @@ export default {
allDepartment:0, allDepartment:0,
CustomerStatus:'', CustomerStatus:'',
OperationStatus:'', OperationStatus:'',
jySort: 'desc',
rtsSort: '',
orderBy: 'TradeMoney desc',
}, },
RecipientMsg: { RecipientMsg: {
CustomerIdArr: [], CustomerIdArr: [],
...@@ -634,6 +659,18 @@ export default { ...@@ -634,6 +659,18 @@ export default {
}; };
}, },
methods: { methods: {
changeSort(type, name){
if (type == 1) {
this.msg.jySort = this.msg.jySort === '' ? 'desc' : this.msg.jySort === 'desc' ? 'asc' : ''
this.msg.rtsSort = ''
this.msg.orderBy = this.msg.jySort == '' ? '' : name + ' '+ this.msg.jySort
} else {
this.msg.jySort = ''
this.msg.rtsSort = this.msg.rtsSort = this.msg.rtsSort === '' ? 'desc' : this.msg.rtsSort === 'desc' ? 'asc' : ''
this.msg.orderBy = this.msg.rtsSort == '' ? '' : name + ' '+ this.msg.rtsSort
}
this.getList();
},
getCustomerBrandList(){ // 获取品牌 getCustomerBrandList(){ // 获取品牌
this.apipost('app_get_customer_brand',{},res=>{ this.apipost('app_get_customer_brand',{},res=>{
if(res.data.resultCode==1){ if(res.data.resultCode==1){
...@@ -1263,7 +1300,6 @@ export default { ...@@ -1263,7 +1300,6 @@ export default {
height: 30px; height: 30px;
font-size: 12px; font-size: 12px;
text-align: left; text-align: left;
text-indent: 25px;
} }
.customerTransferTable tr { .customerTransferTable tr {
text-align: left; text-align: left;
...@@ -1359,4 +1395,23 @@ export default { ...@@ -1359,4 +1395,23 @@ export default {
height: 148px; height: 148px;
display: block; display: block;
} }
.width15{
width: 15px;
}
.sort-th{
display: flex;
align-items: center;
}
.sortActive{
color: #E95252;
}
.sort-icon-top{
position: relative;
top: 4px;
}
.sort-icon-bottom{
position: relative;
bottom: 4px;
}
</style> </style>
...@@ -49,6 +49,7 @@ ...@@ -49,6 +49,7 @@
<th>订单状态</th> <th>订单状态</th>
<th>订单总价</th> <th>订单总价</th>
<th>订单生成时间</th> <th>订单生成时间</th>
<th>收货地址</th>
<th>配送备注</th> <th>配送备注</th>
<th>关联销售</th> <th>关联销售</th>
<th>操作</th> <th>操作</th>
...@@ -58,7 +59,7 @@ ...@@ -58,7 +59,7 @@
<td>{{item.orderNum}}</td> <td>{{item.orderNum}}</td>
<td>{{item.goodsName}}</td> <td>{{item.goodsName}}</td>
<td> <td>
<img class="OrderMgoodImg" :src="item.goodsImg" alt=""/> <img @click="showImg(item.goodsImg)" class="OrderMgoodImg cursorpointer" :src="item.goodsImg" alt=""/>
</td> </td>
<td>{{item.goodsPrice}}</td> <td>{{item.goodsPrice}}</td>
<td>{{item.buyNum}}</td> <td>{{item.buyNum}}</td>
...@@ -73,6 +74,10 @@ ...@@ -73,6 +74,10 @@
<td> <td>
{{getDate(item.crateTime)}} {{getDate(item.crateTime)}}
</td> </td>
<td class="paddinglr10">
<p class="tleft">联系电话: {{item.customerPhone}}</p>
<p class="tleft">收货地址: {{item.customerAddress}}</p>
</td>
<td>{{item.sendRemark}}</td> <td>{{item.sendRemark}}</td>
<td>{{item.saleName}}</td> <td>{{item.saleName}}</td>
<td> <td>
...@@ -86,6 +91,9 @@ ...@@ -86,6 +91,9 @@
<i class="iconfont icon-kong"></i> <i class="iconfont icon-kong"></i>
<p>{{$t("active.ld_noData")}}</p> <p>{{$t("active.ld_noData")}}</p>
</div> </div>
<viewer :images="images" :options="imageOptions" @inited="inited" class="viewer" ref="viewer">
<img v-for="src in images" :src="src" :key="src">
</viewer>
</div> </div>
</template> </template>
<script> <script>
...@@ -93,7 +101,11 @@ import moment from 'moment' ...@@ -93,7 +101,11 @@ import moment from 'moment'
export default { export default {
data() { data() {
return { return {
//请求 imageOptions: {
navbar: false,
title: false
},
images: [],
msg: { msg: {
orderStatus:'', orderStatus:'',
orderNum:'', orderNum:'',
...@@ -115,6 +127,21 @@ export default { ...@@ -115,6 +127,21 @@ export default {
}, },
methods: { methods: {
showImg: function(src) {
let isExsit = false;
this.images.forEach(x => {
if (x === src) isExsit = true;
});
if (!isExsit) {
this.images.push(src);
} else {
this.$viewer.view(this.images.indexOf(src));
}
this.$viewer.show();
},
inited(viewer) {
this.$viewer = viewer;
},
handleCurrentChange(val){ handleCurrentChange(val){
this.msg.pageIndex=val; this.msg.pageIndex=val;
this.getList(); this.getList();
......
<style> <style>
.pushManagement .el-checkbox{
margin-left: 0;
margin-right: 30px;
}
</style> </style>
<template> <template>
...@@ -132,6 +136,13 @@ ...@@ -132,6 +136,13 @@
- -
<el-input type="number" v-model="addMsg.MaxCoupons" class="w100"></el-input> <el-input type="number" v-model="addMsg.MaxCoupons" class="w100"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="提示内容">
<el-checkbox-group v-model="addMsg.ISShowList">
<el-checkbox :label="1">幸福存折</el-checkbox>
<el-checkbox :label="2">优惠券</el-checkbox>
<el-checkbox :label="3">大红包</el-checkbox>
</el-checkbox-group>
</el-form-item>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<button <button
...@@ -185,6 +196,7 @@ export default { ...@@ -185,6 +196,7 @@ export default {
MaxCoupons: 0, MaxCoupons: 0,
MinPassbook: 0, MinPassbook: 0,
MaxPassbook: 0, MaxPassbook: 0,
ISShowList: [],
}, },
rules: { rules: {
SendTitle: [ SendTitle: [
...@@ -318,6 +330,7 @@ export default { ...@@ -318,6 +330,7 @@ export default {
MaxCoupons: 0, MaxCoupons: 0,
MinPassbook: 0, MinPassbook: 0,
MaxPassbook: 0, MaxPassbook: 0,
ISShowList: [],
}; };
this.addMsg = newMsg; this.addMsg = newMsg;
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment