mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-10 13:56:44 +08:00
[FIX]【自助入司优化】担保书-支持重新签名
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { Field, Icon, Button, Radio, CheckboxGroup, NoticeBar, Dialog, RadioGroup } from 'vant'
|
||||
import { Field, Icon, Button, Radio, NoticeBar, Dialog, RadioGroup } from 'vant'
|
||||
import { agreementQuery, signAgreement } from '@/api/ebiz/agentEenter/agentEenter.js'
|
||||
import config from '@/config'
|
||||
import { filtSignList, getAgreementNextPagePath } from './js/methods'
|
||||
@@ -319,35 +319,47 @@ export default {
|
||||
window.location.href = this.$mainUrl + '/sign/index.html'
|
||||
},
|
||||
goNext() {
|
||||
let that = this
|
||||
// if (this.isSign && this.isReSign == '0') {
|
||||
if ((this.appntSign.signState == '1' && !this.base64) || (this.guaranteeSign.signState == '1' && !this.base64D)) {
|
||||
this.$jump({
|
||||
flag: 'goback',
|
||||
extra: {
|
||||
refresh: '1',
|
||||
index: '-1'
|
||||
},
|
||||
routerInfo: {
|
||||
type: 2,
|
||||
index: -1,
|
||||
path: `/agentEenter/signContract`
|
||||
}
|
||||
})
|
||||
} else {
|
||||
let data = {
|
||||
// userModel: {
|
||||
// mobile: '13000000000'
|
||||
// },
|
||||
baseEncryp: that.code == '0' ? that.base64 : that.base64D,
|
||||
// otherBaseEncryp: that.base64D,
|
||||
baseEncryp: this.code == '0' ? this.base64 : this.base64D,
|
||||
// otherBaseEncryp: this.base64D,
|
||||
// baseEncryp: '123456',
|
||||
ebizAgreementDto: that.appntSign
|
||||
ebizAgreementDto: this.appntSign
|
||||
}
|
||||
console.log('baseEncryp', data.baseEncryp)
|
||||
that.$toast.loading({
|
||||
this.$toast.loading({
|
||||
duration: 0, // 持续展示 toast
|
||||
forbidClick: true, // 禁用背景点击
|
||||
loadingType: 'spinner',
|
||||
message: '加载中……'
|
||||
})
|
||||
signAgreement(data).then(res => {
|
||||
that.$toast.clear()
|
||||
this.$toast.clear()
|
||||
if (res.result == '0') {
|
||||
let path = !this.isWeixin
|
||||
? `/agentEenter/${that.nextPagePath}?code=${that.code}`
|
||||
? `/agentEenter/${this.nextPagePath}?code=${this.code}`
|
||||
: `/agentEenter/signContract?token=${localStorage.token}&dialogFlag=1`
|
||||
this.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
url: location.origin + '/#' + path,
|
||||
pullRefresh: that.nextPagePath == 'signContract' ? '1' : '0'
|
||||
pullRefresh: this.nextPagePath == 'signContract' ? '1' : '0'
|
||||
},
|
||||
routerInfo: {
|
||||
path: path
|
||||
@@ -357,6 +369,8 @@ export default {
|
||||
this.$toast(res.resultMessage)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// }
|
||||
// else {
|
||||
// if (this.isReSign == '1') {
|
||||
@@ -385,13 +399,15 @@ export default {
|
||||
watch: {
|
||||
listenChange(val) {
|
||||
let that = this
|
||||
if (val.isOver == true && val.radio != '' && val.appntSign.signState !== '1') {
|
||||
// if (val.isOver == true && val.radio != '' && val.appntSign.signState !== '1') {
|
||||
if (val.isOver == true && val.radio != '') {
|
||||
that.isDisable = false
|
||||
} else {
|
||||
that.isDisable = true
|
||||
}
|
||||
|
||||
if (val.isOver == true && val.radio != '' && val.appntSign.signStateD !== '1') {
|
||||
// if (val.isOver == true && val.radio != '' && val.appntSign.signStateD !== '1') {
|
||||
if (val.isOver == true && val.radio != '') {
|
||||
that.isDisableD = false
|
||||
} else {
|
||||
that.isDisableD = true
|
||||
@@ -424,10 +440,12 @@ export default {
|
||||
// } else {
|
||||
// that.isDisabledComplite = true
|
||||
// }
|
||||
/*
|
||||
if (val.appntSign.signState == '1' && val.appntSign.signStateD == '1') {
|
||||
that.isDisable = true
|
||||
that.isDisableD = true
|
||||
}
|
||||
*/
|
||||
}
|
||||
},
|
||||
beforeRouteLeave(to, from, next) {
|
||||
|
||||
@@ -176,6 +176,11 @@ export default {
|
||||
extra: {
|
||||
refresh: '1',
|
||||
index: '-1'
|
||||
},
|
||||
routerInfo: {
|
||||
type: 2,
|
||||
index: -1,
|
||||
path: `/agentEenter/signContract`
|
||||
}
|
||||
})
|
||||
} else {
|
||||
|
||||
@@ -48,9 +48,10 @@
|
||||
点击【开始】或【分享】,进行相关操作<br /><span class="red">温馨提示:请尽量使用正楷文字进行签名</span>
|
||||
</div>
|
||||
<div v-if="!isInvalid" class="flex justify-content-a mb60 mt20">
|
||||
<van-button v-if="!isWeixin" @click="share" v-no-more-click="1000" :disabled="isguranteeSubmit" type="danger" size="normal" style="width:30%"
|
||||
<van-button v-if="!isWeixin" @click="share" v-no-more-click="1000" type="danger" size="normal" style="width:30%">分享</van-button>
|
||||
<!-- <van-button v-if="!isWeixin" @click="share" v-no-more-click="1000" :disabled="isguranteeSubmit" type="danger" size="normal" style="width:30%"
|
||||
>分享</van-button
|
||||
>
|
||||
> -->
|
||||
<van-button @click="faceAuth('1')" v-no-more-click="1000" :disabled="isguranteeSubmit" type="danger" size="normal" style="width:30%">开始</van-button>
|
||||
</div>
|
||||
<div v-else class="ml15">操作时间已失效,请联系销售人员!</div>
|
||||
|
||||
Reference in New Issue
Block a user