|
@@ -467,7 +467,14 @@
|
|
|
<div
|
|
|
class="m-1 flex-1 overflow-hidden rounded-lg border-1 border-[var(--czr-main-color)]/5 shadow"
|
|
|
>
|
|
|
- <chat :online="false" :ID="state.ID" ref="ref_chat" />
|
|
|
+ <chat :online="false" :ID="state.ID" ref="ref_chat">
|
|
|
+ <template #form="{ props }">
|
|
|
+ <formList :data="props.data" />
|
|
|
+ </template>
|
|
|
+ <template #material="{ props }">
|
|
|
+ <materialList :data="props.data" />
|
|
|
+ </template>
|
|
|
+ </chat>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -492,6 +499,8 @@ import chat from '@/views/chat/index.vue'
|
|
|
import { isValue } from '@/utils/czr-util'
|
|
|
import { v4 } from 'uuid'
|
|
|
import { fileUploadFile } from '@/api/modules/global/upload'
|
|
|
+import formList from './chat/form-list.vue'
|
|
|
+import materialList from './chat/material-list.vue'
|
|
|
|
|
|
const route = useRoute()
|
|
|
const router = useRouter()
|
|
@@ -571,38 +580,17 @@ const onStep = (index) => {
|
|
|
current.finish = true
|
|
|
current.wait = false
|
|
|
state.step.options[index + 1].wait = true
|
|
|
- const id = v4()
|
|
|
- const ddd = () => {
|
|
|
- console.log(123123)
|
|
|
- }
|
|
|
ref_chat.value.mockAnswer({
|
|
|
text: '欢迎进入表单填写阶段!为了让您的体验更加顺畅,我已经贴心地为您预先填写了部分内容。接下来,请在左侧补充剩余的信息,感谢您的配合!',
|
|
|
- teleport: id,
|
|
|
- com: {
|
|
|
- is: defineAsyncComponent(
|
|
|
- () =>
|
|
|
- import(
|
|
|
- '@/views/business/doing-with-chat/chat/form-list.vue'
|
|
|
- ),
|
|
|
- ),
|
|
|
- binds: {
|
|
|
- data: ['asdasd', 'zxvzxvzxv'],
|
|
|
- ddd,
|
|
|
- },
|
|
|
+ slot: 'form',
|
|
|
+ slotProps: {
|
|
|
+ data: [
|
|
|
+ '基本信息表',
|
|
|
+ '海南省灵活就业人员参保登记表',
|
|
|
+ '基本养老保险、职业(企业)年金关系转移接续申请表',
|
|
|
+ ],
|
|
|
},
|
|
|
})
|
|
|
- // state.components.push({
|
|
|
- // id,
|
|
|
- // is: defineAsyncComponent(
|
|
|
- // () =>
|
|
|
- // import(
|
|
|
- // '@/views/business/doing-with-chat/chat/form-list.vue'
|
|
|
- // ),
|
|
|
- // ),
|
|
|
- // props: {
|
|
|
- // data: ['asdasda', 'faszxcszczxc'],
|
|
|
- // },
|
|
|
- // })
|
|
|
}
|
|
|
state.step.index = index + 1
|
|
|
}
|
|
@@ -700,6 +688,24 @@ const initDetail = () => {
|
|
|
document.title = state.detail.name
|
|
|
nextTick(() => {
|
|
|
ref_chat.value?.init()
|
|
|
+ ref_chat.value.mockAnswer({
|
|
|
+ text: '欢迎进入表单填写阶段!为了让您的体验更加顺畅,我已经贴心地为您预先填写了部分内容。接下来,请在左侧补充剩余的信息,感谢您的配合!',
|
|
|
+ slot: 'form',
|
|
|
+ slotProps: {
|
|
|
+ data: [
|
|
|
+ '基本信息表',
|
|
|
+ '海南省灵活就业人员参保登记表',
|
|
|
+ '基本养老保险、职业(企业)年金关系转移接续申请表',
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ })
|
|
|
+ ref_chat.value.mockAnswer({
|
|
|
+ text: '表单已填写完成!接下来进入材料上传阶段!以下是需要您提供的材料,请在左侧上传',
|
|
|
+ slot: 'material',
|
|
|
+ slotProps: {
|
|
|
+ data: state.step.options[3].fileList,
|
|
|
+ },
|
|
|
+ })
|
|
|
const timer = setInterval(() => {
|
|
|
state.step.options[0].time -= 1
|
|
|
if (state.step.options[0].time === 0) {
|