@tplc/business 0.7.70 → 0.7.71

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 CHANGED
@@ -2,6 +2,18 @@
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.7.71](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.70...v0.7.71) (2026-01-15)
6
+
7
+
8
+ ### 🚀 Chore | 构建/工程依赖/工具
9
+
10
+ * Remove numerous TypeScript declaration files and update the `lcb-order-payment` component. ([c4860c8](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/c4860c866b272f26b5da30e0b5688bb7fae9dd57))
11
+
12
+
13
+ ### ♻️ Code Refactoring | 代码重构
14
+
15
+ * **lcb-order-payment:** simplify openInsteadPopup function and improve item handling ([5fdd2b6](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/5fdd2b6d6339e9c5fa5cd4affa06eb9ed1908443))
16
+
5
17
  ### [0.7.70](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v1.0.28...v0.7.70) (2026-01-15)
6
18
 
7
19
 
@@ -27,7 +27,7 @@
27
27
  <!-- 选中代下单时显示入口/回显卡片 -->
28
28
  <view class="ml-56rpx mt-16rpx" v-if="payType === item.type && item.items">
29
29
  <!-- 未填写时:显示填写入口 -->
30
- <view v-if="!hasInsteadFormData" class="instead-entry" @click="openInsteadPopup(item)">
30
+ <view v-if="!hasInsteadFormData" class="instead-entry" @click="openInsteadPopup">
31
31
  <view class="entry-content">
32
32
  <wd-icon name="edit" size="32rpx" color="#999" />
33
33
  <text class="entry-text">{{ t('请填写代下单信息') }}</text>
@@ -36,7 +36,7 @@
36
36
  </view>
37
37
 
38
38
  <!-- 已填写时:显示回显卡片 -->
39
- <view v-else class="instead-preview" @click="openInsteadPopup(item)">
39
+ <view v-else class="instead-preview" @click="openInsteadPopup">
40
40
  <view class="preview-content">
41
41
  <view v-for="field in item.items" :key="field.field" class="preview-row">
42
42
  <text class="preview-label">{{ field.fieldCustomName }}</text>
@@ -278,6 +278,10 @@ const onChange = ({ value }: { value: string }) => {
278
278
  payCardId.value = undefined
279
279
  return
280
280
  }
281
+ if (value === 'instead') {
282
+ openInsteadPopup()
283
+ }
284
+
281
285
  const [newPayType, newPayCardId] = value.split('-')
282
286
  payType.value = newPayType
283
287
  payCardId.value = newPayCardId || undefined
@@ -346,7 +350,7 @@ const onModifyPrice = (price: number, max: number) => {
346
350
 
347
351
  // ==================== 代下单弹窗相关 ====================
348
352
  const insteadPopupVisible = ref(false)
349
- const currentInsteadItem = ref<ChildContent | null>()
353
+ const currentInsteadItem = computed(() => props.data?.find((d) => d.type === 'instead'))
350
354
  const tempInsteadForm = ref<Record<string, any>>({})
351
355
  const insteadFormRef = ref()
352
356
 
@@ -359,8 +363,7 @@ const hasInsteadFormData = computed(() => {
359
363
  })
360
364
 
361
365
  // 打开弹窗
362
- const openInsteadPopup = (item: ChildContent) => {
363
- currentInsteadItem.value = item
366
+ const openInsteadPopup = () => {
364
367
  // 如果已有数据,用于回显编辑
365
368
  tempInsteadForm.value = { ...insteadForm.value }
366
369
  insteadPopupVisible.value = true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.7.70",
3
+ "version": "0.7.71",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],