|
@@ -68,11 +68,11 @@
|
|
|
<myfile :zczmList="zczmList" @recordsChange="zcChange"></myfile>
|
|
|
</uni-forms-item>
|
|
|
|
|
|
- <view v-if="show">
|
|
|
+ <view v-if="show" style="border: 1px solid red;">
|
|
|
<uni-forms-item label="直接上传">
|
|
|
<uni-data-checkbox v-model="radio" :localdata="radioData"></uni-data-checkbox>
|
|
|
</uni-forms-item>
|
|
|
- <text>注意:人证比对不成功可以直接注册人工审核!</text>
|
|
|
+ <text style="color: red; font-weight: bolder;">注意:人证比对不成功可以直接注册人工审核!</text>
|
|
|
</view>
|
|
|
|
|
|
<view class="miaoshu" v-if="isCheck">
|
|
@@ -112,12 +112,10 @@
|
|
|
import { setToken, setOpenid, getOpenid, setUser } from '@/common/auth.js'
|
|
|
import { getAccessToken, idcard, match } from '@/common/baiduUtil.js'
|
|
|
import { updateKhjbxx, infoKhjbxx, GetLrByZjhm, SaveKhjbxx, YlhtUpdate, CheckReturn, GetUrl, getMchntList } from '@/api/kh.js'
|
|
|
- // import lazyPicker from '@/components/lazyPicker/lazyPicker.vue'
|
|
|
|
|
|
export default {
|
|
|
components: {
|
|
|
myfile,
|
|
|
- // lazyPicker
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -280,7 +278,7 @@
|
|
|
translateAll(base64ToUrl(e.data.data.arg.base64), (base64, blobUrl) => {
|
|
|
idcard(base64, this.token, this.cardType, this.callbackIdcard)
|
|
|
})
|
|
|
- uni.removeStorageSync('cardType')
|
|
|
+ // uni.removeStorageSync('cardType')
|
|
|
}, 1000);
|
|
|
}
|
|
|
|
|
@@ -301,7 +299,7 @@
|
|
|
},
|
|
|
watch: {
|
|
|
'baseFormData.mchnt': {
|
|
|
- immediate:true,
|
|
|
+ immediate: true,
|
|
|
handler(newVal, oldVal) {
|
|
|
if (newVal) {
|
|
|
getChildListByMchnt({ mchnt: newVal }).then(res => {
|
|
@@ -426,97 +424,34 @@
|
|
|
return
|
|
|
}
|
|
|
// todo 根据身份证号查询此人信息是否可修改。this.isCheck = true
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
this.frontBase64 = words.card_image
|
|
|
this.zjcaijianSrc = 'data:image/jpeg;base64,' + words.card_image
|
|
|
- this.disabled = false
|
|
|
-
|
|
|
- // this.baseFormData.lrXb = getDictInfo(this.dicts.C0007, words.words_result['性别'].words)[0].value
|
|
|
- // this.baseFormData.lrMz = getDictInfo(this.dicts.C0009, words.words_result['民族'].words)[0].value
|
|
|
-
|
|
|
- this.baseFormData.lrXb = sex
|
|
|
- this.baseFormData.lrMz = words.words_result['民族'].words
|
|
|
-
|
|
|
-
|
|
|
this.idcardFace = words.photo
|
|
|
this.idcardFaceUrl = base64ToUrl(words.photo);
|
|
|
- this.baseFormData.lrZjhm = id
|
|
|
- this.baseFormData.lrCsrq = csrq
|
|
|
- this.idcardMD5 = CryptoJS.MD5(this.baseFormData.lrZjhm).toString()
|
|
|
- this.baseFormData.lrXm = words.words_result['姓名'].words
|
|
|
- this.baseFormData.lrHjbcxx = zz
|
|
|
- this.ocrXm = words.words_result['姓名'].words
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- if (this.userInfo.userType != '07') {
|
|
|
+ this.idcardMD5 = CryptoJS.MD5(id).toString()
|
|
|
+
|
|
|
+ if (id) {
|
|
|
GetLrByZjhm({
|
|
|
lrJmzjhm: this.idcardMD5
|
|
|
}).then(res => {
|
|
|
- if (res.data) this.baseFormData = decryptData_ECB(res.data, ["lrZjhm", "lrXm",
|
|
|
- "lrHjbcxx",
|
|
|
- "lrXjdzBcxx",
|
|
|
- "lrCydh", "lrPoxm", "lrPoZjmh", "jhrXm", "jhrSjhm", "zlrXm", "zlrDh",
|
|
|
- "cjzh",
|
|
|
- "yhzh", "khmc", "jhrxm", "jhrlxdh"
|
|
|
- ], [2, 1, 4, 4, 3, 1, 2, 1, 2, 1, 3, 5, 5, 5]);
|
|
|
-
|
|
|
-
|
|
|
- if (this.baseFormData.lrTx) this.src = config.baseUrl + this.baseFormData.lrTx
|
|
|
- if (this.baseFormData.lrHjdz) {
|
|
|
- this.jiedaoData.forEach(e => {
|
|
|
- if (e.children.length > 0) {
|
|
|
- e.children.forEach(ee => {
|
|
|
- if (ee) {
|
|
|
- if (ee.code == this.baseFormData.lrHjdz) {
|
|
|
- this.shequValue = ee
|
|
|
- this.jiedaoValue = e
|
|
|
- this.diqu = this.jiedaoValue
|
|
|
- .label +
|
|
|
- '/' + this.shequValue.label
|
|
|
- }
|
|
|
- } else {
|
|
|
- if (e.code == this.baseFormData.lrHjdz) {
|
|
|
- this.jiedaoValue = e
|
|
|
- this.diqu = this.jiedaoValue.label
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- })
|
|
|
+ if (res.data) {
|
|
|
+ showConfirm('该信息已存在!请不要重复提交').then(res => {
|
|
|
+ if (res.confirm == true) {
|
|
|
+ uni.navigateBack()
|
|
|
}
|
|
|
})
|
|
|
} else {
|
|
|
- // 地区回显
|
|
|
- this.getAddressList()
|
|
|
+ this.baseFormData.lrXb = sex
|
|
|
+ this.baseFormData.lrMz = words.words_result['民族'].words
|
|
|
+ this.baseFormData.lrZjhm = id
|
|
|
+ this.baseFormData.lrCsrq = csrq
|
|
|
+ this.baseFormData.lrXm = words.words_result['姓名'].words
|
|
|
+ this.baseFormData.lrHjbcxx = zz
|
|
|
+ this.ocrXm = words.words_result['姓名'].words
|
|
|
+ this.disabled = false
|
|
|
}
|
|
|
- if (res.data && res.data.sfzzpb) this.zjcaijianSrcFan = res.data.sfzzpb
|
|
|
- if (res.data && res.data.tkzm) this.tkzmList = [res.data.tkzm]
|
|
|
- if (res.data && res.data.dbzm) this.dbzmList = [res.data.dbzm]
|
|
|
- if (res.data && res.data.zczm) this.zczmList = [res.data.zczm]
|
|
|
- if (res.data) this.updateFlag = true
|
|
|
-
|
|
|
})
|
|
|
}
|
|
|
-
|
|
|
- // if (id) {
|
|
|
- // GetLrByZjhm({
|
|
|
- // lrJmzjhm: this.idcardMD5
|
|
|
- // }).then(res => {
|
|
|
- // if (res.data) {
|
|
|
- // showConfirm('该信息已存在,请登录').then(res => {
|
|
|
- // if (res.confirm == true) {
|
|
|
- // uni.reLaunch({
|
|
|
- // url: '/pages/login/index'
|
|
|
- // })
|
|
|
- // }
|
|
|
- // })
|
|
|
- // } else {
|
|
|
- // this.disabled = false
|
|
|
- // }
|
|
|
- // })
|
|
|
- // }
|
|
|
} else if (this.cardType == 'back') {
|
|
|
if (!words) {
|
|
|
showConfirm('请上传正确的身份证国徽面')
|
|
@@ -541,7 +476,6 @@
|
|
|
this.backBase64 = words.card_image
|
|
|
this.zjcaijianSrcFan = 'data:image/jpeg;base64,' + words.card_image
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
},
|
|
|
|