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
@@ -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,76 @@
1
+ import { defineComponent as v, ref as t, reactive as n, resolveComponent as p, openBlock as g, createBlock as C, unref as e, isRef as x, withCtx as s, createVNode as u, createElementVNode as V } from "vue";
2
+ import { _ as k } from "./index.vue_vue_type_script_setup_true_lang-Bl9nmo3f.mjs";
3
+ const B = /* @__PURE__ */ v({
4
+ __name: "index copy",
5
+ setup(D) {
6
+ const m = t(), c = t(), a = n({
7
+ people: [
8
+ {
9
+ required: !0,
10
+ message: "请选择人员",
11
+ trigger: "blur"
12
+ }
13
+ ]
14
+ }), o = n({
15
+ label: "选择人员",
16
+ prop: "people",
17
+ // 模糊查询人员
18
+ peopleTableData: [
19
+ // {
20
+ // key: "1",
21
+ // value: "张三",
22
+ // label: "张三",
23
+ // },
24
+ // {
25
+ // key: "2",
26
+ // value: "里斯",
27
+ // label: "里斯",
28
+ // },
29
+ // {
30
+ // key: "3",
31
+ // value: "王五",
32
+ // label: "王五",
33
+ // },
34
+ ]
35
+ });
36
+ function f() {
37
+ c.value.saveCommitteeChange(), l.value = !1;
38
+ }
39
+ const l = t(!0);
40
+ function d() {
41
+ l.value && (l.value = !1);
42
+ }
43
+ return (R, r) => {
44
+ const i = p("el-form"), _ = p("el-dialog");
45
+ return g(), C(_, {
46
+ modelValue: e(l),
47
+ "onUpdate:modelValue": r[0] || (r[0] = (b) => x(l) ? l.value = b : null),
48
+ onClose: d
49
+ }, {
50
+ default: s(() => [
51
+ u(i, {
52
+ ref: "FormRef",
53
+ model: e(m),
54
+ "label-width": "120px",
55
+ rules: e(a)
56
+ }, {
57
+ default: s(() => [
58
+ u(k, {
59
+ label: e(o).label,
60
+ prop: e(o).prop,
61
+ rules: e(a),
62
+ "people-table-data": e(o).peopleTableData
63
+ }, null, 8, ["label", "prop", "rules", "people-table-data"])
64
+ ]),
65
+ _: 1
66
+ }, 8, ["model", "rules"]),
67
+ V("button", { onClick: f }, "弹框按钮触发组件提交事件")
68
+ ]),
69
+ _: 1
70
+ }, 8, ["modelValue"]);
71
+ };
72
+ }
73
+ });
74
+ export {
75
+ B as default
76
+ };
@@ -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
+ };