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.
- package/README.md +52 -52
- package/dist/assign-DzQUNp-Y.mjs +1626 -0
- package/dist/{edit-zFZfd8e1.mjs → edit-CCrekeeb.mjs} +1 -1
- package/dist/{edit-CE3u81Q0.mjs → edit-DdzPtYyH.mjs} +1 -1
- package/dist/edit-Dn-QMuy6.mjs +4 -0
- package/dist/edit-FdqpKRgF.mjs +294 -0
- 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
- package/dist/edit.vue_vue_type_script_setup_true_lang-CkBAP9Bk.mjs +547 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-IWUY0BmY.mjs +278 -0
- package/dist/index copy-CxTCJcvX.mjs +75 -0
- package/dist/index-B4vUTwSW.mjs +171 -0
- package/dist/index-BK24yagy.mjs +1663 -0
- package/dist/index-BW-5IuVN.mjs +91 -0
- package/dist/index-BWwU9hSp.mjs +320 -0
- package/dist/index-BvKWLFdr.mjs +345 -0
- package/dist/index-BwbnYpa1.mjs +29 -0
- package/dist/index-C5_f5Lce.mjs +213 -0
- package/dist/index-CSMEsPcN.mjs +432 -0
- package/dist/index-CgAq70-p.mjs +314 -0
- package/dist/index-CugJCeed.mjs +373 -0
- package/dist/index-DElPNxc7.mjs +398 -0
- package/dist/index-De4u-LEl.mjs +325 -0
- package/dist/index-Dyo7je0Z.mjs +38 -0
- package/dist/index-FUnFB7nG.mjs +61 -0
- package/dist/index-GhvyIwc3.mjs +4 -0
- package/dist/index-axEqTssj.mjs +378 -0
- package/dist/index-jOcS7tqC.mjs +311 -0
- package/dist/index-pfeu6d82.mjs +4 -0
- package/dist/index.mjs +2753 -35
- package/dist/index.vue_vue_type_script_setup_true_lang-BhVtd4iX.mjs +110 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-Dh1DZzIU.mjs +54 -0
- package/dist/index/345/244/207/344/273/275-BfKo5eBT.mjs +323 -0
- package/dist/style.css +1 -1
- package/dts/api/asset/asset-asset/index.d.ts +10 -5
- package/dts/api/asset/asset-asset/types.d.ts +39 -23
- package/dts/api/asset/asset-asset-detail/index.d.ts +12 -0
- package/dts/api/asset/asset-asset-detail/types.d.ts +56 -0
- package/dts/api/asset/asset-depreciation-record/index.d.ts +11 -0
- package/dts/api/asset/asset-depreciation-record/types.d.ts +38 -0
- package/dts/api/asset/asset-inventory-record/index.d.ts +10 -0
- package/dts/api/asset/asset-inventory-record/types.d.ts +62 -0
- package/dts/api/asset/asset-service-appt-member/index.d.ts +1 -12
- package/dts/api/asset/asset-service-appt-member/types.d.ts +1 -44
- package/dts/api/asset/asset-service-appt-record/index.d.ts +1 -12
- package/dts/api/asset/asset-service-appt-record/types.d.ts +7 -68
- package/dts/api/asset/asset-site/index.d.ts +1 -2
- package/dts/api/asset/asset-site/types.d.ts +4 -14
- package/dts/api/asset/asset-site-service/index.d.ts +1 -2
- package/dts/api/asset/asset-site-service/types.d.ts +1 -0
- package/dts/api/asset/text/index.d.ts +140 -0
- package/dts/api/asset/text/types.d.ts +179 -0
- package/dts/api/dict.d.ts +1 -4
- package/dts/api/index.d.ts +2 -0
- package/dts/components/{TMaps → PeopleSelectAsset}/index.vue.d.ts +5 -7
- package/dts/components/Upload/ImageUpload.vue.d.ts +1 -1
- package/dts/components/deptPeopleSelectAsset/index.vue.d.ts +14 -0
- package/dts/constant.d.ts +4 -1
- package/dts/index.d.ts +3 -1
- package/dts/lang/asset/zh-cn.d.ts +60 -1
- package/dts/router/page.d.ts +6 -0
- package/dts/src/api/asset/asset-asset/index.d.ts +10 -5
- package/dts/src/api/asset/asset-asset/types.d.ts +39 -23
- package/dts/src/api/asset/asset-asset-detail/index.d.ts +12 -0
- package/dts/src/api/asset/asset-asset-detail/types.d.ts +56 -0
- package/dts/src/api/asset/asset-depreciation-record/index.d.ts +11 -0
- package/dts/src/api/asset/asset-depreciation-record/types.d.ts +38 -0
- package/dts/src/api/asset/asset-inventory-record/index.d.ts +10 -0
- package/dts/src/api/asset/asset-inventory-record/types.d.ts +62 -0
- package/dts/src/api/asset/asset-service-appt-member/index.d.ts +1 -12
- package/dts/src/api/asset/asset-service-appt-member/types.d.ts +1 -44
- package/dts/src/api/asset/asset-service-appt-record/index.d.ts +1 -12
- package/dts/src/api/asset/asset-service-appt-record/types.d.ts +7 -68
- package/dts/src/api/asset/asset-site/index.d.ts +1 -2
- package/dts/src/api/asset/asset-site/types.d.ts +4 -14
- package/dts/src/api/asset/asset-site-service/index.d.ts +1 -2
- package/dts/src/api/asset/asset-site-service/types.d.ts +1 -0
- 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/api/dict.d.ts +1 -4
- package/dts/src/api/index.d.ts +2 -0
- package/dts/src/components/PeopleSelect/index.vue.d.ts +18 -0
- package/dts/src/components/Upload/ImageUpload.vue.d.ts +1 -1
- package/dts/src/components copy/PeopleSelect/index.vue.d.ts +18 -0
- package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275/index copy 2.vue.d.ts" +34 -0
- package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275/index copy 22.vue.d.ts" +18 -0
- package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275/index copy.vue.d.ts" +34 -0
- 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
- 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
- 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
- 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
- package/dts/src/components copy/Upload/ImageUpload.vue.d.ts +38 -0
- package/dts/src/components copy/Upload/MultiUpload.vue.d.ts +24 -0
- package/dts/src/constant.d.ts +4 -1
- package/dts/src/index.d.ts +3 -1
- package/dts/src/lang/asset/zh-cn.d.ts +59 -1
- package/dts/src/router/page.d.ts +4 -0
- package/dts/src/utils/momentPlugin.d.ts +5 -0
- package/dts/{views/asset/asset-service-appt-member/edit.vue.d.ts → src/views/asset/asset-asset/assign.vue.d.ts} +14 -7
- package/dts/src/views/asset/asset-asset/info/index.vue.d.ts +2 -0
- package/dts/src/views/asset/{asset-service-appt-member → asset-asset-detail}/edit.vue.d.ts +5 -7
- package/dts/src/views/asset/asset-asset-detail/index.vue.d.ts +2 -0
- package/dts/src/views/asset/asset-depreciation-record/index.vue.d.ts +2 -0
- package/dts/src/views/asset/asset-depreciation-record/info/index.vue.d.ts +2 -0
- package/dts/src/views/asset/asset-inventory-record/dialogSelect/index.vue.d.ts +6 -0
- package/dts/src/views/asset/asset-inventory-record/index.vue.d.ts +2 -0
- package/dts/src/views/asset/asset-inventory-record/index/345/244/207/344/273/275.vue.d.ts +2 -0
- package/dts/src/views/asset/asset-inventory-record/info/index.vue.d.ts +2 -0
- package/dts/src/views/asset/asset-inventory-record/text/index copy.vue.d.ts +2 -0
- package/dts/src/views/asset/asset-inventory-record/text/index.vue.d.ts +2 -0
- package/dts/tsconfig.tsbuildinfo +1 -1
- package/dts/utils/momentPlugin.d.ts +5 -0
- package/dts/views/asset/{asset-service-appt-record/edit.vue.d.ts → asset-asset/assign.vue.d.ts} +14 -7
- package/dts/views/asset/asset-asset/info/index.vue.d.ts +2 -0
- package/dts/{src/views/asset/asset-service-appt-record → views/asset/asset-asset-detail}/edit.vue.d.ts +5 -7
- package/dts/views/asset/asset-asset-detail/index.vue.d.ts +2 -0
- package/dts/views/asset/asset-depreciation-record/index.vue.d.ts +2 -0
- package/dts/views/asset/asset-depreciation-record/info/index.vue.d.ts +2 -0
- package/dts/views/asset/asset-inventory-record/dialogSelect/index.vue.d.ts +6 -0
- package/dts/views/asset/asset-inventory-record/index.vue.d.ts +2 -0
- package/dts/views/asset/asset-inventory-record/indexOld.vue.d.ts +2 -0
- package/dts/views/asset/asset-inventory-record/index/345/244/207/344/273/275.vue.d.ts +2 -0
- package/dts/views/asset/asset-inventory-record/info/index.vue.d.ts +2 -0
- package/dts/views/asset/asset-inventory-record/text/index copy.vue.d.ts +2 -0
- package/dts/views/asset/asset-inventory-record/text/index.vue.d.ts +2 -0
- package/package.json +7 -6
- package/dist/edit-Bo9bnbUP.mjs +0 -492
- package/dist/edit-DJFxVmvv.mjs +0 -624
- package/dist/edit-qp_2xtTZ.mjs +0 -242
- package/dist/edit.vue_vue_type_script_setup_true_lang-CekLyjO-.mjs +0 -322
- package/dist/edit.vue_vue_type_style_index_0_scoped_198fdb2f_lang-l0sNRNKZ.mjs +0 -1
- package/dist/index-Bf5U4Ucl.mjs +0 -369
- package/dist/index-Bh2imlN_.mjs +0 -149
- package/dist/index-CHNiaFZk.mjs +0 -291
- package/dist/index-CmlP_Rro.mjs +0 -332
- package/dist/index-Cqw_E8lr.mjs +0 -1269
- package/dist/index-DA_FS24d.mjs +0 -146
- package/dist/index-DKmGNvQl.mjs +0 -370
- package/dist/index-DLxpE9s5.mjs +0 -305
- package/dist/index-DWaL87j5.mjs +0 -89
- package/dist/index-jOnQLJaB.mjs +0 -416
- package/dist/index-pyyjj1xa.mjs +0 -187
- package/dist/index.vue_vue_type_script_setup_true_lang-C_itMCoU.mjs +0 -37
- package/dts/api/org/union-org/index.d.ts +0 -14
- package/dts/api/org/union-org/types.d.ts +0 -49
- package/dts/components/EnumRadio/index.vue.d.ts +0 -18
- package/dts/components/EnumSelect/index.vue.d.ts +0 -18
- package/dts/src/api/org/union-org/index.d.ts +0 -14
- package/dts/src/api/org/union-org/types.d.ts +0 -49
- package/dts/src/components/EnumRadio/index.vue.d.ts +0 -18
- package/dts/src/components/EnumSelect/index.vue.d.ts +0 -18
- /package/dts/{views/asset/asset-service-appt-member → src/components/deptPeopleSelect}/index.vue.d.ts +0 -0
- /package/dts/src/{views/asset/asset-service-appt-member → components copy/deptPeopleSelect}/index.vue.d.ts +0 -0
package/dist/edit-qp_2xtTZ.mjs
DELETED
@@ -1,242 +0,0 @@
|
|
1
|
-
import { _ as S } from "./index.vue_vue_type_script_setup_true_lang-C_itMCoU.mjs";
|
2
|
-
import { defineComponent as F, mergeModels as V, ref as y, reactive as A, useModel as K, resolveComponent as p, openBlock as O, createBlock as D, withCtx as l, createElementVNode as E, createVNode as e, createTextVNode as I, toDisplayString as w, unref as m } from "vue";
|
3
|
-
import { ElMessage as $ } from "element-plus";
|
4
|
-
import { useI18n as R } from "vue-i18n";
|
5
|
-
import { s as c } from "./index-Bh2imlN_.mjs";
|
6
|
-
import "./edit.vue_vue_type_style_index_0_scoped_198fdb2f_lang-l0sNRNKZ.mjs";
|
7
|
-
import { _ as z } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
8
|
-
const G = { class: "dialog-footer" }, H = /* @__PURE__ */ F({
|
9
|
-
__name: "edit",
|
10
|
-
props: /* @__PURE__ */ V({
|
11
|
-
entityKey: {
|
12
|
-
type: Object,
|
13
|
-
default: () => {
|
14
|
-
}
|
15
|
-
}
|
16
|
-
}, {
|
17
|
-
modelValue: { type: Boolean },
|
18
|
-
modelModifiers: {}
|
19
|
-
}),
|
20
|
-
emits: /* @__PURE__ */ V(["refresh"], ["update:modelValue"]),
|
21
|
-
setup(f, { emit: N }) {
|
22
|
-
const { t: u } = R(), b = y();
|
23
|
-
let o = A({
|
24
|
-
requestId: Math.random() * 10 + "",
|
25
|
-
updateMask: ""
|
26
|
-
});
|
27
|
-
const k = A({
|
28
|
-
recordId: [
|
29
|
-
{
|
30
|
-
required: !0,
|
31
|
-
message: u("serviceApptMember.recordId"),
|
32
|
-
trigger: "change"
|
33
|
-
}
|
34
|
-
],
|
35
|
-
memberId: [
|
36
|
-
{
|
37
|
-
required: !0,
|
38
|
-
message: u("serviceApptMember.memberId"),
|
39
|
-
trigger: "change"
|
40
|
-
}
|
41
|
-
],
|
42
|
-
realName: [
|
43
|
-
{
|
44
|
-
required: !0,
|
45
|
-
message: u("serviceApptMember.realName"),
|
46
|
-
trigger: "change"
|
47
|
-
}
|
48
|
-
],
|
49
|
-
status: [
|
50
|
-
{
|
51
|
-
required: !0,
|
52
|
-
message: u("serviceApptMember.status"),
|
53
|
-
trigger: "change"
|
54
|
-
}
|
55
|
-
],
|
56
|
-
statusTime: [
|
57
|
-
{
|
58
|
-
required: !0,
|
59
|
-
message: u("serviceApptMember.statusTime"),
|
60
|
-
trigger: "change"
|
61
|
-
}
|
62
|
-
]
|
63
|
-
}), d = K(f, "modelValue"), g = f, v = N, T = Object.keys(g.entityKey), _ = y(T.length >= 1);
|
64
|
-
_.value && c.findById(g.entityKey).then(({ data: t }) => {
|
65
|
-
Object.assign(o, t);
|
66
|
-
});
|
67
|
-
const U = async () => {
|
68
|
-
var t;
|
69
|
-
await ((t = b.value) == null ? void 0 : t.validate((a) => {
|
70
|
-
a && (_.value ? c.update(o).then((r) => {
|
71
|
-
console.log(r), r.status === 200 && ($({
|
72
|
-
message: u("common.submitSuccess"),
|
73
|
-
type: "success"
|
74
|
-
}), d.value && (d.value = !1), v("refresh", r.status === 200));
|
75
|
-
}) : c.create(o).then((r) => {
|
76
|
-
console.log(r), r.status === 200 && ($({
|
77
|
-
message: u("common.submitSuccess"),
|
78
|
-
type: "success"
|
79
|
-
}), d.value && (d.value = !1), v("refresh", r.status === 200));
|
80
|
-
}));
|
81
|
-
}));
|
82
|
-
};
|
83
|
-
function h() {
|
84
|
-
d.value && (d.value = !1);
|
85
|
-
}
|
86
|
-
return (t, a) => {
|
87
|
-
const r = p("el-input"), n = p("el-form-item"), i = p("el-col"), q = S, C = p("el-row"), j = p("el-form"), M = p("el-button"), B = p("el-dialog");
|
88
|
-
return O(), D(B, {
|
89
|
-
modelValue: d.value,
|
90
|
-
"onUpdate:modelValue": a[5] || (a[5] = (s) => d.value = s),
|
91
|
-
onClose: h
|
92
|
-
}, {
|
93
|
-
footer: l(() => [
|
94
|
-
E("div", G, [
|
95
|
-
e(M, { onClick: h }, {
|
96
|
-
default: l(() => [
|
97
|
-
I(w(t.$t("common.cancel")), 1)
|
98
|
-
]),
|
99
|
-
_: 1
|
100
|
-
}),
|
101
|
-
e(M, {
|
102
|
-
type: "primary",
|
103
|
-
onClick: U
|
104
|
-
}, {
|
105
|
-
default: l(() => [
|
106
|
-
I(w(t.$t("common.confirm")), 1)
|
107
|
-
]),
|
108
|
-
_: 1
|
109
|
-
})
|
110
|
-
])
|
111
|
-
]),
|
112
|
-
default: l(() => [
|
113
|
-
e(j, {
|
114
|
-
ref_key: "serviceApptMemberFormRef",
|
115
|
-
ref: b,
|
116
|
-
model: m(o),
|
117
|
-
"label-width": "120px",
|
118
|
-
rules: k
|
119
|
-
}, {
|
120
|
-
default: l(() => [
|
121
|
-
e(C, null, {
|
122
|
-
default: l(() => [
|
123
|
-
e(i, { span: 12 }, {
|
124
|
-
default: l(() => [
|
125
|
-
e(n, {
|
126
|
-
label: t.$t("serviceApptMember.recordId"),
|
127
|
-
prop: "recordId"
|
128
|
-
}, {
|
129
|
-
default: l(() => [
|
130
|
-
e(r, {
|
131
|
-
modelValue: m(o).recordId,
|
132
|
-
"onUpdate:modelValue": a[0] || (a[0] = (s) => m(o).recordId = s),
|
133
|
-
placeholder: t.$t("serviceApptMember.recordId"),
|
134
|
-
maxlength: "8",
|
135
|
-
"show-word-limit": "",
|
136
|
-
clearable: ""
|
137
|
-
}, null, 8, ["modelValue", "placeholder"])
|
138
|
-
]),
|
139
|
-
_: 1
|
140
|
-
}, 8, ["label"])
|
141
|
-
]),
|
142
|
-
_: 1
|
143
|
-
}),
|
144
|
-
e(i, { span: 12 }, {
|
145
|
-
default: l(() => [
|
146
|
-
e(n, {
|
147
|
-
label: t.$t("serviceApptMember.memberId"),
|
148
|
-
prop: "memberId"
|
149
|
-
}, {
|
150
|
-
default: l(() => [
|
151
|
-
e(r, {
|
152
|
-
modelValue: m(o).memberId,
|
153
|
-
"onUpdate:modelValue": a[1] || (a[1] = (s) => m(o).memberId = s),
|
154
|
-
placeholder: t.$t("serviceApptMember.memberId"),
|
155
|
-
maxlength: "8",
|
156
|
-
"show-word-limit": "",
|
157
|
-
clearable: ""
|
158
|
-
}, null, 8, ["modelValue", "placeholder"])
|
159
|
-
]),
|
160
|
-
_: 1
|
161
|
-
}, 8, ["label"])
|
162
|
-
]),
|
163
|
-
_: 1
|
164
|
-
}),
|
165
|
-
e(i, { span: 12 }, {
|
166
|
-
default: l(() => [
|
167
|
-
e(n, {
|
168
|
-
label: t.$t("serviceApptMember.realName"),
|
169
|
-
prop: "realName"
|
170
|
-
}, {
|
171
|
-
default: l(() => [
|
172
|
-
e(r, {
|
173
|
-
modelValue: m(o).realName,
|
174
|
-
"onUpdate:modelValue": a[2] || (a[2] = (s) => m(o).realName = s),
|
175
|
-
placeholder: t.$t("serviceApptMember.realName"),
|
176
|
-
maxlength: "15",
|
177
|
-
"show-word-limit": "",
|
178
|
-
clearable: ""
|
179
|
-
}, null, 8, ["modelValue", "placeholder"])
|
180
|
-
]),
|
181
|
-
_: 1
|
182
|
-
}, 8, ["label"])
|
183
|
-
]),
|
184
|
-
_: 1
|
185
|
-
}),
|
186
|
-
e(i, { span: 12 }, {
|
187
|
-
default: l(() => [
|
188
|
-
e(n, {
|
189
|
-
label: t.$t("serviceApptMember.status"),
|
190
|
-
prop: "status"
|
191
|
-
}, {
|
192
|
-
default: l(() => [
|
193
|
-
e(q, {
|
194
|
-
modelValue: m(o).status,
|
195
|
-
"onUpdate:modelValue": a[3] || (a[3] = (s) => m(o).status = s),
|
196
|
-
placeholder: t.$t("serviceApptMember.status"),
|
197
|
-
"enum-type": "jmash.rbac.protobuf.UserStatus",
|
198
|
-
clearable: "",
|
199
|
-
style: { width: "203px" }
|
200
|
-
}, null, 8, ["modelValue", "placeholder"])
|
201
|
-
]),
|
202
|
-
_: 1
|
203
|
-
}, 8, ["label"])
|
204
|
-
]),
|
205
|
-
_: 1
|
206
|
-
}),
|
207
|
-
e(i, { span: 12 }, {
|
208
|
-
default: l(() => [
|
209
|
-
e(n, {
|
210
|
-
label: t.$t("serviceApptMember.statusTime"),
|
211
|
-
prop: "statusTime"
|
212
|
-
}, {
|
213
|
-
default: l(() => [
|
214
|
-
e(r, {
|
215
|
-
modelValue: m(o).statusTime,
|
216
|
-
"onUpdate:modelValue": a[4] || (a[4] = (s) => m(o).statusTime = s),
|
217
|
-
placeholder: t.$t("serviceApptMember.statusTime"),
|
218
|
-
maxlength: "9",
|
219
|
-
"show-word-limit": "",
|
220
|
-
clearable: ""
|
221
|
-
}, null, 8, ["modelValue", "placeholder"])
|
222
|
-
]),
|
223
|
-
_: 1
|
224
|
-
}, 8, ["label"])
|
225
|
-
]),
|
226
|
-
_: 1
|
227
|
-
})
|
228
|
-
]),
|
229
|
-
_: 1
|
230
|
-
})
|
231
|
-
]),
|
232
|
-
_: 1
|
233
|
-
}, 8, ["model", "rules"])
|
234
|
-
]),
|
235
|
-
_: 1
|
236
|
-
}, 8, ["modelValue"]);
|
237
|
-
};
|
238
|
-
}
|
239
|
-
}), Z = /* @__PURE__ */ z(H, [["__scopeId", "data-v-198fdb2f"]]);
|
240
|
-
export {
|
241
|
-
Z as default
|
242
|
-
};
|
@@ -1,322 +0,0 @@
|
|
1
|
-
import { defineComponent as F, mergeModels as D, ref as k, reactive as I, useModel as K, resolveComponent as r, openBlock as N, createBlock as S, withCtx as l, createElementVNode as c, createVNode as e, createTextVNode as q, toDisplayString as M, unref as s } from "vue";
|
2
|
-
import { s as g, D as E } from "./index-DLxpE9s5.mjs";
|
3
|
-
import { ElMessage as P } from "element-plus";
|
4
|
-
import { useI18n as A } from "vue-i18n";
|
5
|
-
const L = /* @__PURE__ */ c("div", { class: "title-content" }, "场地信息", -1), T = /* @__PURE__ */ c("span", null, "注:新增的场地默认启用,且自动生成场地码", -1), G = /* @__PURE__ */ c("div", { class: "title-content" }, "管理员信息", -1), H = /* @__PURE__ */ c("span", null, "注:此手机号作为盘点人员账号登录", -1), J = { 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(b, { emit: U }) {
|
19
|
-
const { t: p } = A(), _ = k();
|
20
|
-
let a = I({
|
21
|
-
requestId: Math.random() * 10 + "",
|
22
|
-
updateMask: "orgId,name,buildDate,area,address,manager,mobilePhone"
|
23
|
-
});
|
24
|
-
const Y = I({
|
25
|
-
area: [
|
26
|
-
{
|
27
|
-
required: !0,
|
28
|
-
message: p("site.area"),
|
29
|
-
trigger: "change"
|
30
|
-
}
|
31
|
-
],
|
32
|
-
status: [
|
33
|
-
{
|
34
|
-
required: !0,
|
35
|
-
message: p("site.status"),
|
36
|
-
trigger: "change"
|
37
|
-
}
|
38
|
-
],
|
39
|
-
manager: [
|
40
|
-
{
|
41
|
-
required: !0,
|
42
|
-
message: p("site.manager"),
|
43
|
-
trigger: "change"
|
44
|
-
}
|
45
|
-
],
|
46
|
-
mobilePhone: [
|
47
|
-
{
|
48
|
-
required: !0,
|
49
|
-
message: p("site.mobilePhone"),
|
50
|
-
trigger: "change"
|
51
|
-
}
|
52
|
-
],
|
53
|
-
mobilePhoneIns: [
|
54
|
-
{
|
55
|
-
required: !0,
|
56
|
-
message: p("site.mobilePhoneIns"),
|
57
|
-
trigger: "change"
|
58
|
-
}
|
59
|
-
]
|
60
|
-
}), u = K(b, "modelValue"), h = b, V = U, C = Object.keys(h.entityKey), y = k(C.length >= 1);
|
61
|
-
y.value && g.findById(h.entityKey).then(({ data: t }) => {
|
62
|
-
Object.assign(a, t);
|
63
|
-
});
|
64
|
-
const R = async () => {
|
65
|
-
var t;
|
66
|
-
await ((t = _.value) == null ? void 0 : t.validate((o) => {
|
67
|
-
o && (y.value ? g.update(a).then((i) => {
|
68
|
-
console.log(i), i.status === 200 && (P({
|
69
|
-
message: p("common.submitSuccess"),
|
70
|
-
type: "success"
|
71
|
-
}), u.value && (u.value = !1), V("refresh", i.status === 200));
|
72
|
-
}) : g.create(a).then((i) => {
|
73
|
-
console.log(i), i.status === 200 && (P({
|
74
|
-
message: p("common.submitSuccess"),
|
75
|
-
type: "success"
|
76
|
-
}), u.value && (u.value = !1), V("refresh", i.status === 200));
|
77
|
-
}));
|
78
|
-
}));
|
79
|
-
};
|
80
|
-
function v() {
|
81
|
-
u.value && (u.value = !1);
|
82
|
-
}
|
83
|
-
return (t, o) => {
|
84
|
-
const i = r("el-tree-select"), m = r("el-form-item"), n = r("el-col"), f = r("el-input"), B = r("el-date-picker"), z = r("el-switch"), w = r("el-row"), O = r("el-form"), $ = r("el-button"), j = r("el-dialog");
|
85
|
-
return N(), S(j, {
|
86
|
-
modelValue: u.value,
|
87
|
-
"onUpdate:modelValue": o[8] || (o[8] = (d) => u.value = d),
|
88
|
-
onClose: v
|
89
|
-
}, {
|
90
|
-
footer: l(() => [
|
91
|
-
c("div", J, [
|
92
|
-
e($, { onClick: v }, {
|
93
|
-
default: l(() => [
|
94
|
-
q(M(t.$t("common.cancel")), 1)
|
95
|
-
]),
|
96
|
-
_: 1
|
97
|
-
}),
|
98
|
-
e($, {
|
99
|
-
type: "primary",
|
100
|
-
onClick: R
|
101
|
-
}, {
|
102
|
-
default: l(() => [
|
103
|
-
q(M(t.$t("common.confirm")), 1)
|
104
|
-
]),
|
105
|
-
_: 1
|
106
|
-
})
|
107
|
-
])
|
108
|
-
]),
|
109
|
-
default: l(() => [
|
110
|
-
L,
|
111
|
-
e(O, {
|
112
|
-
ref_key: "siteFormRef",
|
113
|
-
ref: _,
|
114
|
-
model: s(a),
|
115
|
-
"label-width": "120px",
|
116
|
-
rules: Y
|
117
|
-
}, {
|
118
|
-
default: l(() => [
|
119
|
-
e(w, null, {
|
120
|
-
default: l(() => [
|
121
|
-
e(n, { span: 12 }, {
|
122
|
-
default: l(() => [
|
123
|
-
e(m, {
|
124
|
-
label: t.$t("site.orgId"),
|
125
|
-
prop: "orgId"
|
126
|
-
}, {
|
127
|
-
default: l(() => [
|
128
|
-
e(i, {
|
129
|
-
modelValue: s(a).orgId,
|
130
|
-
"onUpdate:modelValue": o[0] || (o[0] = (d) => s(a).orgId = d),
|
131
|
-
data: s(E).unionOrgBizLayDict.values,
|
132
|
-
filterable: "",
|
133
|
-
"check-strictly": "",
|
134
|
-
"render-after-expand": !1,
|
135
|
-
placeholder: t.$t("site.orgIdRequired"),
|
136
|
-
style: { width: "330px" }
|
137
|
-
}, null, 8, ["modelValue", "data", "placeholder"])
|
138
|
-
]),
|
139
|
-
_: 1
|
140
|
-
}, 8, ["label"])
|
141
|
-
]),
|
142
|
-
_: 1
|
143
|
-
}),
|
144
|
-
e(n, { span: 12 }, {
|
145
|
-
default: l(() => [
|
146
|
-
e(m, {
|
147
|
-
label: t.$t("site.name"),
|
148
|
-
prop: "name"
|
149
|
-
}, {
|
150
|
-
default: l(() => [
|
151
|
-
e(f, {
|
152
|
-
modelValue: s(a).name,
|
153
|
-
"onUpdate:modelValue": o[1] || (o[1] = (d) => s(a).name = d),
|
154
|
-
placeholder: t.$t("site.nameRequired"),
|
155
|
-
"show-word-limit": "",
|
156
|
-
clearable: ""
|
157
|
-
}, null, 8, ["modelValue", "placeholder"])
|
158
|
-
]),
|
159
|
-
_: 1
|
160
|
-
}, 8, ["label"])
|
161
|
-
]),
|
162
|
-
_: 1
|
163
|
-
}),
|
164
|
-
e(n, { span: 12 }, {
|
165
|
-
default: l(() => [
|
166
|
-
e(m, {
|
167
|
-
label: t.$t("site.buildDate"),
|
168
|
-
prop: "buildDate"
|
169
|
-
}, {
|
170
|
-
default: l(() => [
|
171
|
-
e(B, {
|
172
|
-
modelValue: s(a).buildDate,
|
173
|
-
"onUpdate:modelValue": o[2] || (o[2] = (d) => s(a).buildDate = d),
|
174
|
-
type: "date",
|
175
|
-
placeholder: t.$t("site.buildDate"),
|
176
|
-
"value-format": "YYYY-MM-DD",
|
177
|
-
format: "YYYY-MM-DD",
|
178
|
-
style: { width: "100%" }
|
179
|
-
}, null, 8, ["modelValue", "placeholder"])
|
180
|
-
]),
|
181
|
-
_: 1
|
182
|
-
}, 8, ["label"])
|
183
|
-
]),
|
184
|
-
_: 1
|
185
|
-
}),
|
186
|
-
e(n, { span: 12 }, {
|
187
|
-
default: l(() => [
|
188
|
-
e(m, {
|
189
|
-
label: t.$t("site.area"),
|
190
|
-
prop: "area"
|
191
|
-
}, {
|
192
|
-
default: l(() => [
|
193
|
-
e(f, {
|
194
|
-
modelValue: s(a).area,
|
195
|
-
"onUpdate:modelValue": o[3] || (o[3] = (d) => s(a).area = d),
|
196
|
-
placeholder: t.$t("site.area"),
|
197
|
-
"show-word-limit": "",
|
198
|
-
clearable: ""
|
199
|
-
}, null, 8, ["modelValue", "placeholder"])
|
200
|
-
]),
|
201
|
-
_: 1
|
202
|
-
}, 8, ["label"])
|
203
|
-
]),
|
204
|
-
_: 1
|
205
|
-
}),
|
206
|
-
e(n, { span: 12 }, {
|
207
|
-
default: l(() => [
|
208
|
-
e(m, {
|
209
|
-
label: t.$t("site.address"),
|
210
|
-
prop: "address"
|
211
|
-
}, {
|
212
|
-
default: l(() => [
|
213
|
-
e(f, {
|
214
|
-
modelValue: s(a).address,
|
215
|
-
"onUpdate:modelValue": o[4] || (o[4] = (d) => s(a).address = d),
|
216
|
-
placeholder: t.$t("site.addressRequired"),
|
217
|
-
"show-word-limit": "",
|
218
|
-
clearable: ""
|
219
|
-
}, null, 8, ["modelValue", "placeholder"])
|
220
|
-
]),
|
221
|
-
_: 1
|
222
|
-
}, 8, ["label"])
|
223
|
-
]),
|
224
|
-
_: 1
|
225
|
-
}),
|
226
|
-
e(n, { span: 12 }, {
|
227
|
-
default: l(() => [
|
228
|
-
e(m, {
|
229
|
-
label: t.$t("site.status"),
|
230
|
-
prop: "status"
|
231
|
-
}, {
|
232
|
-
default: l(() => [
|
233
|
-
e(z, {
|
234
|
-
modelValue: s(a).status,
|
235
|
-
"onUpdate:modelValue": o[5] || (o[5] = (d) => s(a).status = d),
|
236
|
-
size: "large"
|
237
|
-
}, null, 8, ["modelValue"])
|
238
|
-
]),
|
239
|
-
_: 1
|
240
|
-
}, 8, ["label"])
|
241
|
-
]),
|
242
|
-
_: 1
|
243
|
-
}),
|
244
|
-
e(n, {
|
245
|
-
span: 12,
|
246
|
-
style: { color: "red", "font-size": "13px", "margin-left": "45px" }
|
247
|
-
}, {
|
248
|
-
default: l(() => [
|
249
|
-
T
|
250
|
-
]),
|
251
|
-
_: 1
|
252
|
-
})
|
253
|
-
]),
|
254
|
-
_: 1
|
255
|
-
}),
|
256
|
-
G,
|
257
|
-
e(w, null, {
|
258
|
-
default: l(() => [
|
259
|
-
e(n, { span: 12 }, {
|
260
|
-
default: l(() => [
|
261
|
-
e(m, {
|
262
|
-
label: t.$t("site.manager"),
|
263
|
-
prop: "manager"
|
264
|
-
}, {
|
265
|
-
default: l(() => [
|
266
|
-
e(f, {
|
267
|
-
modelValue: s(a).manager,
|
268
|
-
"onUpdate:modelValue": o[6] || (o[6] = (d) => s(a).manager = d),
|
269
|
-
placeholder: t.$t("site.managerRequired"),
|
270
|
-
"show-word-limit": "",
|
271
|
-
clearable: ""
|
272
|
-
}, null, 8, ["modelValue", "placeholder"])
|
273
|
-
]),
|
274
|
-
_: 1
|
275
|
-
}, 8, ["label"])
|
276
|
-
]),
|
277
|
-
_: 1
|
278
|
-
}),
|
279
|
-
e(n, { span: 12 }, {
|
280
|
-
default: l(() => [
|
281
|
-
e(m, {
|
282
|
-
label: t.$t("site.mobilePhone"),
|
283
|
-
prop: "mobilePhone"
|
284
|
-
}, {
|
285
|
-
default: l(() => [
|
286
|
-
e(f, {
|
287
|
-
modelValue: s(a).mobilePhone,
|
288
|
-
"onUpdate:modelValue": o[7] || (o[7] = (d) => s(a).mobilePhone = d),
|
289
|
-
placeholder: t.$t("site.mobilePhone"),
|
290
|
-
"show-word-limit": "",
|
291
|
-
clearable: ""
|
292
|
-
}, null, 8, ["modelValue", "placeholder"])
|
293
|
-
]),
|
294
|
-
_: 1
|
295
|
-
}, 8, ["label"])
|
296
|
-
]),
|
297
|
-
_: 1
|
298
|
-
}),
|
299
|
-
e(n, {
|
300
|
-
span: 12,
|
301
|
-
style: { color: "red", "font-size": "13px", "margin-left": "45px" }
|
302
|
-
}, {
|
303
|
-
default: l(() => [
|
304
|
-
H
|
305
|
-
]),
|
306
|
-
_: 1
|
307
|
-
})
|
308
|
-
]),
|
309
|
-
_: 1
|
310
|
-
})
|
311
|
-
]),
|
312
|
-
_: 1
|
313
|
-
}, 8, ["model", "rules"])
|
314
|
-
]),
|
315
|
-
_: 1
|
316
|
-
}, 8, ["modelValue"]);
|
317
|
-
};
|
318
|
-
}
|
319
|
-
});
|
320
|
-
export {
|
321
|
-
x as _
|
322
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
|