af-mobile-client-vue3 1.5.95 → 1.5.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -4,6 +4,7 @@ import XSelect from '@af-mobile-client-vue3/components/core/XSelect/index.vue'
|
|
|
4
4
|
import FilePreview from '@af-mobile-client-vue3/components/data/FilePreview/index.vue'
|
|
5
5
|
import XForm from '@af-mobile-client-vue3/components/data/XForm/index.vue'
|
|
6
6
|
import { getConfigByName, runLogic } from '@af-mobile-client-vue3/services/api/common'
|
|
7
|
+
import { useStepStore } from '@af-mobile-client-vue3/stores/modules/step'
|
|
7
8
|
import { useUserStore } from '@af-mobile-client-vue3/stores/modules/user'
|
|
8
9
|
import { showToast, Button as VanButton, CellGroup as VanCellGroup, Dialog as VanDialog, Loading as VanLoading } from 'vant'
|
|
9
10
|
import { computed, onMounted, ref } from 'vue'
|
|
@@ -27,7 +28,8 @@ const route = useRoute()
|
|
|
27
28
|
const userInfo = useUserStore().getUserInfo()
|
|
28
29
|
// 获取操作员信息
|
|
29
30
|
const currUser = useUserStore().getLogin().f
|
|
30
|
-
const
|
|
31
|
+
const stepStore = useStepStore()
|
|
32
|
+
const workflowId = ref(route.query.workflowId?.toString() || stepStore.getWorkflowId() || '')
|
|
31
33
|
const userId = computed(() => route.query.userId?.toString() || '')
|
|
32
34
|
// 合同名称
|
|
33
35
|
const f_contract_name = ref('')
|
|
@@ -142,7 +144,7 @@ async function onSignSubmit() {
|
|
|
142
144
|
|
|
143
145
|
onMounted(() => {
|
|
144
146
|
runLogic('getUserinfoByid', {
|
|
145
|
-
condition: ` ui.f_userinfo_id = '${userId.value}' `,
|
|
147
|
+
condition: ` (ui.f_userinfo_id = '${userId.value}' or ui.f_workflow_id = '${workflowId.value}') `,
|
|
146
148
|
}, 'af-system').then((row: any) => {
|
|
147
149
|
if (row.length > 0) {
|
|
148
150
|
userRecord.value = row
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import XCellList from '@af-mobile-client-vue3/components/data/XCellList/index.vue'
|
|
3
|
-
import {
|
|
3
|
+
import { useStepStore } from '@af-mobile-client-vue3/stores/modules/step'
|
|
4
|
+
import { computed, ref } from 'vue'
|
|
4
5
|
import { useRoute, useRouter } from 'vue-router'
|
|
5
6
|
|
|
6
7
|
const router = useRouter()
|
|
7
8
|
const configName = 'userinfoContractCRUD'
|
|
8
9
|
const serviceName = 'af-system'
|
|
10
|
+
const stepStore = useStepStore()
|
|
11
|
+
const workflowId = ref(useRoute().query.workflowId?.toString() || stepStore.getWorkflowId() || '')
|
|
9
12
|
const userId = computed(() => useRoute().query.userId?.toString() || '')
|
|
10
13
|
function addContract() {
|
|
11
14
|
router.push({
|
|
@@ -32,6 +35,7 @@ function previewContract(res) {
|
|
|
32
35
|
:custom-add="true"
|
|
33
36
|
:fix-query-form="{
|
|
34
37
|
c_f_userinfo_id: userId,
|
|
38
|
+
c_f_process_id: workflowId,
|
|
35
39
|
}"
|
|
36
40
|
@add="addContract"
|
|
37
41
|
@preview-contract="previewContract"
|
|
@@ -2639,6 +2639,7 @@ provide('provideParent', {
|
|
|
2639
2639
|
:user-detail="userDetail"
|
|
2640
2640
|
:model-value="componentInitData"
|
|
2641
2641
|
:is-view-mode="isReadOnly"
|
|
2642
|
+
:extra-data="row?.extraData || {}"
|
|
2642
2643
|
:object-type-map="object_type_map"
|
|
2643
2644
|
@value-change="(selVal, selObj, currentVal, payload) => { valueChange(currentVal, pIndex, payload) }"
|
|
2644
2645
|
@device-deleted="cleanupDeletedDeviceData"
|
|
@@ -74,6 +74,10 @@ const props = defineProps({
|
|
|
74
74
|
type: Object,
|
|
75
75
|
default: () => ({}),
|
|
76
76
|
},
|
|
77
|
+
extraData: {
|
|
78
|
+
type: Object,
|
|
79
|
+
default: () => ({}),
|
|
80
|
+
},
|
|
77
81
|
})
|
|
78
82
|
|
|
79
83
|
/**
|
|
@@ -171,7 +175,9 @@ onMounted(() => {
|
|
|
171
175
|
* 配置获取成功后调用normalizeFormDataBySteps进行数据初始化
|
|
172
176
|
*/
|
|
173
177
|
function init() {
|
|
174
|
-
|
|
178
|
+
const fromConfig = props.extraData?.checkAiSlotFrom || 'photoAiRecognitionForm'
|
|
179
|
+
console.warn('fromConfig', fromConfig)
|
|
180
|
+
getConfigByName(fromConfig, (res: any) => {
|
|
175
181
|
console.warn('>>>>res', res)
|
|
176
182
|
photoAiRecognitionConfig.value = res
|
|
177
183
|
console.warn('>>>>stepColumns', stepColumns)
|