|
@@ -107,21 +107,48 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <!-- 商家选择 -->
|
|
|
- <view v-if="id!=1&&type<4&&length>0" class="td-right">
|
|
|
- <view class="uni-list">
|
|
|
- <view class="uni-list-cell">
|
|
|
- <view class="uni-list-cell-left">
|
|
|
- 当前商家:
|
|
|
+ <view class="riShell">
|
|
|
+ <!-- 选择框 -->
|
|
|
+ <view style="width: 80%;">
|
|
|
+ <!-- 商家选择 -->
|
|
|
+ <view v-if="id!=1&&type<4&&length>0&&ifForeign=='0'" class="td-right">
|
|
|
+ <view class="uni-list">
|
|
|
+ <view class="uni-list-cell">
|
|
|
+ <view class="uni-list-cell-left">
|
|
|
+ 当前商家:
|
|
|
+ </view>
|
|
|
+ <view class="uni-list-cell-db" style="overflow: hidden;text-overflow: ellipsis;">
|
|
|
+ <picker @change="changeAdmin" :value="index" :range="adminList">
|
|
|
+ <view class="uni-input">{{adminList[index]}}</view>
|
|
|
+ </picker>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- <view class="uni-list-cell-db" style="overflow: hidden;text-overflow: ellipsis;">
|
|
|
- <picker @change="changeAdmin" :value="index" :range="adminList">
|
|
|
- <view class="uni-input">{{adminList[index]}}</view>
|
|
|
- </picker>
|
|
|
+ </view>
|
|
|
+ <!-- 支付方式选择 -->
|
|
|
+ <view v-if="ifForeign!=''&&ifForeign=='1'" class="td-right">
|
|
|
+ <view class="uni-list">
|
|
|
+ <view class="uni-list-cell">
|
|
|
+ <view class="uni-list-cell-left">
|
|
|
+ PayType:
|
|
|
+ </view>
|
|
|
+ <view class="uni-list-cell-db" style="overflow: hidden;text-overflow: ellipsis;">
|
|
|
+ <picker @change="changePayType" :value="index1" :range="payTypeList">
|
|
|
+ <view class="uni-input">{{payTypeList[index1]}}</view>
|
|
|
+ </picker>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <!-- 刷新按钮 -->
|
|
|
+ <view class="search-button">
|
|
|
+ <button type="primary" class="" @click="refresh()">
|
|
|
+ <p class="">{{$t('mainStatistics.refresh')}}</P>
|
|
|
+ </button>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
+
|
|
|
<view class="qiun-columns">
|
|
|
<view class="qiun-bg-white qiun-title-bar qiun-common-mt">
|
|
|
<view class="qiun-title-dot-light">
|
|
@@ -258,8 +285,11 @@
|
|
|
today: '',
|
|
|
week: '',
|
|
|
adminList: [],
|
|
|
+ payTypeList: ["All","non-pay","coin","notes","coin+notes","credit-card","E-PAYMENT"],
|
|
|
+ payType:'All',
|
|
|
admins: [],
|
|
|
index: 0,
|
|
|
+ index1: 0,
|
|
|
id: 0,
|
|
|
length: 0,
|
|
|
type: null,
|
|
@@ -270,15 +300,9 @@
|
|
|
noticeId: '',
|
|
|
msgType: 'success',
|
|
|
scrollHeight: uni.getSystemInfoSync().windowHeight - 130,
|
|
|
+ ifForeign:0,
|
|
|
}
|
|
|
},
|
|
|
- onReady() {
|
|
|
- // 页面打开自动打开对话框
|
|
|
- // setTimeout(() => {
|
|
|
- // // this.msgType = 'success'
|
|
|
- // this.$refs.popupDialog.open()
|
|
|
- // }, 500)
|
|
|
- },
|
|
|
computed: {
|
|
|
...mapState(['loginUser']),
|
|
|
pnameData: {
|
|
@@ -300,6 +324,7 @@
|
|
|
this.index = 0;
|
|
|
var test = uni.getStorageSync('test');
|
|
|
var globalUser = uni.getStorageSync("globalUser");
|
|
|
+ this.ifForeign = globalUser.ifForeign;
|
|
|
//test 判断是不是初次登陆
|
|
|
if (globalUser.id != 1 && test == 1) {
|
|
|
setTimeout(() => {
|
|
@@ -476,6 +501,23 @@
|
|
|
this.init();
|
|
|
|
|
|
},
|
|
|
+ // 改变支付方式
|
|
|
+ changePayType: function(e) {
|
|
|
+ this.index1 = e.target.value;
|
|
|
+ if(this.index1!=0){
|
|
|
+ this.payType = this.index1-1;
|
|
|
+ }else{
|
|
|
+ this.payType = 'All'
|
|
|
+ }
|
|
|
+ uni.setStorageSync('test', 1);
|
|
|
+ this.init();
|
|
|
+
|
|
|
+ },
|
|
|
+ // 刷新
|
|
|
+ refresh(){
|
|
|
+ uni.setStorageSync('test', 1);
|
|
|
+ this.init();
|
|
|
+ },
|
|
|
equipmentStatus() {
|
|
|
var that = this;
|
|
|
var id = uni.getStorageSync("globalUser").id;
|
|
@@ -629,6 +671,9 @@
|
|
|
} else {
|
|
|
param['adminId'] = id;
|
|
|
}
|
|
|
+ if(this.ifForeign == '1'){
|
|
|
+ param['payType'] = this.payType;
|
|
|
+ }
|
|
|
var type = type;
|
|
|
return this.getStatistics(param)
|
|
|
.then(data => {
|
|
@@ -991,10 +1036,6 @@
|
|
|
var token = uni.getStorageSync("token");
|
|
|
uni.request({
|
|
|
url: this.serverurl + '/TNotice/updateNotice?adminId=' + adminId + '¬iceId=' + id,
|
|
|
- // data: {
|
|
|
- // "adminId": adminId,
|
|
|
- // "noticeId":id
|
|
|
- // },
|
|
|
header: {
|
|
|
'token': token
|
|
|
},
|
|
@@ -1252,4 +1293,9 @@
|
|
|
width: 70%;
|
|
|
text-align: left;
|
|
|
}
|
|
|
+ .search-button{
|
|
|
+ width: 20%;
|
|
|
+ padding-left: 7upx;
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
</style>
|