bug修复
This commit is contained in:
parent
421699533c
commit
fa7df6f423
|
|
@ -464,7 +464,8 @@ export default {
|
|||
},
|
||||
openContract() {
|
||||
this.contractData = this.detailData.listContract[0]
|
||||
if (this.contractData.witnessPath && this.contractData.witnessPath.split('.')[1] == 'pdf') {
|
||||
const isPdf = (this.contractData.witnessPath.split('.')[1] == 'pdf' || this.contractData.witnessPath.split('.')[1] == 'PDF') ? true : false
|
||||
if (this.contractData.witnessPath && isPdf) {
|
||||
this.contractWitnessType = 'file'
|
||||
} else {
|
||||
this.contractWitnessType = 'img'
|
||||
|
|
@ -502,79 +503,79 @@ export default {
|
|||
})
|
||||
}
|
||||
},
|
||||
onShow() {},
|
||||
methods: {
|
||||
// 获取详情
|
||||
selectPersonQualificationsContent() {
|
||||
let param = {
|
||||
idNumber: this.idNumber
|
||||
}
|
||||
uni.request({
|
||||
url: config.realAppUrl + '/BasePerson/selectPersonQualificationsContent',
|
||||
method: 'post',
|
||||
data: param,
|
||||
header: {
|
||||
'Content-Type': 'application/json;charset=UTF-8;',
|
||||
Authorization: uni.getStorageSync('realNameToken')
|
||||
},
|
||||
success: res => {
|
||||
console.log(res)
|
||||
res = res.data
|
||||
if (res.code == 200) {
|
||||
this.detailData = res.data
|
||||
this.faceImgUrl = config.realBaseUrl + res.data.facePhoto
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
},
|
||||
fail: err => {
|
||||
console.log(err)
|
||||
}
|
||||
})
|
||||
},
|
||||
openInfo() {
|
||||
this.showPopup1 = true
|
||||
},
|
||||
closePopup1() {
|
||||
this.showPopup1 = false
|
||||
},
|
||||
openTrain() {
|
||||
this.showPopup2 = true
|
||||
},
|
||||
closePopup2() {
|
||||
this.showPopup2 = false
|
||||
},
|
||||
openContract() {
|
||||
this.contractData = this.detailData.listContract[0]
|
||||
this.contractImgUrl = config.realBaseUrl + this.contractData.witnessPath
|
||||
this.showPopup3 = true
|
||||
},
|
||||
closePopup3() {
|
||||
this.showPopup3 = false
|
||||
},
|
||||
openListCertificate() {
|
||||
this.listCertificate = this.detailData.listCertificate[0]
|
||||
this.showPopup4 = true
|
||||
},
|
||||
closePopup4() {
|
||||
this.showPopup4 = false
|
||||
},
|
||||
openPdf() {
|
||||
console.log('附件打开')
|
||||
uni.navigateTo({
|
||||
url: `/pages/realName/workbench/qualifications/listCertificatePdf?pdfUrl=${this.listCertificate.certificateTypeFile}`
|
||||
})
|
||||
},
|
||||
leftClick() {
|
||||
console.log('返回')
|
||||
uni.navigateBack({
|
||||
delta: 1 // 返回
|
||||
})
|
||||
}
|
||||
}
|
||||
// onShow() {},
|
||||
// methods: {
|
||||
// // 获取详情
|
||||
// selectPersonQualificationsContent() {
|
||||
// let param = {
|
||||
// idNumber: this.idNumber
|
||||
// }
|
||||
// uni.request({
|
||||
// url: config.realAppUrl + '/BasePerson/selectPersonQualificationsContent',
|
||||
// method: 'post',
|
||||
// data: param,
|
||||
// header: {
|
||||
// 'Content-Type': 'application/json;charset=UTF-8;',
|
||||
// Authorization: uni.getStorageSync('realNameToken')
|
||||
// },
|
||||
// success: res => {
|
||||
// console.log(res)
|
||||
// res = res.data
|
||||
// if (res.code == 200) {
|
||||
// this.detailData = res.data
|
||||
// this.faceImgUrl = config.realBaseUrl + res.data.facePhoto
|
||||
// } else {
|
||||
// uni.showToast({
|
||||
// title: res.msg,
|
||||
// icon: 'none'
|
||||
// })
|
||||
// }
|
||||
// },
|
||||
// fail: err => {
|
||||
// console.log(err)
|
||||
// }
|
||||
// })
|
||||
// },
|
||||
// openInfo() {
|
||||
// this.showPopup1 = true
|
||||
// },
|
||||
// closePopup1() {
|
||||
// this.showPopup1 = false
|
||||
// },
|
||||
// openTrain() {
|
||||
// this.showPopup2 = true
|
||||
// },
|
||||
// closePopup2() {
|
||||
// this.showPopup2 = false
|
||||
// },
|
||||
// openContract() {
|
||||
// this.contractData = this.detailData.listContract[0]
|
||||
// this.contractImgUrl = config.realBaseUrl + this.contractData.witnessPath
|
||||
// this.showPopup3 = true
|
||||
// },
|
||||
// closePopup3() {
|
||||
// this.showPopup3 = false
|
||||
// },
|
||||
// openListCertificate() {
|
||||
// this.listCertificate = this.detailData.listCertificate[0]
|
||||
// this.showPopup4 = true
|
||||
// },
|
||||
// closePopup4() {
|
||||
// this.showPopup4 = false
|
||||
// },
|
||||
// openPdf() {
|
||||
// console.log('附件打开')
|
||||
// uni.navigateTo({
|
||||
// url: `/pages/realName/workbench/qualifications/listCertificatePdf?pdfUrl=${this.listCertificate.certificateTypeFile}`
|
||||
// })
|
||||
// },
|
||||
// leftClick() {
|
||||
// console.log('返回')
|
||||
// uni.navigateBack({
|
||||
// delta: 1 // 返回
|
||||
// })
|
||||
// }
|
||||
// }
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
|
|||
|
|
@ -764,7 +764,7 @@
|
|||
</view>
|
||||
</u-popup>
|
||||
|
||||
|
||||
<u-loading-page :loading="isLoading"></u-loading-page>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
|
|
@ -781,6 +781,7 @@
|
|||
},
|
||||
data() {
|
||||
return {
|
||||
isLoading: false,
|
||||
pageTitle: '修改人员',
|
||||
idNumber: '',
|
||||
sysUser: uni.getStorageSync('realNameUser'),
|
||||
|
|
@ -895,6 +896,7 @@
|
|||
}
|
||||
},
|
||||
onLoad(option) {
|
||||
console.log('~ 传参 onload', option)
|
||||
this.entryIdNumberBean.workerType = option.workerType || '0';
|
||||
this.idNumber = option.idNumber || '';
|
||||
if (option.workerType == '0') {
|
||||
|
|
@ -1109,6 +1111,7 @@
|
|||
Authorization: uni.getStorageSync('realNameToken')
|
||||
},
|
||||
success: res => {
|
||||
console.log('🚀 ~ 用户信息 ~ res:', res)
|
||||
console.log(res)
|
||||
res = res.data;
|
||||
if (res.code == 200) {
|
||||
|
|
@ -1140,6 +1143,7 @@
|
|||
if (res.data.entryBankBean) {
|
||||
this.entryBankBean = res.data.entryBankBean;
|
||||
this.bankImgUrl = config.realBaseUrl + this.entryBankBean.bankPhoto;
|
||||
console.log('🚀 ~ getPersonById ~ this.bankImgUrl:', this.bankImgUrl)
|
||||
}
|
||||
if (res.data.entryOtherBean) {
|
||||
this.entryOtherBean = res.data.entryOtherBean;
|
||||
|
|
@ -1299,7 +1303,8 @@
|
|||
photoType: 'salary',
|
||||
},
|
||||
success: (uploadFileRes) => {
|
||||
console.log(uploadFileRes);
|
||||
// console.log(uploadFileRes);
|
||||
console.log('🚀 ~ 上传图片 ~ uploadFileRes:', uploadFileRes)
|
||||
if (uploadFileRes.statusCode == 200) {
|
||||
this.entryBankBean.bankPhoto = JSON.parse(uploadFileRes.data)
|
||||
.data.url;
|
||||
|
|
@ -1520,6 +1525,7 @@
|
|||
}
|
||||
},
|
||||
updateEntryPerson() {
|
||||
this.isLoading = true
|
||||
console.log('add')
|
||||
let param = {
|
||||
entryIdNumberBean: this.entryIdNumberBean,
|
||||
|
|
@ -1530,6 +1536,7 @@
|
|||
entryBankBean: this.entryBankBean,
|
||||
entryOtherBean: this.entryOtherBean
|
||||
}
|
||||
console.log('🚀 ~ 编辑 ~ param:', param)
|
||||
console.log(param)
|
||||
uni.request({
|
||||
url: config.realAppUrl + '/entry/updateEntryPerson',
|
||||
|
|
@ -1540,6 +1547,7 @@
|
|||
Authorization: uni.getStorageSync('realNameToken')
|
||||
},
|
||||
success: res => {
|
||||
this.isLoading = false
|
||||
console.log(res)
|
||||
res = res.data;
|
||||
if (res.code == 200) {
|
||||
|
|
@ -1561,6 +1569,7 @@
|
|||
},
|
||||
fail: err => {
|
||||
console.log(err)
|
||||
this.isLoading = false
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@
|
|||
</view>
|
||||
</u-popup>
|
||||
|
||||
|
||||
<u-loading-page :loading="isLoading"></u-loading-page>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
|
|
@ -91,6 +91,7 @@ import config from '@/config'
|
|||
export default {
|
||||
data() {
|
||||
return {
|
||||
isLoading:false,
|
||||
showImgPopup:false,
|
||||
idNumber:uni.getStorageSync('realNameUser').idNumber,
|
||||
proId:uni.getStorageSync('realNameUser').proId,
|
||||
|
|
@ -117,6 +118,7 @@ export default {
|
|||
},
|
||||
onLoad() {
|
||||
console.log('🚀 ~ mounted ~ mounted-index:');
|
||||
console.log('身份证号码:',this.idNumber)
|
||||
},
|
||||
onShow() {
|
||||
this.getPro()
|
||||
|
|
@ -227,8 +229,9 @@ export default {
|
|||
imageBase64:base64.split(',')[1]
|
||||
}
|
||||
console.log(param)
|
||||
this.isLoading = true
|
||||
uni.request({
|
||||
url: config.realBmwUrl+'/users/bankCard',
|
||||
url: config.lpBmwUrl+'/bmw/users/bankCard',
|
||||
method: 'post',
|
||||
data: param,
|
||||
header: {
|
||||
|
|
@ -236,6 +239,7 @@ export default {
|
|||
Authorization: uni.getStorageSync('realNameToken')
|
||||
},
|
||||
success: res => {
|
||||
this.isLoading = false
|
||||
console.log(res)
|
||||
res = res.data;
|
||||
if(res.code==200){
|
||||
|
|
@ -250,6 +254,7 @@ export default {
|
|||
},
|
||||
fail: err => {
|
||||
console.log(err)
|
||||
this.isLoading = false
|
||||
}
|
||||
})
|
||||
|
||||
|
|
@ -323,6 +328,8 @@ export default {
|
|||
uni.$u.toast('请填写银行名称');
|
||||
}else if(this.entryBankBean.bankRollName==''){
|
||||
uni.$u.toast('请填写银行支行名称');
|
||||
}else if(this.entryBankBean.idNumber==''){
|
||||
uni.$u.toast('请进行人脸识别');
|
||||
}else{
|
||||
this.entryBankBean.uploadDate = this.timeFormat(null,'yyyy-mm-dd');
|
||||
this.entryBankBean.uploadTime = this.timeFormat(null,'yyyy-mm-dd hh:MM:ss');
|
||||
|
|
|
|||
Loading…
Reference in New Issue