xyvcard-asset 0.0.12 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. package/dist/{edit-BWhOgMw-.mjs → edit-BD4l4cZV.mjs} +1 -1
  2. package/dist/{edit-CZujIURb.mjs → edit-BIE_CJlr.mjs} +1 -1
  3. package/dist/{edit-DPssVAky.mjs → edit-DR-WgdT5.mjs} +1 -1
  4. package/dist/{edit.vue_vue_type_script_setup_true_lang-6j8bVbef.mjs → edit.vue_vue_type_script_setup_true_lang-CmaI0KId.mjs} +110 -98
  5. package/dist/edit.vue_vue_type_script_setup_true_lang-DoD-08Fj.mjs +446 -0
  6. package/dist/{edit.vue_vue_type_script_setup_true_lang-CjH6sYw4.mjs → edit.vue_vue_type_script_setup_true_lang-Dv2cJTUD.mjs} +0 -1
  7. package/dist/{index-Bz6eEggE.mjs → index-Bqv9_BYL.mjs} +1 -1
  8. package/dist/{index-DIKzzLQ2.mjs → index-BxeGNuSx.mjs} +55 -45
  9. package/dist/{index-4vX1fgzo.mjs → index-BzUXtBGU.mjs} +111 -108
  10. package/dist/{index-BxfpD3CM.mjs → index-C9FfnHCZ.mjs} +1 -1
  11. package/dist/{index-CDYXKnyU.mjs → index-CHaJu5hs.mjs} +90 -80
  12. package/dist/{index-C1U7BVdL.mjs → index-CJhQRbHt.mjs} +1 -1
  13. package/dist/index-CuDcmifl.mjs +165 -0
  14. package/dist/index.mjs +10 -7
  15. package/dts/api/asset/asset-site-service/types.d.ts +5 -0
  16. package/dts/lang/asset/zh-cn.d.ts +3 -0
  17. package/dts/src/api/asset/asset-asset/index.d.ts +3 -1
  18. package/dts/src/api/asset/asset-asset/types.d.ts +23 -17
  19. package/dts/src/api/asset/asset-asset-detail/index.d.ts +10 -2
  20. package/dts/src/api/asset/asset-asset-detail/types.d.ts +22 -13
  21. package/dts/src/api/asset/asset-inventory-record/index.d.ts +7 -2
  22. package/dts/src/api/asset/asset-inventory-record/types.d.ts +1 -0
  23. package/dts/src/api/asset/asset-service-appt-member/index.d.ts +12 -1
  24. package/dts/src/api/asset/asset-service-appt-member/types.d.ts +44 -1
  25. package/dts/src/api/asset/asset-service-appt-record/types.d.ts +1 -1
  26. package/dts/src/api/asset/asset-site/index.d.ts +2 -1
  27. package/dts/src/api/asset/asset-site-service/index.d.ts +2 -1
  28. package/dts/src/components/EnumRadio/index.vue.d.ts +18 -0
  29. package/dts/src/components/EnumSelect/index.vue.d.ts +18 -0
  30. package/dts/src/components/Upload/ImageUpload.vue.d.ts +1 -1
  31. package/dts/src/index.d.ts +1 -1
  32. package/dts/src/lang/asset/zh-cn.d.ts +6 -38
  33. package/dts/src/router/page.d.ts +0 -2
  34. package/dts/src/views/asset/{asset-asset-detail → asset-service-appt-member}/edit.vue.d.ts +7 -5
  35. package/dts/tsconfig.tsbuildinfo +1 -1
  36. package/package.json +3 -3
  37. package/dist/edit.vue_vue_type_script_setup_true_lang-CrrY9V5d.mjs +0 -394
  38. package/dist/index-_uK0Hvab.mjs +0 -91
  39. package/dts/components/PeopleSelectAsset/index.vue.d.ts +0 -18
  40. package/dts/components/deptPeopleSelectAsset/index.vue.d.ts +0 -14
  41. package/dts/src/api/asset/asset-depreciation-record/index.d.ts +0 -11
  42. package/dts/src/api/asset/asset-depreciation-record/types.d.ts +0 -38
  43. package/dts/src/api/asset/text/index.d.ts +0 -0
  44. package/dts/src/api/asset/text/types.d.ts +0 -0
  45. package/dts/src/components/PeopleSelect/index.vue.d.ts +0 -18
  46. package/dts/src/components/deptPeopleSelect/index.vue.d.ts +0 -2
  47. package/dts/src/components copy/PeopleSelect/index.vue.d.ts +0 -18
  48. package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275/index copy 2.vue.d.ts" +0 -34
  49. package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275/index copy 22.vue.d.ts" +0 -18
  50. package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275/index copy.vue.d.ts" +0 -34
  51. package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275/index/345/215/225/351/200/211/346/241/206/346/234/200/346/226/260.vue.d.ts" +0 -34
  52. package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275/tree/351/200/211/346/213/251/346/241/206/344/270/215/345/261/225/347/244/272/346/225/260/346/215/256,/344/270/213/346/226/271/351/242/204/350/247/210/346/225/260/346/215/256.vue.d.ts" +0 -18
  53. package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275//345/217/214/351/200/211/346/213/251.vue.d.ts" +0 -42
  54. package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275//351/200/211/346/213/251/344/272/272/345/221/230/index.vue.d.ts" +0 -34
  55. package/dts/src/components copy/Upload/ImageUpload.vue.d.ts +0 -38
  56. package/dts/src/components copy/Upload/MultiUpload.vue.d.ts +0 -24
  57. package/dts/src/views/asset/asset-asset-detail/index.vue.d.ts +0 -2
  58. package/dts/src/views/asset/asset-depreciation-record/index.vue.d.ts +0 -2
  59. package/dts/src/views/asset/asset-depreciation-record/info/index.vue.d.ts +0 -2
  60. package/dts/src/views/asset/asset-inventory-record/dialogSelect/index.vue.d.ts +0 -6
  61. package/dts/src/views/asset/asset-inventory-record/index/345/244/207/344/273/275.vue.d.ts +0 -2
  62. package/dts/src/views/asset/asset-inventory-record/info/index.vue.d.ts +0 -2
  63. package/dts/src/views/asset/asset-inventory-record/text/index copy.vue.d.ts +0 -2
  64. package/dts/src/views/asset/asset-inventory-record/text/index.vue.d.ts +0 -2
  65. package/dts/views/asset/asset-inventory-record/dialogSelect/index.vue.d.ts +0 -6
  66. package/dts/views/asset/asset-inventory-record/indexOld.vue.d.ts +0 -2
  67. package/dts/views/asset/asset-inventory-record/index/345/244/207/344/273/275.vue.d.ts +0 -2
  68. package/dts/views/asset/asset-inventory-record/text/index copy.vue.d.ts +0 -2
  69. package/dts/views/asset/asset-inventory-record/text/index.vue.d.ts +0 -2
  70. /package/dts/src/{components copy/deptPeopleSelect → views/asset/asset-service-appt-member}/index.vue.d.ts +0 -0
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-CrrY9V5d.mjs";
1
+ import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-DoD-08Fj.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-6j8bVbef.mjs";
1
+ import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-CmaI0KId.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-CjH6sYw4.mjs";
1
+ import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-Dv2cJTUD.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,10 +1,10 @@
1
- import { defineComponent as F, mergeModels as D, ref as q, reactive as R, useModel as K, resolveComponent as s, openBlock as N, createBlock as S, withCtx as a, createElementVNode as c, createVNode as e, createTextVNode as k, toDisplayString as M, unref as d } from "vue";
1
+ import { defineComponent as F, mergeModels as q, ref as D, reactive as R, useModel as K, resolveComponent as i, openBlock as N, createBlock as S, withCtx as o, createElementVNode as c, createVNode as e, createTextVNode as P, toDisplayString as I, unref as r } from "vue";
2
2
  import { s as b, D as z } from "./index-CGds22-2.mjs";
