bug修复

This commit is contained in:
binbin_pan 2025-01-13 18:02:40 +08:00
parent 421699533c
commit fa7df6f423
3 changed files with 95 additions and 78 deletions

View File

@ -464,7 +464,8 @@ export default {
}, },
openContract() { openContract() {
this.contractData = this.detailData.listContract[0] 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' this.contractWitnessType = 'file'
} else { } else {
this.contractWitnessType = 'img' this.contractWitnessType = 'img'
@ -502,79 +503,79 @@ export default {
}) })
} }
}, },
onShow() {}, // onShow() {},
methods: { // methods: {
// // //
selectPersonQualificationsContent() { // selectPersonQualificationsContent() {
let param = { // let param = {
idNumber: this.idNumber // idNumber: this.idNumber
} // }
uni.request({ // uni.request({
url: config.realAppUrl + '/BasePerson/selectPersonQualificationsContent', // url: config.realAppUrl + '/BasePerson/selectPersonQualificationsContent',
method: 'post', // method: 'post',
data: param, // data: param,
header: { // header: {
'Content-Type': 'application/json;charset=UTF-8;', // 'Content-Type': 'application/json;charset=UTF-8;',
Authorization: uni.getStorageSync('realNameToken') // Authorization: uni.getStorageSync('realNameToken')
}, // },
success: res => { // success: res => {
console.log(res) // console.log(res)
res = res.data // res = res.data
if (res.code == 200) { // if (res.code == 200) {
this.detailData = res.data // this.detailData = res.data
this.faceImgUrl = config.realBaseUrl + res.data.facePhoto // this.faceImgUrl = config.realBaseUrl + res.data.facePhoto
} else { // } else {
uni.showToast({ // uni.showToast({
title: res.msg, // title: res.msg,
icon: 'none' // icon: 'none'
}) // })
} // }
}, // },
fail: err => { // fail: err => {
console.log(err) // console.log(err)
} // }
}) // })
}, // },
openInfo() { // openInfo() {
this.showPopup1 = true // this.showPopup1 = true
}, // },
closePopup1() { // closePopup1() {
this.showPopup1 = false // this.showPopup1 = false
}, // },
openTrain() { // openTrain() {
this.showPopup2 = true // this.showPopup2 = true
}, // },
closePopup2() { // closePopup2() {
this.showPopup2 = false // this.showPopup2 = false
}, // },
openContract() { // openContract() {
this.contractData = this.detailData.listContract[0] // this.contractData = this.detailData.listContract[0]
this.contractImgUrl = config.realBaseUrl + this.contractData.witnessPath // this.contractImgUrl = config.realBaseUrl + this.contractData.witnessPath
this.showPopup3 = true // this.showPopup3 = true
}, // },
closePopup3() { // closePopup3() {
this.showPopup3 = false // this.showPopup3 = false
}, // },
openListCertificate() { // openListCertificate() {
this.listCertificate = this.detailData.listCertificate[0] // this.listCertificate = this.detailData.listCertificate[0]
this.showPopup4 = true // this.showPopup4 = true
}, // },
closePopup4() { // closePopup4() {
this.showPopup4 = false // this.showPopup4 = false
}, // },
openPdf() { // openPdf() {
console.log('附件打开') // console.log('')
uni.navigateTo({ // uni.navigateTo({
url: `/pages/realName/workbench/qualifications/listCertificatePdf?pdfUrl=${this.listCertificate.certificateTypeFile}` // url: `/pages/realName/workbench/qualifications/listCertificatePdf?pdfUrl=${this.listCertificate.certificateTypeFile}`
}) // })
}, // },
leftClick() { // leftClick() {
console.log('返回') // console.log('')
uni.navigateBack({ // uni.navigateBack({
delta: 1 // // delta: 1 //
}) // })
} // }
} // }
} }
</script> </script>

View File

