Commit 1a8977f1 by sunchao

证件类型bug修复

parent 3222649e
......@@ -81,11 +81,11 @@
:disabled="this.applyParam.approvalStatus!= 0 && this.applyParam.approvalStatus != 2">
<view class="uni-input">{{idTypesList[idTypeIdx]['name']}}
<text class="iconfont icon-youjiantou"></text>
</view>
</view>
</picker>
</view>
<view class="contentItem">
<text>证件号码</text>
<text>证件号码{{this.applyParam.approvalStatus!= 0 && this.applyParam.approvalStatus != 2}}</text>
<view>
<input type="text" class="form-control" v-model="applyParam.idNo" placeholder="请输入证件号码"
auto-blur=true @blur="checkInput(3,applyParam.idNo)"
......@@ -189,7 +189,7 @@
this.applyParam.mobileNumber = JSON.parse(uni.getStorageSync('cffp_userInfo'))['mobile'];
}
}
this.erpInitialize();
// this.erpInitialize();
// let routes = getCurrentPages(); // 获取当前打开过的页面路由数组
// let curRoute = routes[routes.length - 1].route // 获取当前页面路由,也就是最后一个打开的页面路由
// console.log('当前路由地址',curRoute)
......@@ -209,11 +209,14 @@
},
methods: {
erpInitialize() {
api.erpInitialize({}).then((res) => {
if (res['success']) {
this.idTypesList = this.idTypesList.concat(res['data']['idTypes']);
console.log(this.idTypesList)
}
return new Promise((resolve,reject)=>{
api.erpInitialize({}).then((res) => {
resolve(res['success']);
if (res['success']) {
this.idTypesList = this.idTypesList.concat(res['data']['idTypes']);
console.log(this.idTypesList)
}
})
})
},
queryOrgList() {
......@@ -302,7 +305,8 @@
}
},
queryById(id, userId) {
async queryById(id, userId) {
await this.erpInitialize();
api.queryById({
id: id,
userId: userId
......@@ -371,7 +375,7 @@
}
}
}
if (!this.applyParam.idType) {
if (!this.applyParam.idType || this.applyParam.idType=='请选择') {
uni.showToast({
title: '请选择证件类型',
duration: 2000,
......
......@@ -36,7 +36,7 @@
</picker>
</view>
<view class="contentItem">
<text>毕业学校{{applyParam.approvalStatus}}</text>
<text>毕业学校{{applyParam.approvalStatus}} {{this.applyParam.approvalStatus!= 0 && this.applyParam.approvalStatus != 2}}</text>
<input class="form-control" v-model="applyParam.lastGraduateSchool" style="background: #666666;"
:disabled="this.applyParam.approvalStatus!= 0 && this.applyParam.approvalStatus != 2"/>
</view>
......
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