xyvcard-order 0.0.5 → 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 (47) 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-Dvf0V5EP.mjs → index-DAb5kkOk.mjs} +11 -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-CL3mlOnd.mjs → index-ZL41UIHr.mjs} +162 -148
  16. package/dist/index.mjs +147 -248
  17. package/dist/info-Cl9HaMCm.mjs +327 -0
  18. package/dist/{info-DtOaZ-hg.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-DjGDxyqZ.mjs → review-Bc-YCZ1X.mjs} +1 -1
  21. package/dist/{review.vue_vue_type_script_setup_true_lang-CKGCdXD5.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 +2 -3
  38. package/dts/src/api/order-refunds/types.d.ts +5 -0
  39. package/dts/src/constant.d.ts +12 -10
  40. package/dts/src/lang/order/zh-cn.d.ts +6 -2
  41. package/dts/src/main.d.ts +0 -1
  42. package/package.json +5 -4
  43. package/dist/index-suIgymdy.mjs +0 -93
  44. package/dist/index.vue_vue_type_script_setup_true_lang-RpiqLerK.mjs +0 -41
  45. package/dist/info-Ba-BgJkw.mjs +0 -368
  46. package/dist/info.vue_vue_type_script_setup_true_lang-DLnh7W1x.mjs +0 -188
  47. package/dist/viewLogist.vue_vue_type_script_setup_true_lang-D8KlJgG0.mjs +0 -127
@@ -1,80 +1,21 @@
1
- import type { EntityApi, EntityReq, EntityModel, EntityList, EntityPage, EntityTotal, EntityKey, EntityKeyList, EntityCreateReq, EntityUpdateReq } from "jmash-core";
1
+ import type { EntityApi, EntityKey, EntityList, EntityModel } from "jmash-core";
2
2
  export interface OrderLogisticsApi extends EntityApi {
3
3
  }
4
- export interface OrderLogisticsReq extends EntityReq {
5
- logisticsId?: string;
6
- }
7
4
  export interface OrderLogisticsModel extends EntityModel {
8
5
  logisticsId?: string;
9
- orderId?: string;
10
- orderItemId?: string;
11
- logisticsMchCode?: string;
12
- logisticsMchName?: string;
13
- logisticsNo?: string;
14
- deliveryTime?: string;
15
- status?: string;
16
- isCheck?: boolean;
17
- receiverTime?: string;
18
- message?: string;
19
- createTime?: string;
20
- createBy?: string;
21
- updateBy?: string;
22
- updateTime?: string;
23
- }
24
- export interface OrderLogisticsList extends EntityList {
25
- results: Array<OrderLogisticsModel>;
26
- }
27
- export interface OrderLogisticsPage extends EntityPage {
28
- results: Array<OrderLogisticsModel>;
29
- subTotalDto: OrderLogisticsModelTotal;
30
- totalDto: OrderLogisticsModelTotal;
31
- }
32
- export interface OrderLogisticsModelTotal extends EntityTotal {
33
- totalSize: number;
34
6
  }
35
7
  export interface OrderLogisticsKey extends EntityKey {
36
8
  tenant?: string;
37
9
  logisticsId?: string;
38
10
  }
39
- export interface OrderLogisticsKeyList extends EntityKeyList {
40
- tenant?: string;
41
- logisticsId?: Array<string>;
42
- }
43
- export interface OrderLogisticsCreateReq extends EntityCreateReq {
44
- logisticsId?: string;
45
- orderId?: string;
46
- orderItemId?: string;
47
- logisticsMchCode?: string;
48
- logisticsMchName?: string;
49
- logisticsNo?: string;
50
- deliveryTime?: string;
51
- status?: string;
52
- isCheck?: boolean;
53
- receiverTime?: string;
54
- message?: string;
55
- }
56
- export interface OrderLogisticsUpdateReq extends EntityUpdateReq {
57
- logisticsId?: string;
58
- orderId?: string;
59
- orderItemId?: string;
60
- logisticsMchCode?: string;
61
- logisticsMchName?: string;
62
- logisticsNo?: string;
63
- deliveryTime?: string;
64
- status?: string;
65
- isCheck?: boolean;
66
- receiverTime?: string;
67
- message?: string;
68
- }
69
- export type OrderLogisticsFormReq = OrderLogisticsCreateReq | OrderLogisticsUpdateReq;
70
11
  export interface LogisticsQueryReq {
71
12
  orderId?: string;
72
13
  orderItemId?: string;
73
14
  }
74
- export interface LogisticsInfoList {
15
+ export interface LogisticsInfoList extends EntityList {
75
16
  list: Array<LogisticsInfoModel>;
76
17
  }
77
- export interface LogisticsInfoModel {
18
+ export interface LogisticsInfoModel extends EntityModel {
78
19
  time?: string;
79
20
  context?: string;
80
21
  ftime?: string;
@@ -1,13 +1,12 @@
1
1
  import type { AxiosPromise } from "axios";
2
- import type { OrderRefundsApi, OrderRefundsReq, OrderRefundsModel, OrderRefundsPage, OrderRefundsList, OrderRefundsKey, OrderInfoRefundModel, OrderRefundsUpdateReq } from "./types";
2
+ import type { OrderRefundsApi, OrderRefundsReq, OrderRefundsModel, OrderRefundsPage, OrderRefundsList, OrderRefundsKey, OrderInfoRefundModel, OrderRefundsUpdateReq, OrderRefundReq } from "./types";
3
3
  declare class OrderRefundsApiImpl implements OrderRefundsApi {
4
4
  getKey(model: OrderInfoRefundModel): OrderRefundsKey;
5
5
  findPage(query?: OrderRefundsReq): AxiosPromise<OrderRefundsPage>;
6
6
  findList(query?: OrderRefundsReq): AxiosPromise<OrderRefundsList>;
7
7
  findById(query: OrderRefundsKey): AxiosPromise<OrderInfoRefundModel>;
8
- delete(query: OrderRefundsKey): AxiosPromise<OrderInfoRefundModel>;
9
- batchDelete(keys: OrderRefundsKey[]): AxiosPromise<number>;
10
8
  update(data: OrderRefundsUpdateReq): AxiosPromise<OrderRefundsModel>;
9
+ refund(data: OrderRefundReq): AxiosPromise<boolean>;
11
10
  }
12
11
  declare const orderRefundsApi: OrderRefundsApiImpl;
13
12
  export { orderRefundsApi };
@@ -66,3 +66,8 @@ export interface OrderRefundsModel extends EntityModel {
66
66
  refuseRefundReson?: string;
67
67
  auditOpinion?: boolean;
68
68
  }
69
+ export interface OrderRefundReq {
70
+ tenant?: string;
71
+ requestId?: string;
72
+ refundId?: string;
73
+ }
@@ -15,19 +15,21 @@ export declare class Constant {
15
15
  static readonly ENUM_PAYMENT_WAY = "xyvcard.order.protobuf.PaymentWay";
16
16
  static readonly ENUM_DELIVERY_WAY = "xyvcard.order.protobuf.DeliveryWay";
17
17
  static readonly ENUM_POST_TYPE = "xyvcard.order.protobuf.PostType";
18
- static readonly logisticsDelivery = "logistics_delivery";
18
+ static readonly LOGISTICS_DELIVERY = "logistics_delivery";
19
19
  static readonly EXPRESS_COMPANY_CODE = "ExpressCompanyCode";
20
- static readonly unpay = "unpay";
21
- static readonly unpost = "unpost";
22
- static readonly unreceive = "unreceive";
23
- static readonly cancel = "cancel";
24
- static readonly complete = "complete";
25
- static readonly unpaid = "unpaid";
26
- static readonly paid = "paid";
27
- static readonly partPaid = "part_paid";
20
+ static readonly UNPAY = "unpay";
21
+ static readonly UNPOST = "unpost";
22
+ static readonly UNRECEIVE = "unreceive";
23
+ static readonly CANCEL = "cancel";
24
+ static readonly COMPLETE = "complete";
25
+ static readonly UNPAID = "unpaid";
26
+ static readonly PAID = "paid";
27
+ static readonly PART_PAID = "part_paid";
28
28
  static readonly REFUND_APPLY_STATUS = "xyvcard.order.protobuf.RefundApplyStatus";
29
+ static readonly PASS = "pass";
30
+ static readonly APPLY = "apply";
29
31
  static readonly ENUM_REFUND_TYPE = "xyvcard.order.protobuf.RefundType";
30
- static readonly returnRefund = "RETURN_REFUND";
32
+ static readonly RETURN_REFUND = "RETURN_REFUND";
31
33
  static readonly AUDIT_OPINION: globalThis.Ref<{
32
34
  key: boolean;
33
35
  value: string;
@@ -77,8 +77,8 @@ declare const _default: {
77
77
  viewLogist: string;
78
78
  postType: string;
79
79
  postTypeRequired: string;
80
- logisticCode: string;
81
- logisticCodeRequired: string;
80
+ logisticsCode: string;
81
+ logisticCodesRequired: string;
82
82
  logisticsNo: string;
83
83
  logisticsNoRequired: string;
84
84
  };
@@ -112,6 +112,10 @@ declare const _default: {
112
112
  refuseRefundResonRequired: string;
113
113
  info: string;
114
114
  refundReview: string;
115
+ refund: string;
116
+ refundConfirm: string;
117
+ refundSuccess: string;
118
+ refundFailed: string;
115
119
  refundOperation: string;
116
120
  userName: string;
117
121
  userNameRequired: string;
package/dts/src/main.d.ts CHANGED
@@ -3,4 +3,3 @@ import "element-plus/dist/index.css";
3
3
  import "jmash-core/dist/style.css";
4
4
  import "jmash-dict/dist/style.css";
5
5
  import "jmash-rbac/dist/style.css";
6
- import "xyvcard-shop/dist/style.css";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xyvcard-order",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "private": false,
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dts/src/index.d.ts",
@@ -11,14 +11,15 @@
11
11
  "peerDependencies": {
12
12
  "axios": "^1.7.7",
13
13
  "element-plus": "^2.8.7",
14
- "jmash-core": "^0.0.102",
14
+ "jmash-core": "^0.0.108",
15
15
  "jmash-dict": "^0.0.44",
16
- "jmash-rbac": "^0.0.35",
16
+ "jmash-rbac": "^0.0.40",
17
17
  "pinia": "^2.2.4",
18
18
  "vue": "^3.5.11",
19
19
  "vue-i18n": "^9.14.1",
20
20
  "vue-router": "^4.4.5",
21
- "xyvcard-shop": "^0.0.16"
21
+ "xyvcard-shop": "^0.0.17",
22
+ "xyvcard-shell": "^0.0.8"
22
23
  },
23
24
  "devDependencies": {
24
25
  "@eslint/js": "^9.16.0",
@@ -1,93 +0,0 @@
1
- var U = Object.defineProperty;
2
- var d = (E, r, s) => r in E ? U(E, r, { enumerable: !0, configurable: !0, writable: !0, value: s }) : E[r] = s;
3
- var t = (E, r, s) => d(E, typeof r != "symbol" ? r + "" : r, s);
4
- import { BizDict as y, EnumDict as i, CustomBizDict as c } from "jmash-core";
5
- import { ref as p } from "vue";
6
- import { infoApi as T } from "xyvcard-shop";
7
- import { EntryDict as S } from "jmash-dict";
8
- class o extends y {
9
- // 实现 useValues 方法
10
- useValues() {
11
- return new Promise((r, s) => {
12
- T.findList().then(({ data: _ }) => {
13
- const R = _.results;
14
- this.values.length = 0, this.values.push(
15
- ...R.map(
16
- (u) => ({
17
- key: u.shopId,
18
- value: u.shopName
19
- })
20
- )
21
- ), r(this.values);
22
- }).catch(s);
23
- });
24
- }
25
- }
26
- class e {
27
- }
28
- // 模块
29
- t(e, "MODULE_ORDER", "order"), // 评价状态
30
- t(e, "APPRAISES_STATUS", p([
31
- { key: !0, value: "已评价" },
32
- { key: !1, value: "未评价" }
33
- ])), // 订单状态
34
- t(e, "ENUM_ORDER_STATUS", "xyvcard.order.protobuf.OrderStatus"), // 支付状态
35
- t(e, "ENUM_PAYMENT_STATUS", "xyvcard.order.protobuf.PaymentStatus"), // 支付方式
36
- t(e, "ENUM_PAYMENT_WAY", "xyvcard.order.protobuf.PaymentWay"), // 配送方式
37
- t(e, "ENUM_DELIVERY_WAY", "xyvcard.order.protobuf.DeliveryWay"), // 发货类型
38
- t(e, "ENUM_POST_TYPE", "xyvcard.order.protobuf.PostType"), // 发货类型常量
39
- t(e, "logisticsDelivery", "logistics_delivery"), // 物流公司
40
- t(e, "EXPRESS_COMPANY_CODE", "ExpressCompanyCode"), // 订单状态常量
41
- t(e, "unpay", "unpay"), t(e, "unpost", "unpost"), t(e, "unreceive", "unreceive"), t(e, "cancel", "cancel"), t(e, "complete", "complete"), // 支付状态常量
42
- t(e, "unpaid", "unpaid"), t(e, "paid", "paid"), t(e, "partPaid", "part_paid"), // 退款状态y
43
- t(e, "REFUND_APPLY_STATUS", "xyvcard.order.protobuf.RefundApplyStatus"), // 退款类型
44
- t(e, "ENUM_REFUND_TYPE", "xyvcard.order.protobuf.RefundType"), // 退货退款常量
45
- t(e, "returnRefund", "RETURN_REFUND"), // 审核意见
46
- t(e, "AUDIT_OPINION", p([
47
- { key: !0, value: "同意" },
48
- { key: !1, value: "不同意" }
49
- ]));
50
- class a {
51
- }
52
- // 所属店铺
53
- t(a, "shopBizDict", new o({})), // 订单状态
54
- t(a, "orderStatusEnum", new i(
55
- e.MODULE_ORDER,
56
- e.ENUM_ORDER_STATUS
57
- )), // 支付状态
58
- t(a, "paymentStatusEnum", new i(
59
- e.MODULE_ORDER,
60
- e.ENUM_PAYMENT_STATUS
61
- )), // 评价状态
62
- t(a, "appraisesStatus", new c(
63
- e.APPRAISES_STATUS,
64
- {}
65
- )), // 支付方式
66
- t(a, "paymentWayEnum", new i(
67
- e.MODULE_ORDER,
68
- e.ENUM_PAYMENT_WAY
69
- )), // 配送方式
70
- t(a, "deliveryWayEnum", new i(
71
- e.MODULE_ORDER,
72
- e.ENUM_DELIVERY_WAY
73
- )), // 发货类型
74
- t(a, "postTypeEnum", new i(
75
- e.MODULE_ORDER,
76
- e.ENUM_POST_TYPE
77
- )), // 物流公司
78
- t(a, "volunteerTypeDict", new S(
79
- e.EXPRESS_COMPANY_CODE
80
- )), // 退款状态
81
- t(a, "refundApplyEnum", new i(
82
- e.MODULE_ORDER,
83
- e.REFUND_APPLY_STATUS
84
- )), // 退款类型
85
- t(a, "refundTypeEnum", new i(
86
- e.MODULE_ORDER,
87
- e.ENUM_REFUND_TYPE
88
- )), // 审核意见
89
- t(a, "auditOpinion", new c(e.AUDIT_OPINION, {}));
90
- export {
91
- e as C,
92
- a as D
93
- };
@@ -1,41 +0,0 @@
1
- import { defineComponent as s, mergeModels as c, useModel as i, resolveComponent as n, openBlock as o, createBlock as r, withCtx as u, createElementBlock as _, Fragment as f, renderList as V, unref as g, createTextVNode as k, toDisplayString as v } from "vue";
2
- const C = /* @__PURE__ */ s({
3
- __name: "index",
4
- props: /* @__PURE__ */ c({
5
- data: {
6
- type: Object,
7
- default: function() {
8
- }
9
- }
10
- }, {
11
- modelValue: { type: [String, Boolean] },
12
- modelModifiers: {}
13
- }),
14
- emits: ["update:modelValue"],
15
- setup(t) {
16
- const l = i(t, "modelValue"), d = t.data;
17
- return (x, a) => {
18
- const m = n("el-radio"), p = n("el-radio-group");
19
- return o(), r(p, {
20
- modelValue: l.value,
21
- "onUpdate:modelValue": a[0] || (a[0] = (e) => l.value = e)
22
- }, {
23
- default: u(() => [
24
- (o(!0), _(f, null, V(g(d), (e) => (o(), r(m, {
25
- key: e.key,
26
- value: e.key
27
- }, {
28
- default: u(() => [
29
- k(v(e.value), 1)
30
- ]),
31
- _: 2
32
- }, 1032, ["value"]))), 128))
33
- ]),
34
- _: 1
35
- }, 8, ["modelValue"]);
36
- };
37
- }
38
- });
39
- export {
40
- C as _
41
- };