xyvcard-asset 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{edit-BWhOgMw-.mjs → edit-BD4l4cZV.mjs} +1 -1
- package/dist/{edit-CZujIURb.mjs → edit-BIE_CJlr.mjs} +1 -1
- package/dist/{edit-DPssVAky.mjs → edit-DR-WgdT5.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-6j8bVbef.mjs → edit.vue_vue_type_script_setup_true_lang-CmaI0KId.mjs} +110 -98
- package/dist/edit.vue_vue_type_script_setup_true_lang-DoD-08Fj.mjs +446 -0
- package/dist/{edit.vue_vue_type_script_setup_true_lang-CjH6sYw4.mjs → edit.vue_vue_type_script_setup_true_lang-Dv2cJTUD.mjs} +0 -1
- package/dist/{index-Bz6eEggE.mjs → index-Bqv9_BYL.mjs} +1 -1
- package/dist/{index-DIKzzLQ2.mjs → index-BxeGNuSx.mjs} +55 -45
- package/dist/{index-4vX1fgzo.mjs → index-BzUXtBGU.mjs} +111 -108
- package/dist/{index-BxfpD3CM.mjs → index-C9FfnHCZ.mjs} +1 -1
- package/dist/{index-CDYXKnyU.mjs → index-CHaJu5hs.mjs} +90 -80
- package/dist/{index-C1U7BVdL.mjs → index-CJhQRbHt.mjs} +1 -1
- package/dist/index-CuDcmifl.mjs +165 -0
- package/dist/index.mjs +10 -7
- package/dts/api/asset/asset-site-service/types.d.ts +5 -0
- package/dts/lang/asset/zh-cn.d.ts +3 -0
- package/dts/src/api/asset/asset-asset/index.d.ts +3 -1
- package/dts/src/api/asset/asset-asset/types.d.ts +23 -17
- package/dts/src/api/asset/asset-asset-detail/index.d.ts +10 -2
- package/dts/src/api/asset/asset-asset-detail/types.d.ts +22 -13
- package/dts/src/api/asset/asset-inventory-record/index.d.ts +7 -2
- package/dts/src/api/asset/asset-inventory-record/types.d.ts +1 -0
- package/dts/src/api/asset/asset-service-appt-member/index.d.ts +12 -1
- package/dts/src/api/asset/asset-service-appt-member/types.d.ts +44 -1
- package/dts/src/api/asset/asset-service-appt-record/types.d.ts +1 -1
- package/dts/src/api/asset/asset-site/index.d.ts +2 -1
- package/dts/src/api/asset/asset-site-service/index.d.ts +2 -1
- package/dts/src/components/EnumRadio/index.vue.d.ts +18 -0
- package/dts/src/components/EnumSelect/index.vue.d.ts +18 -0
- package/dts/src/components/Upload/ImageUpload.vue.d.ts +1 -1
- package/dts/src/index.d.ts +1 -1
- package/dts/src/lang/asset/zh-cn.d.ts +6 -38
- package/dts/src/router/page.d.ts +0 -2
- package/dts/src/views/asset/{asset-asset-detail → asset-service-appt-member}/edit.vue.d.ts +7 -5
- package/dts/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/dist/edit.vue_vue_type_script_setup_true_lang-CrrY9V5d.mjs +0 -394
- package/dist/index-_uK0Hvab.mjs +0 -91
- package/dts/components/PeopleSelectAsset/index.vue.d.ts +0 -18
- package/dts/components/deptPeopleSelectAsset/index.vue.d.ts +0 -14
- package/dts/src/api/asset/asset-depreciation-record/index.d.ts +0 -11
- package/dts/src/api/asset/asset-depreciation-record/types.d.ts +0 -38
- package/dts/src/api/asset/text/index.d.ts +0 -0
- package/dts/src/api/asset/text/types.d.ts +0 -0
- package/dts/src/components/PeopleSelect/index.vue.d.ts +0 -18
- package/dts/src/components/deptPeopleSelect/index.vue.d.ts +0 -2
- package/dts/src/components copy/PeopleSelect/index.vue.d.ts +0 -18
- package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275/index copy 2.vue.d.ts" +0 -34
- package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275/index copy 22.vue.d.ts" +0 -18
- package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275/index copy.vue.d.ts" +0 -34
- 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
- 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
- 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
- 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
- package/dts/src/components copy/Upload/ImageUpload.vue.d.ts +0 -38
- package/dts/src/components copy/Upload/MultiUpload.vue.d.ts +0 -24
- package/dts/src/views/asset/asset-asset-detail/index.vue.d.ts +0 -2
- package/dts/src/views/asset/asset-depreciation-record/index.vue.d.ts +0 -2
- package/dts/src/views/asset/asset-depreciation-record/info/index.vue.d.ts +0 -2
- package/dts/src/views/asset/asset-inventory-record/dialogSelect/index.vue.d.ts +0 -6
- package/dts/src/views/asset/asset-inventory-record/index/345/244/207/344/273/275.vue.d.ts +0 -2
- package/dts/src/views/asset/asset-inventory-record/info/index.vue.d.ts +0 -2
- package/dts/src/views/asset/asset-inventory-record/text/index copy.vue.d.ts +0 -2
- package/dts/src/views/asset/asset-inventory-record/text/index.vue.d.ts +0 -2
- package/dts/views/asset/asset-inventory-record/dialogSelect/index.vue.d.ts +0 -6
- package/dts/views/asset/asset-inventory-record/indexOld.vue.d.ts +0 -2
- package/dts/views/asset/asset-inventory-record/index/345/244/207/344/273/275.vue.d.ts +0 -2
- package/dts/views/asset/asset-inventory-record/text/index copy.vue.d.ts +0 -2
- package/dts/views/asset/asset-inventory-record/text/index.vue.d.ts +0 -2
- /package/dts/src/{components copy/deptPeopleSelect → views/asset/asset-service-appt-member}/index.vue.d.ts +0 -0
@@ -1,10 +1,10 @@
|
|
1
|
-
import { defineComponent as F, mergeModels as
|
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
|
4
|
-
import { useI18n as
|
5
|
-
const
|
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__ */
|
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__ */
|
18
|
-
setup(g, { emit:
|
19
|
-
const { t:
|
20
|
-
let
|
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 =
|
25
|
-
|
26
|
-
|
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:
|
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:
|
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:
|
56
|
+
message: u("site.mobilePhoneRequired"),
|
46
57
|
trigger: "blur"
|
47
|
-
}
|
58
|
+
},
|
59
|
+
{ validator: U, trigger: "blur" }
|
48
60
|
]
|
49
|
-
}),
|
50
|
-
y.value && b.findById(
|
51
|
-
Object.assign(
|
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
|
65
|
+
const B = async () => {
|
54
66
|
var l;
|
55
|
-
await ((l =
|
56
|
-
|
57
|
-
|
58
|
-
message:
|
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
|
-
}),
|
61
|
-
}) : b.create(
|
62
|
-
|
63
|
-
message:
|
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
|
-
}),
|
77
|
+
}), m.value && (m.value = !1), V("refresh", s.status === 200));
|
66
78
|
}));
|
67
79
|
}));
|
68
80
|
};
|
69
81
|
function v() {
|
70
|
-
|
82
|
+
m.value && (m.value = !1);
|
71
83
|
}
|
72
|
-
return (l,
|
73
|
-
const
|
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:
|
76
|
-
"onUpdate:modelValue":
|
87
|
+
modelValue: m.value,
|
88
|
+
"onUpdate:modelValue": t[7] || (t[7] = (d) => m.value = d),
|
77
89
|
onClose: v
|
78
90
|
}, {
|
79
|
-
footer:
|
80
|
-
c("div",
|
91
|
+
footer: o(() => [
|
92
|
+
c("div", H, [
|
81
93
|
e($, { onClick: v }, {
|
82
|
-
default:
|
83
|
-
|
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:
|
101
|
+
onClick: B
|
90
102
|
}, {
|
91
|
-
default:
|
92
|
-
|
103
|
+
default: o(() => [
|
104
|
+
P(I(l.$t("common.confirm")), 1)
|
93
105
|
]),
|
94
106
|
_: 1
|
95
107
|
})
|
96
108
|
])
|
97
109
|
]),
|
98
|
-
default:
|
99
|
-
|
110
|
+
default: o(() => [
|
111
|
+
L,
|
100
112
|
e(O, {
|
101
113
|
ref_key: "siteFormRef",
|
102
|
-
ref:
|
103
|
-
model:
|
114
|
+
ref: h,
|
115
|
+
model: r(a),
|
104
116
|
"label-width": "120px",
|
105
|
-
rules:
|
117
|
+
rules: Y
|
106
118
|
}, {
|
107
|
-
default:
|
119
|
+
default: o(() => [
|
108
120
|
e(w, null, {
|
109
|
-
default:
|
110
|
-
e(
|
111
|
-
default:
|
112
|
-
e(
|
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:
|
117
|
-
e(
|
118
|
-
modelValue:
|
119
|
-
"onUpdate:modelValue":
|
120
|
-
data:
|
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(
|
133
|
-
default:
|
134
|
-
e(
|
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:
|
150
|
+
default: o(() => [
|
139
151
|
e(f, {
|
140
|
-
modelValue:
|
141
|
-
"onUpdate:modelValue":
|
142
|
-
placeholder: l.$t("site.
|
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(
|
153
|
-
default:
|
154
|
-
e(
|
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:
|
159
|
-
e(
|
160
|
-
modelValue:
|
161
|
-
"onUpdate:modelValue":
|
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(
|
175
|
-
default:
|
176
|
-
e(
|
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:
|
192
|
+
default: o(() => [
|
181
193
|
e(f, {
|
182
|
-
modelValue:
|
183
|
-
"onUpdate:modelValue":
|
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(
|
197
|
-
default:
|
198
|
-
e(
|
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:
|
214
|
+
default: o(() => [
|
203
215
|
e(f, {
|
204
|
-
modelValue:
|
205
|
-
"onUpdate:modelValue":
|
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
|
-
|
231
|
+
T,
|
220
232
|
e(w, null, {
|
221
|
-
default:
|
222
|
-
e(
|
223
|
-
default:
|
224
|
-
e(
|
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:
|
240
|
+
default: o(() => [
|
229
241
|
e(f, {
|
230
|
-
modelValue:
|
231
|
-
"onUpdate:modelValue":
|
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(
|
243
|
-
default:
|
244
|
-
e(
|
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:
|
260
|
+
default: o(() => [
|
249
261
|
e(f, {
|
250
|
-
modelValue:
|
251
|
-
"onUpdate:modelValue":
|
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
|
-
|
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
|
-
|
288
|
+
Z as _
|
277
289
|
};
|