af-mobile-client-vue3 1.0.80 → 1.0.82
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
|
@@ -58,6 +58,9 @@ function resetOption() {
|
|
|
58
58
|
currentOrderVal.value = undefined
|
|
59
59
|
currentSortordVal.value = undefined
|
|
60
60
|
// 条件参数
|
|
61
|
+
Object.keys(conditionParams.value).forEach((key) => {
|
|
62
|
+
conditionParams.value[key] = undefined
|
|
63
|
+
})
|
|
61
64
|
}
|
|
62
65
|
function checkOrderOption() {
|
|
63
66
|
let isCheck = true
|
|
@@ -858,6 +858,8 @@ watch(() => form, (_oldVal, _newVal) => {
|
|
|
858
858
|
:rules="[{ required: attr.rule.required === 'true', message: `请填写${attr.name}` }]"
|
|
859
859
|
@blur="() => formTypeCheck(attr, localValue as string)"
|
|
860
860
|
/>
|
|
861
|
+
<p>{{ attr.showFormItemFunc }}</p>
|
|
862
|
+
<p>{{ showItem }}</p>
|
|
861
863
|
</div>
|
|
862
864
|
</template>
|
|
863
865
|
|
package/src/router/routes.ts
CHANGED
|
@@ -12,8 +12,10 @@ const router = useRouter()
|
|
|
12
12
|
const idKey = ref('o_id')
|
|
13
13
|
|
|
14
14
|
// 简易crud表单测试
|
|
15
|
-
const configName = ref('crud_oper_log_manage')
|
|
16
|
-
const serviceName = ref('af-system')
|
|
15
|
+
// const configName = ref('crud_oper_log_manage')
|
|
16
|
+
// const serviceName = ref('af-system')
|
|
17
|
+
const configName = ref('saleOrderAuditMobileCRUD')
|
|
18
|
+
const serviceName = ref('af-gaslink')
|
|
17
19
|
|
|
18
20
|
// 资源权限测试
|
|
19
21
|
// const configName = ref('crud_sources_test')
|
|
@@ -49,11 +51,12 @@ const serviceName = ref('af-system')
|
|
|
49
51
|
function toDetail(item) {
|
|
50
52
|
router.push({
|
|
51
53
|
name: 'XFormGroupView',
|
|
52
|
-
query: {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
},
|
|
54
|
+
// query: {
|
|
55
|
+
// id: item[idKey.value],
|
|
56
|
+
// id: item.rr_id,
|
|
57
|
+
// o_id: item.o_id,
|
|
58
|
+
// },
|
|
59
|
+
params: { id: item.u_id },
|
|
57
60
|
})
|
|
58
61
|
}
|
|
59
62
|
|
|
@@ -95,11 +98,16 @@ function deleteRow(result) {
|
|
|
95
98
|
<XCellList
|
|
96
99
|
:config-name="configName"
|
|
97
100
|
:service-name="serviceName"
|
|
98
|
-
:fix-query-form="{ o_f_oper_name: 'edu_test' }"
|
|
99
|
-
:id-key="idKey"
|
|
100
101
|
@to-detail="toDetail"
|
|
101
|
-
@delete-row="deleteRow"
|
|
102
102
|
/>
|
|
103
|
+
<!-- <XCellList-->
|
|
104
|
+
<!-- :config-name="configName"-->
|
|
105
|
+
<!-- :service-name="serviceName"-->
|
|
106
|
+
<!-- :fix-query-form="{ o_f_oper_name: 'edu_test' }"-->
|
|
107
|
+
<!-- :id-key="idKey"-->
|
|
108
|
+
<!-- @to-detail="toDetail"-->
|
|
109
|
+
<!-- @delete-row="deleteRow"-->
|
|
110
|
+
<!-- />-->
|
|
103
111
|
</template>
|
|
104
112
|
</NormalDataLayout>
|
|
105
113
|
</template>
|
|
@@ -4,10 +4,13 @@ import NormalDataLayout from '@af-mobile-client-vue3/components/layout/NormalDat
|
|
|
4
4
|
import { onBeforeMount, onMounted, ref } from 'vue'
|
|
5
5
|
import { showDialog } from 'vant'
|
|
6
6
|
import { useRoute } from 'vue-router'
|
|
7
|
+
import { runLogic } from '@af-mobile-client-vue3/services/api/common'
|
|
7
8
|
|
|
8
9
|
// 纯表单
|
|
9
|
-
const configName = ref('form_check_test')
|
|
10
|
-
const serviceName = ref('af-system')
|
|
10
|
+
// const configName = ref('form_check_test')
|
|
11
|
+
// const serviceName = ref('af-system')
|
|
12
|
+
const configName = ref('salesOrderReviewFormGroup')
|
|
13
|
+
const serviceName = ref('af-gaslink')
|
|
11
14
|
|
|
12
15
|
// const configName = ref("计划下发Form")
|
|
13
16
|
// const serviceName = ref("af-linepatrol")
|
|
@@ -51,10 +54,15 @@ function submit(_result) {
|
|
|
51
54
|
// isInit.value = true
|
|
52
55
|
// })
|
|
53
56
|
// }
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
57
|
+
function initComponents() {
|
|
58
|
+
runLogic('getOrderById', { id: route.params?.id }, 'af-gaslink').then((res) => {
|
|
59
|
+
formData.value = { companyInfo: { ...res }, vehicleInfo: { ...res } }
|
|
60
|
+
isInit.value = true
|
|
61
|
+
})
|
|
62
|
+
}
|
|
63
|
+
onBeforeMount(() => {
|
|
64
|
+
initComponents()
|
|
65
|
+
})
|
|
58
66
|
</script>
|
|
59
67
|
|
|
60
68
|
<template>
|
|
@@ -62,6 +70,7 @@ function submit(_result) {
|
|
|
62
70
|
<template #layout_content>
|
|
63
71
|
<!-- v-if="isInit" -->
|
|
64
72
|
<XFormGroup
|
|
73
|
+
v-if="isInit"
|
|
65
74
|
ref="formGroup"
|
|
66
75
|
:config-name="configName"
|
|
67
76
|
:service-name="serviceName"
|