af-mobile-client-vue3 1.0.81 → 1.0.83

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "af-mobile-client-vue3",
3
3
  "type": "module",
4
- "version": "1.0.81",
4
+ "version": "1.0.83",
5
5
  "description": "Vue + Vite component lib",
6
6
  "license": "MIT",
7
7
  "engines": {
@@ -858,6 +858,9 @@ 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>{{ userState.f.resources.rolestr }}</p>
862
+ <p>{{ attr.showFormItemFunc }}</p>
863
+ <p>{{ showItem }}</p>
861
864
  </div>
862
865
  </template>
863
866
 
@@ -62,7 +62,7 @@ const routes: Array<RouteRecordRaw> = [
62
62
  component: XCellDetailView,
63
63
  },
64
64
  {
65
- path: '/Component/XFormGroupView',
65
+ path: '/Component/XFormGroupView/:id',
66
66
  name: 'XFormGroupView',
67
67
  component: XFormGroupView,
68
68
  },
@@ -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
- id: item[idKey.value],
54
- // id: item.rr_id,
55
- // o_id: item.o_id,
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
- // onBeforeMount(() => {
56
- // initComponents()
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"