@ -764,7 +764,7 @@
</view> </view>
</u-popup> </u-popup>
<u-loading-page :loading="isLoading"></u-loading-page>
</view> </view>
</template> </template>
@ -781,6 +781,7 @@
}, },
data() { data() {
return { return {
isLoading: false,
pageTitle: '修改人员', pageTitle: '修改人员',
idNumber: '', idNumber: '',
sysUser: uni.getStorageSync('realNameUser'), sysUser: uni.getStorageSync('realNameUser'),
@ -895,6 +896,7 @@
} }
}, },
onLoad(option) { onLoad(option) {
console.log('~ 传参 onload', option)
this.entryIdNumberBean.workerType = option.workerType || '0'; this.entryIdNumberBean.workerType = option.workerType || '0';
this.idNumber = option.idNumber || ''; this.idNumber = option.idNumber || '';
if (option.workerType == '0') { if (option.workerType == '0') {
@ -1109,6 +1111,7 @@
Authorization: uni.getStorageSync('realNameToken') Authorization: uni.getStorageSync('realNameToken')
}, },
success: res => { success: res => {
console.log('🚀 ~ 用户信息 ~ res:', res)
console.log(res) console.log(res)
res = res.data; res = res.data;
if (res.code == 200) { if (res.code == 200) {
@ -1140,6 +1143,7 @@
if (res.data.entryBankBean) { if (res.data.entryBankBean) {
this.entryBankBean = res.data.entryBankBean; this.entryBankBean = res.data.entryBankBean;
this.bankImgUrl = config.realBaseUrl + this.entryBankBean.bankPhoto; this.bankImgUrl = config.realBaseUrl + this.entryBankBean.bankPhoto;
console.log('🚀 ~ getPersonById ~ this.bankImgUrl:', this.bankImgUrl)
} }
if (res.data.entryOtherBean) { if (res.data.entryOtherBean) {
this.entryOtherBean = res.data.entryOtherBean; this.entryOtherBean = res.data.entryOtherBean;
@ -1299,7 +1303,8 @@
photoType: 'salary', photoType: 'salary',
}, },
success: (uploadFileRes) => { success: (uploadFileRes) => {
console.log(uploadFileRes); // console.log(uploadFileRes);
console.log('🚀 ~ 上传图片 ~ uploadFileRes:', uploadFileRes)
if (uploadFileRes.statusCode == 200) { if (uploadFileRes.statusCode == 200) {
this.entryBankBean.bankPhoto = JSON.parse(uploadFileRes.data) this.entryBankBean.bankPhoto = JSON.parse(uploadFileRes.data)
.data.url; .data.url;
@ -1520,6 +1525,7 @@
} }
}, },
updateEntryPerson() { updateEntryPerson() {
this.isLoading = true
console.log('add') console.log('add')
let param = { let param = {
entryIdNumberBean: this.entryIdNumberBean, entryIdNumberBean: this.entryIdNumberBean,
@ -1530,6 +1536,7 @@
entryBankBean: this.entryBankBean, entryBankBean: this.entryBankBean,
entryOtherBean: this.entryOtherBean entryOtherBean: this.entryOtherBean
} }
console.log('🚀 ~ 编辑 ~ param:', param)
console.log(param) console.log(param)
uni.request({ uni.request({
url: config.realAppUrl + '/entry/updateEntryPerson', url: config.realAppUrl + '/entry/updateEntryPerson',
@ -1540,6 +1547,7 @@
Authorization: uni.getStorageSync('realNameToken') Authorization: uni.getStorageSync('realNameToken')
}, },
success: res => { success: res => {
this.isLoading = false
console.log(res) console.log(res)
res = res.data; res = res.data;
if (res.code == 200) { if (res.code == 200) {
@ -1561,6 +1569,7 @@
}, },
fail: err => { fail: err => {
console.log(err) console.log(err)
this.isLoading = false
} }
}) })

View File

@ -81,7 +81,7 @@
</view> </view>
</u-popup> </u-popup>
<u-loading-page :loading="isLoading"></u-loading-page>
</view> </view>
</template> </template>
@ -91,6 +91,7 @@ import config from '@/config'
export default { export default {
data() { data() {
return { return {
isLoading:false,
showImgPopup:false, showImgPopup:false,
idNumber:uni.getStorageSync('realNameUser').idNumber, idNumber:uni.getStorageSync('realNameUser').idNumber,
proId:uni.getStorageSync('realNameUser').proId, proId:uni.getStorageSync('realNameUser').proId,
@ -117,6 +118,7 @@ export default {
}, },
onLoad() { onLoad() {
console.log('🚀 ~ mounted ~ mounted-index:'); console.log('🚀 ~ mounted ~ mounted-index:');
console.log('身份证号码:',this.idNumber)
}, },
onShow() { onShow() {
this.getPro() this.getPro()
@ -227,8 +229,9 @@ export default {
imageBase64:base64.split(',')[1] imageBase64:base64.split(',')[1]
} }
console.log(param) console.log(param)
this.isLoading = true
uni.request({ uni.request({
url: config.realBmwUrl+'/users/bankCard', url: config.lpBmwUrl+'/bmw/users/bankCard',
method: 'post', method: 'post',
data: param, data: param,
header: { header: {
@ -236,6 +239,7 @@ export default {
Authorization: uni.getStorageSync('realNameToken') Authorization: uni.getStorageSync('realNameToken')
}, },
success: res => { success: res => {
this.isLoading = false
console.log(res) console.log(res)
res = res.data; res = res.data;
if(res.code==200){ if(res.code==200){
@ -250,6 +254,7 @@ export default {
}, },
fail: err => { fail: err => {
console.log(err) console.log(err)
this.isLoading = false
} }
}) })
@ -323,6 +328,8 @@ export default {
uni.$u.toast('请填写银行名称'); uni.$u.toast('请填写银行名称');
}else if(this.entryBankBean.bankRollName==''){ }else if(this.entryBankBean.bankRollName==''){
uni.$u.toast('请填写银行支行名称'); uni.$u.toast('请填写银行支行名称');
}else if(this.entryBankBean.idNumber==''){
uni.$u.toast('请进行人脸识别');
}else{ }else{
this.entryBankBean.uploadDate = this.timeFormat(null,'yyyy-mm-dd'); this.entryBankBean.uploadDate = this.timeFormat(null,'yyyy-mm-dd');
this.entryBankBean.uploadTime = this.timeFormat(null,'yyyy-mm-dd hh:MM:ss'); this.entryBankBean.uploadTime = this.timeFormat(null,'yyyy-mm-dd hh:MM:ss');