xyvcard-asset 0.0.8 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (152) hide show
  1. package/README.md +52 -52
  2. package/dist/assign-DzQUNp-Y.mjs +1626 -0
  3. package/dist/{edit-zFZfd8e1.mjs → edit-CCrekeeb.mjs} +1 -1
  4. package/dist/{edit-CE3u81Q0.mjs → edit-DdzPtYyH.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-BdkCgqqE.mjs → edit.vue_vue_type_script_setup_true_lang-BP4-GiBE.mjs} +152 -145
  8. package/dist/edit.vue_vue_type_script_setup_true_lang-CkBAP9Bk.mjs +547 -0
  9. package/dist/edit.vue_vue_type_script_setup_true_lang-IWUY0BmY.mjs +278 -0
  10. package/dist/index copy-CxTCJcvX.mjs +75 -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-C5_f5Lce.mjs +213 -0
  18. package/dist/index-CSMEsPcN.mjs +432 -0
  19. package/dist/index-CgAq70-p.mjs +314 -0
  20. package/dist/index-CugJCeed.mjs +373 -0
  21. package/dist/index-DElPNxc7.mjs +398 -0
  22. package/dist/index-De4u-LEl.mjs +325 -0
  23. package/dist/index-Dyo7je0Z.mjs +38 -0
  24. package/dist/index-FUnFB7nG.mjs +61 -0
  25. package/dist/index-GhvyIwc3.mjs +4 -0
  26. package/dist/index-axEqTssj.mjs +378 -0
  27. package/dist/index-jOcS7tqC.mjs +311 -0
  28. package/dist/index-pfeu6d82.mjs +4 -0
  29. package/dist/index.mjs +2753 -35
  30. package/dist/index.vue_vue_type_script_setup_true_lang-BhVtd4iX.mjs +110 -0
  31. package/dist/index.vue_vue_type_script_setup_true_lang-Dh1DZzIU.mjs +54 -0
  32. package/dist/index/345/244/207/344/273/275-BfKo5eBT.mjs +323 -0
  33. package/dist/style.css +1 -1
  34. package/dts/api/asset/asset-asset/index.d.ts +10 -5
  35. package/dts/api/asset/asset-asset/types.d.ts +39 -23
  36. package/dts/api/asset/asset-asset-detail/index.d.ts +12 -0
  37. package/dts/api/asset/asset-asset-detail/types.d.ts +56 -0
  38. package/dts/api/asset/asset-depreciation-record/index.d.ts +11 -0
  39. package/dts/api/asset/asset-depreciation-record/types.d.ts +38 -0
  40. package/dts/api/asset/asset-inventory-record/index.d.ts +10 -0
  41. package/dts/api/asset/asset-inventory-record/types.d.ts +62 -0
  42. package/dts/api/asset/asset-service-appt-member/index.d.ts +1 -12
  43. package/dts/api/asset/asset-service-appt-member/types.d.ts +1 -44
  44. package/dts/api/asset/asset-service-appt-record/index.d.ts +1 -12
  45. package/dts/api/asset/asset-service-appt-record/types.d.ts +7 -68
  46. package/dts/api/asset/asset-site/index.d.ts +1 -2
  47. package/dts/api/asset/asset-site/types.d.ts +4 -14
  48. package/dts/api/asset/asset-site-service/index.d.ts +1 -2
  49. package/dts/api/asset/asset-site-service/types.d.ts +1 -0
  50. package/dts/api/asset/text/index.d.ts +140 -0
  51. package/dts/api/asset/text/types.d.ts +179 -0
  52. package/dts/api/dict.d.ts +1 -4
  53. package/dts/api/index.d.ts +2 -0
  54. package/dts/components/{TMaps → PeopleSelectAsset}/index.vue.d.ts +5 -7
  55. package/dts/components/Upload/ImageUpload.vue.d.ts +1 -1
  56. package/dts/components/deptPeopleSelectAsset/index.vue.d.ts +14 -0
  57. package/dts/constant.d.ts +4 -1
  58. package/dts/index.d.ts +3 -1
  59. package/dts/lang/asset/zh-cn.d.ts +60 -1
  60. package/dts/router/page.d.ts +6 -0
  61. package/dts/src/api/asset/asset-asset/index.d.ts +10 -5
  62. package/dts/src/api/asset/asset-asset/types.d.ts +39 -23
  63. package/dts/src/api/asset/asset-asset-detail/index.d.ts +12 -0
  64. package/dts/src/api/asset/asset-asset-detail/types.d.ts +56 -0
  65. package/dts/src/api/asset/asset-depreciation-record/index.d.ts +11 -0
  66. package/dts/src/api/asset/asset-depreciation-record/types.d.ts +38 -0
  67. package/dts/src/api/asset/asset-inventory-record/index.d.ts +10 -0
  68. package/dts/src/api/asset/asset-inventory-record/types.d.ts +62 -0
  69. package/dts/src/api/asset/asset-service-appt-member/index.d.ts +1 -12
  70. package/dts/src/api/asset/asset-service-appt-member/types.d.ts +1 -44
  71. package/dts/src/api/asset/asset-service-appt-record/index.d.ts +1 -12
  72. package/dts/src/api/asset/asset-service-appt-record/types.d.ts +7 -68
  73. package/dts/src/api/asset/asset-site/index.d.ts +1 -2
  74. package/dts/src/api/asset/asset-site/types.d.ts +4 -14
  75. package/dts/src/api/asset/asset-site-service/index.d.ts +1 -2
  76. package/dts/src/api/asset/asset-site-service/types.d.ts +1 -0
  77. package/dts/src/api/asset/text/index.d.ts +0 -0
  78. package/dts/src/api/asset/text/types.d.ts +0 -0
  79. package/dts/src/api/dict.d.ts +1 -4
  80. package/dts/src/api/index.d.ts +2 -0
  81. package/dts/src/components/PeopleSelect/index.vue.d.ts +18 -0
  82. package/dts/src/components/Upload/ImageUpload.vue.d.ts +1 -1
  83. package/dts/src/components copy/PeopleSelect/index.vue.d.ts +18 -0
  84. package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275/index copy 2.vue.d.ts" +34 -0
  85. package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275/index copy 22.vue.d.ts" +18 -0
  86. package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275/index copy.vue.d.ts" +34 -0
  87. 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
  88. 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
  89. 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
  90. 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
  91. package/dts/src/components copy/Upload/ImageUpload.vue.d.ts +38 -0
  92. package/dts/src/components copy/Upload/MultiUpload.vue.d.ts +24 -0
  93. package/dts/src/constant.d.ts +4 -1
  94. package/dts/src/index.d.ts +3 -1
  95. package/dts/src/lang/asset/zh-cn.d.ts +59 -1
  96. package/dts/src/router/page.d.ts +4 -0
  97. package/dts/src/utils/momentPlugin.d.ts +5 -0
  98. package/dts/{views/asset/asset-service-appt-member/edit.vue.d.ts → src/views/asset/asset-asset/assign.vue.d.ts} +14 -7
  99. package/dts/src/views/asset/asset-asset/info/index.vue.d.ts +2 -0
  100. package/dts/src/views/asset/{asset-service-appt-member → asset-asset-detail}/edit.vue.d.ts +5 -7
  101. package/dts/src/views/asset/asset-asset-detail/index.vue.d.ts +2 -0
  102. package/dts/src/views/asset/asset-depreciation-record/index.vue.d.ts +2 -0
  103. package/dts/src/views/asset/asset-depreciation-record/info/index.vue.d.ts +2 -0
  104. package/dts/src/views/asset/asset-inventory-record/dialogSelect/index.vue.d.ts +6 -0
  105. package/dts/src/views/asset/asset-inventory-record/index.vue.d.ts +2 -0
  106. package/dts/src/views/asset/asset-inventory-record/index/345/244/207/344/273/275.vue.d.ts +2 -0
  107. package/dts/src/views/asset/asset-inventory-record/info/index.vue.d.ts +2 -0
  108. package/dts/src/views/asset/asset-inventory-record/text/index copy.vue.d.ts +2 -0
  109. package/dts/src/views/asset/asset-inventory-record/text/index.vue.d.ts +2 -0
  110. package/dts/tsconfig.tsbuildinfo +1 -1
  111. package/dts/utils/momentPlugin.d.ts +5 -0
  112. package/dts/views/asset/{asset-service-appt-record/edit.vue.d.ts → asset-asset/assign.vue.d.ts} +14 -7
  113. package/dts/views/asset/asset-asset/info/index.vue.d.ts +2 -0
  114. package/dts/{src/views/asset/asset-service-appt-record → views/asset/asset-asset-detail}/edit.vue.d.ts +5 -7
  115. package/dts/views/asset/asset-asset-detail/index.vue.d.ts +2 -0
  116. package/dts/views/asset/asset-depreciation-record/index.vue.d.ts +2 -0
  117. package/dts/views/asset/asset-depreciation-record/info/index.vue.d.ts +2 -0
  118. package/dts/views/asset/asset-inventory-record/dialogSelect/index.vue.d.ts +6 -0
  119. package/dts/views/asset/asset-inventory-record/index.vue.d.ts +2 -0
  120. package/dts/views/asset/asset-inventory-record/indexOld.vue.d.ts +2 -0
  121. package/dts/views/asset/asset-inventory-record/index/345/244/207/344/273/275.vue.d.ts +2 -0
  122. package/dts/views/asset/asset-inventory-record/info/index.vue.d.ts +2 -0
  123. package/dts/views/asset/asset-inventory-record/text/index copy.vue.d.ts +2 -0
  124. package/dts/views/asset/asset-inventory-record/text/index.vue.d.ts +2 -0
  125. package/package.json +7 -6
  126. package/dist/edit-Bo9bnbUP.mjs +0 -492
  127. package/dist/edit-DJFxVmvv.mjs +0 -624
  128. package/dist/edit-qp_2xtTZ.mjs +0 -242
  129. package/dist/edit.vue_vue_type_script_setup_true_lang-CekLyjO-.mjs +0 -322
  130. package/dist/edit.vue_vue_type_style_index_0_scoped_198fdb2f_lang-l0sNRNKZ.mjs +0 -1
  131. package/dist/index-Bf5U4Ucl.mjs +0 -369
  132. package/dist/index-Bh2imlN_.mjs +0 -149
  133. package/dist/index-CHNiaFZk.mjs +0 -291
  134. package/dist/index-CmlP_Rro.mjs +0 -332
  135. package/dist/index-Cqw_E8lr.mjs +0 -1269
  136. package/dist/index-DA_FS24d.mjs +0 -146
  137. package/dist/index-DKmGNvQl.mjs +0 -370
  138. package/dist/index-DLxpE9s5.mjs +0 -305
  139. package/dist/index-DWaL87j5.mjs +0 -89
  140. package/dist/index-jOnQLJaB.mjs +0 -416
  141. package/dist/index-pyyjj1xa.mjs +0 -187
  142. package/dist/index.vue_vue_type_script_setup_true_lang-C_itMCoU.mjs +0 -37
  143. package/dts/api/org/union-org/index.d.ts +0 -14
  144. package/dts/api/org/union-org/types.d.ts +0 -49
  145. package/dts/components/EnumRadio/index.vue.d.ts +0 -18
  146. package/dts/components/EnumSelect/index.vue.d.ts +0 -18
  147. package/dts/src/api/org/union-org/index.d.ts +0 -14
  148. package/dts/src/api/org/union-org/types.d.ts +0 -49
  149. package/dts/src/components/EnumRadio/index.vue.d.ts +0 -18
  150. package/dts/src/components/EnumSelect/index.vue.d.ts +0 -18
  151. /package/dts/{views/asset/asset-service-appt-member → src/components/deptPeopleSelect}/index.vue.d.ts +0 -0
  152. /package/dts/src/{views/asset/asset-service-appt-member → components copy/deptPeopleSelect}/index.vue.d.ts +0 -0
