|
|
@@ -1,51 +1,42 @@
|
|
|
<template>
|
|
|
- <app-modal direction="right" height="100%" v-model:show="showModal" :refresh="refresh">
|
|
|
- <app-view class="g-form">
|
|
|
- <template #header>
|
|
|
- <app-navbar title="合同签署" @back="closed" />
|
|
|
- </template>
|
|
|
- <div class="g-form__container">
|
|
|
- <CellGroup inset>
|
|
|
- <Cell title="姓名" :value="customername" />
|
|
|
- <Cell title="手机号码" :value="mobile2" />
|
|
|
- <Cell title="证件号码" :value="decryptAES(cardnum)" />
|
|
|
- <Cell title="签署机构" :value="memberUserId" />
|
|
|
- </CellGroup>
|
|
|
- <CellGroup inset>
|
|
|
- <template v-for="(item, index) in dataList" :key="index">
|
|
|
- <Cell :title="item.templatename" :icon="iconName(item.recordstatus)" @click="signer(item)"
|
|
|
- is-link />
|
|
|
- </template>
|
|
|
- </CellGroup>
|
|
|
- </div>
|
|
|
- </app-view>
|
|
|
- </app-modal>
|
|
|
+ <app-view class="g-form">
|
|
|
+ <template #header>
|
|
|
+ <app-navbar title="合同签署" />
|
|
|
+ </template>
|
|
|
+ <div class="g-form__container">
|
|
|
+ <CellGroup inset>
|
|
|
+ <Cell title="姓名" :value="customername" />
|
|
|
+ <Cell title="手机号码" :value="mobile2" />
|
|
|
+ <Cell title="证件号码" :value="decryptAES(cardnum)" />
|
|
|
+ <Cell title="签署机构" :value="memberUserId" />
|
|
|
+ </CellGroup>
|
|
|
+ <CellGroup inset>
|
|
|
+ <template v-for="(item, index) in dataList" :key="index">
|
|
|
+ <Cell :title="item.templatename" :icon="iconName(item.recordstatus)" @click="signer(item)"
|
|
|
+ is-link />
|
|
|
+ </template>
|
|
|
+ </CellGroup>
|
|
|
+ </div>
|
|
|
+ </app-view>
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
import { shallowRef } from 'vue'
|
|
|
import { CellGroup, Cell, showFailToast, showToast } from 'vant'
|
|
|
import { fullloading } from '@/utils/vant';
|
|
|
+import { useNavigation } from '@mobile/router/navigation'
|
|
|
import { useRequest } from '@/hooks/request'
|
|
|
import { queryTencentUsereSignRecords, requestInitTencentESS } from '@/services/api/account';
|
|
|
import { useRequestCreateFlowByTemplateDirectly } from '@/business/user/account';
|
|
|
import plus from '@/utils/h5plus'
|
|
|
-import eventBus from '@/services/bus'
|
|
|
import { getFileUrl } from '@/filters';
|
|
|
import { getUserId } from '@/services/methods/user'
|
|
|
import { useUserStore } from '@/stores'
|
|
|
import { decryptAES } from '@/services/websocket/package/crypto'
|
|
|
|
|
|
-const props = defineProps({
|
|
|
- memberUserId: {
|
|
|
- type: Number,
|
|
|
- required: true,
|
|
|
- }
|
|
|
-})
|
|
|
-
|
|
|
-const showModal = shallowRef(true)
|
|
|
-// 是否刷新父组件数据
|
|
|
-const refresh = shallowRef(false)
|
|
|
+const { getQueryStringToNumber } = useNavigation()
|
|
|
+/// 所属机构
|
|
|
+const memberUserId = getQueryStringToNumber('memberUserId')
|
|
|
/// userStore
|
|
|
const userStore = useUserStore()
|
|
|
/// 创建电子签合同
|
|
|
@@ -58,7 +49,7 @@ const { customername, cardnum, mobile2 } = userStore.userInfo
|
|
|
const { run } = useRequest(queryTencentUsereSignRecords, {
|
|
|
params: {
|
|
|
userId: getUserId(),
|
|
|
- memberUserId: props.memberUserId
|
|
|
+ memberUserId: memberUserId
|
|
|
},
|
|
|
onSuccess: (res) => {
|
|
|
if (res.data.length != 0) {
|
|
|
@@ -75,7 +66,7 @@ const { run: initTencentESS } = useRequest(requestInitTencentESS, {
|
|
|
manual: true,
|
|
|
params: {
|
|
|
userId: getUserId(),
|
|
|
- memberUserId: props.memberUserId
|
|
|
+ memberUserId: memberUserId
|
|
|
},
|
|
|
onSuccess: () => {
|
|
|
/// 重新请求
|
|
|
@@ -143,22 +134,4 @@ const signer = (item: Model.TencentUsereSignRecordsRsq) => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-// 接收窗口页面状态通知
|
|
|
-const documentVisibilityStateNotify = eventBus.$on('DocumentVisibilityStateNotify', (state) => {
|
|
|
- if (state === 'visible') {
|
|
|
- run()
|
|
|
- }
|
|
|
-})
|
|
|
-
|
|
|
-// 关闭弹窗
|
|
|
-const closed = (isRefresh = false) => {
|
|
|
- refresh.value = isRefresh
|
|
|
- showModal.value = false
|
|
|
- documentVisibilityStateNotify.cancel()
|
|
|
-}
|
|
|
-
|
|
|
-// 暴露组件属性给父组件调用
|
|
|
-defineExpose({
|
|
|
- closed,
|
|
|
-})
|
|
|
</script>
|