问题修复

This commit is contained in:
donqi 2022-06-22 17:40:50 +08:00
parent 9b4574f9a2
commit 222a0fabb0
7 changed files with 603 additions and 517 deletions

View File

@ -366,8 +366,8 @@
.canvas-qrcode {
margin: auto;
display: inline-block;
float: left;
// display: inline-block;
// float: left;
}

View File

@ -6,10 +6,10 @@
<view class="flex justify-between padding-bottom align-center solid-bottom">
<view class="flex justify-start align-center">
<view class="cu-avatar round"
:style="'width: 120rpx; height: 120rpx; background-image:url(' + curUserInfo.workerLogoUrl + ');'">
:style="'width: 120rpx; height: 120rpx; background-image:url(' + curUserInfo.deptLogoUrl + ');'">
</view>
<view class="margin-lr-sm">
<view class="text-xl margin-bottom-xs">{{curUserInfo.name}}</view>
<view class="text-xl margin-bottom-xs">{{curUserInfo.deptName}}</view>
<!-- <view class="padding-xs text-sm">
<view class='cu-tag bg-white radius'>编辑</view>
</view> -->

View File

@ -29,9 +29,12 @@
curPageCode: 'indexPage'
}
},
onLoad() {
onLoad(options) {
this.loadData();
this.bindEvent();
this.bindEvent();
if (options && options.menuCode) {
this.changeCurPageCode(options.menuCode)
}
},
onUnload() {
this.offEvent();
@ -62,7 +65,11 @@
uni.$off('getCurPageInfo')
},
changeCurPageCode(targetPageCode) {
this.$refs.moduleBar.navChangeByCode(targetPageCode, true);
// #ifdef MP
this.$nextTick(() => {
this.$refs.moduleBar.navChangeByCode(targetPageCode, true);
})
// #endif
}
}
}

File diff suppressed because it is too large Load Diff

View File

@ -22,7 +22,7 @@
<view class="margin-bottom-xs">
<view class="margin-bottom-xs">选择日期</view>
<picker mode="date" :value="date" :start="curDate" @change="dateChange">
<input class="radius-input" v-model="date"></input>
<input class="radius-input" v-model="date" disabled></input>
</picker>
</view>
<view>
@ -34,7 +34,7 @@
<text class="margin-lr-xs"></text> -->
<picker mode="selector" :value="timeRangeIndex" :range="timeRangeList"
@change="timeRangeChange">
<input class="radius-input" v-model="timeRange"></input>
<input class="radius-input" v-model="timeRange" disabled></input>
</picker>
</view>
</view>

View File