@@ -0,0 +1,278 @@
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";
2
+ import { s as b, D as z } from "./index-BK24yagy.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({
6
+ __name: "edit",
7
+ props: /* @__PURE__ */ D({
8
+ entityKey: {
9
+ type: Object,
10
+ default: () => {
11
+ }
12
+ }
13
+ }, {
14
+ modelValue: { type: Boolean },
15
+ modelModifiers: {}
16
+ }),
17
+ emits: /* @__PURE__ */ D(["refresh"], ["update:modelValue"]),
18
+ setup(g, { emit: P }) {
19
+ const { t: p } = E(), _ = q();
20
+ let t = R({
21
+ requestId: Math.random() * 10 + "",
22
+ updateMask: "orgId,name,buildDate,area,address,manager,mobilePhone"
23
+ });
24
+ const U = R({
25
+ // 面积
26
+ area: [
27
+ {
28
+ required: !0,
29
+ message: p("site.areaRequired"),
30
+ trigger: "blur"
31
+ }
32
+ ],
33
+ // 管理员姓名
34
+ manager: [
35
+ {
36
+ required: !0,
37
+ message: p("site.managerRequired"),
38
+ trigger: "blur"
39
+ }
40
+ ],
41
+ // 手机号
42
+ mobilePhone: [
43
+ {
44
+ required: !0,
45
+ message: p("site.mobilePhoneRequired"),
46
+ trigger: "blur"
47
+ }
48
+ ]
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);
52
+ });
53
+ const C = async () => {
54
+ 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"),
59
+ 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"),
64
+ type: "success"
65
+ }), n.value && (n.value = !1), h("refresh", i.status === 200));
66
+ }));
67
+ }));
68
+ };
69
+ function v() {
70
+ n.value && (n.value = !1);
71
+ }
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");
74
+ return N(), S(j, {
75
+ modelValue: n.value,
76
+ "onUpdate:modelValue": o[7] || (o[7] = (r) => n.value = r),
77
+ onClose: v
78
+ }, {
79
+ footer: a(() => [
80
+ c("div", G, [
81
+ e($, { onClick: v }, {
82
+ default: a(() => [
83
+ k(M(l.$t("common.cancel")), 1)
84
+ ]),
85
+ _: 1
86
+ }),
87
+ e($, {
88
+ type: "primary",
89
+ onClick: C
90
+ }, {
91
+ default: a(() => [
92
+ k(M(l.$t("common.confirm")), 1)
93
+ ]),
94
+ _: 1
95
+ })
96
+ ])
97
+ ]),
98
+ default: a(() => [
99
+ A,
100
+ e(O, {
101
+ ref_key: "siteFormRef",
102
+ ref: _,
103
+ model: d(t),
104
+ "label-width": "120px",
105
+ rules: U
106
+ }, {
107
+ default: a(() => [
108
+ e(w, null, {
109
+ default: a(() => [
110
+ e(m, { span: 12 }, {
111
+ default: a(() => [
112
+ e(u, {
113
+ label: l.$t("site.orgId"),
114
+ prop: "orgId"
115
+ }, {
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,
121
+ filterable: "",
122
+ "check-strictly": "",
123
+ "render-after-expand": !1,
124
+ placeholder: l.$t("site.orgIdRequired"),
125
+ style: { width: "330px" }
126
+ }, null, 8, ["modelValue", "data", "placeholder"])
127
+ ]),
128
+ _: 1
129
+ }, 8, ["label"])
130
+ ]),
131
+ _: 1
132
+ }),
133
+ e(m, { span: 12 }, {
134
+ default: a(() => [
135
+ e(u, {
136
+ label: l.$t("site.name"),
137
+ prop: "name"
138
+ }, {
139
+ default: a(() => [
140
+ e(f, {
141
+ modelValue: d(t).name,
142
+ "onUpdate:modelValue": o[1] || (o[1] = (r) => d(t).name = r),
143
+ placeholder: l.$t("site.nameRequired"),
144
+ "show-word-limit": "",
145
+ clearable: ""
146
+ }, null, 8, ["modelValue", "placeholder"])
147
+ ]),
148
+ _: 1
149
+ }, 8, ["label"])
150
+ ]),
151
+ _: 1
152
+ }),
153
+ e(m, { span: 12 }, {
154
+ default: a(() => [
155
+ e(u, {
156
+ label: l.$t("site.buildDate"),
157
+ prop: "buildDate"
158
+ }, {
159
+ default: a(() => [
160
+ e(B, {
161
+ modelValue: d(t).buildDate,
162
+ "onUpdate:modelValue": o[2] || (o[2] = (r) => d(t).buildDate = r),
163
+ type: "date",
164
+ placeholder: l.$t("site.buildDateRequired"),
165
+ "value-format": "YYYY-MM-DD",
166
+ format: "YYYY-MM-DD",
167
+ style: { width: "100%" }
168
+ }, null, 8, ["modelValue", "placeholder"])
169
+ ]),
170
+ _: 1
171
+ }, 8, ["label"])
172
+ ]),
173
+ _: 1
174
+ }),
175
+ e(m, { span: 12 }, {
176
+ default: a(() => [
177
+ e(u, {
178
+ label: l.$t("site.area"),
179
+ prop: "area"
180
+ }, {
181
+ default: a(() => [
182
+ e(f, {
183
+ modelValue: d(t).area,
184
+ "onUpdate:modelValue": o[3] || (o[3] = (r) => d(t).area = r),
185
+ placeholder: l.$t("site.areaRequired"),
186
+ "show-word-limit": "",
187
+ clearable: "",
188
+ type: "number",
189
+ min: "0"
190
+ }, null, 8, ["modelValue", "placeholder"])
191
+ ]),
192
+ _: 1
193
+ }, 8, ["label"])
194
+ ]),
195
+ _: 1
196
+ }),
197
+ e(m, { span: 12 }, {
198
+ default: a(() => [
199
+ e(u, {
200
+ label: l.$t("site.address"),
201
+ prop: "address"
202
+ }, {
203
+ default: a(() => [
204
+ e(f, {
205
+ modelValue: d(t).address,
206
+ "onUpdate:modelValue": o[4] || (o[4] = (r) => d(t).address = r),
207
+ placeholder: l.$t("site.addressRequired"),
208
+ "show-word-limit": "",
209
+ clearable: ""
210
+ }, null, 8, ["modelValue", "placeholder"])
211
+ ]),
212
+ _: 1
213
+ }, 8, ["label"])
214
+ ]),
215
+ _: 1
216
+ })
217
+ ]),
218
+ _: 1
219
+ }),
220
+ L,
221
+ e(w, null, {
222
+ default: a(() => [
223
+ e(m, { span: 12 }, {
224
+ default: a(() => [
225
+ e(u, {
226
+ label: l.$t("site.manager"),
227
+ prop: "manager"
228
+ }, {
229
+ default: a(() => [
230
+ e(f, {
231
+ modelValue: d(t).manager,
232
+ "onUpdate:modelValue": o[5] || (o[5] = (r) => d(t).manager = r),
233
+ placeholder: l.$t("site.managerRequired"),
234
+ "show-word-limit": "",
235
+ clearable: ""
236
+ }, null, 8, ["modelValue", "placeholder"])
237
+ ]),
238
+ _: 1
239
+ }, 8, ["label"])
240
+ ]),
241
+ _: 1
242
+ }),
243
+ e(m, { span: 12 }, {
244
+ default: a(() => [
245
+ e(u, {
246
+ label: l.$t("site.mobilePhone"),
247
+ prop: "mobilePhone"
248
+ }, {
249
+ default: a(() => [
250
+ e(f, {
251
+ modelValue: d(t).mobilePhone,
252
+ "onUpdate:modelValue": o[6] || (o[6] = (r) => d(t).mobilePhone = r),
253
+ placeholder: l.$t("site.mobilePhoneRequired"),
254
+ "show-word-limit": "",
255
+ clearable: ""
256
+ }, null, 8, ["modelValue", "placeholder"]),
257
+ T
258
+ ]),
259
+ _: 1
260
+ }, 8, ["label"])
261
+ ]),
262
+ _: 1
263
+ })
264
+ ]),
265
+ _: 1
266
+ })
267
+ ]),
268
+ _: 1
269
+ }, 8, ["model", "rules"])
270
+ ]),
271
+ _: 1
272
+ }, 8, ["modelValue"]);
273
+ };
274
+ }
275
+ });
276
+ export {
277
+ X as _
278
+ };
@@ -0,0 +1,75 @@
1
+ import { defineComponent as g, ref as t, reactive as r, resolveComponent as a, openBlock as C, createBlock as x, unref as e, isRef as V, withCtx as u, createVNode as s, createElementVNode as k } from "vue";
2
+ const h = /* @__PURE__ */ g({
3
+ __name: "index copy",
4
+ setup(D) {
5
+ const c = t(), m = t(), n = r({
6
+ people: [
7
+ {
8
+ required: !0,
9
+ message: "请选择人员",
10
+ trigger: "blur"
11
+ }
12
+ ]
13
+ }), o = r({
14
+ label: "选择人员",
15
+ prop: "people",
16
+ // 模糊查询人员
17
+ peopleTableData: [
18
+ // {
19
+ // key: "1",
20
+ // value: "张三",
21
+ // label: "张三",
22
+ // },
23
+ // {
24
+ // key: "2",
25
+ // value: "里斯",
26
+ // label: "里斯",
27
+ // },
28
+ // {
29
+ // key: "3",
30
+ // value: "王五",
31
+ // label: "王五",
32
+ // },
33
+ ]
34
+ });
35
+ function d() {
36
+ m.value.saveCommitteeChange(), l.value = !1;
37
+ }
38
+ const l = t(!0);
39
+ function f() {
40
+ l.value && (l.value = !1);
41
+ }
42
+ return (P, p) => {
43
+ const i = a("PeopleSelect"), _ = a("el-form"), b = a("el-dialog");
44
+ return C(), x(b, {
45
+ modelValue: e(l),
46
+ "onUpdate:modelValue": p[0] || (p[0] = (v) => V(l) ? l.value = v : null),
47
+ onClose: f
48
+ }, {
49
+ default: u(() => [
50
+ s(_, {
51
+ ref: "FormRef",
52
+ model: e(c),
53
+ "label-width": "120px",
54
+ rules: e(n)
55
+ }, {
56
+ default: u(() => [
57
+ s(i, {
58
+ label: e(o).label,
59
+ prop: e(o).prop,
60
+ rules: e(n),
61
+ "people-table-data": e(o).peopleTableData
62
+ }, null, 8, ["label", "prop", "rules", "people-table-data"])
63
+ ]),
64
+ _: 1
65
+ }, 8, ["model", "rules"]),
66
+ k("button", { onClick: d }, "弹框按钮触发组件提交事件")
67
+ ]),
68
+ _: 1
69
+ }, 8, ["modelValue"]);
70
+ };
71
+ }
72
+ });
73
+ export {
74
+ h as default
75
+ };
@@ -0,0 +1,171 @@
1
+ import { defineComponent as z, getCurrentInstance as q, ref as g, reactive as E, onBeforeMount as U, resolveComponent as r, openBlock as R, createElementBlock as Y, createVNode as o, withCtx as e, createTextVNode as d, toDisplayString as n, createElementVNode as i, unref as t, createBlock as L, isRef as M, createCommentVNode as A } from "vue";
2
+ import { useRouter as H, useRoute as x } from "vue-router";
3
+ import { D as k } from "./index-BK24yagy.mjs";
4
+ import { useTableHooks as O, routerUtil as F } from "jmash-core";
5
+ import { i as v } from "./index-Dyo7je0Z.mjs";
6
+ import { useI18n as G } from "vue-i18n";
7
+ const J = { class: "app-container" }, K = /* @__PURE__ */ i("div", { class: "title-content" }, "盘点信息", -1), Q = { class: "cell-item" }, W = { class: "cell-item" }, X = { class: "cell-item" }, Z = { class: "cell-item" }, ee = /* @__PURE__ */ i("div", { class: "title-content" }, "资产信息", -1), ie = /* @__PURE__ */ z({
8
+ __name: "index",
9
+ setup(te) {
10
+ const { t: C } = G(), { proxy: N } = q(), h = H(), m = x(), c = g({}), u = E({}), { tableHooks: I, multipleTableRef: T, listLoading: w, tableData: f, total: p } = O(C, v, c);
11
+ let D = g([
12
+ // 资产名称
13
+ {
14
+ label: "inventoryRecord.propertyName",
15
+ prop: "propertyName",
16
+ sortable: "custom",
17
+ isColumn: !0
18
+ },
19
+ // 资产明细编码
20
+ {
21
+ label: "inventoryRecord.deviceCode",
22
+ prop: "deviceCode",
23
+ sortable: "custom",
24
+ isColumn: !0
25
+ },
26
+ // 盘点结果
27
+ {
28
+ label: "inventoryRecord.inventoryStatus",
29
+ prop: "status",
30
+ sortable: "custom",
31
+ isColumn: !0,
32
+ slotName: "status",
33
+ columnType: "slot"
34
+ }
35
+ ]);
36
+ U(() => {
37
+ v.findById({ inventoryId: m.query.inventoryId }).then(({ data: l }) => {
38
+ Object.assign(u, l);
39
+ }), m.query.inventoryId ? v.findInfoAssetPage({
40
+ inventoryId: m.query.inventoryId
41
+ }).then(({ data: { results: l } }) => {
42
+ f.value = l;
43
+ }) : f.value = [];
44
+ });
45
+ function P() {
46
+ F.closeTagView(m.fullPath, h, !1);
47
+ }
48
+ return (l, a) => {
49
+ const S = r("el-button"), _ = r("el-descriptions-item"), V = r("el-descriptions"), y = r("el-col"), b = r("el-row"), $ = r("jmash-table"), B = r("jmash-pagination"), j = r("el-card");
50
+ return R(), Y("div", J, [
51
+ o(j, { shadow: "never" }, {
52
+ header: e(() => [
53
+ o(S, {
54
+ type: "primary",
55
+ onClick: P
56
+ }, {
57
+ default: e(() => [
58
+ d(n(l.$t("common.back")), 1)
59
+ ]),
60
+ _: 1
61
+ })
62
+ ]),
63
+ default: e(() => [
64
+ K,
65
+ o(b, null, {
66
+ default: e(() => [
67
+ o(y, { span: 24 }, {
68
+ default: e(() => [
69
+ o(V, {
70
+ class: "margin-top",
71
+ column: 2,
72
+ border: ""
73
+ }, {
74
+ default: e(() => [
75
+ o(_, null, {
76
+ label: e(() => [
77
+ i("div", Q, n(l.$t("inventoryRecord.siteName")), 1)
78
+ ]),
79
+ default: e(() => [
80
+ d(" " + n(t(u).siteName), 1)
81
+ ]),
82
+ _: 1
83
+ }),
84
+ o(_, null, {
85
+ label: e(() => [
86
+ i("div", W, n(l.$t("inventoryRecord.inventoryTime")), 1)
87
+ ]),
88
+ default: e(() => [
89
+ d(" " + n(t(u).inventoryTime ? t(N).$moment.formatDate(t(u).inventoryTime, "YYYY-MM-DD") : ""), 1)
90
+ ]),
91
+ _: 1
92
+ }),
93
+ o(_, null, {
94
+ label: e(() => [
95
+ i("span", null, [
96
+ i("div", X, n(l.$t("inventoryRecord.userName")), 1)
97
+ ])
98
+ ]),
99
+ default: e(() => [
100
+ d(" " + n(t(u).userName), 1)
101
+ ]),
102
+ _: 1
103
+ }),
104
+ o(_, null, {
105
+ label: e(() => [
106
+ i("div", Z, n(l.$t("inventoryRecord.inventoryStatus")), 1)
107
+ ]),
108
+ default: e(() => [
109
+ d(" " + n(t(k).inventoryResults.getEnumValue(
110
+ t(u).inventoryStatus
111
+ )), 1)
112
+ ]),
113
+ _: 1
114
+ })
115
+ ]),
116
+ _: 1
117
+ })
118
+ ]),
119
+ _: 1
120
+ })
121
+ ]),
122
+ _: 1
123
+ }),
124
+ ee,
125
+ o(b, null, {
126
+ default: e(() => [
127
+ o(y, { span: 24 }, {
128
+ footer: e(() => [
129
+ t(p) > 0 ? (R(), L(B, {
130
+ key: 0,
131
+ total: t(p),
132
+ "onUpdate:total": a[0] || (a[0] = (s) => M(p) ? p.value = s : null),
133
+ "current-page": t(c).curPage,
134
+ "onUpdate:currentPage": a[1] || (a[1] = (s) => t(c).curPage = s),
135
+ "page-size": t(c).pageSize,
136
+ "onUpdate:pageSize": a[2] || (a[2] = (s) => t(c).pageSize = s),
137
+ onPagination: a[3] || (a[3] = (s) => t(I).getList())
138
+ }, null, 8, ["total", "current-page", "page-size"])) : A("", !0)
139
+ ]),
140
+ default: e(() => [
141
+ o($, {
142
+ ref_key: "multipleTableRef",
143
+ ref: T,
144
+ class: "table-top",
145
+ "row-key": "inventoryId",
146
+ "is-selection": !1,
147
+ "list-loading": t(w),
148
+ data: t(f),
149
+ "table-label": t(D)
150
+ }, {
151
+ status: e((s) => [
152
+ i("span", null, n(t(k).inventoryResults.getEnumValue(s.data.row.status)), 1)
153
+ ]),
154
+ _: 1
155
+ }, 8, ["list-loading", "data", "table-label"])
156
+ ]),
157
+ _: 1
158
+ })
159
+ ]),
160
+ _: 1
161
+ })
162
+ ]),
163
+ _: 1
164
+ })
165
+ ]);
166
+ };
167
+ }
168
+ });
169
+ export {
170
+ ie as default
171
+ };