xyvcard-asset 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (139) hide show
  1. package/README.md +52 -52
  2. package/dist/assign-BLa-fXcy.mjs +1626 -0
  3. package/dist/{edit-zFZfd8e1.mjs → edit-CCrekeeb.mjs} +1 -1
  4. package/dist/{edit-CE3u81Q0.mjs → edit-DmRG7fo0.mjs} +1 -1
  5. package/dist/edit-Dn-QMuy6.mjs +4 -0
  6. package/dist/edit-FdqpKRgF.mjs +294 -0
  7. package/dist/edit.vue_vue_type_script_setup_true_lang-CkBAP9Bk.mjs +547 -0
  8. package/dist/{edit.vue_vue_type_script_setup_true_lang-BdkCgqqE.mjs → edit.vue_vue_type_script_setup_true_lang-DSfByOkx.mjs} +146 -139
  9. package/dist/edit.vue_vue_type_script_setup_true_lang-IWUY0BmY.mjs +278 -0
  10. package/dist/index copy-Di49EjkG.mjs +76 -0
  11. package/dist/index-B4vUTwSW.mjs +171 -0
  12. package/dist/index-BK24yagy.mjs +1663 -0
  13. package/dist/index-BW-5IuVN.mjs +91 -0
  14. package/dist/index-BWwU9hSp.mjs +320 -0
  15. package/dist/index-BvKWLFdr.mjs +345 -0
  16. package/dist/index-BwbnYpa1.mjs +29 -0
  17. package/dist/index-ByVysHgI.mjs +4 -0
  18. package/dist/index-C5_f5Lce.mjs +213 -0
  19. package/dist/index-CgAq70-p.mjs +314 -0
  20. package/dist/index-DElPNxc7.mjs +398 -0
  21. package/dist/index-De4u-LEl.mjs +325 -0
  22. package/dist/index-DeBZxOsC.mjs +372 -0
  23. package/dist/index-Dyo7je0Z.mjs +38 -0
  24. package/dist/index-FUnFB7nG.mjs +61 -0
  25. package/dist/index-axEqTssj.mjs +378 -0
  26. package/dist/index-jOcS7tqC.mjs +311 -0
  27. package/dist/index-qQuyprvx.mjs +4 -0
  28. package/dist/index-xyCxQquE.mjs +432 -0
  29. package/dist/index.mjs +2752 -35
  30. package/dist/index.vue_vue_type_script_setup_true_lang-05kzecXV.mjs +274 -0
  31. package/dist/index.vue_vue_type_script_setup_true_lang-Bl9nmo3f.mjs +120 -0
  32. package/dist/index.vue_vue_type_script_setup_true_lang-BtIlu38i.mjs +105 -0
  33. package/dist/index/345/244/207/344/273/275-CaiMDP8J.mjs +319 -0
  34. package/dist/style.css +1 -1
  35. package/dts/src/api/asset/asset-asset/index.d.ts +10 -5
  36. package/dts/src/api/asset/asset-asset/types.d.ts +39 -23
  37. package/dts/src/api/asset/asset-asset-detail/index.d.ts +12 -0
  38. package/dts/src/api/asset/asset-asset-detail/types.d.ts +56 -0
  39. package/dts/src/api/asset/asset-depreciation-record/index.d.ts +11 -0
  40. package/dts/src/api/asset/asset-depreciation-record/types.d.ts +38 -0
  41. package/dts/src/api/asset/asset-inventory-record/index.d.ts +10 -0
  42. package/dts/src/api/asset/asset-inventory-record/types.d.ts +62 -0
  43. package/dts/src/api/asset/asset-service-appt-member/index.d.ts +1 -12
  44. package/dts/src/api/asset/asset-service-appt-member/types.d.ts +1 -44
  45. package/dts/src/api/asset/asset-service-appt-record/index.d.ts +1 -12
  46. package/dts/src/api/asset/asset-service-appt-record/types.d.ts +7 -68
  47. package/dts/src/api/asset/asset-site/index.d.ts +1 -2
  48. package/dts/src/api/asset/asset-site/types.d.ts +4 -14
  49. package/dts/src/api/asset/asset-site-service/index.d.ts +1 -2
  50. package/dts/src/api/asset/asset-site-service/types.d.ts +1 -0
  51. package/dts/src/api/asset/text/index.d.ts +0 -0
  52. package/dts/src/api/asset/text/types.d.ts +0 -0
  53. package/dts/src/api/dict.d.ts +1 -4
  54. package/dts/src/api/index.d.ts +2 -0
  55. package/dts/src/components/PeopleSelect/index.vue.d.ts +18 -0
  56. package/dts/src/components/Upload/ImageUpload.vue.d.ts +1 -1
  57. package/dts/{components/TMaps/index.vue.d.ts → src/components copy/PeopleSelect/index.vue.d.ts } +5 -7
  58. package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275/index copy 2.vue.d.ts" +34 -0
  59. package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275/index copy 22.vue.d.ts" +18 -0
  60. package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275/index copy.vue.d.ts" +34 -0
  61. 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" +34 -0
  62. 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" +18 -0
  63. package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275//345/217/214/351/200/211/346/213/251.vue.d.ts" +42 -0
  64. 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" +34 -0
  65. package/dts/{components/Upload/ImageUpload.vue.d.ts → src/components copy/Upload/ImageUpload.vue.d.ts } +1 -1
  66. package/dts/src/constant.d.ts +4 -1
  67. package/dts/src/index.d.ts +3 -1
  68. package/dts/src/lang/asset/zh-cn.d.ts +59 -1
  69. package/dts/src/router/page.d.ts +4 -0
  70. package/dts/src/utils/momentPlugin.d.ts +5 -0
  71. package/dts/{views/asset/asset-asset/edit.vue.d.ts → src/views/asset/asset-asset/assign.vue.d.ts} +12 -5
  72. package/dts/{views/asset/asset-site → src/views/asset/asset-asset-detail}/edit.vue.d.ts +5 -7
  73. package/dts/src/views/asset/asset-inventory-record/dialogSelect/index.vue.d.ts +6 -0
  74. package/dts/src/views/asset/asset-inventory-record/text/index copy.vue.d.ts +2 -0
  75. package/dts/src/views/asset/asset-inventory-record/text/index.vue.d.ts +2 -0
  76. package/dts/tsconfig.tsbuildinfo +1 -1
  77. package/package.json +7 -6
  78. package/dist/edit-Bo9bnbUP.mjs +0 -492
  79. package/dist/edit-DJFxVmvv.mjs +0 -624
  80. package/dist/edit-qp_2xtTZ.mjs +0 -242
  81. package/dist/edit.vue_vue_type_script_setup_true_lang-CekLyjO-.mjs +0 -322
  82. package/dist/edit.vue_vue_type_style_index_0_scoped_198fdb2f_lang-l0sNRNKZ.mjs +0 -1
  83. package/dist/index-Bf5U4Ucl.mjs +0 -369
  84. package/dist/index-Bh2imlN_.mjs +0 -149
  85. package/dist/index-CHNiaFZk.mjs +0 -291
  86. package/dist/index-CmlP_Rro.mjs +0 -332
  87. package/dist/index-Cqw_E8lr.mjs +0 -1269
  88. package/dist/index-DA_FS24d.mjs +0 -146
  89. package/dist/index-DKmGNvQl.mjs +0 -370
  90. package/dist/index-DLxpE9s5.mjs +0 -305
  91. package/dist/index-DWaL87j5.mjs +0 -89
  92. package/dist/index-jOnQLJaB.mjs +0 -416
  93. package/dist/index-pyyjj1xa.mjs +0 -187
  94. package/dist/index.vue_vue_type_script_setup_true_lang-C_itMCoU.mjs +0 -37
  95. package/dts/api/asset/asset-asset/index.d.ts +0 -20
  96. package/dts/api/asset/asset-asset/types.d.ts +0 -93
  97. package/dts/api/asset/asset-service-appt-member/index.d.ts +0 -20
  98. package/dts/api/asset/asset-service-appt-member/types.d.ts +0 -71
  99. package/dts/api/asset/asset-service-appt-record/index.d.ts +0 -20
  100. package/dts/api/asset/asset-service-appt-record/types.d.ts +0 -98
  101. package/dts/api/asset/asset-site/index.d.ts +0 -15
  102. package/dts/api/asset/asset-site/types.d.ts +0 -81
  103. package/dts/api/asset/asset-site-service/index.d.ts +0 -14
  104. package/dts/api/asset/asset-site-service/types.d.ts +0 -80
  105. package/dts/api/dict.d.ts +0 -22
  106. package/dts/api/index.d.ts +0 -14
  107. package/dts/api/org/union-org/index.d.ts +0 -14
  108. package/dts/api/org/union-org/types.d.ts +0 -49
  109. package/dts/components/EnumRadio/index.vue.d.ts +0 -18
  110. package/dts/components/EnumSelect/index.vue.d.ts +0 -18
  111. package/dts/constant.d.ts +0 -16
  112. package/dts/index.d.ts +0 -4
  113. package/dts/lang/asset/en.d.ts +0 -2
  114. package/dts/lang/asset/zh-cn.d.ts +0 -91
  115. package/dts/lang/index.d.ts +0 -1
  116. package/dts/main.d.ts +0 -4
  117. package/dts/permission.d.ts +0 -1
  118. package/dts/router/page.d.ts +0 -2
  119. package/dts/src/api/org/union-org/index.d.ts +0 -14
  120. package/dts/src/api/org/union-org/types.d.ts +0 -49
  121. package/dts/src/components/EnumRadio/index.vue.d.ts +0 -18
  122. package/dts/src/components/EnumSelect/index.vue.d.ts +0 -18
  123. package/dts/src/views/asset/asset-service-appt-member/edit.vue.d.ts +0 -22
  124. package/dts/src/views/asset/asset-service-appt-record/edit.vue.d.ts +0 -22
  125. package/dts/utils/common.d.ts +0 -51
  126. package/dts/utils/index.d.ts +0 -24
  127. package/dts/views/asset/asset-service-appt-member/edit.vue.d.ts +0 -22
  128. package/dts/views/asset/asset-service-appt-record/edit.vue.d.ts +0 -22
  129. package/dts/views/asset/asset-site-service/edit.vue.d.ts +0 -22
  130. /package/dts/{views/asset/asset-asset → src/components/deptPeopleSelect}/index.vue.d.ts +0 -0
  131. /package/dts/{components → src/components copy}/Upload/MultiUpload.vue.d.ts +0 -0
  132. /package/dts/src/{views/asset/asset-service-appt-member → components copy/deptPeopleSelect}/index.vue.d.ts +0 -0
  133. /package/dts/{views/asset/asset-service-appt-record → src/views/asset/asset-asset/info}/index.vue.d.ts +0 -0
  134. /package/dts/{views/asset/asset-service-appt-member → src/views/asset/asset-asset-detail}/index.vue.d.ts +0 -0
  135. /package/dts/{views/asset/asset-service-appt-record/info → src/views/asset/asset-depreciation-record}/index.vue.d.ts +0 -0
  136. /package/dts/{views/asset/asset-site-service → src/views/asset/asset-depreciation-record/info}/index.vue.d.ts +0 -0
  137. /package/dts/{views/asset/asset-site → src/views/asset/asset-inventory-record}/index.vue.d.ts +0 -0
  138. /package/dts/{App.vue.d.ts → src/views/asset/asset-inventory-record/index/345/244/207/344/273/275.vue.d.ts"} +0 -0
  139. /package/dts/{views/asset/asset-site → src/views/asset/asset-inventory-record}/info/index.vue.d.ts +0 -0
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-CekLyjO-.mjs";
1
+ import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-IWUY0BmY.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-BdkCgqqE.mjs";
1
+ import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-DSfByOkx.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -0,0 +1,4 @@
1
+ import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-CkBAP9Bk.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,294 @@
1
+ import { defineComponent as A, mergeModels as k, ref as D, useModel as F, reactive as L, onBeforeMount as O, resolveComponent as n, openBlock as C, createBlock as S, withCtx as t, createElementVNode as V, createVNode as e, createTextVNode as B, toDisplayString as h, unref as d } from "vue";
2
+ import { D as p, a as R, S as T } from "./index-BK24yagy.mjs";
3
+ import { ElMessage as G } from "element-plus";
4
+ import { useI18n as H } from "vue-i18n";
5
+ import { a as M } from "./index-FUnFB7nG.mjs";
6
+ import { _ as J } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
7
+ const Q = { class: "dialog-footer" }, W = /* @__PURE__ */ A({
8
+ __name: "edit",
9
+ props: /* @__PURE__ */ k({
10
+ entityKey: {
11
+ type: Object,
12
+ default: () => {
13
+ }
14
+ }
15
+ }, {
16
+ modelValue: { type: Boolean },
17
+ modelModifiers: {}
18
+ }),
19
+ emits: /* @__PURE__ */ k(["refresh"], ["update:modelValue"]),
20
+ setup(v, { emit: N }) {
21
+ const { t: c } = H();
22
+ p.unionOrgBizLayDict.useValues();
23
+ const f = D([]), g = D(), u = F(v, "modelValue"), U = N, b = v;
24
+ let o = D({
25
+ updateMask: "status,siteId"
26
+ });
27
+ const P = L({
28
+ // 使用场地
29
+ siteId: [
30
+ {
31
+ required: !0,
32
+ message: c("assetDetail.siteId"),
33
+ trigger: "blur"
34
+ }
35
+ ],
36
+ // 资产状态
37
+ status: [
38
+ {
39
+ required: !0,
40
+ message: c("assetDetail.status"),
41
+ trigger: "change"
42
+ }
43
+ ]
44
+ }), E = async () => {
45
+ var l;
46
+ await ((l = g.value) == null ? void 0 : l.validate((a) => {
47
+ a && M.update(o.value).then((m) => {
48
+ m.status === 200 && (G({
49
+ message: c("common.submitSuccess"),
50
+ type: "success"
51
+ }), u.value && (u.value = !1), U("refresh", m.status === 200));
52
+ });
53
+ }));
54
+ };
55
+ function w() {
56
+ u.value && (u.value = !1);
57
+ }
58
+ return O(() => {
59
+ b.entityKey && R.findById(b.entityKey).then(({ data: l }) => {
60
+ const a = l;
61
+ M.findById(b.entityKey).then(async ({ data: m }) => {
62
+ o.value = {
63
+ updateMask: o.value.updateMask,
64
+ requestId: Math.random() * 10 + "",
65
+ ...a,
66
+ ...m
67
+ };
68
+ const y = new T({ orgId: o.value.orgId });
69
+ f.value = await y.useValues();
70
+ });
71
+ });
72
+ }), (l, a) => {
73
+ const m = n("el-tooltip"), y = n("el-tree-select"), i = n("el-form-item"), r = n("el-col"), I = n("el-input"), K = n("el-date-picker"), _ = n("jmash-select"), j = n("el-row"), q = n("el-form"), $ = n("el-button"), z = n("el-dialog");
74
+ return C(), S(z, {
75
+ modelValue: u.value,
76
+ "onUpdate:modelValue": a[7] || (a[7] = (s) => u.value = s),
77
+ onClose: w
78
+ }, {
79
+ footer: t(() => [
80
+ V("div", Q, [
81
+ e($, { onClick: w }, {
82
+ default: t(() => [
83
+ B(h(l.$t("common.cancel")), 1)
84
+ ]),
85
+ _: 1
86
+ }),
87
+ e($, {
88
+ type: "primary",
89
+ onClick: E
90
+ }, {
91
+ default: t(() => [
92
+ B(h(l.$t("common.confirm")), 1)
93
+ ]),
94
+ _: 1
95
+ })
96
+ ])
97
+ ]),
98
+ default: t(() => [
99
+ e(q, {
100
+ ref_key: "assetDetailFormRef",
101
+ ref: g,
102
+ model: d(o),
103
+ "label-width": "120px",
104
+ rules: P
105
+ }, {
106
+ default: t(() => [
107
+ e(j, null, {
108
+ default: t(() => [
109
+ e(r, { span: 12 }, {
110
+ default: t(() => [
111
+ e(i, {
112
+ label: l.$t("assetDetail.orgId"),
113
+ prop: "orgId"
114
+ }, {
115
+ default: t(() => [
116
+ e(y, {
117
+ modelValue: d(o).orgId,
118
+ "onUpdate:modelValue": a[0] || (a[0] = (s) => d(o).orgId = s),
119
+ data: d(p).unionOrgBizLayDict.values,
120
+ filterable: "",
121
+ "check-strictly": "",
122
+ "render-after-expand": !1,
123
+ placeholder: l.$t("assetDetail.orgIdPlaceholder"),
124
+ style: { width: "100% !important" },
125
+ disabled: ""
126
+ }, {
127
+ default: t(({ data: s }) => [
128
+ V("span", null, [
129
+ e(m, {
130
+ class: "box-item",
131
+ effect: "light",
132
+ content: s.label,
133
+ placement: "top"
134
+ }, {
135
+ default: t(() => [
136
+ V("span", null, h(s.label), 1)
137
+ ]),
138
+ _: 2
139
+ }, 1032, ["content"])
140
+ ])
141
+ ]),
142
+ _: 1
143
+ }, 8, ["modelValue", "data", "placeholder"])
144
+ ]),
145
+ _: 1
146
+ }, 8, ["label"])
147
+ ]),
148
+ _: 1
149
+ }),
150
+ e(r, { span: 12 }, {
151
+ default: t(() => [
152
+ e(i, {
153
+ label: l.$t("assetDetail.assetName"),
154
+ prop: "assetName"
155
+ }, {
156
+ default: t(() => [
157
+ e(I, {
158
+ modelValue: d(o).name,
159
+ "onUpdate:modelValue": a[1] || (a[1] = (s) => d(o).name = s),
160
+ placeholder: l.$t("assetDetail.assetNamePlaceholder"),
161
+ "show-word-limit": "",
162
+ clearable: "",
163
+ style: { width: "100% !important" },
164
+ disabled: ""
165
+ }, null, 8, ["modelValue", "placeholder"])
166
+ ]),
167
+ _: 1
168
+ }, 8, ["label"])
169
+ ]),
170
+ _: 1
171
+ }),
172
+ e(r, { span: 12 }, {
173
+ default: t(() => [
174
+ e(i, {
175
+ label: l.$t("assetDetail.deviceCode"),
176
+ prop: "deviceCode"
177
+ }, {
178
+ default: t(() => [
179
+ e(I, {
180
+ modelValue: d(o).deviceCode,
181
+ "onUpdate:modelValue": a[2] || (a[2] = (s) => d(o).deviceCode = s),
182
+ placeholder: l.$t("assetDetail.deviceCodePlaceholder"),
183
+ "show-word-limit": "",
184
+ clearable: "",
185
+ style: { width: "100% !important" },
186
+ disabled: ""
187
+ }, null, 8, ["modelValue", "placeholder"])
188
+ ]),
189
+ _: 1
190
+ }, 8, ["label"])
191
+ ]),
192
+ _: 1
193
+ }),
194
+ e(r, { span: 12 }, {
195
+ default: t(() => [
196
+ e(i, {
197
+ label: l.$t("assetDetail.buyDate"),
198
+ prop: "buyDate"
199
+ }, {
200
+ default: t(() => [
201
+ e(K, {
202
+ modelValue: d(o).buyDate,
203
+ "onUpdate:modelValue": a[3] || (a[3] = (s) => d(o).buyDate = s),
204
+ type: "date",
205
+ placeholder: l.$t("assetDetail.buyDatePlaceholder"),
206
+ style: { width: "100% !important" },
207
+ disabled: ""
208
+ }, null, 8, ["modelValue", "placeholder"])
209
+ ]),
210
+ _: 1
211
+ }, 8, ["label"])
212
+ ]),
213
+ _: 1
214
+ }),
215
+ e(r, { span: 12 }, {
216
+ default: t(() => [
217
+ e(i, {
218
+ label: l.$t("assetDetail.assetSort"),
219
+ prop: "assetSort"
220
+ }, {
221
+ default: t(() => [
222
+ e(_, {
223
+ modelValue: d(o).assetSort,
224
+ "onUpdate:modelValue": a[4] || (a[4] = (s) => d(o).assetSort = s),
225
+ data: d(p).assetSortDictEnum.values,
226
+ placeholder: l.$t("assetDetail.assetSortPlaceholder"),
227
+ clearable: "",
228
+ style: { width: "100% !important" },
229
+ disabled: ""
230
+ }, null, 8, ["modelValue", "data", "placeholder"])
231
+ ]),
232
+ _: 1
233
+ }, 8, ["label"])
234
+ ]),
235
+ _: 1
236
+ }),
237
+ e(r, { span: 12 }, {
238
+ default: t(() => [
239
+ e(i, {
240
+ label: l.$t("assetDetail.siteName"),
241
+ prop: "siteId"
242
+ }, {
243
+ default: t(() => [
244
+ (C(), S(_, {
245
+ key: f.value.length,
246
+ modelValue: d(o).siteId,
247
+ "onUpdate:modelValue": a[5] || (a[5] = (s) => d(o).siteId = s),
248
+ filterable: "",
249
+ placeholder: l.$t("assetDetail.siteNamePlaceholder"),
250
+ data: f.value,
251
+ style: { width: "100% !important" }
252
+ }, null, 8, ["modelValue", "placeholder", "data"]))
253
+ ]),
254
+ _: 1
255
+ }, 8, ["label"])
256
+ ]),
257
+ _: 1
258
+ }),
259
+ e(r, { span: 12 }, {
260
+ default: t(() => [
261
+ e(i, {
262
+ label: l.$t("assetDetail.status"),
263
+ prop: "status"
264
+ }, {
265
+ default: t(() => [
266
+ e(_, {
267
+ modelValue: d(o).status,
268
+ "onUpdate:modelValue": a[6] || (a[6] = (s) => d(o).status = s),
269
+ data: d(p).assetsStatus.values,
270
+ placeholder: l.$t("assetDetail.status"),
271
+ clearable: "",
272
+ style: { width: "100% !important" }
273
+ }, null, 8, ["modelValue", "data", "placeholder"])
274
+ ]),
275
+ _: 1
276
+ }, 8, ["label"])
277
+ ]),
278
+ _: 1
279
+ })
280
+ ]),
281
+ _: 1
282
+ })
283
+ ]),
284
+ _: 1
285
+ }, 8, ["model", "rules"])
286
+ ]),
287
+ _: 1
288
+ }, 8, ["modelValue"]);
289
+ };
290
+ }
291
+ }), le = /* @__PURE__ */ J(W, [["__scopeId", "data-v-b36a82ba"]]);
292
+ export {
293
+ le as default
294
+ };