@ -1,23 +1,23 @@
<template>
<!-- 报价/客户支付模态框 -->
<view class="cu-modal" :class="show?'show':''">
<view class="cu-dialog">
<view class="cu-dialog bg-white">
<view class="cu-bar bg-white justify-end">
<view class="content">支付宝扫码支付</view>
<view class="action" data-modal="showPayQrcodeModal" @click="finishQrPay">
<text class="cuIcon-close text-red"></text>
</view>
</view>
<view class="bg-white padding-bottom-xl">
<view class="padding-tb-sm" style="width: 300px; margin: 0 auto;">
<view class="bg-white">
<view class="padding-tb-sm" style="width: 300px; margin: 0 auto;" v-show="modal_qr">
<ayQrcode ref="qrcode" :modal="modal_qr" :url="url" @hideQrcode="hideQrcode" :height="300"
:width="300" />
</view>
</view>
<!-- <view class="text-center padding-bottom-xl">
<view class="text-center padding-bottom-xl">
<view>请客户扫描码付款后方能提交完单</view>
<view class="text-red">必须按二维码生成金额支付</view>
</view> -->
</view>
</view>
</view>
</template>
@ -50,12 +50,12 @@
},
methods: {
finishQrPay(e) {
this.$emit('finishQrPay', e);
this.$emit('finishQrPay', e);
this.hideQrcode();
},
//
showQrcode(url) {
this.url = url;
console.log(url);
this.url = url;
let _this = this;
this.modal_qr = true;
// uni.showLoading()

View File

@ -37,7 +37,11 @@
</view>
<!-- 状态分类tab -->
<view class="cu-list grid no-border col-5 padding-top-sm bg-white">
<view class="cu-item" :class="stateCur === 0 ? 'bg-main-color light' : ''" :data-id="0" @tap="statusSelect">
<view class="cu-item" :class="index==stateCur?'bg-main-color light cur':''" v-for="(item,index) in stateList" :key="index" :data-id="index" @tap="statusSelect">
<view class="margin-bottom-xs">{{item.name}}</view>
<view>(0)</view>
</view>
<!-- <view class="cu-item" :class="stateCur === 0 ? 'bg-main-color light' : ''" :data-id="0" @tap="statusSelect">
<view class="margin-bottom-xs">超时单</view>
<view>({{myOrders.summary.overtimeOrderNum}})</view>
</view>
@ -53,10 +57,10 @@
<view class="margin-bottom-xs">急报单</view>
<view>({{myOrders.summary.urgentMsgOrderNum}})</view>
</view>
<view class="cu-item" :class="stateCur === 4 ? 'bg-main-color light' : ''" :data-id="4" @tap="statusSelect">
<view class="cu-item" :class="stateCur === 0 ? 'bg-main-color light' : ''" :data-id="4" @tap="statusSelect">
<view class="margin-bottom-xs">新订单</view>
<view>({{myOrders.summary.newOrderNum}})</view>
</view>
</view> -->
</view>
<!-- 子状态分类tab -->
<scroll-view scroll-x class="bg-white nav text-center" :scroll-with-animation="true" :scroll-left="scrollLeft">
@ -143,7 +147,7 @@
<button class="cu-btn bg-main-color margin-right-xs shadow-blur margin-top-sm" @tap="makePhoneCall(order.customerPhone)">联系客户</button>
<button class="cu-btn bg-main-color margin-right-xs shadow-blur margin-top-sm" data-modal="showEditTimeArrangeModal" @tap="showModal($event, order)">重新排期</button>
<button class="cu-btn bg-main-color margin-right-xs shadow-blur margin-top-sm" @tap="finishOrder(order)">发起完单</button>
<button class="cu-btn bg-main-color margin-right-xs shadow-blur margin-top-sm" data-modal="showPayQrcodeModal" @tap="makePayQrcode($event, order)">生成付款码</button>
<button class="cu-btn bg-main-color margin-right-xs shadow-blur margin-top-sm" data-modal="showPayQrcodeModal" v-if="order.payStatus === 0" @tap="makePayQrcode($event, order)">生成付款码</button>
</view>
<!-- <view v-if="order.orderStatus === 4">
<button class="cu-btn bg-main-color margin-right-xs shadow-blur margin-top-sm" data-modal="sendUrgentMsgModal" @tap="showModal($event, order)">师傅急报</button>
@ -264,22 +268,22 @@
areaMultiIndex: [0, 0, 0],
categoryList: [],
categoryMultiIndex: [0, 0, 0],
// stateList: [{
// code: 1,
// name: ''
// }, {
// code: 2,
// name: ''
// }, {
// code: 3,
// name: ''
// }, {
// code: 4,
// name: ''
// }, {
// code: 5,
// name: ''
// }],
stateList: [{
code: 1,
name: '超时单'
}, {
code: 2,
name: '今日单'
}, {
code: 3,
name: '明日单'
}, {
code: 4,
name: '急报单'
}, {
code: 0,
name: '新订单'
}],
subStateList: [{
code: 1,
name: '未约/未排'
@ -309,7 +313,7 @@
scrollLeft: 0,
stickyTop: this.CustomBar,
tabCur: 0,
stateCur: 0,
stateCur: null,
showTimeArrangeModal: false,
showArrangeFailTimeModal: false,
showNewServPriceModal: false,
@ -368,9 +372,9 @@
this.loadMasterOrderPage();
},
async loadMasterOrderPage(params = {}) {
params.pageNum = this.pageParams[this.tabCur].pageNum;
params.pageSize = this.$globalData.initPageSize;
params.orderStatus = this.subStateList[this.tabCur].code;
params.pageNum = this.pageParams[this.tabCur].pageNum;
this.$refs.loadStatusBar.showLoading();
try {
let res = null;
@ -527,15 +531,17 @@
orderKeywords: ''
}
},
tabSelect(e) {
tabSelect(e) {
this.stateCur = null;
this.tabCur = e.currentTarget.dataset.id;
this.scrollLeft = (e.currentTarget.dataset.id - 1) * 60
// this.reloadMasterOrderPage(this.stateCur, this.subStateList[this.tabCur].code);
this.reloadMasterOrderPage();
},
statusSelect(e) {
this.tabCur = null;
this.stateCur = e.currentTarget.dataset.id;
this.loadData(this.stateCur, this.subStateList[this.tabCur].code);
this.reloadMasterOrderPage();
},
getCurDateAndTime() {
let date = new Date();
@ -644,8 +650,8 @@
}
let res = await this.$request.qrPay(orderInfo);
if (res && res.code === 0) {
this.$refs.payQrcode.showQrcode(res.data.expend.qrcode_url);
this.showModal(e, orderInfo);
this.$refs.payQrcode.showQrcode(res.data.expend.qrcode_url);
}
},
showServOrderDetail(order) {