@uxda/appkit 4.2.30 → 4.2.34

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/dist/index.js CHANGED
@@ -1926,7 +1926,9 @@ var script$x = /* @__PURE__ */ defineComponent({
1926
1926
  });
1927
1927
  onMounted(() => {
1928
1928
  const $http = useHttp$2();
1929
- $http.get(endpoints.\u83B7\u53D6\u589E\u503C\u6743\u76CA\u7C7B\u76EE).then((res) => {
1929
+ $http.get(endpoints.\u83B7\u53D6\u589E\u503C\u6743\u76CA\u7C7B\u76EE, {
1930
+ rightCode: props.app === "cloudkitPro" ? "riskQueryCompany" : "riskQueryMulti"
1931
+ }).then((res) => {
1930
1932
  balance.value = res.balance;
1931
1933
  amounts.value = res.paymentCaseConfigVOS;
1932
1934
  });
@@ -1964,10 +1966,8 @@ var script$x = /* @__PURE__ */ defineComponent({
1964
1966
  requestPaymentByBean({
1965
1967
  caseConfigId: amounts.value[state.selected].id,
1966
1968
  amount: amounts.value[state.selected].paymentAmount,
1967
- app: "corporateStar",
1968
- // 'crm',
1969
+ app: props.app || "corporateStar",
1969
1970
  tenant: props.tenant,
1970
- // '17454646',
1971
1971
  user: code
1972
1972
  }).then((result) => {
1973
1973
  state.buttonLoading = false;
@@ -2029,7 +2029,8 @@ var script$x = /* @__PURE__ */ defineComponent({
2029
2029
  src: selectBean.value ? "https://cdn.ddjf.com/static/images/appkit/select.svg" : "https://cdn.ddjf.com/static/images/appkit/not-select.svg"
2030
2030
  }, null, 8, _hoisted_8$5)
2031
2031
  ])) : createCommentVNode("v-if", true)
2032
- ])) : createCommentVNode("v-if", true)
2032
+ ])) : createCommentVNode("v-if", true),
2033
+ renderSlot(_ctx.$slots, "banner")
2033
2034
  ]),
