@tplc/business 0.3.85 → 0.3.87
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/CHANGELOG.md +29 -0
- package/components/lcb-agreement-view/api.ts +7 -0
- package/components/lcb-agreement-view/lcb-agreement-view.vue +53 -0
- package/components/lcb-agreement-view/types.ts +4 -0
- package/components/lcb-calendar/api/index.ts +1 -0
- package/components/lcb-calendar/lcb-calendar.vue +1 -0
- package/components/lcb-form/lcb-form.vue +63 -307
- package/components/lcb-form/types.ts +6 -4
- package/components/lcb-map/lcb-map.vue +2 -2
- package/global.d.ts +1 -0
- package/package.json +2 -2
- package/types/components/lcb-agreement-view/api.d.ts +4 -0
- package/types/components/lcb-agreement-view/lcb-agreement-view.vue.d.ts +40 -0
- package/types/components/lcb-agreement-view/types.d.ts +4 -0
- package/types/components/lcb-calendar/api/index.d.ts +1 -0
- package/types/components/lcb-form/lcb-form.vue.d.ts +1 -4
- package/types/components/lcb-form/types.d.ts +5 -4
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,35 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.3.87](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.70...v0.3.87) (2025-03-19)
|
|
6
|
+
|
|
7
|
+
### [0.3.86](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.80...v0.3.86) (2025-03-18)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### 🚀 Chore | 构建/工程依赖/工具
|
|
11
|
+
|
|
12
|
+
* **release:** 0.1.67 ([287d4fc](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/287d4fc6c35e8496cdc0a9c3887f0e7407ffb711))
|
|
13
|
+
* **release:** 0.1.68 ([8b478f9](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/8b478f98e5d4c0e7b25a9c8c61e8f95cfb12ac95))
|
|
14
|
+
* **release:** 0.1.69 ([41190ce](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/41190ce6cb8176f38ed246689653404037818183))
|
|
15
|
+
* **release:** 0.3.81 ([5995783](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/5995783c7f580a6db6b8bfb396734674a48cb6d1))
|
|
16
|
+
* **release:** 0.3.82 ([64e03a3](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/64e03a3daaacb99e3eb7ea25c97c39dcc15967a2))
|
|
17
|
+
* **release:** 0.3.83 ([5596f65](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/5596f65e2ff9253f45f15b2f6fa28a885c4f562e))
|
|
18
|
+
* **release:** 0.3.84 ([f8d2372](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/f8d237276c202286f3ce6cc5516267ce5148ea51))
|
|
19
|
+
* **release:** 0.3.85 ([dca7063](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/dca7063b34cc31f4bf61ab720f66d9604802daeb))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### ✨ Features | 新功能
|
|
23
|
+
|
|
24
|
+
* tabs 支持 修改字体大小 ([d118635](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/d118635847e7c6a1567aa04180c9d314433e7a16))
|
|
25
|
+
* version ([562c50e](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/562c50e98b0dacb613c744beaa6d803895e5cb95))
|
|
26
|
+
* 新增fab ([2cea98b](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/2cea98b0049aacb674019dd35a49f2a5049f3d2d))
|
|
27
|
+
* 新增form ([1fc2c38](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/1fc2c38de7d1bb0cfcb420a9f80c1a2f309ffd49))
|
|
28
|
+
* 新增user-top ([e27c79b](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/e27c79b9deb38a9a02278ff58d0ca3fd050884c3))
|
|
29
|
+
* 新增类型属性 ([044fa99](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/044fa99ff2b1a18c4cb01185a7f30003862577a3))
|
|
30
|
+
* 新增连接配置 ([e9d3083](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/e9d3083755d765b8f350cf85e948222a96db816c))
|
|
31
|
+
* 暂时提交form ([a43ce7c](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/a43ce7c0152fda887a2695cf88cb79cd31c75f94))
|
|
32
|
+
* 调整默认尺寸 ([1ce6c2e](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/1ce6c2e1818324157c0964692f280dfb055b765b))
|
|
33
|
+
|
|
5
34
|
### [0.3.85](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.84...v0.3.85) (2025-03-18)
|
|
6
35
|
|
|
7
36
|
### [0.3.84](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.68...v0.3.84) (2025-03-18)
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view :class="customClass" @click="showAgreement">
|
|
3
|
+
<slot :text="data?.name" />
|
|
4
|
+
</view>
|
|
5
|
+
<wd-popup closable position="center" custom-class="!bg-transparent" v-model="show">
|
|
6
|
+
<view class="agreement-popup">
|
|
7
|
+
<view class="title">{{ data?.name }}</view>
|
|
8
|
+
<view class="max-h-60vh overflow-y-auto">
|
|
9
|
+
<mpHtml :content="data?.content" />
|
|
10
|
+
</view>
|
|
11
|
+
</view>
|
|
12
|
+
</wd-popup>
|
|
13
|
+
</template>
|
|
14
|
+
|
|
15
|
+
<script setup lang="ts">
|
|
16
|
+
import mpHtml from 'mp-html/src/uni-app/components/mp-html/mp-html.vue'
|
|
17
|
+
import { useRequest } from 'vue-hooks-plus'
|
|
18
|
+
import { getAgreementDetail } from './api'
|
|
19
|
+
import { ref } from 'vue'
|
|
20
|
+
import { LcbAgreementViewProps } from './types'
|
|
21
|
+
defineOptions({
|
|
22
|
+
name: 'LcbAgreementView',
|
|
23
|
+
options: {
|
|
24
|
+
addGlobalClass: true,
|
|
25
|
+
virtualHost: true,
|
|
26
|
+
styleIsolation: 'shared',
|
|
27
|
+
},
|
|
28
|
+
})
|
|
29
|
+
const props = defineProps<LcbAgreementViewProps>()
|
|
30
|
+
const show = ref(false)
|
|
31
|
+
const { data } = useRequest(getAgreementDetail, {
|
|
32
|
+
defaultParams: [props.type],
|
|
33
|
+
})
|
|
34
|
+
const showAgreement = async () => {
|
|
35
|
+
show.value = true
|
|
36
|
+
}
|
|
37
|
+
</script>
|
|
38
|
+
<style lang="scss" scoped>
|
|
39
|
+
.agreement-popup {
|
|
40
|
+
width: 80vw;
|
|
41
|
+
padding: 0 24rpx 24rpx;
|
|
42
|
+
background-color: #fff;
|
|
43
|
+
border-radius: 20rpx;
|
|
44
|
+
|
|
45
|
+
.title {
|
|
46
|
+
padding: 24rpx;
|
|
47
|
+
margin-bottom: 24rpx;
|
|
48
|
+
font-size: 32rpx;
|
|
49
|
+
font-weight: bold;
|
|
50
|
+
text-align: center;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
</style>
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<lcb-block>
|
|
2
|
+
<lcb-block v-bind="$props">
|
|
3
3
|
<wd-form custom-class="lcb-form" ref="formRef" :model="form">
|
|
4
4
|
<wd-cell-group border>
|
|
5
5
|
<block v-for="field in fields" :key="field.entryFormFieldConfigId">
|
|
6
6
|
<wd-input
|
|
7
7
|
v-if="field.frontInputType === 'input'"
|
|
8
|
-
:placeholder="field.frontPlaceholder || '请输入' + field.fieldCustomName"
|
|
8
|
+
:placeholder="field.frontPlaceholder || t('请输入') + field.fieldCustomName"
|
|
9
9
|
v-model="form[field.field]"
|
|
10
10
|
:label="field.fieldCustomName"
|
|
11
11
|
:required="field.requiredFlag"
|
|
12
12
|
:prop="field.field"
|
|
13
13
|
:rules="
|
|
14
14
|
field.requiredFlag
|
|
15
|
-
? [{ required: true, message: '请输入' + field.fieldCustomName }]
|
|
15
|
+
? [{ required: true, message: t('请输入') + field.fieldCustomName }]
|
|
16
16
|
: []
|
|
17
17
|
"
|
|
18
18
|
v-bind="field.props"
|
|
19
19
|
/>
|
|
20
20
|
<wd-textarea
|
|
21
21
|
v-else-if="field.frontInputType === 'inputArea'"
|
|
22
|
-
:placeholder="field.frontPlaceholder || '请输入' + field.fieldCustomName"
|
|
22
|
+
:placeholder="field.frontPlaceholder || t('请输入') + field.fieldCustomName"
|
|
23
23
|
v-model="form[field.field]"
|
|
24
24
|
:label="field.fieldCustomName"
|
|
25
25
|
:required="field.requiredFlag"
|
|
26
26
|
:prop="field.field"
|
|
27
27
|
:rules="
|
|
28
28
|
field.requiredFlag
|
|
29
|
-
? [{ required: true, message: '请输入' + field.fieldCustomName }]
|
|
29
|
+
? [{ required: true, message: t('请输入') + field.fieldCustomName }]
|
|
30
30
|
: []
|
|
31
31
|
"
|
|
32
32
|
v-bind="field.props"
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
:prop="field.field"
|
|
41
41
|
:rules="
|
|
42
42
|
field.requiredFlag
|
|
43
|
-
? [{ required: true, message: '请选择' + field.fieldCustomName }]
|
|
43
|
+
? [{ required: true, message: t('请选择') + field.fieldCustomName }]
|
|
44
44
|
: []
|
|
45
45
|
"
|
|
46
46
|
v-bind="field.props"
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
:prop="field.field"
|
|
54
54
|
:rules="
|
|
55
55
|
field.requiredFlag
|
|
56
|
-
? [{ required: true, message: '请选择' + field.fieldCustomName }]
|
|
56
|
+
? [{ required: true, message: t('请选择') + field.fieldCustomName }]
|
|
57
57
|
: []
|
|
58
58
|
"
|
|
59
59
|
v-bind="field.props"
|
|
@@ -106,17 +106,30 @@
|
|
|
106
106
|
</wd-cell>
|
|
107
107
|
</block>
|
|
108
108
|
</wd-cell-group>
|
|
109
|
-
<
|
|
110
|
-
|
|
109
|
+
<view class="text-center text-3 mt-6" v-if="agreementType">
|
|
110
|
+
<wd-checkbox v-model="form.agreement">
|
|
111
|
+
<view class="flex">
|
|
112
|
+
<text>{{ t('同意') }}</text>
|
|
113
|
+
<lcb-agreement-view :type="agreementType">
|
|
114
|
+
<template v-slot="{ text }">
|
|
115
|
+
<text class="text-primary">《{{ text }}》</text>
|
|
116
|
+
</template>
|
|
117
|
+
</lcb-agreement-view>
|
|
118
|
+
</view>
|
|
119
|
+
</wd-checkbox>
|
|
120
|
+
</view>
|
|
121
|
+
<wd-button type="primary" @click="submit" block size="large" class="!w-90% my-3">
|
|
122
|
+
{{ t(submitText) }}
|
|
111
123
|
</wd-button>
|
|
112
124
|
</wd-form>
|
|
113
125
|
</lcb-block>
|
|
114
126
|
</template>
|
|
115
127
|
|
|
116
128
|
<script setup lang="ts">
|
|
117
|
-
import { ref } from 'vue'
|
|
118
|
-
import {
|
|
129
|
+
import { ref, watch } from 'vue'
|
|
130
|
+
import { LcbFormField, LcbFormProps } from './types'
|
|
119
131
|
import { customUpload } from '../../utils/utils'
|
|
132
|
+
import { useTranslate } from '@tplc/wot'
|
|
120
133
|
defineOptions({
|
|
121
134
|
name: 'LcbForm',
|
|
122
135
|
options: {
|
|
@@ -125,309 +138,52 @@ defineOptions({
|
|
|
125
138
|
styleIsolation: 'shared',
|
|
126
139
|
},
|
|
127
140
|
})
|
|
128
|
-
|
|
129
|
-
const form = ref({
|
|
141
|
+
const { translate: t } = useTranslate()
|
|
142
|
+
const form = ref({
|
|
143
|
+
agreement: false,
|
|
144
|
+
})
|
|
130
145
|
const formRef = ref()
|
|
131
|
-
withDefaults(defineProps<LcbFormProps>(), {
|
|
132
|
-
fields: (): LcbFormField[] =>
|
|
133
|
-
[
|
|
134
|
-
{
|
|
135
|
-
agentId: '0',
|
|
136
|
-
childFlag: false,
|
|
137
|
-
conditionField: '0',
|
|
138
|
-
createDate: '2025-03-16 17:55:30',
|
|
139
|
-
editFlag: true,
|
|
140
|
-
entryFormConfigId: '1227996250586357760',
|
|
141
|
-
entryFormFieldConfigId: '1350890233794580480',
|
|
142
|
-
field: 'tu_pian',
|
|
143
|
-
fieldCustomName: '图片',
|
|
144
|
-
fieldName: '图片',
|
|
145
|
-
frontInputContent: '[]',
|
|
146
|
-
frontInputType: 'img',
|
|
147
|
-
frontInputTypeValue: '',
|
|
148
|
-
lastModifyDate: '2025-03-16 17:55:30',
|
|
149
|
-
merchantHeadId: '0',
|
|
150
|
-
merchantId: '0',
|
|
151
|
-
requiredFlag: false,
|
|
152
|
-
weightSort: 999,
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
agentId: '0',
|
|
156
|
-
childFlag: false,
|
|
157
|
-
conditionField: '0',
|
|
158
|
-
createDate: '2025-03-16 17:56:28',
|
|
159
|
-
editFlag: true,
|
|
160
|
-
entryFormConfigId: '1227996250586357760',
|
|
161
|
-
entryFormFieldConfigId: '1350890477630443520',
|
|
162
|
-
field: 'dan_xuan_-_biao_qian',
|
|
163
|
-
fieldCustomName: '单选-标签',
|
|
164
|
-
fieldName: '单选-标签',
|
|
165
|
-
frontInputContent: '["一个","二个","三个"]',
|
|
166
|
-
frontInputType: 'radioTag',
|
|
167
|
-
frontInputTypeValue: '1',
|
|
168
|
-
lastModifyDate: '2025-03-16 17:56:28',
|
|
169
|
-
merchantHeadId: '0',
|
|
170
|
-
merchantId: '0',
|
|
171
|
-
requiredFlag: false,
|
|
172
|
-
weightSort: 999,
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
agentId: '0',
|
|
176
|
-
childFlag: false,
|
|
177
|
-
conditionField: '0',
|
|
178
|
-
createDate: '2025-03-16 17:56:41',
|
|
179
|
-
editFlag: true,
|
|
180
|
-
entryFormConfigId: '1227996250586357760',
|
|
181
|
-
entryFormFieldConfigId: '1350890535411175424',
|
|
182
|
-
field: 'ri_qi',
|
|
183
|
-
fieldCustomName: '日期',
|
|
184
|
-
fieldName: '日期',
|
|
185
|
-
frontInputContent: '[]',
|
|
186
|
-
frontInputType: 'date',
|
|
187
|
-
frontInputTypeValue: 'year',
|
|
188
|
-
lastModifyDate: '2025-03-16 17:56:41',
|
|
189
|
-
merchantHeadId: '0',
|
|
190
|
-
merchantId: '0',
|
|
191
|
-
requiredFlag: false,
|
|
192
|
-
weightSort: 999,
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
agentId: '0',
|
|
196
|
-
childFlag: false,
|
|
197
|
-
conditionField: '0',
|
|
198
|
-
createDate: '2025-03-16 17:58:09',
|
|
199
|
-
editFlag: true,
|
|
200
|
-
entryFormConfigId: '1227996250586357760',
|
|
201
|
-
entryFormFieldConfigId: '1350890904052748288',
|
|
202
|
-
field: '__dan_xuan',
|
|
203
|
-
fieldCustomName: ' 单选',
|
|
204
|
-
fieldName: ' 单选',
|
|
205
|
-
frontInputContent: '["单选 1","单选 2","单选 3"]',
|
|
206
|
-
frontInputType: 'radio',
|
|
207
|
-
frontInputTypeValue: '3',
|
|
208
|
-
lastModifyDate: '2025-03-16 17:58:09',
|
|
209
|
-
merchantHeadId: '0',
|
|
210
|
-
merchantId: '0',
|
|
211
|
-
requiredFlag: false,
|
|
212
|
-
weightSort: 999,
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
agentId: '0',
|
|
216
|
-
childFlag: false,
|
|
217
|
-
conditionField: '0',
|
|
218
|
-
createDate: '2024-04-24 15:21:53',
|
|
219
|
-
editFlag: true,
|
|
220
|
-
entryFormConfigId: '1227996250586357760',
|
|
221
|
-
entryFormFieldConfigId: '1232713130614071296',
|
|
222
|
-
field: 'min_su_suo_zai_cheng_shi',
|
|
223
|
-
fieldCustomName: '民宿所在城市',
|
|
224
|
-
fieldName: '民宿所在城市',
|
|
225
|
-
frontInputContent:
|
|
226
|
-
'["潮州","东莞","佛山","广州","河源","惠州","江门","揭阳","茂名","梅州","清远","汕头","汕尾","韶关","深圳","阳江","云浮","湛江","肇庆","中山","珠海"]',
|
|
227
|
-
frontInputType: 'selector',
|
|
228
|
-
frontInputTypeValue: '',
|
|
229
|
-
lastModifyDate: '2024-04-24 15:21:59',
|
|
230
|
-
merchantHeadId: '0',
|
|
231
|
-
merchantId: '0',
|
|
232
|
-
requiredFlag: true,
|
|
233
|
-
weightSort: 100,
|
|
234
|
-
},
|
|
235
|
-
{
|
|
236
|
-
agentId: '0',
|
|
237
|
-
childFlag: false,
|
|
238
|
-
conditionField: '0',
|
|
239
|
-
createDate: '2024-04-11 15:11:16',
|
|
240
|
-
editFlag: true,
|
|
241
|
-
entryFormConfigId: '1227996250586357760',
|
|
242
|
-
entryFormFieldConfigId: '1227999416795144192',
|
|
243
|
-
field: 'min_su_ming_cheng',
|
|
244
|
-
fieldCustomName: '民宿名称',
|
|
245
|
-
fieldName: '民宿名称',
|
|
246
|
-
frontInputContent: '[""]',
|
|
247
|
-
frontInputType: 'inputArea',
|
|
248
|
-
frontInputTypeValue: '',
|
|
249
|
-
frontPlaceholder: '多家门店均可填写',
|
|
250
|
-
lastModifyDate: '2024-04-18 17:39:27',
|
|
251
|
-
merchantHeadId: '0',
|
|
252
|
-
merchantId: '0',
|
|
253
|
-
requiredFlag: true,
|
|
254
|
-
weightSort: 99,
|
|
255
|
-
},
|
|
256
|
-
{
|
|
257
|
-
agentId: '0',
|
|
258
|
-
childFlag: false,
|
|
259
|
-
conditionField: '0',
|
|
260
|
-
createDate: '2024-04-18 17:38:48',
|
|
261
|
-
editFlag: true,
|
|
262
|
-
entryFormConfigId: '1227996250586357760',
|
|
263
|
-
entryFormFieldConfigId: '1230573263041994752',
|
|
264
|
-
field: 'lian_xi_ren',
|
|
265
|
-
fieldCustomName: '联系人',
|
|
266
|
-
fieldName: '联系人',
|
|
267
|
-
frontInputContent: '[]',
|
|
268
|
-
frontInputType: 'input',
|
|
269
|
-
frontInputTypeValue: '',
|
|
270
|
-
frontPlaceholder: '姓名',
|
|
271
|
-
lastModifyDate: '2024-04-18 17:38:48',
|
|
272
|
-
merchantHeadId: '0',
|
|
273
|
-
merchantId: '0',
|
|
274
|
-
requiredFlag: true,
|
|
275
|
-
weightSort: 99,
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
agentId: '0',
|
|
279
|
-
childFlag: false,
|
|
280
|
-
conditionField: '0',
|
|
281
|
-
createDate: '2024-04-11 17:10:34',
|
|
282
|
-
editFlag: true,
|
|
283
|
-
entryFormConfigId: '1227996250586357760',
|
|
284
|
-
entryFormFieldConfigId: '1228029442395611136',
|
|
285
|
-
field: 'lian_xi_fang_shi',
|
|
286
|
-
fieldCustomName: '联系方式',
|
|
287
|
-
fieldName: '联系方式',
|
|
288
|
-
frontInputContent: '[""]',
|
|
289
|
-
frontInputType: 'input',
|
|
290
|
-
frontInputTypeValue: '',
|
|
291
|
-
frontPlaceholder: '手机号码',
|
|
292
|
-
lastModifyDate: '2024-04-11 17:10:51',
|
|
293
|
-
merchantHeadId: '0',
|
|
294
|
-
merchantId: '0',
|
|
295
|
-
requiredFlag: true,
|
|
296
|
-
weightSort: 98.5,
|
|
297
|
-
},
|
|
298
|
-
{
|
|
299
|
-
agentId: '0',
|
|
300
|
-
childFlag: false,
|
|
301
|
-
conditionField: '0',
|
|
302
|
-
createDate: '2024-04-11 16:36:47',
|
|
303
|
-
editFlag: true,
|
|
304
|
-
entryFormConfigId: '1227996250586357760',
|
|
305
|
-
entryFormFieldConfigId: '1228020941497704448',
|
|
306
|
-
field: 'min_su_di_qu',
|
|
307
|
-
fieldCustomName: '民宿地址',
|
|
308
|
-
fieldName: '民宿地区',
|
|
309
|
-
frontInputContent: '[""]',
|
|
310
|
-
frontInputType: 'inputArea',
|
|
311
|
-
frontInputTypeValue: '',
|
|
312
|
-
frontPlaceholder: '具体地址',
|
|
313
|
-
lastModifyDate: '2024-04-11 16:57:44',
|
|
314
|
-
merchantHeadId: '0',
|
|
315
|
-
merchantId: '0',
|
|
316
|
-
requiredFlag: true,
|
|
317
|
-
weightSort: 98,
|
|
318
|
-
},
|
|
319
|
-
{
|
|
320
|
-
agentId: '0',
|
|
321
|
-
childFlag: false,
|
|
322
|
-
conditionField: '0',
|
|
323
|
-
createDate: '2024-04-11 16:51:56',
|
|
324
|
-
editFlag: true,
|
|
325
|
-
entryFormConfigId: '1227996250586357760',
|
|
326
|
-
entryFormFieldConfigId: '1228024751091752960',
|
|
327
|
-
field: 'jia_ge_qu_jian_(_jun_jia_)',
|
|
328
|
-
fieldCustomName: '价格区间',
|
|
329
|
-
fieldName: '价格区间(均价)',
|
|
330
|
-
frontInputContent: '["200元以下","300元-500元","500元-800元","800元-1000元","1000元以上"]',
|
|
331
|
-
frontInputType: 'selector',
|
|
332
|
-
frontInputTypeValue: '',
|
|
333
|
-
frontPlaceholder: '(均价)',
|
|
334
|
-
lastModifyDate: '2024-04-11 16:58:30',
|
|
335
|
-
merchantHeadId: '0',
|
|
336
|
-
merchantId: '0',
|
|
337
|
-
requiredFlag: true,
|
|
338
|
-
weightSort: 97,
|
|
339
|
-
},
|
|
340
|
-
{
|
|
341
|
-
agentId: '0',
|
|
342
|
-
childFlag: false,
|
|
343
|
-
conditionField: '0',
|
|
344
|
-
createDate: '2024-04-11 16:52:23',
|
|
345
|
-
editFlag: true,
|
|
346
|
-
entryFormConfigId: '1227996250586357760',
|
|
347
|
-
entryFormFieldConfigId: '1228024864048553984',
|
|
348
|
-
field: 'fang_jian_shu_liang',
|
|
349
|
-
fieldCustomName: '房间数量',
|
|
350
|
-
fieldName: '房间数量',
|
|
351
|
-
frontInputContent: '[""]',
|
|
352
|
-
frontInputType: 'input',
|
|
353
|
-
frontInputTypeValue: '',
|
|
354
|
-
frontPlaceholder: '',
|
|
355
|
-
lastModifyDate: '2024-04-11 16:56:39',
|
|
356
|
-
merchantHeadId: '0',
|
|
357
|
-
merchantId: '0',
|
|
358
|
-
requiredFlag: true,
|
|
359
|
-
weightSort: 96,
|
|
360
|
-
},
|
|
361
|
-
{
|
|
362
|
-
agentId: '0',
|
|
363
|
-
childFlag: false,
|
|
364
|
-
conditionField: '0',
|
|
365
|
-
createDate: '2024-04-18 17:35:09',
|
|
366
|
-
editFlag: true,
|
|
367
|
-
entryFormConfigId: '1227996250586357760',
|
|
368
|
-
entryFormFieldConfigId: '1230572344346812416',
|
|
369
|
-
field: 'shi_fou_chi_you_you_chu_ka',
|
|
370
|
-
fieldCustomName: '是否持有邮储卡',
|
|
371
|
-
fieldName: '是否持有邮储卡',
|
|
372
|
-
frontInputContent: '["是","否"]',
|
|
373
|
-
frontInputType: 'selector',
|
|
374
|
-
frontInputTypeValue: '',
|
|
375
|
-
lastModifyDate: '2024-04-18 17:35:09',
|
|
376
|
-
merchantHeadId: '0',
|
|
377
|
-
merchantId: '0',
|
|
378
|
-
requiredFlag: true,
|
|
379
|
-
weightSort: 96,
|
|
380
|
-
},
|
|
381
|
-
{
|
|
382
|
-
agentId: '0',
|
|
383
|
-
childFlag: false,
|
|
384
|
-
conditionField: '0',
|
|
385
|
-
createDate: '2024-04-18 17:35:43',
|
|
386
|
-
editFlag: true,
|
|
387
|
-
entryFormConfigId: '1227996250586357760',
|
|
388
|
-
entryFormFieldConfigId: '1230572486072344576',
|
|
389
|
-
field: 'shi_fou_kai_ban_wei_you_fu',
|
|
390
|
-
fieldCustomName: '是否开办微邮付',
|
|
391
|
-
fieldName: '是否开办微邮付',
|
|
392
|
-
frontInputContent: '["是","否"]',
|
|
393
|
-
frontInputType: 'selector',
|
|
394
|
-
frontInputTypeValue: '',
|
|
395
|
-
lastModifyDate: '2024-04-18 17:35:43',
|
|
396
|
-
merchantHeadId: '0',
|
|
397
|
-
merchantId: '0',
|
|
398
|
-
requiredFlag: true,
|
|
399
|
-
weightSort: 96,
|
|
400
|
-
},
|
|
401
|
-
{
|
|
402
|
-
agentId: '0',
|
|
403
|
-
childFlag: false,
|
|
404
|
-
conditionField: '0',
|
|
405
|
-
createDate: '2024-04-18 17:36:49',
|
|
406
|
-
editFlag: true,
|
|
407
|
-
entryFormConfigId: '1227996250586357760',
|
|
408
|
-
entryFormFieldConfigId: '1230572764020482048',
|
|
409
|
-
field: 'tui_jian_ke_hu_jing_li',
|
|
410
|
-
fieldCustomName: '推荐客户经理',
|
|
411
|
-
fieldName: '推荐客户经理',
|
|
412
|
-
frontInputContent: '[]',
|
|
413
|
-
frontInputType: 'input',
|
|
414
|
-
frontInputTypeValue: '',
|
|
415
|
-
frontPlaceholder: '经理姓名及联系方式',
|
|
416
|
-
lastModifyDate: '2024-04-18 17:36:49',
|
|
417
|
-
merchantHeadId: '0',
|
|
418
|
-
merchantId: '0',
|
|
419
|
-
requiredFlag: false,
|
|
420
|
-
weightSort: 95,
|
|
421
|
-
},
|
|
422
|
-
] as any[],
|
|
146
|
+
const props = withDefaults(defineProps<LcbFormProps>(), {
|
|
423
147
|
submitText: '提交',
|
|
424
148
|
})
|
|
149
|
+
const fields = ref<LcbFormField[]>()
|
|
150
|
+
watch(
|
|
151
|
+
() => props.formType,
|
|
152
|
+
async (newVal) => {
|
|
153
|
+
if (newVal) {
|
|
154
|
+
const {
|
|
155
|
+
data: { entryFormFieldConfigList },
|
|
156
|
+
} = await uni.$lcb.http.post<any>('/entryFormCustom/detail', {
|
|
157
|
+
entryFormConfigId: newVal,
|
|
158
|
+
})
|
|
159
|
+
|
|
160
|
+
fields.value = entryFormFieldConfigList
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
{ immediate: true },
|
|
164
|
+
)
|
|
425
165
|
const getColumns = (frontInputContent: string) => {
|
|
426
166
|
return JSON.parse(frontInputContent || '[]')
|
|
427
167
|
}
|
|
428
168
|
const submit = () => {
|
|
429
|
-
|
|
430
|
-
|
|
169
|
+
if (props.agreementType && !form.value.agreement) {
|
|
170
|
+
uni.showToast({
|
|
171
|
+
title: t('请同意协议'),
|
|
172
|
+
icon: 'none',
|
|
173
|
+
})
|
|
174
|
+
return
|
|
175
|
+
}
|
|
176
|
+
formRef.value.validate().then(async (res) => {
|
|
177
|
+
if (props.submitUrl) {
|
|
178
|
+
await uni.$lcb.http.post(props.submitUrl, {
|
|
179
|
+
entryFormConfigId: props.formType,
|
|
180
|
+
allField: JSON.stringify(res),
|
|
181
|
+
})
|
|
182
|
+
uni.showToast({
|
|
183
|
+
title: t('提交成功'),
|
|
184
|
+
icon: 'success',
|
|
185
|
+
})
|
|
186
|
+
}
|
|
431
187
|
})
|
|
432
188
|
}
|
|
433
189
|
</script>
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { LcbBlockProps } from '../lcb-block/types'
|
|
2
|
+
|
|
1
3
|
export interface LcbFormField {
|
|
2
4
|
/**
|
|
3
5
|
* 业务主键ID
|
|
@@ -56,10 +58,10 @@ export interface LcbFormField {
|
|
|
56
58
|
*/
|
|
57
59
|
props: Record<string, any>
|
|
58
60
|
}
|
|
59
|
-
export interface LcbFormProps {
|
|
61
|
+
export interface LcbFormProps extends LcbBlockProps {
|
|
60
62
|
fields: LcbFormField[]
|
|
61
|
-
|
|
62
|
-
* 提交按钮的文本
|
|
63
|
-
*/
|
|
63
|
+
formType?: string
|
|
64
64
|
submitText?: string
|
|
65
|
+
submitUrl?: string
|
|
66
|
+
agreementType?: string
|
|
65
67
|
}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
<view class="flex-col flex w-full" :style="{ height }" v-if="height">
|
|
4
4
|
<view class="flex-1 h-0 relative">
|
|
5
5
|
<map
|
|
6
|
-
:latitude="form.
|
|
7
|
-
:longitude="form.
|
|
6
|
+
:latitude="form.userLatitude"
|
|
7
|
+
:longitude="form.userLongitude"
|
|
8
8
|
:markers="info.covers"
|
|
9
9
|
show-location
|
|
10
10
|
show-compass
|
package/global.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ declare module 'vue' {
|
|
|
4
4
|
'lcb-absolute-config-layout': (typeof import('@tplc/business/components/lcb-absolute-config-layout/lcb-absolute-config-layout.vue'))['default']
|
|
5
5
|
'lcb-action-view': (typeof import('@tplc/business/components/lcb-action-view/lcb-action-view.vue'))['default']
|
|
6
6
|
'lcb-advert': (typeof import('@tplc/business/components/lcb-advert/lcb-advert.vue'))['default']
|
|
7
|
+
'lcb-agreement-view': (typeof import('@tplc/business/components/lcb-agreement-view/lcb-agreement-view.vue'))['default']
|
|
7
8
|
'lcb-area-picker': (typeof import('@tplc/business/components/lcb-area-picker/lcb-area-picker.vue'))['default']
|
|
8
9
|
'lcb-banner': (typeof import('@tplc/business/components/lcb-banner/lcb-banner.vue'))['default']
|
|
9
10
|
'lcb-banner-block': (typeof import('@tplc/business/components/lcb-banner-block/lcb-banner-block.vue'))['default']
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tplc/business",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.87",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"业务组件"
|
|
6
6
|
],
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"peerDependencies": {
|
|
13
13
|
"vue": ">=3.2.47",
|
|
14
|
-
"@tplc/wot": "0.1.
|
|
14
|
+
"@tplc/wot": "0.1.70"
|
|
15
15
|
},
|
|
16
16
|
"engines": {
|
|
17
17
|
"node": ">=18",
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { LcbAgreementViewProps } from './types'
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
default?(_: { text: string | undefined }): any
|
|
4
|
+
}
|
|
5
|
+
declare const __VLS_component: import('vue').DefineComponent<
|
|
6
|
+
__VLS_TypePropsToOption<LcbAgreementViewProps>,
|
|
7
|
+
{},
|
|
8
|
+
unknown,
|
|
9
|
+
{},
|
|
10
|
+
{},
|
|
11
|
+
import('vue').ComponentOptionsMixin,
|
|
12
|
+
import('vue').ComponentOptionsMixin,
|
|
13
|
+
{},
|
|
14
|
+
string,
|
|
15
|
+
import('vue').PublicProps,
|
|
16
|
+
Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<LcbAgreementViewProps>>>,
|
|
17
|
+
{},
|
|
18
|
+
{}
|
|
19
|
+
>
|
|
20
|
+
declare const _default: __VLS_WithTemplateSlots<
|
|
21
|
+
typeof __VLS_component,
|
|
22
|
+
ReturnType<typeof __VLS_template>
|
|
23
|
+
>
|
|
24
|
+
export default _default
|
|
25
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T
|
|
31
|
+
type __VLS_TypePropsToOption<T> = {
|
|
32
|
+
[K in keyof T]-?: {} extends Pick<T, K>
|
|
33
|
+
? {
|
|
34
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>
|
|
35
|
+
}
|
|
36
|
+
: {
|
|
37
|
+
type: import('vue').PropType<T[K]>
|
|
38
|
+
required: true
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { LcbFormProps
|
|
1
|
+
import { LcbFormProps } from './types'
|
|
2
2
|
declare const _default: import('vue').DefineComponent<
|
|
3
3
|
__VLS_WithDefaults<
|
|
4
4
|
__VLS_TypePropsToOption<LcbFormProps>,
|
|
5
5
|
{
|
|
6
|
-
fields: () => LcbFormField[]
|
|
7
6
|
submitText: string
|
|
8
7
|
}
|
|
9
8
|
>,
|
|
@@ -21,14 +20,12 @@ declare const _default: import('vue').DefineComponent<
|
|
|
21
20
|
__VLS_WithDefaults<
|
|
22
21
|
__VLS_TypePropsToOption<LcbFormProps>,
|
|
23
22
|
{
|
|
24
|
-
fields: () => LcbFormField[]
|
|
25
23
|
submitText: string
|
|
26
24
|
}
|
|
27
25
|
>
|
|
28
26
|
>
|
|
29
27
|
>,
|
|
30
28
|
{
|
|
31
|
-
fields: LcbFormField[]
|
|
32
29
|
submitText: string
|
|
33
30
|
},
|
|
34
31
|
{}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { LcbBlockProps } from '../lcb-block/types'
|
|
1
2
|
export interface LcbFormField {
|
|
2
3
|
/**
|
|
3
4
|
* 业务主键ID
|
|
@@ -56,10 +57,10 @@ export interface LcbFormField {
|
|
|
56
57
|
*/
|
|
57
58
|
props: Record<string, any>
|
|
58
59
|
}
|
|
59
|
-
export interface LcbFormProps {
|
|
60
|
+
export interface LcbFormProps extends LcbBlockProps {
|
|
60
61
|
fields: LcbFormField[]
|
|
61
|
-
|
|
62
|
-
* 提交按钮的文本
|
|
63
|
-
*/
|
|
62
|
+
formType?: string
|
|
64
63
|
submitText?: string
|
|
64
|
+
submitUrl?: string
|
|
65
|
+
agreementType?: string
|
|
65
66
|
}
|