xyvcard-order 0.0.6 → 0.0.7

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.
Files changed (46) hide show
  1. package/dist/{canceled-CAEulpM1.mjs → canceled-DkLaSCTM.mjs} +1 -1
  2. package/dist/{canceled.vue_vue_type_script_setup_true_lang-_j0h5aSP.mjs → canceled.vue_vue_type_script_setup_true_lang-5-Cw4llp.mjs} +86 -86
  3. package/dist/{change-CH-CF_q-.mjs → change-D_G7h-Nt.mjs} +1 -1
  4. package/dist/{change.vue_vue_type_script_setup_true_lang-Bb1DH4GC.mjs → change.vue_vue_type_script_setup_true_lang-BTxjkvV_.mjs} +23 -23
  5. package/dist/{completed-B70yQ6oI.mjs → completed-D1_MyTO_.mjs} +1 -1
  6. package/dist/{unreceive.vue_vue_type_script_setup_true_lang-IoS_bKwk.mjs → completed.vue_vue_type_script_setup_true_lang-Djv14D1X.mjs} +74 -74
  7. package/dist/{deliver-Bp2Ckw4g.mjs → deliver-DqqGFB3x.mjs} +1 -1
  8. package/dist/{deliver.vue_vue_type_script_setup_true_lang-DjvQSQPG.mjs → deliver.vue_vue_type_script_setup_true_lang-D4gqA0w8.mjs} +58 -59
  9. package/dist/{edit-DyFqRxsE.mjs → edit-MJXLcLm4.mjs} +1 -1
  10. package/dist/{edit.vue_vue_type_script_setup_true_lang-YwJOnNI_.mjs → edit.vue_vue_type_script_setup_true_lang-Bell5IpG.mjs} +6 -6
  11. package/dist/index-CHzhYqx8.mjs +114 -0
  12. package/dist/{index-BnhfSp6U.mjs → index-DAb5kkOk.mjs} +3 -23
  13. package/dist/{index-B3HKfAop.mjs → index-DDG2eFhK.mjs} +94 -94
  14. package/dist/{index-DHJFncJ6.mjs → index-Dy-lHz4D.mjs} +99 -106
  15. package/dist/{index-BGDa_EK1.mjs → index-ZL41UIHr.mjs} +146 -164
  16. package/dist/index.mjs +12 -117
  17. package/dist/info-Cl9HaMCm.mjs +327 -0
  18. package/dist/{info-BmqDpsnn.mjs → info-CxZXerj5.mjs} +1 -1
  19. package/dist/info.vue_vue_type_script_setup_true_lang-BdZStl8T.mjs +178 -0
  20. package/dist/{review-Dr4_ycsb.mjs → review-Bc-YCZ1X.mjs} +1 -1
  21. package/dist/{review.vue_vue_type_script_setup_true_lang-BER9b6r2.mjs → review.vue_vue_type_script_setup_true_lang-mTTMzpC7.mjs} +56 -57
  22. package/dist/style.css +1 -1
  23. package/dist/{unpay-WAsbEXlr.mjs → unpay-3tbx6NWV.mjs} +1 -1
  24. package/dist/{unpay.vue_vue_type_script_setup_true_lang-Dj_Sq17m.mjs → unpay.vue_vue_type_script_setup_true_lang-BGQNtrO2.mjs} +72 -72
  25. package/dist/{unpost-BocJwYcE.mjs → unpost-DOQ_sNYN.mjs} +1 -1
  26. package/dist/{unpost.vue_vue_type_script_setup_true_lang-BzlBIdWF.mjs → unpost.vue_vue_type_script_setup_true_lang-BveDiwdZ.mjs} +84 -84
  27. package/dist/{unreceive-BLcvdJxY.mjs → unreceive-WZteM54K.mjs} +1 -1
  28. package/dist/{completed.vue_vue_type_script_setup_true_lang-D25evb6V.mjs → unreceive.vue_vue_type_script_setup_true_lang-C6APvOTf.mjs} +76 -76
  29. package/dist/{viewLogist-D9-zqepw.mjs → viewLogist-lN1KX2qM.mjs} +1 -1
  30. package/dist/viewLogist.vue_vue_type_script_setup_true_lang-CNb6Tjcw.mjs +93 -0
  31. package/dts/src/api/dict.d.ts +3 -0
  32. package/dts/src/api/index.d.ts +2 -1
  33. package/dts/src/api/order-appraises/types.d.ts +1 -0
  34. package/dts/src/api/order-info/types.d.ts +2 -1
  35. package/dts/src/api/order-logistics/index.d.ts +1 -5
  36. package/dts/src/api/order-logistics/types.d.ts +3 -62
  37. package/dts/src/api/order-refunds/index.d.ts +0 -2
  38. package/dts/src/constant.d.ts +12 -10
  39. package/dts/src/lang/order/zh-cn.d.ts +2 -2
  40. package/dts/src/main.d.ts +0 -1
  41. package/package.json +5 -4
  42. package/dist/index-suIgymdy.mjs +0 -93
  43. package/dist/index.vue_vue_type_script_setup_true_lang-RpiqLerK.mjs +0 -41
  44. package/dist/info-Ba-BgJkw.mjs +0 -368
  45. package/dist/info.vue_vue_type_script_setup_true_lang-CHaAOFGr.mjs +0 -188
  46. package/dist/viewLogist.vue_vue_type_script_setup_true_lang-D8KlJgG0.mjs +0 -127
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-YwJOnNI_.mjs";
1
+ import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-Bell5IpG.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -53,32 +53,32 @@ const S = { class: "dialog-footer" }, J = /* @__PURE__ */ K({
53
53
  ...a,
54
54
  orderId: i.entityKey.orderId
55
55
  }).then((t) => {
56
- console.log(t), t.status === 200 && (A({
56
+ t.status === 200 && (A({
57
57
  message: u("common.submitSuccess"),
58
58
  type: "success"
59
59
  }), m.value && (m.value = !1), P("refresh", t.status === 200));
60
60
  });
61
61
  }));
