xyvcard-itsm-flow 0.0.25 → 0.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{FileSaver.min-Dlb0564v.mjs → FileSaver.min-FLjvLk81.mjs} +1 -1
- package/dist/{edit-DGLeO86x.mjs → edit-Bj6O1CiV.mjs} +36 -36
- package/dist/{edit-b1Qpq27u.mjs → edit-BoyxGI-j.mjs} +1 -1
- package/dist/{edit-DYzjfcpe.mjs → edit-ChPw3-tf.mjs} +45 -43
- package/dist/{edit-Bb1ZMrgr.mjs → edit-D--QEJjt.mjs} +1 -1
- package/dist/{edit-DEz__zGH.mjs → edit-DE30a8nF.mjs} +1 -1
- package/dist/{edit-X4DuZAeC.mjs → edit-DVqIGzRC.mjs} +2 -2
- package/dist/{edit.vue_vue_type_script_setup_true_lang-COV7eZfh.mjs → edit.vue_vue_type_script_setup_true_lang-D4j6dzcV.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-DDFusQ6S.mjs → edit.vue_vue_type_script_setup_true_lang-DHCoPaGf.mjs} +2 -2
- package/dist/{edit.vue_vue_type_script_setup_true_lang-DK-kdI-u.mjs → edit.vue_vue_type_script_setup_true_lang-DiY4aiPm.mjs} +1 -1
- package/dist/{index-CUdCuMce.mjs → index-8wrBAgqn.mjs} +5 -5
- package/dist/{index-Dx_iePKi.mjs → index-BCm8GyNp.mjs} +1 -1
- package/dist/{index-CJmsWz8H.mjs → index-BGUJBf1b.mjs} +25 -25
- package/dist/{index-COlNrHOr.mjs → index-BKReblQ-.mjs} +56 -56
- package/dist/{index-D4hmXu0K.mjs → index-BPbEgv_g.mjs} +68 -68
- package/dist/{index-C6QayKyI.mjs → index-BVKYrCIy.mjs} +1 -1
- package/dist/{index-BnbyM6r8.mjs → index-BnpWxtwn.mjs} +3 -3
- package/dist/{index-Cc1yu7_y.mjs → index-C2_qB4RV.mjs} +1 -1
- package/dist/{index-BjIcvBcw.mjs → index-C6lbS4Lo.mjs} +2 -2
- package/dist/{index-DTmCekOe.mjs → index-CBlDGIOm.mjs} +26 -26
- package/dist/{index-Crv7Y3gz.mjs → index-Cbd9gMMJ.mjs} +21 -21
- package/dist/{index-ZQIeIrUc.mjs → index-CcmelnG0.mjs} +27 -27
- package/dist/{index-DB_7mB_B.mjs → index-Cv9EtBjj.mjs} +93 -85
- package/dist/{index-CK8x-scl.mjs → index-DCrOzptR.mjs} +3 -3
- package/dist/{index-B3Od63yb.mjs → index-DLKaq1KT.mjs} +3 -3
- package/dist/{index-DsEA0PWP.mjs → index-DUeJgFzy.mjs} +2 -2
- package/dist/{index-CTX-1ZJN.mjs → index-DWJG5OHB.mjs} +1 -1
- package/dist/{index-Dr2VSx72.mjs → index-DeWL7kiw.mjs} +2 -2
- package/dist/{index-CsRdrLdB.mjs → index-DgMfinzm.mjs} +2 -2
- package/dist/{index-41pGjG4z.mjs → index-DrUmzzLs.mjs} +13 -13
- package/dist/{index-Ddn-uP9d.mjs → index-DvfEpZEP.mjs} +44 -44
- package/dist/{index-M_tEOKq6.mjs → index-DwPAoK5U.mjs} +130 -127
- package/dist/{index-ChiSO5mf.mjs → index-DyZhLpPq.mjs} +18 -18
- package/dist/{index-XQliRAX-.mjs → index-DyhFuDLH.mjs} +9 -9
- package/dist/{index-BL1EL_Kk.mjs → index-DymW6iPU.mjs} +3 -3
- package/dist/{index-BzzIS37Q.mjs → index-SilwoNEK.mjs} +123 -123
- package/dist/{index-UIHGXuWX.mjs → index-jG64vmFA.mjs} +128 -128
- package/dist/{index-uhCfQAOU.mjs → index-r4Tg0GX2.mjs} +3 -3
- package/dist/{index-DReilvk8.mjs → index-xWvPJZ-m.mjs} +2 -2
- package/dist/index.mjs +1 -1
- package/dist/{info-ChOjJGUZ.mjs → info-9EvTq-5p.mjs} +1 -1
- package/dist/{info-CqJnfPyk.mjs → info-BWhsB1Ap.mjs} +1 -1
- package/dist/{info-Cu1I8L0Q.mjs → info-CGUYIYny.mjs} +1 -1
- package/dist/{info-C7BOFhdZ.mjs → info-CbJJduEU.mjs} +1 -1
- package/dist/info-CtxVi70h.mjs +4 -0
- package/dist/info-ZeMWMgd3.mjs +4 -0
- package/dist/{info.vue_vue_type_script_setup_true_lang-_Rd1Paqi.mjs → info.vue_vue_type_script_setup_true_lang-C0J9fiF3.mjs} +1 -1
- package/dist/{info.vue_vue_type_script_setup_true_lang-C9LpdXNC.mjs → info.vue_vue_type_script_setup_true_lang-CAfl8pgB.mjs} +10 -10
- package/dist/{info.vue_vue_type_script_setup_true_lang-CwpN4E5Y.mjs → info.vue_vue_type_script_setup_true_lang-CY7c7Xmz.mjs} +2 -2
- package/dist/{info.vue_vue_type_script_setup_true_lang-BupLtTsI.mjs → info.vue_vue_type_script_setup_true_lang-CdiFub3m.mjs} +8 -8
- package/dist/{info.vue_vue_type_script_setup_true_lang-D36lalXS.mjs → info.vue_vue_type_script_setup_true_lang-DIXXp0TI.mjs} +2 -2
- package/dist/{info.vue_vue_type_script_setup_true_lang-CxZBVr6Z.mjs → info.vue_vue_type_script_setup_true_lang-Dm4Ld-wL.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dts/lang/itsm-flow/zh-cn.d.ts +2 -2
- package/package.json +1 -1
- package/dist/info-DDaeV1sJ.mjs +0 -4
- package/dist/info-DstAR0-a.mjs +0 -4
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as R, mergeModels as K, ref as
|
|
1
|
+
import { defineComponent as R, mergeModels as K, ref as v, useModel as j, resolveComponent as b, createElementBlock as F, openBlock as m, Fragment as k, createVNode as t, withCtx as e, createElementVNode as f, createBlock as S, createCommentVNode as B, createTextVNode as n, toDisplayString as s, unref as y, renderList as L } from "vue";
|
|
2
2
|
import "element-plus";
|
|
3
3
|
import { useI18n as q } from "vue-i18n";
|
|
4
|
-
import { D as d, C as W, i as G } from "./index-
|
|
5
|
-
import { i as H, a as J } from "./index-
|
|
4
|
+
import { D as d, C as W, i as G } from "./index-DWJG5OHB.mjs";
|
|
5
|
+
import { i as H, a as J } from "./index-C2_qB4RV.mjs";
|
|
6
6
|
import { fileApi as Q } from "jmash-core";
|
|
7
7
|
import { rbacApi as X } from "jmash-rbac";
|
|
8
8
|
import { _ as Y } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
@@ -20,22 +20,24 @@ const Z = { class: "total-price" }, x = { id: "totalPrice" }, ee = /* @__PURE__
|
|
|
20
20
|
}),
|
|
21
21
|
emits: ["update:modelValue"],
|
|
22
22
|
setup(I, { expose: h }) {
|
|
23
|
-
d.fileTypeDict.useDictValues(), d.orgIdBizDict.useValues(), d.itemBizLayDict.useValues(), console.log(d.orgIdBizDict.values, "=> orgIdBizDict"), console.log(d.itemBizLayDict.values, "=>itemBizLayDict ");
|
|
24
|
-
const { t: le } = q(), $ =
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
d.fileTypeDict.useDictValues(), d.orgIdBizDict.useValues(), d.itemBizLayDict.useValues(), d.budgetTypeDict.useValues(), console.log(d.orgIdBizDict.values, "=> orgIdBizDict"), console.log(d.itemBizLayDict.values, "=>itemBizLayDict ");
|
|
24
|
+
const { t: le } = q(), $ = v(), C = v({}), c = j(I, "modelValue"), V = v([]), D = I;
|
|
25
|
+
console.log(d.budgetTypeDict.values, "=>budgetTypeDict ");
|
|
26
|
+
const u = v({});
|
|
27
|
+
H.findById({ flowSpareId: D.task.businessKey }).then(({ data: l }) => {
|
|
28
|
+
u.value = l, console.log(l, "=>data");
|
|
27
29
|
});
|
|
28
|
-
const N =
|
|
29
|
-
J.findList({ flowSpareId:
|
|
30
|
-
N.value =
|
|
30
|
+
const N = v([]);
|
|
31
|
+
J.findList({ flowSpareId: D.task.businessKey }).then((l) => {
|
|
32
|
+
N.value = l.data.results, console.log(l.data.results, "=>tableData ");
|
|
31
33
|
});
|
|
32
|
-
const M = (
|
|
34
|
+
const M = (l) => {
|
|
33
35
|
var a;
|
|
34
|
-
return ((a = V.value) == null ? void 0 : a.filter((o) => o.fileSort ===
|
|
36
|
+
return ((a = V.value) == null ? void 0 : a.filter((o) => o.fileSort === l)) || [];
|
|
35
37
|
};
|
|
36
|
-
function
|
|
37
|
-
G.findFilesList({ actionId:
|
|
38
|
-
console.log(
|
|
38
|
+
function T() {
|
|
39
|
+
G.findFilesList({ actionId: D.task.businessKey }).then(({ data: l }) => {
|
|
40
|
+
console.log(l, "=> data"), l.results && Array.isArray(l.results) && (V.value = l.results.map((a) => {
|
|
39
41
|
let o = "";
|
|
40
42
|
return a.fileName && (o = a.fileSort || a.type || ""), {
|
|
41
43
|
fileName: a.fileName || "",
|
|
@@ -45,34 +47,34 @@ const Z = { class: "total-price" }, x = { id: "totalPrice" }, ee = /* @__PURE__
|
|
|
45
47
|
}));
|
|
46
48
|
});
|
|
47
49
|
}
|
|
48
|
-
|
|
49
|
-
async function
|
|
50
|
+
T();
|
|
51
|
+
async function z(l) {
|
|
50
52
|
try {
|
|
51
|
-
const a = Q.fileUrl(
|
|
52
|
-
p.href = w, p.download =
|
|
53
|
+
const a = Q.fileUrl(l.filePath), i = await (await fetch(a)).blob(), w = window.URL.createObjectURL(i), p = document.createElement("a");
|
|
54
|
+
p.href = w, p.download = l.fileName || "download", document.body.appendChild(p), p.click();
|
|
53
55
|
} catch {
|
|
54
56
|
}
|
|
55
57
|
}
|
|
56
58
|
h({
|
|
57
|
-
changeModel: () =>
|
|
59
|
+
changeModel: () => A()
|
|
58
60
|
});
|
|
59
|
-
function
|
|
61
|
+
function A() {
|
|
60
62
|
return c.value && (c.value.selectActions = [
|
|
61
63
|
{ key: "true", value: "同意" },
|
|
62
64
|
{ key: "false", value: "不同意" }
|
|
63
|
-
], c.value.varName = "approved", c.value.module = "", c.value.module = W.MODULE_ITSMFLOW), new Promise((
|
|
65
|
+
], c.value.varName = "approved", c.value.module = "", c.value.module = W.MODULE_ITSMFLOW), new Promise((l, a) => {
|
|
64
66
|
var o;
|
|
65
|
-
(o = $.value) == null || o.validate((
|
|
66
|
-
|
|
67
|
+
(o = $.value) == null || o.validate((i) => {
|
|
68
|
+
i ? (c.value && (c.value.comment = ""), l(!0)) : a(!1);
|
|
67
69
|
});
|
|
68
70
|
});
|
|
69
71
|
}
|
|
70
|
-
return (
|
|
71
|
-
const o =
|
|
72
|
-
return m(), F(
|
|
72
|
+
return (l, a) => {
|
|
73
|
+
const o = b("el-col"), i = b("el-form-item"), w = b("el-row"), p = b("el-table-column"), O = b("el-table"), E = b("el-button"), U = b("el-form");
|
|
74
|
+
return m(), F(k, null, [
|
|
73
75
|
t(o, { span: 24 }, {
|
|
74
|
-
default:
|
|
75
|
-
|
|
76
|
+
default: e(() => a[0] || (a[0] = [
|
|
77
|
+
f("div", { class: "title" }, "备品备件申请领用表", -1)
|
|
76
78
|
])),
|
|
77
79
|
_: 1,
|
|
78
80
|
__: [0]
|
|
@@ -84,19 +86,19 @@ const Z = { class: "total-price" }, x = { id: "totalPrice" }, ee = /* @__PURE__
|
|
|
84
86
|
"label-width": "150px",
|
|
85
87
|
class: "custom-table-form"
|
|
86
88
|
}, {
|
|
87
|
-
default:
|
|
89
|
+
default: e(() => [
|
|
88
90
|
t(w, null, {
|
|
89
|
-
default:
|
|
90
|
-
var r,
|
|
91
|
+
default: e(() => {
|
|
92
|
+
var r, P, _;
|
|
91
93
|
return [
|
|
92
94
|
t(o, { span: 12 }, {
|
|
93
|
-
default:
|
|
94
|
-
t(
|
|
95
|
-
label:
|
|
95
|
+
default: e(() => [
|
|
96
|
+
t(i, {
|
|
97
|
+
label: l.$t("itsmFlowSpareParts.govOrgId"),
|
|
96
98
|
prop: "govOrgId"
|
|
97
99
|
}, {
|
|
98
|
-
default:
|
|
99
|
-
s(
|
|
100
|
+
default: e(() => [
|
|
101
|
+
n(s(y(d).orgIdBizDict.getValue(u.value.orgId)), 1)
|
|
100
102
|
]),
|
|
101
103
|
_: 1
|
|
102
104
|
}, 8, ["label"])
|
|
@@ -104,13 +106,13 @@ const Z = { class: "total-price" }, x = { id: "totalPrice" }, ee = /* @__PURE__
|
|
|
104
106
|
_: 1
|
|
105
107
|
}),
|
|
106
108
|
t(o, { span: 12 }, {
|
|
107
|
-
default:
|
|
108
|
-
t(
|
|
109
|
-
label:
|
|
109
|
+
default: e(() => [
|
|
110
|
+
t(i, {
|
|
111
|
+
label: l.$t("itsmFlowSpareParts.itsmtype"),
|
|
110
112
|
prop: "type"
|
|
111
113
|
}, {
|
|
112
|
-
default:
|
|
113
|
-
s(
|
|
114
|
+
default: e(() => [
|
|
115
|
+
n(s(y(d).purchaseTypeEnum.getEnumValue(u.value.type)), 1)
|
|
114
116
|
]),
|
|
115
117
|
_: 1
|
|
116
118
|
}, 8, ["label"])
|
|
@@ -118,13 +120,13 @@ const Z = { class: "total-price" }, x = { id: "totalPrice" }, ee = /* @__PURE__
|
|
|
118
120
|
_: 1
|
|
119
121
|
}),
|
|
120
122
|
t(o, { span: 12 }, {
|
|
121
|
-
default:
|
|
122
|
-
t(
|
|
123
|
-
label:
|
|
123
|
+
default: e(() => [
|
|
124
|
+
t(i, {
|
|
125
|
+
label: l.$t("itsmFlowSpareParts.applyPlace"),
|
|
124
126
|
prop: "applyPlace"
|
|
125
127
|
}, {
|
|
126
|
-
default:
|
|
127
|
-
s(
|
|
128
|
+
default: e(() => [
|
|
129
|
+
n(s(u.value.applyPlace), 1)
|
|
128
130
|
]),
|
|
129
131
|
_: 1
|
|
130
132
|
}, 8, ["label"])
|
|
@@ -132,64 +134,64 @@ const Z = { class: "total-price" }, x = { id: "totalPrice" }, ee = /* @__PURE__
|
|
|
132
134
|
_: 1
|
|
133
135
|
}),
|
|
134
136
|
t(o, { span: 12 }, {
|
|
135
|
-
default:
|
|
136
|
-
t(
|
|
137
|
-
label:
|
|
137
|
+
default: e(() => [
|
|
138
|
+
t(i, {
|
|
139
|
+
label: l.$t("itsmFlowSpareParts.annual"),
|
|
138
140
|
prop: "annual"
|
|
139
141
|
}, {
|
|
140
|
-
default:
|
|
141
|
-
s(
|
|
142
|
+
default: e(() => [
|
|
143
|
+
n(s(u.value.annual), 1)
|
|
142
144
|
]),
|
|
143
145
|
_: 1
|
|
144
146
|
}, 8, ["label"])
|
|
145
147
|
]),
|
|
146
148
|
_: 1
|
|
147
149
|
}),
|
|
148
|
-
((r =
|
|
150
|
+
((r = u.value) == null ? void 0 : r.type) !== "BudgetOut" ? (m(), S(o, {
|
|
149
151
|
key: 0,
|
|
150
152
|
span: 24
|
|
151
153
|
}, {
|
|
152
|
-
default:
|
|
153
|
-
t(
|
|
154
|
-
label:
|
|
154
|
+
default: e(() => [
|
|
155
|
+
t(i, {
|
|
156
|
+
label: l.$t("itsmFlowSpareParts.itsmFlowItemId"),
|
|
155
157
|
prop: "itemId"
|
|
156
158
|
}, {
|
|
157
|
-
default:
|
|
158
|
-
s(
|
|
159
|
+
default: e(() => [
|
|
160
|
+
n(s(y(d).itemBizLayDict.getValue(u.value.itemId)), 1)
|
|
159
161
|
]),
|
|
160
162
|
_: 1
|
|
161
163
|
}, 8, ["label"])
|
|
162
164
|
]),
|
|
163
165
|
_: 1
|
|
164
166
|
})) : B("", !0),
|
|
165
|
-
((
|
|
167
|
+
((P = u.value) == null ? void 0 : P.type) !== "BudgetOut" ? (m(), S(o, {
|
|
166
168
|
key: 1,
|
|
167
169
|
span: 12
|
|
168
170
|
}, {
|
|
169
|
-
default:
|
|
170
|
-
t(
|
|
171
|
-
label:
|
|
171
|
+
default: e(() => [
|
|
172
|
+
t(i, {
|
|
173
|
+
label: l.$t("itsmFlowSpareParts.itsmFlowBudgetType"),
|
|
172
174
|
prop: "budgetType"
|
|
173
175
|
}, {
|
|
174
|
-
default:
|
|
175
|
-
s(
|
|
176
|
+
default: e(() => [
|
|
177
|
+
n(s(y(d).budgetTypeDict.getValue(u.value.budgetType)), 1)
|
|
176
178
|
]),
|
|
177
179
|
_: 1
|
|
178
180
|
}, 8, ["label"])
|
|
179
181
|
]),
|
|
180
182
|
_: 1
|
|
181
183
|
})) : B("", !0),
|
|
182
|
-
((
|
|
184
|
+
((_ = u.value) == null ? void 0 : _.type) !== "BudgetOut" ? (m(), S(o, {
|
|
183
185
|
key: 2,
|
|
184
186
|
span: 12
|
|
185
187
|
}, {
|
|
186
|
-
default:
|
|
187
|
-
t(
|
|
188
|
-
label:
|
|
188
|
+
default: e(() => [
|
|
189
|
+
t(i, {
|
|
190
|
+
label: l.$t("itsmFlowSpareParts.contractMoney"),
|
|
189
191
|
prop: "contractMoney"
|
|
190
192
|
}, {
|
|
191
|
-
default:
|
|
192
|
-
s(
|
|
193
|
+
default: e(() => [
|
|
194
|
+
n(s(u.value.contractMoney), 1)
|
|
193
195
|
]),
|
|
194
196
|
_: 1
|
|
195
197
|
}, 8, ["label"])
|
|
@@ -197,15 +199,15 @@ const Z = { class: "total-price" }, x = { id: "totalPrice" }, ee = /* @__PURE__
|
|
|
197
199
|
_: 1
|
|
198
200
|
})) : B("", !0),
|
|
199
201
|
t(o, { span: 12 }, {
|
|
200
|
-
default:
|
|
201
|
-
t(
|
|
202
|
-
label:
|
|
202
|
+
default: e(() => [
|
|
203
|
+
t(i, {
|
|
204
|
+
label: l.$t("itsmFlowSpareParts.createBy"),
|
|
203
205
|
prop: "createBy"
|
|
204
206
|
}, {
|
|
205
|
-
default:
|
|
207
|
+
default: e(() => {
|
|
206
208
|
var g;
|
|
207
209
|
return [
|
|
208
|
-
s(
|
|
210
|
+
n(s(u.value.createBy ? (g = y(X).userInfo(u.value.createBy)) == null ? void 0 : g.realName : ""), 1)
|
|
209
211
|
];
|
|
210
212
|
}),
|
|
211
213
|
_: 1
|
|
@@ -214,13 +216,13 @@ const Z = { class: "total-price" }, x = { id: "totalPrice" }, ee = /* @__PURE__
|
|
|
214
216
|
_: 1
|
|
215
217
|
}),
|
|
216
218
|
t(o, { span: 12 }, {
|
|
217
|
-
default:
|
|
218
|
-
t(
|
|
219
|
-
label:
|
|
219
|
+
default: e(() => [
|
|
220
|
+
t(i, {
|
|
221
|
+
label: l.$t("itsmFlowSpareParts.applyDate"),
|
|
220
222
|
prop: "applyDate"
|
|
221
223
|
}, {
|
|
222
|
-
default:
|
|
223
|
-
s(
|
|
224
|
+
default: e(() => [
|
|
225
|
+
n(s(u.value.applyDate), 1)
|
|
224
226
|
]),
|
|
225
227
|
_: 1
|
|
226
228
|
}, 8, ["label"])
|
|
@@ -232,117 +234,118 @@ const Z = { class: "total-price" }, x = { id: "totalPrice" }, ee = /* @__PURE__
|
|
|
232
234
|
_: 1
|
|
233
235
|
}),
|
|
234
236
|
t(w, null, {
|
|
235
|
-
default:
|
|
237
|
+
default: e(() => [
|
|
236
238
|
t(o, { span: 24 }, {
|
|
237
|
-
default:
|
|
238
|
-
|
|
239
|
+
default: e(() => a[1] || (a[1] = [
|
|
240
|
+
f("div", { class: "title" }, "运维需求描述", -1)
|
|
239
241
|
])),
|
|
240
242
|
_: 1,
|
|
241
243
|
__: [1]
|
|
242
244
|
}),
|
|
243
|
-
t(
|
|
245
|
+
t(O, {
|
|
244
246
|
stripe: "",
|
|
245
247
|
style: { width: "100%" },
|
|
246
248
|
data: N.value
|
|
247
249
|
}, {
|
|
248
|
-
default:
|
|
250
|
+
default: e(() => [
|
|
249
251
|
t(p, {
|
|
250
252
|
prop: "type",
|
|
251
|
-
label:
|
|
253
|
+
label: l.$t("itsmFlowSpareParts.itsmtype")
|
|
252
254
|
}, {
|
|
253
|
-
default:
|
|
254
|
-
s(
|
|
255
|
+
default: e((r) => [
|
|
256
|
+
n(s(r.row.type), 1)
|
|
255
257
|
]),
|
|
256
258
|
_: 1
|
|
257
259
|
}, 8, ["label"]),
|
|
258
260
|
t(p, {
|
|
259
261
|
prop: "name",
|
|
260
|
-
label:
|
|
262
|
+
label: l.$t("itsmFlowSpareParts.itsmName")
|
|
261
263
|
}, {
|
|
262
|
-
default:
|
|
263
|
-
s(
|
|
264
|
+
default: e((r) => [
|
|
265
|
+
n(s(r.row.name), 1)
|
|
264
266
|
]),
|
|
265
267
|
_: 1
|
|
266
268
|
}, 8, ["label"]),
|
|
267
269
|
t(p, {
|
|
268
270
|
prop: "number",
|
|
269
|
-
label:
|
|
271
|
+
label: l.$t("itsmFlowSpareParts.number")
|
|
270
272
|
}, {
|
|
271
|
-
default:
|
|
272
|
-
s(
|
|
273
|
+
default: e((r) => [
|
|
274
|
+
n(s(r.row.number), 1)
|
|
273
275
|
]),
|
|
274
276
|
_: 1
|
|
275
277
|
}, 8, ["label"]),
|
|
276
|
-
t(p, {
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
278
|
+
t(p, { prop: "unit" }, {
|
|
279
|
+
header: e(() => [
|
|
280
|
+
a[2] || (a[2] = f("span", { class: "required_red" }, "*", -1)),
|
|
281
|
+
f("span", null, s(l.$t("itsmFlowSpareParts.unit")) + "(计量单位)", 1)
|
|
282
|
+
]),
|
|
283
|
+
default: e((r) => [
|
|
284
|
+
n(s(r.row.unit), 1)
|
|
282
285
|
]),
|
|
283
286
|
_: 1
|
|
284
|
-
}
|
|
287
|
+
}),
|
|
285
288
|
t(p, {
|
|
286
289
|
prop: "parameter",
|
|
287
|
-
label:
|
|
290
|
+
label: l.$t("itsmFlowSpareParts.parameter")
|
|
288
291
|
}, {
|
|
289
|
-
default:
|
|
290
|
-
s(
|
|
292
|
+
default: e((r) => [
|
|
293
|
+
n(s(r.row.parameter), 1)
|
|
291
294
|
]),
|
|
292
295
|
_: 1
|
|
293
296
|
}, 8, ["label"]),
|
|
294
|
-
t(p, {
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
default:
|
|
299
|
-
s(
|
|
297
|
+
t(p, { prop: "valuation" }, {
|
|
298
|
+
header: e(() => [
|
|
299
|
+
f("span", null, s(l.$t("itsmFlowSpareParts.valuation")) + "(万元)", 1)
|
|
300
|
+
]),
|
|
301
|
+
default: e((r) => [
|
|
302
|
+
n(s(r.row.valuation), 1)
|
|
300
303
|
]),
|
|
301
304
|
_: 1
|
|
302
|
-
}
|
|
305
|
+
}),
|
|
303
306
|
t(p, {
|
|
304
307
|
prop: "range",
|
|
305
|
-
label:
|
|
308
|
+
label: l.$t("itsmFlowSpareParts.range")
|
|
306
309
|
}, {
|
|
307
|
-
default:
|
|
308
|
-
s(
|
|
310
|
+
default: e((r) => [
|
|
311
|
+
n(s(r.row.range), 1)
|
|
309
312
|
]),
|
|
310
313
|
_: 1
|
|
311
314
|
}, 8, ["label"])
|
|
312
315
|
]),
|
|
313
316
|
_: 1
|
|
314
317
|
}, 8, ["data"]),
|
|
315
|
-
|
|
316
|
-
a[
|
|
317
|
-
|
|
318
|
+
f("div", Z, [
|
|
319
|
+
a[3] || (a[3] = n(" 预估总价(万元):")),
|
|
320
|
+
f("span", x, s(), 1)
|
|
318
321
|
]),
|
|
319
322
|
t(o, {
|
|
320
323
|
span: 24,
|
|
321
324
|
class: "bordered-row"
|
|
322
325
|
}, {
|
|
323
|
-
default:
|
|
324
|
-
(m(!0), F(
|
|
326
|
+
default: e(() => [
|
|
327
|
+
(m(!0), F(k, null, L(y(d).fileTypeDict.values.slice(0, 2), (r, P) => (m(), S(i, {
|
|
325
328
|
key: r.dictCode,
|
|
326
329
|
label: r.dictName
|
|
327
330
|
}, {
|
|
328
|
-
default:
|
|
329
|
-
(m(!0), F(
|
|
331
|
+
default: e(() => [
|
|
332
|
+
(m(!0), F(k, null, L(M(r.dictCode), (_, g) => (m(), F("div", {
|
|
330
333
|
key: g,
|
|
331
334
|
class: "files-list"
|
|
332
335
|
}, [
|
|
333
|
-
|
|
336
|
+
f("span", null, s(_.fileName), 1),
|
|
334
337
|
t(E, {
|
|
335
338
|
type: "primary",
|
|
336
339
|
link: "",
|
|
337
340
|
size: "small",
|
|
338
341
|
class: "icon-right",
|
|
339
|
-
onClick: (te) =>
|
|
342
|
+
onClick: (te) => z(_)
|
|
340
343
|
}, {
|
|
341
|
-
default:
|
|
342
|
-
|
|
344
|
+
default: e(() => a[4] || (a[4] = [
|
|
345
|
+
n(" 查看 ")
|
|
343
346
|
])),
|
|
344
347
|
_: 2,
|
|
345
|
-
__: [
|
|
348
|
+
__: [4]
|
|
346
349
|
}, 1032, ["onClick"])
|
|
347
350
|
]))), 128))
|
|
348
351
|
]),
|
|
@@ -360,7 +363,7 @@ const Z = { class: "total-price" }, x = { id: "totalPrice" }, ee = /* @__PURE__
|
|
|
360
363
|
], 64);
|
|
361
364
|
};
|
|
362
365
|
}
|
|
363
|
-
}), de = /* @__PURE__ */ Y(ee, [["__scopeId", "data-v-
|
|
366
|
+
}), de = /* @__PURE__ */ Y(ee, [["__scopeId", "data-v-30b9bfa8"]]);
|
|
364
367
|
export {
|
|
365
368
|
de as default
|
|
366
369
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as A, mergeModels as P, getCurrentInstance as E, ref as f, useModel as U, resolveComponent as c, createElementBlock as _, openBlock as p, Fragment as y, createVNode as t, withCtx as l, createElementVNode as
|
|
1
|
+
import { defineComponent as A, mergeModels as P, getCurrentInstance as E, ref as f, useModel as U, resolveComponent as c, createElementBlock as _, openBlock as p, Fragment as y, createVNode as t, withCtx as l, createElementVNode as g, createTextVNode as u, toDisplayString as m, renderList as C, unref as b, createBlock as x } from "vue";
|
|
2
2
|
import { rbacApi as O } from "jmash-rbac";
|
|
3
|
-
import { i as R, C as Y, D } from "./index-
|
|
3
|
+
import { i as R, C as Y, D } from "./index-DWJG5OHB.mjs";
|
|
4
4
|
import { fileApi as j } from "jmash-core";
|
|
5
|
-
import { i as z } from "./index-
|
|
5
|
+
import { i as z } from "./index-SilwoNEK.mjs";
|
|
6
6
|
const Q = /* @__PURE__ */ A({
|
|
7
7
|
__name: "index",
|
|
8
8
|
props: /* @__PURE__ */ P({
|
|
@@ -27,8 +27,8 @@ const Q = /* @__PURE__ */ A({
|
|
|
27
27
|
});
|
|
28
28
|
async function N(a) {
|
|
29
29
|
try {
|
|
30
|
-
const n = j.fileUrl(a.filePath), r = await (await fetch(n)).blob(), v = window.URL.createObjectURL(r),
|
|
31
|
-
|
|
30
|
+
const n = j.fileUrl(a.filePath), r = await (await fetch(n)).blob(), v = window.URL.createObjectURL(r), d = document.createElement("a");
|
|
31
|
+
d.href = v, d.download = a.fileName || "download", document.body.appendChild(d), d.click();
|
|
32
32
|
} catch {
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -47,11 +47,11 @@ const Q = /* @__PURE__ */ A({
|
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
return (a, n) => {
|
|
50
|
-
const o = c("el-col"), r = c("el-form-item"), v = c("el-button"),
|
|
50
|
+
const o = c("el-col"), r = c("el-form-item"), v = c("el-button"), d = c("el-row"), L = c("el-form");
|
|
51
51
|
return p(), _(y, null, [
|
|
52
52
|
t(o, { span: 24 }, {
|
|
53
53
|
default: l(() => n[0] || (n[0] = [
|
|
54
|
-
|
|
54
|
+
g("div", { class: "title" }, "内部临时工单", -1)
|
|
55
55
|
])),
|
|
56
56
|
_: 1,
|
|
57
57
|
__: [0]
|
|
@@ -64,7 +64,7 @@ const Q = /* @__PURE__ */ A({
|
|
|
64
64
|
class: "custom-table-form custom-form"
|
|
65
65
|
}, {
|
|
66
66
|
default: l(() => [
|
|
67
|
-
t(
|
|
67
|
+
t(d, null, {
|
|
68
68
|
default: l(() => [
|
|
69
69
|
t(o, { span: 24 }, {
|
|
70
70
|
default: l(() => [
|
|
@@ -75,7 +75,7 @@ const Q = /* @__PURE__ */ A({
|
|
|
75
75
|
default: l(() => {
|
|
76
76
|
var e;
|
|
77
77
|
return [
|
|
78
|
-
u(
|
|
78
|
+
u(m((e = i.value) == null ? void 0 : e.title), 1)
|
|
79
79
|
];
|
|
80
80
|
}),
|
|
81
81
|
_: 1
|
|
@@ -92,7 +92,7 @@ const Q = /* @__PURE__ */ A({
|
|
|
92
92
|
default: l(() => {
|
|
93
93
|
var e;
|
|
94
94
|
return [
|
|
95
|
-
u(
|
|
95
|
+
u(m((e = i.value) == null ? void 0 : e.content), 1)
|
|
96
96
|
];
|
|
97
97
|
}),
|
|
98
98
|
_: 1
|
|
@@ -110,17 +110,17 @@ const Q = /* @__PURE__ */ A({
|
|
|
110
110
|
label: e.dictName
|
|
111
111
|
}, {
|
|
112
112
|
default: l(() => [
|
|
113
|
-
(p(!0), _(y, null, C(h.value, (
|
|
113
|
+
(p(!0), _(y, null, C(h.value, (T, V) => (p(), _("div", {
|
|
114
114
|
key: V,
|
|
115
115
|
class: "files-list"
|
|
116
116
|
}, [
|
|
117
|
-
|
|
117
|
+
g("span", null, m(T.fileName), 1),
|
|
118
118
|
t(v, {
|
|
119
119
|
type: "primary",
|
|
120
120
|
link: "",
|
|
121
121
|
size: "small",
|
|
122
122
|
class: "icon-right",
|
|
123
|
-
onClick: (K) => N(
|
|
123
|
+
onClick: (K) => N(T)
|
|
124
124
|
}, {
|
|
125
125
|
default: l(() => n[1] || (n[1] = [
|
|
126
126
|
u(" 查看 ")
|
|
@@ -144,7 +144,7 @@ const Q = /* @__PURE__ */ A({
|
|
|
144
144
|
default: l(() => {
|
|
145
145
|
var e;
|
|
146
146
|
return [
|
|
147
|
-
u(
|
|
147
|
+
u(m(b(O).userInfo((e = i.value) == null ? void 0 : e.createBy).realName), 1)
|
|
148
148
|
];
|
|
149
149
|
}),
|
|
150
150
|
_: 1
|
|
@@ -161,7 +161,7 @@ const Q = /* @__PURE__ */ A({
|
|
|
161
161
|
default: l(() => {
|
|
162
162
|
var e;
|
|
163
163
|
return [
|
|
164
|
-
u(
|
|
164
|
+
u(m(b(M).$moment.formatDate(
|
|
165
165
|
(e = i.value) == null ? void 0 : e.createTime,
|
|
166
166
|
"YYYY-MM-DD HH:mm:ss"
|
|
167
167
|
)), 1)
|
|
@@ -175,13 +175,13 @@ const Q = /* @__PURE__ */ A({
|
|
|
175
175
|
t(o, { span: 24 }, {
|
|
176
176
|
default: l(() => [
|
|
177
177
|
t(r, {
|
|
178
|
-
label: a.$t("itsmFlowTemporary.
|
|
178
|
+
label: a.$t("itsmFlowTemporary.userIdTemporary"),
|
|
179
179
|
prop: "userId"
|
|
180
180
|
}, {
|
|
181
181
|
default: l(() => {
|
|
182
182
|
var e;
|
|
183
183
|
return [
|
|
184
|
-
u(
|
|
184
|
+
u(m(b(D).userExtBizDict.getValue((e = i.value) == null ? void 0 : e.userId)), 1)
|
|
185
185
|
];
|
|
186
186
|
}),
|
|
187
187
|
_: 1
|
|
@@ -198,7 +198,7 @@ const Q = /* @__PURE__ */ A({
|
|
|
198
198
|
default: l(() => {
|
|
199
199
|
var e;
|
|
200
200
|
return [
|
|
201
|
-
u(
|
|
201
|
+
u(m((e = i.value) == null ? void 0 : e.handlingPeriod), 1)
|
|
202
202
|
];
|
|
203
203
|
}),
|
|
204
204
|
_: 1
|