|
@@ -9,10 +9,10 @@
|
|
|
</view>
|
|
|
<view style="color: #007AFF;" @click="backPage">稍后再填</view>
|
|
|
</view>
|
|
|
- <u-collapse v-if="remarkStatus" :item-style="itemStyle" event-type="close" ref="collapse">
|
|
|
+ <u-collapse v-show="remarkStatus" :item-style="itemStyle" event-type="close" ref="collapse">
|
|
|
<u-collapse-item title="审核结果反馈">
|
|
|
<view style="padding-bottom: 30rpx;">
|
|
|
- <text class="collapse-item">{{ remark }}</text>
|
|
|
+ <text class="collapse-item">{{ remark || '' }}</text>
|
|
|
</view>
|
|
|
</u-collapse-item>
|
|
|
</u-collapse>
|
|
@@ -601,9 +601,18 @@ export default {
|
|
|
uni.downloadFile({
|
|
|
url: this.$method.splitImgHost(this.form.idcard_face_photo),
|
|
|
success:async (res) => {
|
|
|
- console.log(res,'res')
|
|
|
if (res.statusCode === 200) {
|
|
|
let resData = await this.faceCertificationIDCardOCR(1,res.tempFilePath);
|
|
|
+
|
|
|
+ if(!resData.data.data) {
|
|
|
+ uni.showModal({
|
|
|
+ title:'提示',
|
|
|
+ content:'身份证人像面照片异常,请重新上传',
|
|
|
+ showCancel:false,
|
|
|
+ })
|
|
|
+ this.isUploading = false;
|
|
|
+ return;
|
|
|
+ }
|
|
|
this.veryIdCard = resData.data.data.IdNum
|
|
|
this.veryIdName = resData.data.data.IdName
|
|
|
|
|
@@ -630,15 +639,14 @@ export default {
|
|
|
encoding: 'base64',
|
|
|
position: 0,
|
|
|
success:(res) => {
|
|
|
- console.log(res)
|
|
|
let base64 = 'data:image/jpg;base64,' + res.data;
|
|
|
- let data = {
|
|
|
+ let newdata = {
|
|
|
idNum:this.veryIdCard,
|
|
|
idName:this.veryIdName,
|
|
|
oneInchPhotos:base64
|
|
|
}
|
|
|
|
|
|
- this.$api.facCertificationImageRecognition(data).then(res1 => {
|
|
|
+ this.$api.facCertificationImageRecognition(newdata).then(res1 => {
|
|
|
if(res1.data.data.sim >= 70) {
|
|
|
var self = this;
|
|
|
if (self.remarkStatus) {
|
|
@@ -682,6 +690,9 @@ export default {
|
|
|
orderGoodsId:this.orderGoodsId,
|
|
|
keyValue: JSON.stringify(arsty)
|
|
|
};
|
|
|
+ console.log(datas,'datas0')
|
|
|
+ // this.isUploading = false;
|
|
|
+ // return;
|
|
|
this.$api.editbaseprofiletp(datas).then(res => {
|
|
|
this.isUploading = false;
|
|
|
if (res.data.code === 200) {
|
|
@@ -714,6 +725,11 @@ export default {
|
|
|
orderGoodsId:this.orderGoodsId,
|
|
|
keyValue: JSON.stringify(objs)
|
|
|
};
|
|
|
+
|
|
|
+
|
|
|
+ console.log(data,'datas')
|
|
|
+ // this.isUploading = false;
|
|
|
+ // return;
|
|
|
this.$api.addbaseprofiletp(datas).then(res => {
|
|
|
this.isUploading = false;
|
|
|
if (res.data.code === 200) {
|
|
@@ -790,12 +806,26 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ console.log(arsty,'arsty')
|
|
|
+ if(Object.keys(arsty).length == 0) {
|
|
|
+ uni.showModal({
|
|
|
+ title:'提示',
|
|
|
+ content:'数据错误,请联系管理员'
|
|
|
+ })
|
|
|
+ this.isUploading = false;
|
|
|
+ return;
|
|
|
+ }
|
|
|
var datas = {
|
|
|
id: this.id,
|
|
|
goodsId: this.goodsId,
|
|
|
orderGoodsId:this.orderGoodsId,
|
|
|
keyValue: JSON.stringify(arsty)
|
|
|
};
|
|
|
+
|
|
|
+ console.log(datas,'datas1')
|
|
|
+
|
|
|
+ // return;
|
|
|
this.$api.editbaseprofiletp(datas).then(res => {
|
|
|
this.isUploading = false;
|
|
|
if (res.data.code === 200) {
|
|
@@ -828,6 +858,11 @@ export default {
|
|
|
orderGoodsId:this.orderGoodsId,
|
|
|
keyValue: JSON.stringify(objs)
|
|
|
};
|
|
|
+
|
|
|
+
|
|
|
+ console.log(datas,'datas2')
|
|
|
+ // this.isUploading = false;
|
|
|
+ // return;
|
|
|
this.$api.addbaseprofiletp(datas).then(res => {
|
|
|
this.isUploading = false;
|
|
|
if (res.data.code === 200) {
|
|
@@ -837,7 +872,7 @@ export default {
|
|
|
this.$method.showToast(res.data.msg);
|
|
|
this.isUploading = false;
|
|
|
}
|
|
|
- });
|
|
|
+ }).catch(err => {});
|
|
|
}
|
|
|
},
|
|
|
backPage() {
|
|
@@ -859,6 +894,7 @@ export default {
|
|
|
data.recent_photos = await this.$method.uploadFile(data.recent_photos, 0);
|
|
|
}
|
|
|
if (data['idcard_face_photo']) {
|
|
|
+ console.log('idcard_face_photo')
|
|
|
data.idcard_face_photo = await this.$method.uploadFile(data.idcard_face_photo, 0);
|
|
|
}
|
|
|
if (data['idcard_national_photo']) {
|
|
@@ -867,10 +903,14 @@ export default {
|
|
|
if (data['commitment_electr_signature']) {
|
|
|
data.commitment_electr_signature = await this.$method.uploadFile(data.commitment_electr_signature, 0);
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
this.uploadDatas(data);
|
|
|
},
|
|
|
//验证表单
|
|
|
resultForm(int) {
|
|
|
+ console.log(this.openVerify,'openVerify')
|
|
|
+ console.log(this.isRequired,'isRequired')
|
|
|
if (this.openVerify) {
|
|
|
if (this.isRequired) {
|
|
|
this.submitApi();
|
|
@@ -921,9 +961,7 @@ export default {
|
|
|
encoding: 'base64',
|
|
|
position: 0,
|
|
|
success:(res) => {
|
|
|
- console.log(res)
|
|
|
let base64 = 'data:image/jpg;base64,' + res.data;
|
|
|
- console.log(base64)
|
|
|
this.$api.faceCertificationIDCardOCR({
|
|
|
cardSide:cardSide, //1人像 2 国徽
|
|
|
cardImageBase64:base64,
|
|
@@ -952,6 +990,7 @@ export default {
|
|
|
this.$set(this.form, 'recent_photos', '');
|
|
|
console.log(3, this.form.recent_photos);
|
|
|
}
|
|
|
+ this.openVerify = false;
|
|
|
this.$nextTick(function() {
|
|
|
console.log(4);
|
|
|
this.resultForm();
|
|
@@ -975,12 +1014,14 @@ export default {
|
|
|
this.$refs.idcard_face_photo[0].lists = [{
|
|
|
url:this.$method.splitImgHost(res.data.data.IdImgPath)
|
|
|
}];
|
|
|
- this.$set(this.form, 'idcard_face_photo', res.data.data.IdImgPath,1000);
|
|
|
+ this.$set(this.form, 'idcard_face_photo', res.data.data.IdImgPath);
|
|
|
+ console.log(this.form,'idcard_face_photo')
|
|
|
}
|
|
|
} else {
|
|
|
this.fileList2 = [];
|
|
|
this.$set(this.form, 'idcard_face_photo', '');
|
|
|
}
|
|
|
+ this.openVerify = false;
|
|
|
this.$nextTick(function() {
|
|
|
this.resultForm();
|
|
|
});
|
|
@@ -1004,11 +1045,13 @@ export default {
|
|
|
url:this.$method.splitImgHost(res.data.data.IdImgPath)
|
|
|
}];
|
|
|
this.$set(this.form, 'idcard_national_photo', res.data.data.IdImgPath);
|
|
|
+ console.log(this.form,'idcard_national_photo')
|
|
|
}
|
|
|
} else {
|
|
|
this.fileList3 = [];
|
|
|
this.$set(this.form, 'idcard_national_photo', '');
|
|
|
}
|
|
|
+ this.openVerify = false;
|
|
|
this.$nextTick(function() {
|
|
|
this.resultForm();
|
|
|
});
|
|
@@ -1022,11 +1065,9 @@ export default {
|
|
|
},
|
|
|
getarrays(key) {
|
|
|
if (key === 'sex') {
|
|
|
- console.log(this.dictObj)
|
|
|
return this.dictObj['sys_user_sex'];
|
|
|
}
|
|
|
if (key === 'education') {
|
|
|
- console.log(this.dictObj['edu_level'])
|
|
|
return this.dictObj['edu_level'];
|
|
|
}
|
|
|
if (key === 'working_years') {
|
|
@@ -1060,6 +1101,7 @@ export default {
|
|
|
* getbaseprofiletpgetInfo接口返回值result.data.data不存在的话说明是第一次填写资料
|
|
|
*/
|
|
|
getInfo() {
|
|
|
+ console.log('getInfo')
|
|
|
var self = this;
|
|
|
this.$api.getbaseprofiletpId(this.goodsId).then(res => {
|
|
|
self.listData = JSON.parse(res.data.data.keyValue);
|
|
@@ -1080,6 +1122,7 @@ export default {
|
|
|
self.isRequired = self.listData.every(ims => {
|
|
|
return ims.required === false;
|
|
|
});
|
|
|
+ console.log(self.isRequired ,'self.isRequired ')
|
|
|
this.$nextTick(() => {
|
|
|
this.agreementModal = true;
|
|
|
})
|
|
@@ -1133,6 +1176,7 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
+ console.log(result.data.data,'result.data.data')
|
|
|
if (result.data.data && result.data.data.status === 3) {
|
|
|
self.remark = result.data.data.text;
|
|
|
self.remarkStatus = true;
|
|
@@ -1196,6 +1240,7 @@ export default {
|
|
|
},
|
|
|
bindPickerChange(key, e) {
|
|
|
this.$set(this.form, key, e.detail.value);
|
|
|
+ this.openVerify = false;
|
|
|
this.$nextTick(function() {
|
|
|
this.resultForm();
|
|
|
});
|
|
@@ -1206,6 +1251,7 @@ export default {
|
|
|
retDraw() {
|
|
|
this.handwriting.retDraw();
|
|
|
this.$set(this.form, 'commitment_electr_signature', '');
|
|
|
+ this.openVerify = false;
|
|
|
this.$nextTick(function() {
|
|
|
this.resultForm();
|
|
|
});
|
|
@@ -1229,7 +1275,6 @@ export default {
|
|
|
self.handwriting
|
|
|
.saveCanvas()
|
|
|
.then(res => {
|
|
|
- console.log(res,'res')
|
|
|
if (this.handwriting.linePrack.length) {
|
|
|
this.$set(this.form, 'commitment_electr_signature', res);
|
|
|
}
|