af-mobile-client-vue3 1.0.75 → 1.0.76

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/tsconfig.json CHANGED
@@ -1,43 +1,43 @@
1
- {
2
- "compilerOptions": {
3
- "target": "esnext",
4
- "jsx": "preserve",
5
- "lib": ["esnext", "dom", "dom.iterable", "scripthost"],
6
- "experimentalDecorators": true,
7
- "baseUrl": ".",
8
- "module": "esnext",
9
- "moduleResolution": "Bundler",
10
- "paths": {
11
- "@af-mobile-client-vue3/*": ["src/*"]
12
- },
13
- "types": [
14
- "node",
15
- "unplugin-vue-router/client",
16
- "vite-plugin-vue-layouts/client",
17
- "vite-plugin-pwa/client"
18
- ],
19
- "allowJs": true,
20
- "strictNullChecks": false,
21
- "noImplicitAny": false,
22
- "noUnusedLocals": false,
23
- "noUnusedParameters": false,
24
- "importHelpers": true,
25
- "sourceMap": true,
26
- "allowSyntheticDefaultImports": true,
27
- "esModuleInterop": true,
28
- "verbatimModuleSyntax": true,
29
- "skipLibCheck": true
30
- },
31
- "include": [
32
- "src/App.vue",
33
- "src/**/*.ts",
34
- "src/**/*.tsx",
35
- "src/**/*.vue",
36
- "tests/**/*.ts",
37
- "tests/**/*.tsx",
38
- "src/components.d.ts",
39
- "src/auto-imports.d.ts",
40
- "src/typed-router.d.ts",
41
- "tests/*.ts"
42
- ]
43
- }
1
+ {
2
+ "compilerOptions": {
3
+ "target": "esnext",
4
+ "jsx": "preserve",
5
+ "lib": ["esnext", "dom", "dom.iterable", "scripthost"],
6
+ "experimentalDecorators": true,
7
+ "baseUrl": ".",
8
+ "module": "esnext",
9
+ "moduleResolution": "Bundler",
10
+ "paths": {
11
+ "@af-mobile-client-vue3/*": ["src/*"]
12
+ },
13
+ "types": [
14
+ "node",
15
+ "unplugin-vue-router/client",
16
+ "vite-plugin-vue-layouts/client",
17
+ "vite-plugin-pwa/client"
18
+ ],
19
+ "allowJs": true,
20
+ "strictNullChecks": false,
21
+ "noImplicitAny": false,
22
+ "noUnusedLocals": false,
23
+ "noUnusedParameters": false,
24
+ "importHelpers": true,
25
+ "sourceMap": true,
26
+ "allowSyntheticDefaultImports": true,
27
+ "esModuleInterop": true,
28
+ "verbatimModuleSyntax": true,
29
+ "skipLibCheck": true
30
+ },
31
+ "include": [
32
+ "src/App.vue",
33
+ "src/**/*.ts",
34
+ "src/**/*.tsx",
35
+ "src/**/*.vue",
36
+ "tests/**/*.ts",
37
+ "tests/**/*.tsx",
38
+ "src/components.d.ts",
39
+ "src/auto-imports.d.ts",
40
+ "src/typed-router.d.ts",
41
+ "tests/*.ts"
42
+ ]
43
+ }
@@ -1,52 +0,0 @@
1
- <script setup lang="ts">
2
- import {
3
- Tabs as VanTabs,
4
- Tab as VanTab,
5
- Row as VanRow,
6
- Button as VanButton
7
- } from 'vant'
8
- import { defineProps, watchEffect, onBeforeMount, ref, onMounted, watch, defineEmits } from 'vue'
9
- import { useUserStore } from '@af-mobile-client-vue3/stores/modules/user'
10
- import XFormView from '@af-mobile-client-vue3/views/component/XFormView/index.vue'
11
- import NormalDataLayout from '@af-mobile-client-vue3/components/layout/NormalDataLayout/index.vue'
12
- import { runLogic } from '@af-mobile-client-vue3/services/api/common'
13
- import { useRoute } from 'vue-router'
14
- import {getConfigByName, query} from '@af-mobile-client-vue3/services/api/common'
15
-
16
- const router = useRoute()
17
- const formData = ref({})
18
- function initComponents () {
19
- console.log('router.params=', router.params)
20
- runLogic('getLngPurchaseOrderAuditGroupData', {id: router.params?.id}).then((res) => {
21
- console.log('调用logic完成==',res)
22
- formData.value = {...res}
23
- console.log('赋值完成===', formData.value)
24
- })
25
- }
26
- onBeforeMount(()=>{
27
- initComponents()
28
- })
29
- const submit = (formData) => {
30
- console.log('提交表单===', formData)
31
- const param = {
32
- type: formData.value.auditInfo.f_approval_status === '审核未通过' ? 0 : 1,
33
- approval_date:'',
34
- approval_remark:formData.value.auditInfo.f_approval_status,
35
- approval_operator:useUserStore.getUserInfo?.name,
36
- approval_operatorid: useUserStore.getUserInfo?.id,
37
- record: {od_id:1}
38
- }
39
- }
40
- </script>
41
-
42
- <template>
43
-
44
- <NormalDataLayout id="XCellListView" title="采购审核">
45
- <template #layout_content>
46
- <XFormView :config-name="'lngPurchaseOrderFormGroup'" @submit="submit" :group-form-data="formData"/>
47
- </template>
48
- </NormalDataLayout>
49
- </template>
50
- <style scoped lang="less">
51
-
52
- </style>