xyvcard-paper-buyer 0.0.58 → 0.0.60

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xyvcard-paper-buyer",
3
- "version": "0.0.58",
3
+ "version": "0.0.60",
4
4
  "private": false,
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dts/index.d.ts",
@@ -8,23 +8,13 @@
8
8
  "dist",
9
9
  "dts"
10
10
  ],
11
- "scripts": {
12
- "dev": "vite --host",
13
- "build": "vite build && pnpm build:dts",
14
- "build:dts": "vue-tsc --declaration --emitDeclarationOnly",
15
- "preview": "vite preview",
16
- "build-only": "vite build",
17
- "type-check": "vue-tsc --build --force",
18
- "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
19
- "format": "prettier --write src/"
20
- },
21
11
  "peerDependencies": {
22
12
  "axios": "^1.6.7",
23
13
  "element-plus": "^2.11.5",
24
14
  "jmash-core": "^0.1.22",
25
15
  "jmash-dict": "^0.1.2",
26
16
  "jmash-rbac": "^0.1.17",
27
- "jmash-region": "^0.1.0",
17
+ "jmash-region": "^0.1.3",
28
18
  "pinia": "^2.1.7",
29
19
  "vue": "^3.4.21",
30
20
  "vue-i18n": "^9.10.1",
@@ -57,5 +47,15 @@
57
47
  "file-saver": "^2.0.5",
58
48
  "nprogress": "^0.2.0",
59
49
  "qs": "^6.12.0"
50
+ },
51
+ "scripts": {
52
+ "dev": "vite --host",
53
+ "build": "vite build && pnpm build:dts",
54
+ "build:dts": "vue-tsc --declaration --emitDeclarationOnly",
55
+ "preview": "vite preview",
56
+ "build-only": "vite build",
57
+ "type-check": "vue-tsc --build --force",
58
+ "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
59
+ "format": "prettier --write src/"
60
60
  }
