af-mobile-client-vue3 1.4.26 → 1.4.27
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
|
@@ -111,6 +111,7 @@ const props = defineProps<{
|
|
|
111
111
|
isWorkOrder?: boolean
|
|
112
112
|
workOrderData?: any
|
|
113
113
|
serviceName?: string
|
|
114
|
+
showGroup?: boolean
|
|
114
115
|
}>()
|
|
115
116
|
|
|
116
117
|
const emit = defineEmits<{
|
|
@@ -131,7 +132,6 @@ const showAddItemModal = ref(false)
|
|
|
131
132
|
const showQrCodePayment = ref(false)
|
|
132
133
|
// 材料组相关状态
|
|
133
134
|
const showAddGroupModal = ref(false)
|
|
134
|
-
const GroupShow = ref(false)
|
|
135
135
|
// 子组件的响应组件引用
|
|
136
136
|
const printRef = ref()
|
|
137
137
|
// 收费类型数据
|
|
@@ -154,14 +154,13 @@ const useGridUploader = computed(() => {
|
|
|
154
154
|
return config.fileTypes && config.fileTypes.length > 0
|
|
155
155
|
})
|
|
156
156
|
|
|
157
|
+
// 是否显示添加材料组按钮
|
|
158
|
+
const showAddGroupButton = computed(() => {
|
|
159
|
+
return props.showGroup ?? false
|
|
160
|
+
})
|
|
157
161
|
// 初始化获取配置
|
|
158
162
|
async function initConfig() {
|
|
159
163
|
try {
|
|
160
|
-
// 获取其他收费类型配置
|
|
161
|
-
const webMobileConfig = await getConfigByNameAsync('webMobileConfig', props.serviceName || import.meta.env.VITE_APP_SYSTEM_NAME)
|
|
162
|
-
if (webMobileConfig) {
|
|
163
|
-
GroupShow.value = webMobileConfig.setting.materialGroup
|
|
164
|
-
}
|
|
165
164
|
// 新的收费类型数据
|
|
166
165
|
await runLogic('getMaterialInfo', {
|
|
167
166
|
f_org_id: currUser.resources.orgid,
|
|
@@ -436,7 +435,7 @@ function onFileRemoved(): void {
|
|
|
436
435
|
<CardHeader title="费用项目">
|
|
437
436
|
<template #extra>
|
|
438
437
|
<VanButton
|
|
439
|
-
v-if="
|
|
438
|
+
v-if="showAddGroupButton"
|
|
440
439
|
type="primary"
|
|
441
440
|
size="small"
|
|
442
441
|
icon="plus"
|