xyvcard-paper-buyer 0.0.21 → 0.0.23

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.
@@ -2,7 +2,7 @@ import { defineComponent as S, mergeModels as U, ref as f, reactive as A, useMod
2
2
  import { ElMessage as w } from "element-plus";
3
3
  import { JmashRegionTree as G, dictRegionApi as H } from "jmash-region";
4
4
  import { useI18n as L } from "vue-i18n";
5
- import { o as g } from "./index-CIhWvEaK.mjs";
5
+ import { o as g } from "./index-BP8zUjOw.mjs";
6
6
  import { _ as Q } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
7
7
  const W = { class: "dialog-footer" }, X = /* @__PURE__ */ S({
8
8
  __name: "edit",
@@ -2,7 +2,7 @@ import { defineComponent as I, mergeModels as _, ref as P, reactive as b, useMod
2
2
  import { ElMessage as B } from "element-plus";
3
3
  import { JmashRegionTree as F } from "jmash-region";
4
4
  import { useI18n as T } from "vue-i18n";
5
- import { o as D } from "./index-CIhWvEaK.mjs";
5
+ import { o as D } from "./index-BP8zUjOw.mjs";
6
6
  import { _ as S } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
7
7
  const j = { class: "dialog-footer" }, J = /* @__PURE__ */ I({
8
8
  __name: "edit",
@@ -0,0 +1,103 @@
1
+ import { useUserStore as r, clearEmpty as d, request as t } from "jmash-core";
2
+ class a {
3
+ getKey(e) {
4
+ return {
5
+ addressId: e.addressId
6
+ };
7
+ }
8
+ // 查询翻页信息用户地址
9
+ findPage(e) {
10
+ const s = r().user.tenant;
11
+ return d(e), t({
12
+ url: "/v1/front/order/order_user_address/page/" + s,
13
+ method: "get",
14
+ params: e
15
+ });
16
+ }
17
+ // 查询列表信息用户地址
18
+ findList(e) {
19
+ const s = r().user.tenant;
20
+ return d(e), t({
21
+ url: "/v1/front/order/order_user_address/list/" + s,
22
+ method: "get",
23
+ params: e
24
+ });
25
+ }
26
+ // 查询用户地址
27
+ findById(e) {
28
+ const s = r().user.tenant;
29
+ return d(e), t({
30
+ url: "/v1/front/order/order_user_address/id/" + s + "/" + e.addressId,
31
+ method: "get"
32
+ });
33
+ }
34
+ // 创建实体用户地址
35
+ create(e) {
36
+ return e.tenant = r().user.tenant, d(e), t({
37
+ url: "/v1/front/order/order_user_address",
38
+ method: "post",
39
+ data: e
40
+ });
41
+ }
42
+ // 修改实体用户地址
43
+ update(e) {
44
+ return e.tenant = r().user.tenant, d(e), t({
45
+ url: "/v1/front/order/order_user_address",
46
+ method: "patch",
47
+ data: e
48
+ });
49
+ }
50
+ // 上移下移
51
+ move(e, s) {
52
+ let n = { ...e };
53
+ return n.tenant = r().user.tenant, n.up = s, d(n), t({
54
+ url: "/v1/front/order/order_user_address/move",
55
+ method: "put",
56
+ data: n
57
+ });
58
+ }
59
+ // 删除用户地址
60
+ delete(e) {
61
+ return e.tenant = r().user.tenant, d(e), t({
62
+ url: "/v1/front/order/order_user_address/id",
63
+ method: "delete",
64
+ params: e
65
+ });
66
+ }
67
+ // 批量删除用户地址
68
+ batchDelete(e) {
69
+ const s = e.map((o) => o.addressId), n = {
70
+ tenant: r().user.tenant,
71
+ AddressId: s
72
+ };
73
+ return d(n), t({
74
+ url: "/v1/order/order_user_address/batch",
75
+ method: "put",
76
+ data: n
77
+ });
78
+ }
79
+ // 下载导入模板收报地址
80
+ downloadTemplate() {
81
+ const e = r().user.tenant;
82
+ return t({
83
+ url: "/v1/order/order_user_address/" + e + "/template.xlsx",
84
+ method: "get",
85
+ responseType: "blob",
86
+ params: {
87
+ tenant: r().user.tenant
88
+ }
89
+ });
90
+ }
91
+ // 导入收报地址
92
+ importExcel(e) {
93
+ return e.tenant = r().user.tenant, d(e), t({
94
+ url: "/v1/order/order_user_address/import",
95
+ method: "post",
96
+ data: e
97
+ });
98
+ }
99
+ }
100
+ const p = new a();
101
+ export {
102
+ p as o
103
+ };
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as Z, ref as U, reactive as A, onActivated as x, resolveComponent as a, resolveDirective as ee, createElementBlock as $, openBlock as u, createElementVNode as N, createVNode as l, createBlock as h, createCommentVNode as E, withCtx as t, withKeys as R, unref as r, createTextVNode as p, toDisplayString as m, withDirectives as g, isRef as T } from "vue";
2
2
  import { useTableHooks as oe } from "jmash-core";
3
3
  import { useI18n as te } from "vue-i18n";
4
- import { o as le } from "./index-CIhWvEaK.mjs";
5
- import ne from "./edit-BFspmCb_.mjs";
4
+ import { o as le } from "./index-BP8zUjOw.mjs";
5
+ import ne from "./edit-CCUAR44E.mjs";
6
6
  import { useRouter as re } from "vue-router";
7
7
  const ae = { class: "app-container" }, se = { class: "search-container" }, de = ["onClick"], ie = ["onClick"], ve = /* @__PURE__ */ Z({
8
8
  __name: "index",