[FIX]【自助入司优化】担保书-支持重新签名

This commit is contained in:
yuweiqi
2020-06-19 17:13:25 +08:00
parent f387089e0d
commit 6ad1480dac
3 changed files with 66 additions and 42 deletions

View File

@@ -35,7 +35,7 @@
</template> </template>
<script> <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 { agreementQuery, signAgreement } from '@/api/ebiz/agentEenter/agentEenter.js'
import config from '@/config' import config from '@/config'
import { filtSignList, getAgreementNextPagePath } from './js/methods' import { filtSignList, getAgreementNextPagePath } from './js/methods'
@@ -319,44 +319,58 @@ export default {
window.location.href = this.$mainUrl + '/sign/index.html' window.location.href = this.$mainUrl + '/sign/index.html'
}, },
goNext() { goNext() {
let that = this if ((this.appntSign.signState == '1' && !this.base64) || (this.guaranteeSign.signState == '1' && !this.base64D)) {
// if (this.isSign && this.isReSign == '0') { this.$jump({
let data = { flag: 'goback',
// userModel: { extra: {
// mobile: '13000000000' refresh: '1',
// }, index: '-1'
baseEncryp: that.code == '0' ? that.base64 : that.base64D, },
// otherBaseEncryp: that.base64D, routerInfo: {
// baseEncryp: '123456', type: 2,
ebizAgreementDto: that.appntSign index: -1,
} path: `/agentEenter/signContract`
console.log('baseEncryp', data.baseEncryp) }
that.$toast.loading({ })
duration: 0, // 持续展示 toast } else {
forbidClick: true, // 禁用背景点击 let data = {
loadingType: 'spinner', // userModel: {
message: '加载中……' // mobile: '13000000000'
}) // },
signAgreement(data).then(res => { baseEncryp: this.code == '0' ? this.base64 : this.base64D,
that.$toast.clear() // otherBaseEncryp: this.base64D,
if (res.result == '0') { // baseEncryp: '123456',
let path = !this.isWeixin ebizAgreementDto: this.appntSign
? `/agentEenter/${that.nextPagePath}?code=${that.code}`
: `/agentEenter/signContract?token=${localStorage.token}&dialogFlag=1`
this.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#' + path,
pullRefresh: that.nextPagePath == 'signContract' ? '1' : '0'
},
routerInfo: {
path: path
}
})
} else {
this.$toast(res.resultMessage)
} }
}) console.log('baseEncryp', data.baseEncryp)
this.$toast.loading({
duration: 0, // 持续展示 toast
forbidClick: true, // 禁用背景点击
loadingType: 'spinner',
message: '加载中……'
})
signAgreement(data).then(res => {
this.$toast.clear()
if (res.result == '0') {
let path = !this.isWeixin
? `/agentEenter/${this.nextPagePath}?code=${this.code}`
: `/agentEenter/signContract?token=${localStorage.token}&dialogFlag=1`
this.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#' + path,
pullRefresh: this.nextPagePath == 'signContract' ? '1' : '0'
},
routerInfo: {
path: path
}
})
} else {
this.$toast(res.resultMessage)
}
})
}
// } // }
// else { // else {
// if (this.isReSign == '1') { // if (this.isReSign == '1') {
@@ -385,13 +399,15 @@ export default {
watch: { watch: {
listenChange(val) { listenChange(val) {
let that = this 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 that.isDisable = false
} else { } else {
that.isDisable = true 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 that.isDisableD = false
} else { } else {
that.isDisableD = true that.isDisableD = true
@@ -424,10 +440,12 @@ export default {
// } else { // } else {
// that.isDisabledComplite = true // that.isDisabledComplite = true
// } // }
/*
if (val.appntSign.signState == '1' && val.appntSign.signStateD == '1') { if (val.appntSign.signState == '1' && val.appntSign.signStateD == '1') {
that.isDisable = true that.isDisable = true
that.isDisableD = true that.isDisableD = true
} }
*/
} }
}, },
beforeRouteLeave(to, from, next) { beforeRouteLeave(to, from, next) {

View File

@@ -176,6 +176,11 @@ export default {
extra: { extra: {
refresh: '1', refresh: '1',
index: '-1' index: '-1'
},
routerInfo: {
type: 2,
index: -1,
path: `/agentEenter/signContract`
} }
}) })
} else { } else {

View File

@@ -48,9 +48,10 @@
点击开始分享进行相关操作<br /><span class="red">温馨提示请尽量使用正楷文字进行签名</span> 点击开始分享进行相关操作<br /><span class="red">温馨提示请尽量使用正楷文字进行签名</span>
</div> </div>
<div v-if="!isInvalid" class="flex justify-content-a mb60 mt20"> <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
> > -->
<van-button @click="faceAuth('1')" 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>
<div v-else class="ml15">操作时间已失效请联系销售人员</div> <div v-else class="ml15">操作时间已失效请联系销售人员</div>