xyvcard-paper-buyer 0.0.37 → 0.0.39

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.
@@ -5,7 +5,7 @@ import { routerUtil as D } from "jmash-core";
5
5
  import { useRouter as Q, useRoute as W } from "vue-router";
6
6
  import { D as E } from "./index-BGqp7CRm.mjs";
7
7
  import { l as X } from "./index-TclOpCe_.mjs";
8
- import { o as Y } from "./index-CT0KG-ax.mjs";
8
+ import { o as Y } from "./index-BKZPqxLM.mjs";
9
9
  import { _ as Z } from "./userInvoice.vue_vue_type_script_setup_true_lang-cUHb_KPE.mjs";
10
10
  import { E as x } from "./el-message-VSzNakoG.mjs";
11
11
  import { _ as ee } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
@@ -1,11 +1,11 @@
1
- import { defineComponent as U, mergeModels as h, useModel as I, ref as E, reactive as y, resolveComponent as n, createBlock as H, openBlock as B, withCtx as o, createVNode as e, unref as r, createElementVNode as F, createTextVNode as N, toDisplayString as V } from "vue";
1
+ import { defineComponent as Y, mergeModels as h, useModel as U, ref as E, reactive as y, resolveComponent as n, createBlock as H, openBlock as B, withCtx as o, createVNode as e, unref as a, createElementVNode as F, createTextVNode as V, toDisplayString as g } from "vue";
2
2
  import { useI18n as K } from "vue-i18n";
3
3
  import { useRouter as j, useRoute as O } from "vue-router";
4
- import { ElMessage as g } from "element-plus";
5
- import { o as z } from "./index-Dph_ktOL.mjs";
6
- import k from "./assets/3a1c0fd6fbc19dd2.png";
4
+ import { ElMessage as k } from "element-plus";
5
+ import { o as z } from "./index-B90ZLkZ9.mjs";
6
+ import N from "./assets/3a1c0fd6fbc19dd2.png";
7
7
  import { _ as G } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