2034
2035
  createElementVNode("view", _hoisted_9$4, [
2035
2036
  !selectBean.value ? (openBlock(), createElementBlock("view", _hoisted_10$2, [
@@ -2693,29 +2694,34 @@ const _hoisted_14$1 = { class: "list" };
2693
2694
  const _hoisted_15$1 = { class: "item-count" };
2694
2695
  const _hoisted_16$1 = { class: "item-title" };
2695
2696
  const _hoisted_17$1 = {
2697
+ key: 0,
2698
+ class: "item-title-button"
2699
+ };
2700
+ const _hoisted_18$1 = ["onClick"];
2701
+ const _hoisted_19$1 = {
2696
2702
  key: 2,
2697
2703
  class: "rights-card"
2698
2704
  };
2699
- const _hoisted_18$1 = { class: "list" };
2700
- const _hoisted_19$1 = { class: "item-count" };
2701
- const _hoisted_20$1 = { class: "item-title" };
2702
- const _hoisted_21$1 = { class: "operation-box" };
2703
- const _hoisted_22$1 = { class: "search-time" };
2704
- const _hoisted_23$1 = { class: "text number" };
2705
- const _hoisted_24$1 = { class: "operation-list" };
2706
- const _hoisted_25$1 = {
2705
+ const _hoisted_20$1 = { class: "list" };
2706
+ const _hoisted_21$1 = { class: "item-count" };
2707
+ const _hoisted_22$1 = { class: "item-title" };
2708
+ const _hoisted_23$1 = { class: "operation-box" };
2709
+ const _hoisted_24$1 = { class: "search-time" };
2710
+ const _hoisted_25$1 = { class: "text number" };
2711
+ const _hoisted_26$1 = { class: "operation-list" };
2712
+ const _hoisted_27 = {
2707
2713
  key: 0,
2708
2714
  class: "box"
2709
2715
  };
2710
- const _hoisted_26$1 = { class: "title number" };
2711
- const _hoisted_27 = { class: "item-type" };
2712
- const _hoisted_28 = { class: "item-detail" };
2713
- const _hoisted_29 = { class: "item-info spa-between" };
2714
- const _hoisted_30 = { class: "item-info-type" };
2715
- const _hoisted_31 = { class: "item-info-title" };
2716
- const _hoisted_32 = { class: "item-info-amount number" };
2717
- const _hoisted_33 = { class: "item-detail-remark" };
2718
- const _hoisted_34 = {
2716
+ const _hoisted_28 = { class: "title number" };
2717
+ const _hoisted_29 = { class: "item-type" };
2718
+ const _hoisted_30 = { class: "item-detail" };
2719
+ const _hoisted_31 = { class: "item-info spa-between" };
2720
+ const _hoisted_32 = { class: "item-info-type" };
2721
+ const _hoisted_33 = { class: "item-info-title" };
2722
+ const _hoisted_34 = { class: "item-info-amount number" };
2723
+ const _hoisted_35 = { class: "item-detail-remark" };
2724
+ const _hoisted_36 = {
2719
2725
  key: 0,
2720
2726
  class: "box-not-text"
2721
2727
  };
@@ -3019,7 +3025,7 @@ var script$q = /* @__PURE__ */ defineComponent({
3019
3025
  ])
3020
3026
  ])) : createCommentVNode("v-if", true),
3021
3027
  balance.value.privileges?.aiapprove ? (openBlock(), createElementBlock("div", _hoisted_13$1, [
3022
- _cache[11] || (_cache[11] = createElementVNode(
3028
+ _cache[12] || (_cache[12] = createElementVNode(
3023
3029
  "div",
3024
3030
  { class: "title" },
3025
3031
  "AI\u5BA1\u6279\u6743\u76CA",
@@ -3032,7 +3038,7 @@ var script$q = /* @__PURE__ */ defineComponent({
3032
3038
  null,
3033
3039
  renderList(balance.value.privileges.aiapprove, (item, index) => {
3034
3040
  return openBlock(), createElementBlock("div", {
3035
- class: "item",
3041
+ class: "item star-item",
3036
3042
  key: index
3037
3043
  }, [
3038
3044
  createElementVNode(
@@ -3042,13 +3048,30 @@ var script$q = /* @__PURE__ */ defineComponent({
3042
3048
  1
3043
3049
  /* TEXT */
3044
3050
  ),
3045
- createElementVNode(
3046
- "div",
3047
- _hoisted_16$1,
3048
- toDisplayString(item.title),
3049
- 1
3050
- /* TEXT */
3051
- )
3051
+ createElementVNode("div", _hoisted_16$1, [
3052
+ createElementVNode(
3053
+ "div",
3054
+ null,
3055
+ toDisplayString(item.title),
3056
+ 1
3057
+ /* TEXT */
3058
+ ),
3059
+ item.id ? (openBlock(), createElementBlock("div", _hoisted_17$1, [
3060
+ createElementVNode("div", {
3061
+ onClick: ($event) => gotoTrade(item)
3062
+ }, "AI\u5BA1\u6279\u5145\u503C", 8, _hoisted_18$1),
3063
+ _cache[11] || (_cache[11] = createElementVNode(
3064
+ "img",
3065
+ {
3066
+ class: "button-icon",
3067
+ src: "https://cdn.ddjf.com/static/images/bpms-workBench/button-hg.svg"
3068
+ },
3069
+ null,
3070
+ -1
3071
+ /* HOISTED */
3072
+ ))
3073
+ ])) : createCommentVNode("v-if", true)
3074
+ ])
3052
3075
  ]);
3053
3076
  }),
3054
3077
  128
@@ -3056,15 +3079,15 @@ var script$q = /* @__PURE__ */ defineComponent({
3056
3079
  ))
3057
3080
  ])
3058
3081
  ])) : createCommentVNode("v-if", true),
3059
- balance.value.privileges?.signkit ? (openBlock(), createElementBlock("div", _hoisted_17$1, [
3060
- _cache[12] || (_cache[12] = createElementVNode(
3082
+ balance.value.privileges?.signkit ? (openBlock(), createElementBlock("div", _hoisted_19$1, [
3083
+ _cache[13] || (_cache[13] = createElementVNode(
3061
3084
  "div",
3062
3085
  { class: "title" },
3063
3086
  "\u7535\u5B50\u7B7E\u7EA6\u6743\u76CA",
3064
3087
  -1
3065
3088
  /* HOISTED */
3066
3089
  )),
3067
- createElementVNode("div", _hoisted_18$1, [
3090
+ createElementVNode("div", _hoisted_20$1, [
3068
3091
  (openBlock(true), createElementBlock(
3069
3092
  Fragment,
3070
3093
  null,
@@ -3075,14 +3098,14 @@ var script$q = /* @__PURE__ */ defineComponent({
3075
3098
  }, [
3076
3099
  createElementVNode(
3077
3100
  "div",
3078
- _hoisted_19$1,
3101
+ _hoisted_21$1,
3079
3102
  toDisplayString(unref(formatAmount)(item.count || 0)) + toDisplayString(item.unit),
3080
3103
  1
3081
3104
  /* TEXT */
3082
3105
  ),
3083
3106
  createElementVNode(
3084
3107
  "div",
3085
- _hoisted_20$1,
3108
+ _hoisted_22$1,
3086
3109
  toDisplayString(item.title),
3087
3110
  1
3088
3111
  /* TEXT */
@@ -3158,15 +3181,15 @@ var script$q = /* @__PURE__ */ defineComponent({
3158
3181
  title: "\u6536\u652F\u660E\u7EC6"
3159
3182
  }, {
3160
3183
  default: withCtx(() => [
3161
- createElementVNode("div", _hoisted_21$1, [
3184
+ createElementVNode("div", _hoisted_23$1, [
3162
3185
  createElementVNode(
3163
3186
  "div",
3164
3187
  {
3165
3188
  class: normalizeClass(["operation-title spa-between", { "with-shadow": scrolled.value > 0 }])
3166
3189
  },
3167
3190
  [
3168
- createElementVNode("div", _hoisted_22$1, [
3169
- _cache[14] || (_cache[14] = createElementVNode(
3191
+ createElementVNode("div", _hoisted_24$1, [
3192
+ _cache[15] || (_cache[15] = createElementVNode(
3170
3193
  "div",
3171
3194
  { class: "title" },
3172
3195
  "\u6536\u652F\u660E\u7EC6",
@@ -3182,12 +3205,12 @@ var script$q = /* @__PURE__ */ defineComponent({
3182
3205
  [
3183
3206
  createElementVNode(
3184
3207
  "div",
3185
- _hoisted_23$1,
3208
+ _hoisted_25$1,
3186
3209
  toDisplayString(dateRangeDisplay.value),
3187
3210
  1
3188
3211
  /* TEXT */
3189
3212
  ),
3190
- _cache[13] || (_cache[13] = createElementVNode(
3213
+ _cache[14] || (_cache[14] = createElementVNode(
3191
3214
  "img",
3192
3215
  {
3193
3216
  style: { "margin-top": "-2px" },
@@ -3208,7 +3231,7 @@ var script$q = /* @__PURE__ */ defineComponent({
3208
3231
  createElementVNode("div", {
3209
3232
  class: "search",
3210
3233
  onClick: _cache[5] || (_cache[5] = ($event) => filterOpen.value = true)
3211
- }, _cache[15] || (_cache[15] = [
3234
+ }, _cache[16] || (_cache[16] = [
3212
3235
  createElementVNode(
3213
3236
  "span",
3214
3237
  { class: "text" },
@@ -3231,7 +3254,7 @@ var script$q = /* @__PURE__ */ defineComponent({
3231
3254
  2
3232
3255
  /* CLASS */
3233
3256
  ),
3234
- createElementVNode("div", _hoisted_24$1, [
3257
+ createElementVNode("div", _hoisted_26$1, [
3235
3258
  createVNode(_component_scroll_view, {
3236
3259
  class: "operation-scroll",
3237
3260
  "scroll-y": true,
@@ -3240,7 +3263,7 @@ var script$q = /* @__PURE__ */ defineComponent({
3240
3263
  onScrolltolower: onReachBottom
3241
3264
  }, {
3242
3265
  default: withCtx(() => [
3243
- consumptionGroups.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_25$1, [
3266
+ consumptionGroups.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_27, [
3244
3267
  (openBlock(true), createElementBlock(
3245
3268
  Fragment,
3246
3269
  null,
@@ -3251,7 +3274,7 @@ var script$q = /* @__PURE__ */ defineComponent({
3251
3274
  }, [
3252
3275
  createElementVNode(
3253
3276
  "div",
3254
- _hoisted_26$1,
3277
+ _hoisted_28,
3255
3278
  toDisplayString(item.date),
3256
3279
  1
3257
3280
  /* TEXT */
@@ -3266,24 +3289,24 @@ var script$q = /* @__PURE__ */ defineComponent({
3266
3289
  }, [
3267
3290
  createElementVNode(
3268
3291
  "div",
3269
- _hoisted_27,
3292
+ _hoisted_29,
3270
3293
  toDisplayString(it.\u4EA4\u6613\u7C7B\u578B),
3271
3294
  1
3272
3295
  /* TEXT */
3273
3296
  ),
3274
- createElementVNode("div", _hoisted_28, [
3275
- createElementVNode("div", _hoisted_29, [
3297
+ createElementVNode("div", _hoisted_30, [
3298
+ createElementVNode("div", _hoisted_31, [
3276
3299
  createElementVNode("div", null, [
3277
3300
  createElementVNode(
3278
3301
  "div",
3279
- _hoisted_30,
3302
+ _hoisted_32,
3280
3303
  toDisplayString(it.\u8D26\u6237\u7C7B\u578B),
3281
3304
  1
3282
3305
  /* TEXT */
3283
3306
  ),
3284
3307
  createElementVNode(
3285
3308
  "div",
3286
- _hoisted_31,
3309
+ _hoisted_33,
3287
3310
  toDisplayString(it.title),
3288
3311
  1
3289
3312
  /* TEXT */
@@ -3291,7 +3314,7 @@ var script$q = /* @__PURE__ */ defineComponent({
3291
3314
  ]),
3292
3315
  createElementVNode(
3293
3316
  "div",
3294
- _hoisted_32,
3317
+ _hoisted_34,
3295
3318
  toDisplayString(it.\u6536\u5165\u8FD8\u662F\u652F\u51FA == "\u652F\u51FA" ? "-" : "+") + toDisplayString(it.amount),
3296
3319
  1
3297
3320
  /* TEXT */
@@ -3299,7 +3322,7 @@ var script$q = /* @__PURE__ */ defineComponent({
3299
3322
  ]),
3300
3323
  createElementVNode(
3301
3324
  "div",
3302
- _hoisted_33,
3325
+ _hoisted_35,
3303
3326
  toDisplayString(it.description),
3304
3327
  1
3305
3328
  /* TEXT */
@@ -3315,7 +3338,7 @@ var script$q = /* @__PURE__ */ defineComponent({
3315
3338
  128
3316
3339
  /* KEYED_FRAGMENT */
3317
3340
  )),
3318
- reachedLastPage.value ? (openBlock(), createElementBlock("div", _hoisted_34, "\u6CA1\u6709\u66F4\u591A\u4E86")) : createCommentVNode("v-if", true)
3341
+ reachedLastPage.value ? (openBlock(), createElementBlock("div", _hoisted_36, "\u6CA1\u6709\u66F4\u591A\u4E86")) : createCommentVNode("v-if", true)
3319
3342
  ])) : (openBlock(), createBlock(script$s, { key: 1 }))
3320
3343
  ]),
3321
3344
  _: 1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxda/appkit",
3
- "version": "4.2.30",
3
+ "version": "4.2.34",
4
4
  "description": "小程序应用开发包",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.ts",
@@ -41,9 +41,15 @@
41
41
  <div class="rights-card" v-if="balance.privileges?.aiapprove">
42
42
  <div class="title">AI审批权益</div>
43
43
  <div class="list">
44
- <div class="item" v-for="(item, index) in balance.privileges.aiapprove" :key="index">
44
+ <div class="item star-item" v-for="(item, index) in balance.privileges.aiapprove" :key="index">
45
45
  <div class="item-count">{{ formatAmount(item.count || 0) }}{{ item.unit }}</div>
46
- <div class="item-title">{{ item.title }}</div>
46
+ <div class="item-title">
47
+ <div>{{ item.title }}</div>
48
+ <div class="item-title-button" v-if="item.id">
49
+ <div @click="gotoTrade(item)">AI审批充值</div>
50
+ <img class="button-icon" src="https://cdn.ddjf.com/static/images/bpms-workBench/button-hg.svg" />
51
+ </div>
52
+ </div>
47
53
  </div>
48
54
  </div>
49
55
  </div>
@@ -14,7 +14,11 @@
14
14
  :src="selectBean ? 'https://cdn.ddjf.com/static/images/appkit/select.svg' : 'https://cdn.ddjf.com/static/images/appkit/not-select.svg'" />
15
15
  </div>
16
16
  </div>
17
+
18
+
19
+ <slot name="banner"></slot>
17
20
  </view>
21
+
18
22
  <view class="amount-footer">
19
23
  <view class="agreement" v-if="!selectBean">
20
24
  <nut-checkbox v-model="state.agreed">我已阅读并同意<a class="link inline"
@@ -107,7 +111,9 @@ const currentAmount = computed(() => {
107
111
 
108
112
  onMounted(() => {
109
113
  const $http = useHttp()
110
- $http.get<any[]>(endpoints.获取增值权益类目).then((res: any) => {
114
+ $http.get<any[]>(endpoints.获取增值权益类目, {
115
+ rightCode: props.app === 'cloudkitPro' ? 'riskQueryCompany' : 'riskQueryMulti',
116
+ }).then((res: any) => {
111
117
  balance.value = res.balance
112
118
  amounts.value = res.paymentCaseConfigVOS
113
119
  })
@@ -152,8 +158,8 @@ const onPayClick = () => {
152
158
  requestPaymentByBean({
153
159
  caseConfigId: amounts.value[state.selected].id,
154
160
  amount: amounts.value[state.selected].paymentAmount,
155
- app: 'corporateStar', // 'crm',
156
- tenant: props.tenant, // '17454646',
161
+ app: props.app || 'corporateStar',
162
+ tenant: props.tenant,
157
163
  user: code
158
164
  }).then(result => {
159
165
  state.buttonLoading = false