61
- }
61
+ }
@@ -1,268 +0,0 @@
1
- import { defineComponent as S, mergeModels as V, ref as f, reactive as A, useModel as T, resolveComponent as m, createBlock as D, openBlock as J, withCtx as a, createVNode as l, unref as d, createElementVNode as L, createTextVNode as R, toDisplayString as q } from "vue";
2
- import { ElMessage as w } from "element-plus";
3
- import { JmashRegionTree as z, dictRegionApi as C } from "jmash-region";
4
- import { useI18n as G } from "vue-i18n";
5
- import { o as h } from "./index-BP8zUjOw.mjs";
6
- import { validatePhoneOrLandline as H } from "jmash-core";
7
- import { _ as Q } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
8
- const W = { class: "dialog-footer" }, X = /* @__PURE__ */ S({
9
- __name: "edit",
10
- props: /* @__PURE__ */ V({
11
- entityKey: {
12
- type: Object,
13
- default: () => {
14
- }
15
- }
16
- }, {
17
- modelValue: { type: Boolean },
18
- modelModifiers: {}
19
- }),
20
- emits: /* @__PURE__ */ V(["refresh"], ["update:modelValue"]),
21
- setup(g, { emit: I }) {
22
- const { t: i } = G(), v = f();
23
- let t = A({
24
- requestId: Math.random() * 10 + "",
25
- updateMask: "note,userName,mobilePhone,provinceName,detailInfo,cityName"
26
- });
27
- const P = (e, r, o) => {
28
- r && (H(r) || o(new Error(i("orderUserAddress.mobilePhoneTrueRequired")))), o();
29
- }, $ = A({
30
- note: [
31
- {
32
- required: !0,
33
- message: i("orderUserAddress.noteRequired"),
34
- trigger: "change"
35
- }
36
- ],
37
- userName: [
38
- {
39
- required: !0,
40
- message: i("orderUserAddress.userNameRequired"),
41
- trigger: "change"
42
- }
43
- ],
44
- mobilePhone: [
45
- {
46
- validator: P,
47
- trigger: "blur"
48
- }
49
- ],
50
- detailInfo: [
51
- {
52
- required: !0,
53
- message: i("orderUserAddress.detailInfoRequired"),
54
- trigger: "change"
55
- }
56
- ],
57
- provinceName: [
58
- {
59
- required: !0,
60
- message: i("orderUserAddress.provinceNameRequired"),
61
- trigger: "change"
62
- }
63
- ]
64
- }), u = T(g, "modelValue"), b = g, N = I, M = Object.keys(b.entityKey), _ = f(M.length >= 1);
65
- _.value && h.findById(b.entityKey).then(({ data: e }) => {
66
- Object.assign(t, e), t.provinceName = e.cityName;
67
- });
68
- function k() {
69
- t.provinceName && B(t.provinceName).then((e) => {
70
- t.cityName = e;
71
- });
72
- }
73
- const c = f(/* @__PURE__ */ new Map());
74
- async function B(e) {
75
- if (!e)
76
- return "";
77
- if (c.value.has(e))
78
- return c.value.get(e) || e;
79
- try {
80
- const r = await C.findByCode({
81
- regionCode: e
82
- });
83
- if (r.data) {
84
- const o = F(r.data);
85
- return c.value.set(e, o), o;
86
- }
87
- return e;
88
- } catch {
89
- return c.value.set(e, e), e;
90
- }
91
- }
92
- function F(e) {
93
- const r = [];
94
- function o(s) {
95
- s && s.regionName && r.push(s.regionName), s && s.children && s.children.length > 0 && o(s.children[0]);
96
- }
97
- return o(e), r.join("");
98
- }
99
- const j = async () => {
100
- var e;
101
- await ((e = v.value) == null ? void 0 : e.validate((r) => {
102
- r && (_.value ? h.update(t).then((o) => {
103
- o.status === 200 && (w({
104
- message: i("common.submitSuccess"),
105
- type: "success"
106
- }), u.value && (u.value = !1), N("refresh", o.status === 200));
107
- }) : h.create(t).then((o) => {
108
- o.status === 200 && (w({
109
- message: i("common.submitSuccess"),
110
- type: "success"
111
- }), u.value && (u.value = !1), N("refresh", o.status === 200));
112
- }));
113
- }));
114
- };
115
- function y() {
116
- u.value && (u.value = !1);
117
- }
118
- return (e, r) => {
119
- const o = m("el-input"), s = m("el-form-item"), p = m("el-col"), E = m("el-row"), O = m("el-form"), U = m("el-button"), K = m("el-dialog");
120
- return J(), D(K, {
121
- modelValue: u.value,
122
- "onUpdate:modelValue": r[5] || (r[5] = (n) => u.value = n),
123
- onClose: y
124
- }, {
125
- footer: a(() => [
126
- L("div", W, [
127
- l(U, { onClick: y }, {
128
- default: a(() => [
129
- R(q(e.$t("common.cancel")), 1)
130
- ]),
131
- _: 1
132
- }),
133
- l(U, {
134
- type: "primary",
135
- onClick: j
136
- }, {
137
- default: a(() => [
138
- R(q(e.$t("common.confirm")), 1)
139
- ]),
140
- _: 1
141
- })
142
- ])
143
- ]),
144
- default: a(() => [
145
- l(O, {
146
- ref_key: "orderUserAddressFormRef",
147
- ref: v,
148
- model: d(t),
149
- "label-position": "top",
150
- rules: $
151
- }, {
152
- default: a(() => [
153
- l(E, { gutter: 20 }, {
154
- default: a(() => [
155
- l(p, { span: 24 }, {
156
- default: a(() => [
157
- l(s, {
158
- label: e.$t("orderUserAddress.note"),
159
- prop: "note"
160
- }, {
161
- default: a(() => [
162
- l(o, {
163
- modelValue: d(t).note,
164
- "onUpdate:modelValue": r[0] || (r[0] = (n) => d(t).note = n),
165
- placeholder: e.$t("orderUserAddress.noteRequired"),
166
- "show-word-limit": "",
167
- clearable: ""
168
- }, null, 8, ["modelValue", "placeholder"])
169
- ]),
170
- _: 1
171
- }, 8, ["label"])
172
- ]),
173
- _: 1
174
- }),
175
- l(p, { span: 24 }, {
176
- default: a(() => [
177
- l(s, {
178
- label: e.$t("orderUserAddress.userName"),
179
- prop: "userName"
180
- }, {
181
- default: a(() => [
182
- l(o, {
183
- modelValue: d(t).userName,
184
- "onUpdate:modelValue": r[1] || (r[1] = (n) => d(t).userName = n),
185
- placeholder: e.$t("orderUserAddress.userNameRequired"),
186
- "show-word-limit": "",
187
- clearable: ""
188
- }, null, 8, ["modelValue", "placeholder"])
189
- ]),
190
- _: 1
191
- }, 8, ["label"])
192
- ]),
193
- _: 1
194
- }),
195
- l(p, { span: 24 }, {
196
- default: a(() => [
197
- l(s, {
198
- label: e.$t("orderUserAddress.mobilePhone"),
199
- prop: "mobilePhone"
200
- }, {
201
- default: a(() => [
202
- l(o, {
203
- modelValue: d(t).mobilePhone,
204
- "onUpdate:modelValue": r[2] || (r[2] = (n) => d(t).mobilePhone = n),
205
- placeholder: e.$t("orderUserAddress.mobilePhoneRequired"),
206
- "show-word-limit": "",
207
- clearable: ""
208
- }, null, 8, ["modelValue", "placeholder"])
209
- ]),
210
- _: 1
211
- }, 8, ["label"])
212
- ]),
213
- _: 1
214
- }),
215
- l(p, { span: 24 }, {
216
- default: a(() => [
217
- l(s, {
218
- prop: "provinceName",
219
- label: d(i)("orderUserAddress.detailInfo"),
220
- class: "form-item"
221
- }, {
222
- default: a(() => [
223
- l(d(z), {
224
- modelValue: d(t).provinceName,
225
- "onUpdate:modelValue": r[3] || (r[3] = (n) => d(t).provinceName = n),
226
- placeholder: e.$t("orderUserAddress.provinceNameRequired"),
227
- clearable: "",
228
- onChange: k
229
- }, null, 8, ["modelValue", "placeholder"])
230
- ]),
231
- _: 1
232
- }, 8, ["label"])
233
- ]),
234
- _: 1
235
- }),
236
- l(p, { span: 24 }, {
237
- default: a(() => [
238
- l(s, { prop: "detailInfo" }, {
239
- default: a(() => [
240
- l(o, {
241
- modelValue: d(t).detailInfo,
242
- "onUpdate:modelValue": r[4] || (r[4] = (n) => d(t).detailInfo = n),
243
- placeholder: e.$t("orderUserAddress.detailInfoRequired"),
244
- "show-word-limit": "",
245
- clearable: "",
246
- type: "textarea"
247
- }, null, 8, ["modelValue", "placeholder"])
248
- ]),
249
- _: 1
250
- })
251
- ]),
252
- _: 1
253
- })
254
- ]),
255
- _: 1
256
- })
257
- ]),
258
- _: 1
259
- }, 8, ["model", "rules"])
260
- ]),
261
- _: 1
262
- }, 8, ["modelValue"]);
263
- };
264
- }
265
- }), te = /* @__PURE__ */ Q(X, [["__scopeId", "data-v-3de299e3"]]);
266
- export {
267
- te as default
268
- };
@@ -1,72 +0,0 @@
1
- var l = Object.defineProperty;
2
- var n = (r, i, a) => i in r ? l(r, i, { enumerable: !0, configurable: !0, writable: !0, value: a }) : r[i] = a;
3
- var e = (r, i, a) => n(r, typeof i != "symbol" ? i + "" : i, a);
4
- import { ref as y } from "vue";
5
- import { BizLayDict as T, CustomBizDict as o, EnumDict as p } from "jmash-core";
6
- import { goodsCategoryApi as P } from "xyvcard-paper-goods";
7
- import { EntryDict as d } from "jmash-dict";
8
- class t {
9
- }
10
- //模块
11
- e(t, "PAPER_DICT", "paper"), // 订单状态
12
- e(t, "ENUM_ORDER_STATUS", y([
13
- { key: "unpay", value: "待付款" },
14
- { key: "unpost", value: "订阅成功" }
15
- ])), // 订单状态常量
16
- e(t, "UNPAY", "unpay"), e(t, "UNPOST", "unpost"), // 发票票种
17
- e(t, "LQFP_FPPZ", "Fppz"), // 开票状态
18
- e(t, "INVOICE_STATUS", "xyvcard.order.protobuf.InvoiceStatus"), e(t, "UNINVOICE", "uninvoice"), e(t, "INVOICING", "invoicing"), e(t, "INVOICED", "invoiced"), // 企业
19
- e(t, "GMF_TYPE_ENT", "ent"), // 个人
20
- e(t, "GMF_TYPE_PER", "person"), // 证件类型
21
- e(t, "DICT_TYPE_ID", "TypeID"), // 抬头类型
22
- e(t, "GMF_TYPE_VALUES", y([
23
- { key: "ent", value: "企业" },
24
- { key: "person", value: "个人" }
25
- ])), // 订单模块
26
- e(t, "MODULE_ORDER", "order"), // 支付方式
27
- e(t, "PAYMENT_MODE", "xyvcard.order.protobuf.PaymentMode");
28
- function _(r, i, a) {
29
- return !Array.isArray(r) || r.length === 0 ? [] : r.map((s) => {
30
- let E = [];
31
- return Array.isArray(s.children) && s.children.length > 0 && (E = _(s.children, i, a)), {
32
- value: s[a],
33
- label: s[i],
34
- parentId: s.parentId,
35
- children: E
36
- };
37
- });
38
- }
39
- class I extends T {
40
- // 实现 useValues 方法
41
- useValues() {
42
- return new Promise((i, a) => {
43
- P.findTreeListApi(this.query).then((u) => {
44
- const { data: s } = u;
45
- this.values.length = 0, this.values.push(..._(s.results, "label", "value")), i(this.values);
46
- }).catch(a);
47
- });
48
- }
49
- }
50
- class c {
51
- }
52
- // 订单状态
53
- e(c, "orderStatusEnum", new o(
54
- t.ENUM_ORDER_STATUS,
55
- {}
56
- )), // 发票票种
57
- e(c, "fppzDict", new d(t.LQFP_FPPZ)), // 开票状态
58
- e(c, "invoiceStatusEnum", new p(
59
- t.PAPER_DICT,
60
- t.INVOICE_STATUS
61
- )), // 商品分类(发行频率)
62
- e(c, "goodsCategoryListBizLayDict", new I(
63
- {}
64
- )), e(c, "gmfTypeDict", new o(t.GMF_TYPE_VALUES, {})), // 支付方式
65
- e(c, "paymentMode", new p(
66
- t.MODULE_ORDER,
67
- t.PAYMENT_MODE
68
- ));
69
- export {
70
- t as C,
71
- c as D
72
- };
@@ -1,174 +0,0 @@
1
- import { defineComponent as k, ref as r, resolveComponent as d, createElementBlock as F, openBlock as $, createElementVNode as t, createVNode as o, withCtx as n, createTextVNode as a, toDisplayString as e } from "vue";
2
- import { useRouter as j, useRoute as z } from "vue-router";
3
- import { routerUtil as x } from "jmash-core";
4
- import y from "./list-BlV0irYa.mjs";
5
- import { l as C } from "./index-CokKesIL.mjs";
6
- import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
7
- const U = { class: "app-container" }, N = { class: "search-container" }, V = { class: "result" }, w = { class: "result-item" }, B = { class: "result-item-label" }, D = { class: "result-item" }, L = { class: "result-item-label" }, E = { class: "bottom-remark" }, R = { class: "remark-item" }, T = { class: "remark-item-label" }, A = /* @__PURE__ */ k({
8
- __name: "invoice",
9
- setup(O) {
10
- const c = j(), u = z(), l = r({}), h = u.query.orderCode, v = u.query.organId, p = r(""), m = r("");
11
- function _() {
12
- C.findOrderList({ orderNo: h, organId: v }).then(({ data: s }) => {
13
- l.value = s.results[0], p.value = s.results[0].fpUuid, m.value = s.results[0].fphm;
14
- });
15
- }
16
- _();
17
- function b() {
18
- x.closeTagView(u.fullPath, c, !1);
19
- }
20
- return (s, f) => {
21
- const g = d("el-button"), i = d("el-descriptions-item"), q = d("el-descriptions");
22
- return $(), F("div", U, [
23
- t("div", N, [
24
- o(g, {
25
- type: "primary",
26
- onClick: b
27
- }, {
28
- default: n(() => [
29
- a(e(s.$t("common.back")), 1)
30
- ]),
31
- _: 1
32
- }),
33
- o(q, {
34
- "label-align": "right",
35
- "label-width": "150px",
36
- column: 2,
37
- class: "custom-descriptions"
38
- }, {
39
- default: n(() => [
40
- o(i, {
41
- label: s.$t("lqfpFps.gmfmc")
42
- }, {
43
- default: n(() => [
44
- a(e(l.value.gmfmc), 1)
45
- ]),
46
- _: 1
47
- }, 8, ["label"]),
48
- o(i, {
49
- label: s.$t("lqfpFps.xsfmc")
50
- }, {
51
- default: n(() => [
52
- a(e(l.value.xsfmc), 1)
53
- ]),
54
- _: 1
55
- }, 8, ["label"]),
56
- o(i, {
57
- label: s.$t("lqfpFps.Infogmfmc")
58
- }, {
59
- default: n(() => [
60
- a(e(l.value.gmfnsrsbh), 1)
61
- ]),
62
- _: 1
63
- }, 8, ["label"]),
64
- o(i, {
65
- label: s.$t("lqfpFps.xsfnsrsbh")
66
- }, {
67
- default: n(() => [
68
- a(e(l.value.xsfnsrsbh), 1)
69
- ]),
70
- _: 1
71
- }, 8, ["label"]),
72
- o(i, {
73
- label: s.$t("lqfpFps.gmfdz")
74
- }, {
75
- default: n(() => [
76
- a(e(l.value.gmfdz), 1)
77
- ]),
78
- _: 1
79
- }, 8, ["label"]),
80
- o(i, {
81
- label: s.$t("lqfpFps.xsfdz")
82
- }, {
83
- default: n(() => [
84
- a(e(l.value.xsfdz), 1)
85
- ]),
86
- _: 1
87
- }, 8, ["label"]),
88
- o(i, {
89
- label: s.$t("lqfpFps.gmfdh")
90
- }, {
91
- default: n(() => [
92
- a(e(l.value.gmfdh), 1)
93
- ]),
94
- _: 1
95
- }, 8, ["label"]),
96
- o(i, {
97
- label: s.$t("lqfpFps.xsfdh")
98
- }, {
99
- default: n(() => [
100
- a(e(l.value.xsfdh), 1)
101
- ]),
102
- _: 1
103
- }, 8, ["label"]),
104
- o(i, {
105
- label: s.$t("lqfpFps.gmfkhh")
106
- }, {
107
- default: n(() => [
108
- a(e(l.value.gmfkhh), 1)
109
- ]),
110
- _: 1
111
- }, 8, ["label"]),
112
- o(i, {
113
- label: s.$t("lqfpFps.xsfkhh")
114
- }, {
115
- default: n(() => [
116
- a(e(l.value.xsfkhh), 1)
117
- ]),
118
- _: 1
119
- }, 8, ["label"]),
120
- o(i, {
121
- label: s.$t("lqfpFps.gmfzh")
122
- }, {
123
- default: n(() => [
124
- a(e(l.value.gmfzh), 1)
125
- ]),
126
- _: 1
127
- }, 8, ["label"]),
128
- o(i, {
129
- label: s.$t("lqfpFps.xsfzh")
130
- }, {
131
- default: n(() => [
132
- a(e(l.value.xsfzh), 1)
133
- ]),
134
- _: 1
135
- }, 8, ["label"])
136
- ]),
137
- _: 1
138
- }),
139
- o(y, {
140
- fpUuid: p.value,
141
- fphm: m.value,
142
- class: "list-container"
143
- }, null, 8, ["fpUuid", "fphm"]),
144
- t("div", V, [
145
- t("div", w, [
146
- t("div", null, e(l.value.jshjDx), 1),
147
- t("div", B, " 价税合计(大写):" + e(l.value.jshjDx), 1)
148
- ]),
149
- t("div", D, [
150
- t("div", null, e(l.value.jshj), 1),
151
- t("div", L, " 价税合计(小写): " + e(l.value.jshj), 1)
152
- ])
153
- ]),
154
- t("div", E, [
155
- t("div", null, "备注: " + e(l.value.bz), 1),
156
- t("div", R, [
157
- t("div", T, [
158
- f[0] || (f[0] = t("span", null, "支付渠道: ", -1)),
159
- a(" " + e(), 1)
160
- ]),
161
- t("div", null, [
162
- f[1] || (f[1] = t("span", null, "交易单号:", -1)),
163
- a(" " + e(l.value.jydh), 1)
164
- ])
165
- ])
166
- ])
167
- ])
168
- ]);
169
- };
170
- }
171
- }), M = /* @__PURE__ */ I(A, [["__scopeId", "data-v-978d2b4d"]]);
172
- export {
173
- M as default
174
- };