3
- import { ElMessage as I } from "element-plus";
4
- import { useI18n as E } from "vue-i18n";
5
- const A = /* @__PURE__ */ c("div", { class: "title-content" }, "场地信息", -1), L = /* @__PURE__ */ c("div", { class: "title-content" }, "管理员信息", -1), T = /* @__PURE__ */ c("span", { style: { color: "red", "font-size": "13px" } }, "注:此手机号作为盘点人员账号登录", -1), G = { class: "dialog-footer" }, X = /* @__PURE__ */ F({
3
+ import { ElMessage as M } from "element-plus";
4
+ import { useI18n as A } from "vue-i18n";
5
+ const L = /* @__PURE__ */ c("div", { class: "title-content" }, "场地信息", -1), T = /* @__PURE__ */ c("div", { class: "title-content" }, "管理员信息", -1), G = /* @__PURE__ */ c("span", { style: { color: "red", "font-size": "13px" } }, "注:此手机号作为盘点人员账号登录", -1), H = { class: "dialog-footer" }, Z = /* @__PURE__ */ F({
6
6
  __name: "edit",
7
- props: /* @__PURE__ */ D({
7
+ props: /* @__PURE__ */ q({
8
8
  entityKey: {
9
9
  type: Object,
10
10
  default: () => {
@@ -14,19 +14,30 @@ const A = /* @__PURE__ */ c("div", { class: "title-content" }, "场地信息", -
14
14
  modelValue: { type: Boolean },
15
15
  modelModifiers: {}
16
16
  }),
17
- emits: /* @__PURE__ */ D(["refresh"], ["update:modelValue"]),
18
- setup(g, { emit: P }) {
19
- const { t: p } = E(), _ = q();
20
- let t = R({
17
+ emits: /* @__PURE__ */ q(["refresh"], ["update:modelValue"]),
18
+ setup(g, { emit: k }) {
19
+ const { t: u } = A(), h = D();
20
+ let a = R({
21
21
  requestId: Math.random() * 10 + "",
22
22
  updateMask: "orgId,name,buildDate,area,address,manager,mobilePhone"
23
23
  });
24
- const U = R({
25
- // 面积
26
- area: [
24
+ const U = (l, t, s) => {
25
+ const n = /^1[3|4|5|6|7|8|9][0-9]\d{8}$/;
26
+ console.log(t), t ? n.test(t) ? s() : s(new Error(u("site.mobilePhoneRight"))) : s(new Error(u("site.mobilePhoneRequired")));
27
+ }, Y = R({
28
+ // 所属工会
29
+ orgId: [
27
30
  {
28
31
  required: !0,
29
- message: p("site.areaRequired"),
32
+ message: u("site.orgIdRequired"),
33
+ trigger: "blur"
34
+ }
35
+ ],
36
+ // 场地名称
37
+ name: [
38
+ {
39
+ required: !0,
40
+ message: u("site.nameRequired"),
30
41
  trigger: "blur"
31
42
  }
32
43
  ],
@@ -34,7 +45,7 @@ const A = /* @__PURE__ */ c("div", { class: "title-content" }, "场地信息", -
34
45
  manager: [
35
46
  {
36
47
  required: !0,
37
- message: p("site.managerRequired"),
48
+ message: u("site.managerRequired"),
38
49
  trigger: "blur"
39
50
  }
40
51
  ],
@@ -42,82 +53,83 @@ const A = /* @__PURE__ */ c("div", { class: "title-content" }, "场地信息", -
42
53
  mobilePhone: [
43
54
  {
44
55
  required: !0,
45
- message: p("site.mobilePhoneRequired"),
56
+ message: u("site.mobilePhoneRequired"),
46
57
  trigger: "blur"
47
- }
58
+ },
59
+ { validator: U, trigger: "blur" }
48
60
  ]
49
- }), n = K(g, "modelValue"), V = g, h = P, Y = Object.keys(V.entityKey), y = q(Y.length >= 1);
50
- y.value && b.findById(V.entityKey).then(({ data: l }) => {
51
- Object.assign(t, l);
61
+ }), m = K(g, "modelValue"), _ = g, V = k, C = Object.keys(_.entityKey), y = D(C.length >= 1);
62
+ y.value && b.findById(_.entityKey).then(({ data: l }) => {
63
+ Object.assign(a, l);
52
64
  });
53
- const C = async () => {
65
+ const B = async () => {
54
66
  var l;
55
- await ((l = _.value) == null ? void 0 : l.validate((o) => {
56
- o && (y.value ? b.update(t).then((i) => {
57
- i.status === 200 && (I({
58
- message: p("common.submitSuccess"),
67
+ await ((l = h.value) == null ? void 0 : l.validate((t) => {
68
+ t && (y.value ? b.update(a).then((s) => {
69
+ s.status === 200 && (M({
70
+ message: u("common.submitSuccess"),
59
71
  type: "success"
60
- }), n.value && (n.value = !1), h("refresh", i.status === 200));
61
- }) : b.create(t).then((i) => {
62
- i.status === 200 && (I({
63
- message: p("common.submitSuccess"),
72
+ }), m.value && (m.value = !1), V("refresh", s.status === 200));
73
+ }) : b.create(a).then((s) => {
74
+ s.status === 200 && (M({
75
+ message: u("common.submitSuccess"),
64
76
  type: "success"
65
- }), n.value && (n.value = !1), h("refresh", i.status === 200));
77
+ }), m.value && (m.value = !1), V("refresh", s.status === 200));
66
78
  }));
67
79
  }));
68
80
  };
69
81
  function v() {
70
- n.value && (n.value = !1);
82
+ m.value && (m.value = !1);
71
83
  }
72
- return (l, o) => {
73
- const i = s("el-tree-select"), u = s("el-form-item"), m = s("el-col"), f = s("el-input"), B = s("el-date-picker"), w = s("el-row"), O = s("el-form"), $ = s("el-button"), j = s("el-dialog");
84
+ return (l, t) => {
85
+ const s = i("el-tree-select"), n = i("el-form-item"), p = i("el-col"), f = i("el-input"), E = i("el-date-picker"), w = i("el-row"), O = i("el-form"), $ = i("el-button"), j = i("el-dialog");
74
86
  return N(), S(j, {
75
- modelValue: n.value,
76
- "onUpdate:modelValue": o[7] || (o[7] = (r) => n.value = r),
87
+ modelValue: m.value,
88
+ "onUpdate:modelValue": t[7] || (t[7] = (d) => m.value = d),
77
89
  onClose: v
78
90
  }, {
79
- footer: a(() => [
80
- c("div", G, [
91
+ footer: o(() => [
92
+ c("div", H, [
81
93
  e($, { onClick: v }, {
82
- default: a(() => [
83
- k(M(l.$t("common.cancel")), 1)
94
+ default: o(() => [
95
+ P(I(l.$t("common.cancel")), 1)
84
96
  ]),
85
97
  _: 1
86
98
  }),
87
99
  e($, {
88
100
  type: "primary",
89
- onClick: C
101
+ onClick: B
90
102
  }, {
91
- default: a(() => [
92
- k(M(l.$t("common.confirm")), 1)
103
+ default: o(() => [
104
+ P(I(l.$t("common.confirm")), 1)
93
105
  ]),
94
106
  _: 1
95
107
  })
96
108
  ])
97
109
  ]),
98
- default: a(() => [
99
- A,
110
+ default: o(() => [
111
+ L,
100
112
  e(O, {
101
113
  ref_key: "siteFormRef",
102
- ref: _,
103
- model: d(t),
114
+ ref: h,
115
+ model: r(a),
104
116
  "label-width": "120px",
105
- rules: U
117
+ rules: Y
106
118
  }, {
107
- default: a(() => [
119
+ default: o(() => [
108
120
  e(w, null, {
109
- default: a(() => [
110
- e(m, { span: 12 }, {
111
- default: a(() => [
112
- e(u, {
121
+ default: o(() => [
122
+ e(p, { span: 12 }, {
123
+ default: o(() => [
124
+ e(n, {
113
125
  label: l.$t("site.orgId"),
114
126
  prop: "orgId"
115
127
  }, {
116
- default: a(() => [
117
- e(i, {
118
- modelValue: d(t).orgId,
119
- "onUpdate:modelValue": o[0] || (o[0] = (r) => d(t).orgId = r),
120
- data: d(z).unionOrgBizLayDict.values,
128
+ default: o(() => [
129
+ e(s, {
130
+ modelValue: r(a).orgId,
131
+ "onUpdate:modelValue": t[0] || (t[0] = (d) => r(a).orgId = d),
132
+ data: r(z).unionOrgBizLayDict.values,
121
133
  filterable: "",
122
134
  "check-strictly": "",
123
135
  "render-after-expand": !1,
@@ -129,17 +141,17 @@ const A = /* @__PURE__ */ c("div", { class: "title-content" }, "场地信息", -
129
141
  ]),
130
142
  _: 1
131
143
  }),
132
- e(m, { span: 12 }, {
133
- default: a(() => [
134
- e(u, {
144
+ e(p, { span: 12 }, {
145
+ default: o(() => [
146
+ e(n, {
135
147
  label: l.$t("site.name"),
136
148
  prop: "name"
137
149
  }, {
138
- default: a(() => [
150
+ default: o(() => [
139
151
  e(f, {
140
- modelValue: d(t).name,
141
- "onUpdate:modelValue": o[1] || (o[1] = (r) => d(t).name = r),
142
- placeholder: l.$t("site.nameRequired"),
152
+ modelValue: r(a).name,
153
+ "onUpdate:modelValue": t[1] || (t[1] = (d) => r(a).name = d),
154
+ placeholder: l.$t("site.name"),
143
155
  "show-word-limit": "",
144
156
  clearable: ""
145
157
  }, null, 8, ["modelValue", "placeholder"])
@@ -149,16 +161,16 @@ const A = /* @__PURE__ */ c("div", { class: "title-content" }, "场地信息", -
149
161
  ]),
150
162
  _: 1
151
163
  }),
152
- e(m, { span: 12 }, {
153
- default: a(() => [
154
- e(u, {
164
+ e(p, { span: 12 }, {
165
+ default: o(() => [
166
+ e(n, {
155
167
  label: l.$t("site.buildDate"),
156
168
  prop: "buildDate"
157
169
  }, {
158
- default: a(() => [
159
- e(B, {
160
- modelValue: d(t).buildDate,
161
- "onUpdate:modelValue": o[2] || (o[2] = (r) => d(t).buildDate = r),
170
+ default: o(() => [
171
+ e(E, {
172
+ modelValue: r(a).buildDate,
173
+ "onUpdate:modelValue": t[2] || (t[2] = (d) => r(a).buildDate = d),
162
174
  type: "date",
163
175
  placeholder: l.$t("site.buildDateRequired"),
164
176
  "value-format": "YYYY-MM-DD",
@@ -171,16 +183,16 @@ const A = /* @__PURE__ */ c("div", { class: "title-content" }, "场地信息", -
171
183
  ]),
172
184
  _: 1
173
185
  }),
174
- e(m, { span: 12 }, {
175
- default: a(() => [
176
- e(u, {
186
+ e(p, { span: 12 }, {
187
+ default: o(() => [
188
+ e(n, {
177
189
  label: l.$t("site.area"),
178
190
  prop: "area"
179
191
  }, {
180
- default: a(() => [
192
+ default: o(() => [
181
193
  e(f, {
182
- modelValue: d(t).area,
183
- "onUpdate:modelValue": o[3] || (o[3] = (r) => d(t).area = r),
194
+ modelValue: r(a).area,
195
+ "onUpdate:modelValue": t[3] || (t[3] = (d) => r(a).area = d),
184
196
  placeholder: l.$t("site.areaRequired"),
185
197
  "show-word-limit": "",
186
198
  clearable: "",
@@ -193,16 +205,16 @@ const A = /* @__PURE__ */ c("div", { class: "title-content" }, "场地信息", -
193
205
  ]),
194
206
  _: 1
195
207
  }),
196
- e(m, { span: 12 }, {
197
- default: a(() => [
198
- e(u, {
208
+ e(p, { span: 12 }, {
209
+ default: o(() => [
210
+ e(n, {
199
211
  label: l.$t("site.address"),
200
212
  prop: "address"
201
213
  }, {
202
- default: a(() => [
214
+ default: o(() => [
203
215
  e(f, {
204
- modelValue: d(t).address,
205
- "onUpdate:modelValue": o[4] || (o[4] = (r) => d(t).address = r),
216
+ modelValue: r(a).address,
217
+ "onUpdate:modelValue": t[4] || (t[4] = (d) => r(a).address = d),
206
218
  placeholder: l.$t("site.addressRequired"),
207
219
  "show-word-limit": "",
208
220
  clearable: ""
@@ -216,19 +228,19 @@ const A = /* @__PURE__ */ c("div", { class: "title-content" }, "场地信息", -
216
228
  ]),
217
229
  _: 1
218
230
  }),
219
- L,
231
+ T,
220
232
  e(w, null, {
221
- default: a(() => [
222
- e(m, { span: 12 }, {
223
- default: a(() => [
224
- e(u, {
233
+ default: o(() => [
234
+ e(p, { span: 12 }, {
235
+ default: o(() => [
236
+ e(n, {
225
237
  label: l.$t("site.manager"),
226
238
  prop: "manager"
227
239
  }, {
228
- default: a(() => [
240
+ default: o(() => [
229
241
  e(f, {
230
- modelValue: d(t).manager,
231
- "onUpdate:modelValue": o[5] || (o[5] = (r) => d(t).manager = r),
242
+ modelValue: r(a).manager,
243
+ "onUpdate:modelValue": t[5] || (t[5] = (d) => r(a).manager = d),
232
244
  placeholder: l.$t("site.managerRequired"),
233
245
  "show-word-limit": "",
234
246
  clearable: ""
@@ -239,21 +251,21 @@ const A = /* @__PURE__ */ c("div", { class: "title-content" }, "场地信息", -
239
251
  ]),
240
252
  _: 1
241
253
  }),
242
- e(m, { span: 12 }, {
243
- default: a(() => [
244
- e(u, {
254
+ e(p, { span: 12 }, {
255
+ default: o(() => [
256
+ e(n, {
245
257
  label: l.$t("site.mobilePhone"),
246
258
  prop: "mobilePhone"
247
259
  }, {
248
- default: a(() => [
260
+ default: o(() => [
249
261
  e(f, {
250
- modelValue: d(t).mobilePhone,
251
- "onUpdate:modelValue": o[6] || (o[6] = (r) => d(t).mobilePhone = r),
262
+ modelValue: r(a).mobilePhone,
263
+ "onUpdate:modelValue": t[6] || (t[6] = (d) => r(a).mobilePhone = d),
252
264
  placeholder: l.$t("site.mobilePhoneRequired"),
253
265
  "show-word-limit": "",
254
266
  clearable: ""
255
267
  }, null, 8, ["modelValue", "placeholder"]),
256
- T
268
+ G
257
269
  ]),
258
270
  _: 1
259
271
  }, 8, ["label"])
@@ -273,5 +285,5 @@ const A = /* @__PURE__ */ c("div", { class: "title-content" }, "场地信息", -
273
285
  }
274
286
  });
275
287
  export {
276
- X as _
288
+ Z as _
277
289
  };