师傅发起完单前进行实名及绑卡的校验

This commit is contained in:
donqi 2022-08-23 16:21:00 +08:00
parent a61bf0401a
commit 99aa1737e4
3 changed files with 34 additions and 3 deletions

View File

@ -272,6 +272,12 @@
}) })
}, },
async clickServModule(pageObj) { async clickServModule(pageObj) {
if (pageObj && !pageObj.pageUrl) {
uni.showToast({
icon: 'none',
title: '功能开发中'
})
}
if (pageObj.checkLogin) { if (pageObj.checkLogin) {
let res = await this.authLogin(); let res = await this.authLogin();
if (res) { if (res) {

View File

@ -130,6 +130,7 @@
let goodsToAssign = []; let goodsToAssign = [];
// goods10 // goods10
let isAll = 1; let isAll = 1;
console.log(this.pickedList)
this.pickedList.forEach((item) => { this.pickedList.forEach((item) => {
if (item.goodsNum !== item.toAssignNum) { if (item.goodsNum !== item.toAssignNum) {
isAll = 0; isAll = 0;

View File

@ -235,7 +235,10 @@
</view> </view>
<!-- 底部占位 --> <!-- 底部占位 -->
<view class="cu-bar bg-white fixed-bottom-bar"></view> <view class="cu-bar bg-white fixed-bottom-bar"></view>
</uni-popup> </uni-popup>
<!-- 账户及实名弹窗 -->
<vertify-bank-bind ref="vertifyBankBind"></vertify-bank-bind>
<vertify-certify ref="vertifyCertify"></vertify-certify>
</view> </view>
</template> </template>
@ -477,7 +480,6 @@
async loadTeamMembers() { async loadTeamMembers() {
let res = await this.$request.getTeamPage({ let res = await this.$request.getTeamPage({
leaderId: this.curUserInfo.workerId, leaderId: this.curUserInfo.workerId,
workerStatus: 0,
workerId: null workerId: null
}); });
this.myTeamMembers = res.rows; this.myTeamMembers = res.rows;
@ -705,11 +707,33 @@
url: '/pages/order-manage/serv-detail?order=' + encodeURIComponent(JSON.stringify(order)) url: '/pages/order-manage/serv-detail?order=' + encodeURIComponent(JSON.stringify(order))
}) })
}, },
finishOrder(order) { async finishOrder(order) {
let checkRes = await this.checkBankAndCertify();
if (!checkRes) {
return;
}
uni.navigateTo({ uni.navigateTo({
url: '/pages/order-manage/finish-order?order=' + encodeURIComponent(JSON.stringify(order)) url: '/pages/order-manage/finish-order?order=' + encodeURIComponent(JSON.stringify(order))
}) })
}, },
async checkBankAndCertify() {
//
let bankCardRes = await this.$request.getBindBankCardByWorkerId({
workerId: this.curUserInfo.workerId
});
this.bankCard = bankCardRes.data;
//
let certifyInfoRes = await this.$request.getWorkerCertify();
this.certifyInfo = certifyInfoRes.data;
if ((!this.bankCard || !this.bankCard.bankNum) && this.curUserInfo.status != -1) {
this.$refs.vertifyBankBind.showModal();
return false;
} else if (!this.certifyInfo || !this.certifyInfo.workerCertificationId) {
this.$refs.vertifyCertify.showModal();
return false;
}
return true;
},
async updateMasterOrder(order, status) { async updateMasterOrder(order, status) {
let res = await this.$request.updateMasterOrder({ let res = await this.$request.updateMasterOrder({
id: order.orderMasterId, id: order.orderMasterId,