师傅发起完单前进行实名及绑卡的校验
This commit is contained in:
parent
a61bf0401a
commit
99aa1737e4
|
|
@ -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) {
|
||||||
|
|
|
||||||
|
|
@ -130,6 +130,7 @@
|
||||||
let goodsToAssign = [];
|
let goodsToAssign = [];
|
||||||
// 标识是否派完所有goods,1为派完,0为未派完
|
// 标识是否派完所有goods,1为派完,0为未派完
|
||||||
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;
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue