[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,35 +319,47 @@ 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({
flag: 'goback',
extra: {
refresh: '1',
index: '-1'
},
routerInfo: {
type: 2,
index: -1,
path: `/agentEenter/signContract`
}
})
} else {
let data = { let data = {
// userModel: { // userModel: {
// mobile: '13000000000' // mobile: '13000000000'
// }, // },
baseEncryp: that.code == '0' ? that.base64 : that.base64D, baseEncryp: this.code == '0' ? this.base64 : this.base64D,
// otherBaseEncryp: that.base64D, // otherBaseEncryp: this.base64D,
// baseEncryp: '123456', // baseEncryp: '123456',
ebizAgreementDto: that.appntSign ebizAgreementDto: this.appntSign
} }
console.log('baseEncryp', data.baseEncryp) console.log('baseEncryp', data.baseEncryp)
that.$toast.loading({ this.$toast.loading({
duration: 0, // 持续展示 toast duration: 0, // 持续展示 toast
forbidClick: true, // 禁用背景点击 forbidClick: true, // 禁用背景点击
loadingType: 'spinner', loadingType: 'spinner',
message: '加载中……' message: '加载中……'
}) })
signAgreement(data).then(res => { signAgreement(data).then(res => {
that.$toast.clear() this.$toast.clear()
if (res.result == '0') { if (res.result == '0') {
let path = !this.isWeixin let path = !this.isWeixin
? `/agentEenter/${that.nextPagePath}?code=${that.code}` ? `/agentEenter/${this.nextPagePath}?code=${this.code}`
: `/agentEenter/signContract?token=${localStorage.token}&dialogFlag=1` : `/agentEenter/signContract?token=${localStorage.token}&dialogFlag=1`
this.$jump({ this.$jump({
flag: 'h5', flag: 'h5',
extra: { extra: {
url: location.origin + '/#' + path, url: location.origin + '/#' + path,
pullRefresh: that.nextPagePath == 'signContract' ? '1' : '0' pullRefresh: this.nextPagePath == 'signContract' ? '1' : '0'
}, },
routerInfo: { routerInfo: {
path: path path: path
@@ -357,6 +369,8 @@ export default {
this.$toast(res.resultMessage) 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>