62
62
  };
63
- function g() {
63
+ function y() {
64
64
  m.value && (m.value = !1);
65
65
  }
66
66
  return (e, o) => {
67
- const t = n("el-input"), f = n("el-form-item"), p = n("el-col"), U = n("el-row"), B = n("el-form"), y = n("el-button"), E = n("el-dialog");
67
+ const t = n("el-input"), f = n("el-form-item"), p = n("el-col"), U = n("el-row"), B = n("el-form"), g = n("el-button"), E = n("el-dialog");
68
68
  return j(), F(E, {
69
69
  modelValue: m.value,
70
70
  "onUpdate:modelValue": o[3] || (o[3] = (d) => m.value = d),
71
- onClose: g
71
+ onClose: y
72
72
  }, {
73
73
  footer: r(() => [
74
74
  O("div", S, [
75
- l(y, { onClick: g }, {
75
+ l(g, { onClick: y }, {
76
76
  default: r(() => [
77
77
  v(w(e.$t("common.cancel")), 1)
78
78
  ]),
79
79
  _: 1
80
80
  }),
81
- l(y, {
81
+ l(g, {
82
82
  type: "primary",
83
83
  onClick: k
84
84
  }, {
@@ -0,0 +1,114 @@
1
+ var P = Object.defineProperty;
2
+ var d = (a, E, i) => E in a ? P(a, E, { enumerable: !0, configurable: !0, writable: !0, value: i }) : a[E] = i;
3
+ var t = (a, E, i) => d(a, typeof E != "symbol" ? E + "" : E, i);
4
+ import { BizDict as R, EnumDict as r, CustomBizDict as _ } from "jmash-core";
5
+ import { ref as U } from "vue";
6
+ import { phoneModelApi as l } from "xyvcard-shell";
7
+ import { infoApi as o } from "xyvcard-shop";
8
+ import { EntryDict as T } from "jmash-dict";
9
+ class A extends R {
10
+ // 实现 useValues 方法
11
+ useValues() {
12
+ return new Promise((E, i) => {
13
+ o.findList().then(({ data: c }) => {
14
+ const p = c.results;
15
+ this.values.length = 0, this.values.push(
16
+ ...p.map(
17
+ (u) => ({
18
+ key: u.shopId,
19
+ value: u.shopName
20
+ })
21
+ )
22
+ ), E(this.values);
23
+ }).catch(i);
24
+ });
25
+ }
26
+ }
27
+ class S extends R {
28
+ // 实现 useValues 方法
29
+ useValues() {
30
+ return new Promise((E, i) => {
31
+ l.findList().then(({ data: c }) => {
32
+ const p = c.results;
33
+ this.values.length = 0, this.values.push(
34
+ ...p.map(
35
+ (u) => ({
36
+ key: u.modelId,
37
+ value: u.modelName
38
+ })
39
+ )
40
+ ), E(this.values);
41
+ }).catch(i);
42
+ });
43
+ }
44
+ }
45
+ class e {
46
+ }
47
+ // 模块
48
+ t(e, "MODULE_ORDER", "order"), // 评价状态
49
+ t(e, "APPRAISES_STATUS", U([
50
+ { key: !0, value: "已评价" },
51
+ { key: !1, value: "未评价" }
52
+ ])), // 订单状态
53
+ t(e, "ENUM_ORDER_STATUS", "xyvcard.order.protobuf.OrderStatus"), // 支付状态
54
+ t(e, "ENUM_PAYMENT_STATUS", "xyvcard.order.protobuf.PaymentStatus"), // 支付方式
55
+ t(e, "ENUM_PAYMENT_WAY", "xyvcard.order.protobuf.PaymentWay"), // 配送方式
56
+ t(e, "ENUM_DELIVERY_WAY", "xyvcard.order.protobuf.DeliveryWay"), // 发货类型
57
+ t(e, "ENUM_POST_TYPE", "xyvcard.order.protobuf.PostType"), // 发货类型常量
58
+ t(e, "LOGISTICS_DELIVERY", "logistics_delivery"), // 物流公司
59
+ t(e, "EXPRESS_COMPANY_CODE", "ExpressCompanyCode"), // 订单状态常量
60
+ t(e, "UNPAY", "unpay"), t(e, "UNPOST", "unpost"), t(e, "UNRECEIVE", "unreceive"), t(e, "CANCEL", "cancel"), t(e, "COMPLETE", "complete"), // 支付状态常量
61
+ t(e, "UNPAID", "unpaid"), t(e, "PAID", "paid"), t(e, "PART_PAID", "part_paid"), // 退款状态
62
+ t(e, "REFUND_APPLY_STATUS", "xyvcard.order.protobuf.RefundApplyStatus"), // 退款状态常量
63
+ t(e, "PASS", "pass"), t(e, "APPLY", "apply"), // 退款类型
64
+ t(e, "ENUM_REFUND_TYPE", "xyvcard.order.protobuf.RefundType"), // 退货退款常量
65
+ t(e, "RETURN_REFUND", "RETURN_REFUND"), // 审核意见
66
+ t(e, "AUDIT_OPINION", U([
67
+ { key: !0, value: "同意" },
68
+ { key: !1, value: "不同意" }
69
+ ]));
70
+ class s {
71
+ }
72
+ // 所属店铺
73
+ t(s, "shopBizDict", new A({})), // 手机型号
74
+ t(s, "phoneModelDict", new S({})), // 订单状态
75
+ t(s, "orderStatusEnum", new r(
76
+ e.MODULE_ORDER,
77
+ e.ENUM_ORDER_STATUS
78
+ )), // 支付状态
79
+ t(s, "paymentStatusEnum", new r(
80
+ e.MODULE_ORDER,
81
+ e.ENUM_PAYMENT_STATUS
82
+ )), // 评价状态
83
+ t(s, "appraisesStatus", new _(
84
+ e.APPRAISES_STATUS,
85
+ {}
86
+ )), // 支付方式
87
+ t(s, "paymentWayEnum", new r(
88
+ e.MODULE_ORDER,
89
+ e.ENUM_PAYMENT_WAY
90
+ )), // 配送方式
91
+ t(s, "deliveryWayEnum", new r(
92
+ e.MODULE_ORDER,
93
+ e.ENUM_DELIVERY_WAY
94
+ )), // 发货类型
95
+ t(s, "postTypeEnum", new r(
96
+ e.MODULE_ORDER,
97
+ e.ENUM_POST_TYPE
98
+ )), // 物流公司
99
+ t(s, "volunteerTypeDict", new T(
100
+ e.EXPRESS_COMPANY_CODE
101
+ )), // 退款状态
102
+ t(s, "refundApplyEnum", new r(
103
+ e.MODULE_ORDER,
104
+ e.REFUND_APPLY_STATUS
105
+ )), // 退款类型
106
+ t(s, "refundTypeEnum", new r(
107
+ e.MODULE_ORDER,
108
+ e.ENUM_REFUND_TYPE
109
+ )), // 审核意见
110
+ t(s, "auditOpinion", new _(e.AUDIT_OPINION, {}));
111
+ export {
112
+ e as C,
113
+ s as D
114
+ };
@@ -1,5 +1,5 @@
1
1
  import { useUserStore as t, clearEmpty as n, request as d } from "jmash-core";
2
- class o {
2
+ class s {
3
3
  getKey(e) {
4
4
  return {
5
5
  refundId: e.refundId
@@ -32,26 +32,6 @@ class o {
32
32
  method: "get"
33
33
  });
34
34
  }
35
- // 删除订单退款申请
36
- delete(e) {
37
- return e.tenant = t().user.tenant, n(e), d({
38
- url: "/v1/order/order_refunds/id",
39
- method: "delete",
40
- params: e
41
- });
42
- }
43
- // 批量删除订单退款申请
44
- batchDelete(e) {
45
- const r = e.map((u) => u.refundId), s = {
46
- tenant: t().user.tenant,
47
- refundId: r
48
- };
49
- return n(s), d({
50
- url: "/v1/order/order_refunds/batch",
51
- method: "put",
52
- data: s
53
- });
54
- }
55
35
  // 退款申请审批
56
36
  update(e) {
57
37
  return e.tenant = t().user.tenant, n(e), d({
@@ -69,7 +49,7 @@ class o {
69
49
  });
70
50
  }
71
51
  }
72
- const m = new o();
52
+ const f = new s();
73
53
  export {
74
- m as o
54
+ f as o
75
55
  };