增加:合同拒绝签署后支持重新发起签署
This commit is contained in:
parent
5f1a7f860c
commit
eaefc6ad87
|
|
@ -80,6 +80,10 @@ export function contractAuthInfo(data) {
|
|||
export function contractSignInfo(data) {
|
||||
return request.get(`contract/get_sign_info`, data);
|
||||
}
|
||||
// 法大大 - 拒绝后重新发起合同签署
|
||||
export function contractAgainSign(data) {
|
||||
return request.get(`contract/again_sign`, data);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@
|
|||
<view class="operation-btn" v-if="Number(info.binding_status) === 0" @click="goToAuth">去授权</view>
|
||||
<view class="operation-btn" v-else-if="Number(info.sign_status) === 0" @click="getSignInfo">去签约</view>
|
||||
<view class="operation-btn" v-else-if="Number(info.binding_status) === 1 && Number(info.sign_status) === 1" @click="getSignInfo">查看合同</view>
|
||||
<view class="operation-btn" v-else-if="Number(info.sign_status) === 2" @click="againSign">重新签约</view>
|
||||
</view>
|
||||
<!-- 授权登录 -->
|
||||
<authorize @onLoadFun="onLoadFun" :isAuto="isAuto" :isShowAuth="isShowAuth" @authColse="authClose"></authorize>
|
||||
|
|
@ -28,7 +29,7 @@
|
|||
import {mapGetters} from "vuex";
|
||||
import authorize from '@/components/Authorize';
|
||||
import { HTTP_REQUEST_URL } from '@/config/app';
|
||||
import { contractAuthInfo,contractSignInfo } from "@/api/agent";
|
||||
import { contractAuthInfo,contractSignInfo,contractAgainSign } from "@/api/agent";
|
||||
|
||||
export default {
|
||||
name: 'business',
|
||||
|
|
@ -51,7 +52,6 @@ export default {
|
|||
role_id: '',
|
||||
role_type: '',
|
||||
info: {},
|
||||
|
||||
}
|
||||
},
|
||||
onReady() {
|
||||
|
|
@ -140,8 +140,33 @@ export default {
|
|||
uni.hideLoading();
|
||||
_this.$util.Tips({title: err});
|
||||
});
|
||||
},
|
||||
// 重新签约
|
||||
againSign(){
|
||||
let _this = this;
|
||||
uni.showLoading({
|
||||
title: '加载中...',
|
||||
mask: true
|
||||
});
|
||||
contractAgainSign({ id: _this.info.id }).then(res => {
|
||||
uni.hideLoading();
|
||||
if(Number(res.status) === 200){
|
||||
let data = res.data || {};
|
||||
if(data.actorSignTaskEmbedUrl){
|
||||
uni.navigateTo({
|
||||
url: '/pages/webview/webview?url=' + encodeURIComponent(data.actorSignTaskEmbedUrl)
|
||||
})
|
||||
}
|
||||
}else{
|
||||
_this.$util.Tips({title: res.msg});
|
||||
}
|
||||
}).catch(err => {
|
||||
uni.hideLoading();
|
||||
_this.$util.Tips({title: err});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Reference in New Issue