8
- const J = { class: "footer" }, L = /* @__PURE__ */ U({
8
+ const J = { class: "footer" }, L = /* @__PURE__ */ Y({
9
9
  __name: "confirm",
10
10
  props: /* @__PURE__ */ h({
11
11
  confirmKey: {
@@ -26,7 +26,7 @@ const J = { class: "footer" }, L = /* @__PURE__ */ U({
26
26
  }),
27
27
  emits: /* @__PURE__ */ h(["close"], ["update:modelValue"]),
28
28
  setup(i, { emit: v }) {
29
- const _ = i, u = I(i, "modelValue"), R = v, { t: c } = K(), D = j(), P = O(), w = E(), a = y({
29
+ const _ = i, u = U(i, "modelValue"), R = v, { t: c } = K(), P = j(), D = O(), w = E(), r = y({
30
30
  requestId: Math.random() * 10 + "",
31
31
  opponentAccountNo: "",
32
32
  bankSerialNo: ""
@@ -46,31 +46,31 @@ const J = { class: "footer" }, L = /* @__PURE__ */ U({
46
46
  }
47
47
  ]
48
48
  }), $ = async () => {
49
- var t;
50
- await ((t = w.value) == null ? void 0 : t.validate(async (l) => {
51
- if (l)
49
+ var l;
50
+ await ((l = w.value) == null ? void 0 : l.validate(async (t) => {
51
+ if (t)
52
52
  try {
53
53
  (await z.completedTransfer({
54
- ...a,
55
- merchantNo: _.confirmKey.merchantNo,
56
- orderNo: _.confirmKey.orderNo
57
- })).data === "success" && (g.success(c("common.submitSuccess")), f(), D.push({
54
+ ...r,
55
+ shopPayInfoId: _.confirmKey.shopPayInfoId,
56
+ orderCode: _.confirmKey.orderCode
57
+ })).data === "success" && (k.success(c("common.submitSuccess")), f(), P.push({
58
58
  path: "/buyer/order-info/applyEdit",
59
- query: { orderId: P.query.orderId }
59
+ query: { orderId: D.query.orderId }
60
60
  }));
61
61
  } catch {
62
- g.error("提交失败,请重试");
62
+ k.error("提交失败,请重试");
63
63
  }
64
64
  }));
65
65
  };
66
66
  function f() {
67
67
  R("close"), u.value = !1;
68
68
  }
69
- return (t, l) => {
70
- const p = n("el-input"), m = n("el-form-item"), s = n("el-col"), S = n("el-date-picker"), A = n("el-divider"), M = n("el-image"), T = n("el-row"), Y = n("el-form"), b = n("el-button"), C = n("el-dialog");
71
- return B(), H(C, {
69
+ return (l, t) => {
70
+ const p = n("el-input"), s = n("el-form-item"), m = n("el-col"), S = n("el-date-picker"), A = n("el-divider"), C = n("el-image"), I = n("el-row"), M = n("el-form"), b = n("el-button"), T = n("el-dialog");
71
+ return B(), H(T, {
72
72
  modelValue: u.value,
73
- "onUpdate:modelValue": l[4] || (l[4] = (d) => u.value = d),
73
+ "onUpdate:modelValue": t[4] || (t[4] = (d) => u.value = d),
74
74
  title: i.title,
75
75
  width: i.width,
76
76
  onClose: f,
@@ -80,7 +80,7 @@ const J = { class: "footer" }, L = /* @__PURE__ */ U({
80
80
  F("div", J, [
81
81
  e(b, { onClick: f }, {
82
82
  default: o(() => [
83
- N(V(t.$t("common.cancel")), 1)
83
+ V(g(l.$t("common.cancel")), 1)
84
84
  ]),
85
85
  _: 1
86
86
  }),
@@ -89,35 +89,35 @@ const J = { class: "footer" }, L = /* @__PURE__ */ U({
89
89
  onClick: $
90
90
  }, {
91
91
  default: o(() => [
92
- N(V(t.$t("common.confirm")), 1)
92
+ V(g(l.$t("common.confirm")), 1)
93
93
  ]),
94
94
  _: 1
95
95
  })
96
96
  ])
97
97
  ]),
98
98
  default: o(() => [
99
- e(Y, {
99
+ e(M, {
100
100
  ref_key: "confirmFormRef",
101
101
  ref: w,
102
- model: r(a),
102
+ model: a(r),
103
103
  "label-width": "120px",
104
- rules: r(q),
104
+ rules: a(q),
105
105
  style: { "margin-top": "20px" }
106
106
  }, {
107
107
  default: o(() => [
108
- e(T, { gutter: 20 }, {
108
+ e(I, { gutter: 20 }, {
109
109
  default: o(() => [
110
- e(s, { span: 20 }, {
110
+ e(m, { span: 20 }, {
111
111
  default: o(() => [
112
- e(m, {
113
- label: t.$t("newsPapepr.opponentAccountNo"),
112
+ e(s, {
113
+ label: l.$t("newsPapepr.opponentAccountNo"),
114
114
  prop: "opponentAccountNo"
115
115
  }, {
116
116
  default: o(() => [
117
117
  e(p, {
118
- modelValue: r(a).opponentAccountNo,
119
- "onUpdate:modelValue": l[0] || (l[0] = (d) => r(a).opponentAccountNo = d),
120
- placeholder: t.$t("newsPapepr.opponentAccountNoRequired"),
118
+ modelValue: a(r).opponentAccountNo,
119
+ "onUpdate:modelValue": t[0] || (t[0] = (d) => a(r).opponentAccountNo = d),
120
+ placeholder: l.$t("newsPapepr.opponentAccountNoRequired"),
121
121
  "show-word-limit": "",
122
122
  clearable: ""
123
123
  }, null, 8, ["modelValue", "placeholder"])
@@ -127,18 +127,18 @@ const J = { class: "footer" }, L = /* @__PURE__ */ U({
127
127
  ]),
128
128
  _: 1
129
129
  }),
130
- e(s, { span: 20 }, {
130
+ e(m, { span: 20 }, {
131
131
  default: o(() => [
132
- e(m, {
133
- label: t.$t("newsPapepr.tradeDateTime"),
132
+ e(s, {
133
+ label: l.$t("newsPapepr.tradeDateTime"),
134
134
  prop: "tradeDateTime"
135
135
  }, {
136
136
  default: o(() => [
137
137
  e(S, {
138
- modelValue: r(a).tradeDateTime,
139
- "onUpdate:modelValue": l[1] || (l[1] = (d) => r(a).tradeDateTime = d),
138
+ modelValue: a(r).tradeDateTime,
139
+ "onUpdate:modelValue": t[1] || (t[1] = (d) => a(r).tradeDateTime = d),
140
140
  type: "datetime",
141
- placeholder: t.$t("newsPapepr.tradeDateTimeRequired"),
141
+ placeholder: l.$t("newsPapepr.tradeDateTimeRequired"),
142
142
  format: "YYYY-MM-DD HH:mm:ss",
143
143
  "value-format": "YYYY-MM-DD HH:mm:ss",
144
144
  class: "w-full"
@@ -149,17 +149,17 @@ const J = { class: "footer" }, L = /* @__PURE__ */ U({
149
149
  ]),
150
150
  _: 1
151
151
  }),
152
- e(s, { span: 20 }, {
152
+ e(m, { span: 20 }, {
153
153
  default: o(() => [
154
- e(m, {
155
- label: t.$t("newsPapepr.bankSerialNo"),
154
+ e(s, {
155
+ label: l.$t("newsPapepr.bankSerialNo"),
156
156
  prop: "bankSerialNo"
157
157
  }, {
158
158
  default: o(() => [
159
159
  e(p, {
160
- modelValue: r(a).bankSerialNo,
161
- "onUpdate:modelValue": l[2] || (l[2] = (d) => r(a).bankSerialNo = d),
162
- placeholder: t.$t("newsPapepr.bankSerialNoRequired"),
160
+ modelValue: a(r).bankSerialNo,
161
+ "onUpdate:modelValue": t[2] || (t[2] = (d) => a(r).bankSerialNo = d),
162
+ placeholder: l.$t("newsPapepr.bankSerialNoRequired"),
163
163
  "show-word-limit": "",
164
164
  clearable: ""
165
165
  }, null, 8, ["modelValue", "placeholder"])
@@ -169,17 +169,17 @@ const J = { class: "footer" }, L = /* @__PURE__ */ U({
169
169
  ]),
170
170
  _: 1
171
171
  }),
172
- e(s, { span: 20 }, {
172
+ e(m, { span: 20 }, {
173
173
  default: o(() => [
174
- e(m, {
175
- label: t.$t("newsPapepr.handleRemark"),
174
+ e(s, {
175
+ label: l.$t("newsPapepr.handleRemark"),
176
176
  prop: "handleRemark"
177
177
  }, {
178
178
  default: o(() => [
179
179
  e(p, {
180
- modelValue: r(a).handleRemark,
181
- "onUpdate:modelValue": l[3] || (l[3] = (d) => r(a).handleRemark = d),
182
- placeholder: t.$t("newsPapepr.handleRemarkRequired"),
180
+ modelValue: a(r).handleRemark,
181
+ "onUpdate:modelValue": t[3] || (t[3] = (d) => a(r).handleRemark = d),
182
+ placeholder: l.$t("newsPapepr.handleRemarkRequired"),
183
183
  "show-word-limit": "",
184
184
  clearable: ""
185
185
  }, null, 8, ["modelValue", "placeholder"])
@@ -190,15 +190,15 @@ const J = { class: "footer" }, L = /* @__PURE__ */ U({
190
190
  _: 1
191
191
  }),
192
192
  e(A),
193
- e(s, { span: 24 }, {
193
+ e(m, { span: 24 }, {
194
194
  default: o(() => [
195
- e(m, {
196
- label: t.$t("newsPapepr.image")
195
+ e(s, {
196
+ label: l.$t("newsPapepr.image")
197
197
  }, {
198
198
  default: o(() => [
199
- e(M, {
200
- src: r(k),
201
- "preview-src-list": [r(k)],
199
+ e(C, {
200
+ src: a(N),
201
+ "preview-src-list": [a(N)],
202
202
  "preview-teleported": "",
203
203
  "hide-on-click-modal": "",
204
204
  fit: "contain",
@@ -221,7 +221,7 @@ const J = { class: "footer" }, L = /* @__PURE__ */ U({
221
221
  }, 8, ["modelValue", "title", "width"]);
222
222
  };
223
223
  }
224
- }), te = /* @__PURE__ */ G(L, [["__scopeId", "data-v-e76ed795"]]);
224
+ }), le = /* @__PURE__ */ G(L, [["__scopeId", "data-v-3564bac4"]]);
225
225
  export {
226
- te as default
226
+ le as default
227
227
  };
@@ -0,0 +1,98 @@
1
+ import { useUserStore as r, clearEmpty as t, request as n } from "jmash-core";
2
+ class s {
3
+ getKey(e) {
4
+ return {};
5
+ }
6
+ // 查询翻页信息用户地址
7
+ findPage(e) {
8
+ e.curPage || (e.curPage = 1);
9
+ const o = r().user.tenant;
10
+ return t(e), n({
11
+ url: "/v1/front/goods/goods_page/" + o,
12
+ method: "get",
13
+ params: e
14
+ });
15
+ }
16
+ /**
17
+ * 根据商品SPU的ID进行查询
18
+ * @param query 商品SPU的查询键,包含需要查询的SPU ID
19
+ * @returns 返回一个AxiosPromise对象,解析为商品SPU模型
20
+ */
21
+ findById(e) {
22
+ const o = r().user.tenant;
23
+ return t(e), n({
24
+ url: "/v1/goods/goods_spu/id/" + o + "/" + e.spuId,
25
+ method: "get"
26
+ });
27
+ }
28
+ // 创建报刊订单
29
+ create(e) {
30
+ return e.tenant = r().user.tenant, t(e), n({
31
+ url: "/v1/front/order/order_info",
32
+ method: "post",
33
+ data: e
34
+ });
35
+ }
36
+ // 订单支付结果查询
37
+ queryPayResult(e) {
38
+ const o = r().user.tenant;
39
+ return t(e), n({
40
+ url: "/v1/front/order/pay_query/" + o,
41
+ method: "get",
42
+ params: e
43
+ });
44
+ }
45
+ // 查询订单管理
46
+ findOrderInfoById(e) {
47
+ return e.tenant = r().user.tenant, t(e), n({
48
+ url: "/v1/front/order/order_info/id/" + e.tenant + "/" + e.orderId,
49
+ method: "GET"
50
+ });
51
+ }
52
+ // 创建实体订单收货地址
53
+ createOrderAddress(e) {
54
+ return e.tenant = r().user.tenant, t(e), n({
55
+ url: "/v1/order/order_address",
56
+ method: "post",
57
+ data: e
58
+ });
59
+ }
60
+ // 查工会名称
61
+ findUnionName(e) {
62
+ const o = r().user.tenant;
63
+ return t(e), n({
64
+ url: "/v1/union/union_org/user/" + o,
65
+ method: "get",
66
+ params: e
67
+ });
68
+ }
69
+ // 已完成转账接口
70
+ completedTransfer(e) {
71
+ return e.tenant = r().user.tenant, t(e), n({
72
+ url: "/v1/order/complete_pay",
73
+ method: "post",
74
+ data: e
75
+ });
76
+ }
77
+ // 支付接口
78
+ createPay(e) {
79
+ return e.tenant = r().user.tenant, t(e), n({
80
+ url: "/v1/order/order_pay",
81
+ method: "post",
82
+ data: e
83
+ });
84
+ }
85
+ // 查支付方式
86
+ findPayMode(e) {
87
+ const o = r().user.tenant;
88
+ return t(e), n({
89
+ url: "/v1/shop/pay_info/page/" + o,
90
+ method: "get",
91
+ params: e
92
+ });
93
+ }
94
+ }
95
+ const a = new s();
96
+ export {
97
+ a as o
98
+ };