yahee-components 0.0.84 → 0.0.85

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.
Files changed (41) hide show
  1. package/es/common-import/common-import.vue.js +313 -311
  2. package/es/filter-container/filter-container.vue.js +67 -0
  3. package/es/filter-container/filter-container.vue2.js +4 -0
  4. package/es/filter-container/index.js +7 -0
  5. package/es/filter-container/style/index.css +17 -0
  6. package/es/filter-wrapper/filter-wrapper.vue.js +7 -0
  7. package/es/filter-wrapper/filter-wrapper.vue2.js +59 -0
  8. package/es/filter-wrapper/index.js +7 -0
  9. package/es/filter-wrapper/style/index.css +3 -0
  10. package/es/installs.js +12 -8
  11. package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.js +5 -0
  12. package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.js +10 -0
  13. package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTrim.js +8 -0
  14. package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js +4 -0
  15. package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.js +15 -0
  16. package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.js +7 -0
  17. package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.js +5 -0
  18. package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_trimmedEndIndex.js +9 -0
  19. package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/debounce.js +54 -0
  20. package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.js +7 -0
  21. package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.js +6 -0
  22. package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSymbol.js +9 -0
  23. package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/now.js +7 -0
  24. package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toNumber.js +22 -0
  25. package/es/style.css +22 -0
  26. package/es/utils/translate.js +27 -47
  27. package/es/yahee-components.css +1 -1
  28. package/lib/filter-container/style/index.css +17 -0
  29. package/lib/filter-wrapper/style/index.css +3 -0
  30. package/lib/style.css +22 -0
  31. package/package.json +1 -1
  32. package/types/src/filter-container/filter-container.d.ts +5 -0
  33. package/types/src/filter-container/filter-container.vue.d.ts +49 -0
  34. package/types/src/filter-container/props.d.ts +45 -0
  35. package/types/src/filter-wrapper/filter-wrapper.d.ts +5 -0
  36. package/types/src/filter-wrapper/filter-wrapper.vue.d.ts +49 -0
  37. package/types/src/filter-wrapper/props.d.ts +45 -0
  38. package/types/src/utils/translate.d.ts +0 -3
  39. package/es/api/server.js +0 -35
  40. package/es/api/tool.js +0 -71
  41. package/types/src/installs.d.ts +0 -2649
@@ -1,10 +1,10 @@
1
- import { defineComponent, mergeDefaults, toRefs, ref, watch, reactive, onMounted, onUnmounted, createElementBlock, openBlock, Fragment, createVNode, unref, isRef, withCtx, withDirectives, createElementVNode, createCommentVNode, renderSlot, createTextVNode, toDisplayString, renderList, createBlock } from "vue";
2
- import { M2, translateEmployeeName } from "../utils/translate.js";
3
- import { get } from "../packages/components/api/log-server.js";
4
- import { getDomainBaseUrl } from "../utils/get-domain-base-url.js";
5
- import { getUploadRecord } from "../packages/components/api/common-import/index.js";
6
- import { defaultCommonImportProps } from "./props.js";
7
- import { ElDialog, ElRow, ElUpload, ElButton, ElCol, ElLink, ElProgress, ElCard, vLoading, ElTable, ElTableColumn, ElPagination, ElMessage, ElMessageBox } from "element-plus";
1
+ import { defineComponent as Ge, mergeDefaults as Le, toRefs as Pe, ref as c, watch as We, reactive as ze, onMounted as qe, onUnmounted as Ae, createElementBlock as y, openBlock as d, Fragment as ae, createVNode as n, unref as l, isRef as Ve, withCtx as r, withDirectives as re, createElementVNode as T, createCommentVNode as h, renderSlot as se, createTextVNode as g, toDisplayString as i, renderList as Je, createBlock as w } from "vue";
2
+ import { M2 as u, translateEmployeeName as je } from "../utils/translate.js";
3
+ import { get as He } from "../packages/components/api/log-server.js";
4
+ import { getDomainBaseUrl as Xe } from "../utils/get-domain-base-url.js";
5
+ import { getUploadRecord as Ye } from "../packages/components/api/common-import/index.js";
6
+ import { defaultCommonImportProps as Ze } from "./props.js";
7
+ import { ElDialog as ne, ElRow as I, ElUpload as Qe, ElButton as W, ElCol as b, ElLink as z, ElProgress as Ke, ElCard as et, vLoading as ie, ElTable as tt, ElTableColumn as R, ElPagination as ot, ElMessage as S, ElMessageBox as ue } from "element-plus";
8
8
  import "element-plus/theme-chalk/src/base.scss";
9
9
  import "element-plus/theme-chalk/src/dialog.scss";
10
10
  import "element-plus/theme-chalk/src/overlay.scss";
@@ -30,18 +30,18 @@ import "element-plus/theme-chalk/src/input.scss";
30
30
  import "element-plus/theme-chalk/src/badge.scss";
31
31
  import "element-plus/theme-chalk/src/message.scss";
32
32
  import "element-plus/theme-chalk/src/message-box.scss";
33
- const _hoisted_1 = { class: "form-slot" }, _hoisted_2 = { key: 0 }, _hoisted_3 = { key: 0 }, _hoisted_4 = { key: 1 }, _hoisted_5 = { style: { color: "red" } }, _hoisted_6 = { class: "form-slot" }, _hoisted_7 = {
33
+ const lt = { class: "form-slot" }, at = { key: 0 }, rt = { key: 0 }, st = { key: 1 }, nt = { style: { color: "red" } }, it = { class: "form-slot" }, ut = {
34
34
  key: 0,
35
35
  class: "card-header"
36
- }, _hoisted_8 = ["innerHTML"], _hoisted_9 = {
36
+ }, dt = ["innerHTML"], ct = {
37
37
  key: 0,
38
38
  class: "ellipsis-cell"
39
- }, __default__ = {
39
+ }, pt = {
40
40
  name: "YaheeCommonImport",
41
41
  inheritAttrs: !1
42
- }, _sfc_main = /* @__PURE__ */ defineComponent({
43
- ...__default__,
44
- props: /* @__PURE__ */ mergeDefaults({
42
+ }, Vt = /* @__PURE__ */ Ge({
43
+ ...pt,
44
+ props: /* @__PURE__ */ Le({
45
45
  isShowDialog: { type: Boolean },
46
46
  isShowResponseDataMessage: { type: Boolean },
47
47
  title: {},
@@ -57,7 +57,7 @@ const _hoisted_1 = { class: "form-slot" }, _hoisted_2 = { key: 0 }, _hoisted_3 =
57
57
  uploadDisabled: { type: Boolean },
58
58
  filePath: {},
59
59
  processFiles: { type: Function }
60
- }, defaultCommonImportProps()),
60
+ }, Ze()),
61
61
  emits: [
62
62
  "setIsShowDialog",
63
63
  "closeDialog",
@@ -65,283 +65,285 @@ const _hoisted_1 = { class: "form-slot" }, _hoisted_2 = { key: 0 }, _hoisted_3 =
65
65
  "submit",
66
66
  "reloadTableData"
67
67
  ],
68
- setup(__props, { emit: __emit }) {
69
- const props = __props, {
70
- isShowDialog,
71
- isShowResponseDataMessage,
72
- title,
73
- importId,
74
- processImportUrl,
75
- requestData,
76
- processFiles,
77
- filePath
78
- } = toRefs(props), isShowCoreImportRecordDialog = ref(!1), tableLoading = ref(!1), initWebRootUrlLoading = ref(!1), tableData = ref([]), importProgress = ref({}), pageNo = ref(1), totalNum = ref(1), pageSize = ref(50), sessionIds = ref({}), problemFiles = ref({}), responseData = ref({}), socket = {}, eventData = ref({}), errorMessage = ref({}), allWebRoot = ref({}), webRoot = ref(""), uploadLoading = ref(!1), localRequestData = ref({
68
+ setup(de, { emit: ce }) {
69
+ const pe = de, {
70
+ isShowDialog: q,
71
+ isShowResponseDataMessage: me,
72
+ title: ge,
73
+ importId: F,
74
+ processImportUrl: H,
75
+ requestData: X,
76
+ processFiles: fe,
77
+ filePath: ve
78
+ } = Pe(pe), M = c(!1), he = c(!1), N = c(!1), Y = c([]), p = c({}), Z = c(1), Q = c(1), A = c(50), _ = c({}), $ = c({}), K = c({}), C = {}, k = c({}), x = c({}), U = c({}), V = c(""), B = c(!1), O = c({
79
79
  siteId: null,
80
80
  reportTime: null,
81
81
  fileName: ""
82
- }), emit = __emit, handleClose = () => {
83
- emit("closeDialog");
84
- }, emitResponseData = () => {
85
- emit("setResponseData", responseData.value);
86
- }, triggerSubmit = () => {
87
- emit("submit");
88
- }, getProgressPercentage = (e) => {
89
- var t, o, l;
82
+ }), J = ce, ee = () => {
83
+ J("closeDialog");
84
+ }, ye = () => {
85
+ J("setResponseData", K.value);
86
+ }, we = () => {
87
+ J("submit");
88
+ }, be = (e) => {
89
+ var t, o, a;
90
90
  return Number(
91
- ((((t = importProgress.value[e]) == null ? void 0 : t.successRowCount) + ((o = importProgress.value[e]) == null ? void 0 : o.failedRowCount)) / ((l = importProgress.value[e]) == null ? void 0 : l.totalRowCount) * 100).toFixed(0)
91
+ ((((t = p.value[e]) == null ? void 0 : t.successRowCount) + ((o = p.value[e]) == null ? void 0 : o.failedRowCount)) / ((a = p.value[e]) == null ? void 0 : a.totalRowCount) * 100).toFixed(0)
92
92
  );
93
- }, getFormattedDate = (row) => {
94
- const utcDate = eval(
95
- `new Date(${row.CreateOn.replace(/\d+(?=-[^-]+$)/, (e) => parseInt(e, 10) - 1).match(/\d+/g)})`
96
- ), localDate = new Date(utcDate.getTime() - utcDate.getTimezoneOffset() * 6e4);
97
- return LongDate(localDate, "---");
98
- }, LongDate = (e, t) => {
99
- const o = new Date(e);
100
- let l = 0, a = 0, s = 0, r = 0, i = 0, n = "";
101
- return l = o.getFullYear(), l === 1 || l === 1970 || l === 1900 || isNaN(l) ? t !== void 0 ? t : "---" : (a = o.getMonth() + 1, s = o.getDate(), r = o.getHours(), i = o.getMinutes(), n = `${l}-`, n += a >= 10 ? `${a}-` : `0${a}-`, n += s >= 10 ? s : `0${s}`, n += r >= 10 ? ` ${r}` : ` 0${r}`, n += i >= 10 ? `:${i}` : `:0${i}`, n);
102
- }, getTemplateFile = () => {
103
- if (!eventData.value) return;
93
+ }, Ce = (e) => {
94
+ const t = e == null ? void 0 : e.CreateOn;
95
+ if (typeof t != "string") return "---";
96
+ const o = t.match(/\/Date\((\d+)/);
97
+ if (!o) return "---";
98
+ const a = Number(o[1]);
99
+ if (Number.isNaN(a)) return "---";
100
+ const s = new Date(a);
101
+ if (Number.isNaN(s.getTime())) return "---";
102
+ const v = s.getFullYear(), m = String(s.getMonth() + 1).padStart(2, "0"), L = String(s.getDate()).padStart(2, "0"), f = String(s.getHours()).padStart(2, "0"), P = String(s.getMinutes()).padStart(2, "0"), Oe = String(s.getSeconds()).padStart(2, "0");
103
+ return `${v}-${m}-${L} ${f}:${P}:${Oe}`;
104
+ }, ke = () => {
105
+ if (!k.value) return;
104
106
  let e = "";
105
- eventData.value.TemplateType == 1 ? e = getFileServiceUrl(
106
- `${eventData.value.Template}?dispositionType=attachment&t=${(/* @__PURE__ */ new Date()).getTime()}`
107
- ) : eventData.value.TemplateType == 2 && console.log("获取模板文件失败,暂不支持报表导出"), window.open(e, "_self");
108
- }, displayRecords = () => {
109
- isShowCoreImportRecordDialog.value = !0, handleSizeChange(pageSize.value);
110
- }, handleCloseRecord = () => {
111
- isShowCoreImportRecordDialog.value = !1;
112
- }, handleOpen = () => {
113
- fileNames.value = /* @__PURE__ */ new Set();
114
- }, getFile = (e) => {
115
- e && window.open(`${filePath.value}/${e}`, "_self");
116
- }, handleSizeChange = async (e) => {
117
- getUploadRecordDataList(JSON.stringify({ rows: pageSize.value, page: e }));
107
+ k.value.TemplateType == 1 ? e = le(
108
+ `${k.value.Template}?dispositionType=attachment&t=${(/* @__PURE__ */ new Date()).getTime()}`
109
+ ) : k.value.TemplateType == 2 && console.log("获取模板文件失败,暂不支持报表导出"), window.open(e, "_self");
110
+ }, Se = () => {
111
+ M.value = !0, te(A.value);
112
+ }, _e = () => {
113
+ M.value = !1;
114
+ }, Ie = () => {
115
+ D.value = /* @__PURE__ */ new Set();
116
+ }, G = (e) => {
117
+ e && window.open(`${ve.value}/${e}`, "_self");
118
+ }, te = async (e) => {
119
+ oe(JSON.stringify({ rows: A.value, page: e }));
118
120
  };
119
- watch(
120
- () => requestData,
121
+ We(
122
+ () => X,
121
123
  (e) => {
122
- e && (localRequestData.value = requestData.value);
124
+ e && (O.value = X.value);
123
125
  },
124
126
  { immediate: !0, deep: !0 }
125
127
  );
126
- const getUploadRecordDataList = (e) => {
127
- getUploadRecord(`/ExcelImport/GetExcelImportRecords?importId=${importId.value}`, e).then((t) => {
128
- var o, l;
129
- t.status !== 200 && (ElMessage.error(M2("获取上传记录失败!")), console.log(`获取上传记录失败!${JSON.stringify(t)}`)), tableData.value = (o = t.data) == null ? void 0 : o.rows, totalNum.value = (l = t.data) == null ? void 0 : l.total;
128
+ const oe = (e) => {
129
+ Ye(`/ExcelImport/GetExcelImportRecords?importId=${F.value}`, e).then((t) => {
130
+ var o, a;
131
+ t.status !== 200 && (S.error(u("获取上传记录失败!")), console.log(`获取上传记录失败!${JSON.stringify(t)}`)), Y.value = (o = t.data) == null ? void 0 : o.rows, Q.value = (a = t.data) == null ? void 0 : a.total;
130
132
  }).catch((t) => {
131
133
  console.log(t);
132
134
  });
133
- }, handleCurrentChange = (e) => {
134
- getUploadRecordDataList(JSON.stringify({ rows: e, page: pageNo.value }));
135
- }, fetchExcelImportEvent = async (e) => {
136
- const t = `${getCommonUrl("/ExcelImport/GetExcelImportEvent")}?origin=${window.location.host}&importId=${e}`;
135
+ }, Re = (e) => {
136
+ oe(JSON.stringify({ rows: e, page: Z.value }));
137
+ }, De = async (e) => {
138
+ const t = `${j("/ExcelImport/GetExcelImportEvent")}?origin=${window.location.host}&importId=${e}`;
137
139
  try {
138
140
  const o = await fetch(t, {
139
141
  method: "GET",
140
142
  credentials: "include"
141
143
  });
142
- return o.ok || ElMessage.error(`Network response was not ok: ${o.statusText}`), await o.json();
144
+ return o.ok || S.error(`Network response was not ok: ${o.statusText}`), await o.json();
143
145
  } catch (o) {
144
146
  return console.error("Failed to fetch Excel import event:", o), {};
145
147
  }
146
- }, getFileServiceUrl = (e) => {
148
+ }, le = (e) => {
147
149
  let t = "";
148
150
  const o = window.location.hostname;
149
- return o.includes("localhost") || o.includes("127.0.0.1") || o.includes("yahee.com") ? t = "http://qas-service.yahee.com.cn:8088/FMSService/Latest/" : t = webRoot.value, `${t}${e}`;
150
- }, getCommonUrl = (e) => getDomainBaseUrl() + e, getWebRoot = (e) => {
151
- if (initWebRootUrlLoading.value = !0, !allWebRoot.value[e])
151
+ return o.includes("localhost") || o.includes("127.0.0.1") || o.includes("yahee.com") ? t = "http://qas-service.yahee.com.cn:8088/FMSService/Latest/" : t = V.value, `${t}${e}`;
152
+ }, j = (e) => Xe() + e, Ee = (e) => {
153
+ if (N.value = !0, !U.value[e])
152
154
  try {
153
- fetch(`${getCommonUrl("/Common/GetAllWebRoot")}?origin=${window.location.host}`, {
155
+ fetch(`${j("/Common/GetAllWebRoot")}?origin=${window.location.host}`, {
154
156
  method: "GET",
155
157
  credentials: "include"
156
158
  }).then((t) => {
157
159
  if (!t.ok)
158
160
  throw new Error("Network response was not ok");
159
161
  let o = {};
160
- t.json().then((l) => {
161
- if (o = l, allWebRoot.value = o, !allWebRoot.value) {
162
+ t.json().then((a) => {
163
+ if (o = a, U.value = o, !U.value) {
162
164
  console.error("GetWebRoot 失败");
163
165
  return;
164
166
  }
165
- webRoot.value = allWebRoot.value[e], webRoot.value || console.error(`GetWebRoot未找到key为${e}的数据`);
167
+ V.value = U.value[e], V.value || console.error(`GetWebRoot未找到key为${e}的数据`);
166
168
  });
167
169
  }).finally(() => {
168
- initWebRootUrlLoading.value = !1;
170
+ N.value = !1;
169
171
  });
170
172
  } catch (t) {
171
- initWebRootUrlLoading.value = !1, console.error("GetWebRoot 失败", t);
173
+ N.value = !1, console.error("GetWebRoot 失败", t);
172
174
  }
173
- }, fileNames = ref(/* @__PURE__ */ new Set()), uploadProgress = reactive({}), handleFileUpload = (e) => {
174
- uploadLoading.value = !0;
175
+ }, D = c(/* @__PURE__ */ new Set()), E = ze({}), Te = (e) => {
176
+ B.value = !0;
175
177
  const { file: t } = e, o = 100 * 1024 * 1024;
176
178
  if (t.size > o) {
177
- console.error("文件大小不能超过 1GB"), ElMessage.success("文件大小不能超过 1GB");
179
+ console.error("文件大小不能超过 1GB"), S.success("文件大小不能超过 1GB");
178
180
  return;
179
181
  }
180
- setupWebSocket(t.name), readFileAsBase64(t).then((l) => {
181
- uploadConfigFile(t, l);
182
+ Be(t.name), $e(t).then((a) => {
183
+ xe(t, a);
182
184
  });
183
- }, readFileAsBase64 = (e) => new Promise((t, o) => {
184
- const l = new FileReader();
185
- l.onload = () => t(l.result), l.onerror = (a) => o(a), l.readAsDataURL(e);
186
- }), uploadConfigFile = (e, t) => {
187
- triggerSubmit(), fileNames.value.has(e.name) ? (delete uploadProgress[e.name], delete importProgress.value[e.name], delete sessionIds.value[e.name], delete problemFiles.value[e.name], delete socket[e.name], delete errorMessage.value[e.name]) : fileNames.value.add(e.name);
185
+ }, $e = (e) => new Promise((t, o) => {
186
+ const a = new FileReader();
187
+ a.onload = () => t(a.result), a.onerror = (s) => o(s), a.readAsDataURL(e);
188
+ }), xe = (e, t) => {
189
+ we(), D.value.has(e.name) ? (delete E[e.name], delete p.value[e.name], delete _.value[e.name], delete $.value[e.name], delete C[e.name], delete x.value[e.name]) : D.value.add(e.name);
188
190
  const o = new FormData();
189
191
  o.append("FileType", "115"), o.append("FileName", e.name), o.append("Base64Content", t), o.append("CreatedBy", "0"), o.append("Offset", "0"), o.append("IsOver", "true");
190
- const l = new XMLHttpRequest();
191
- l.open("POST", `${getFileServiceUrl("fragmentupload?t=")}${Math.random()}`, !0), l.upload.onprogress = (a) => {
192
- a.lengthComputable && (uploadProgress[e.name] = Math.round(a.loaded / a.total * 100));
193
- }, l.onload = () => {
194
- if (l.status === 200)
192
+ const a = new XMLHttpRequest();
193
+ a.open("POST", `${le("fragmentupload?t=")}${Math.random()}`, !0), a.upload.onprogress = (s) => {
194
+ s.lengthComputable && (E[e.name] = Math.round(s.loaded / s.total * 100));
195
+ }, a.onload = () => {
196
+ if (a.status === 200)
195
197
  try {
196
- const a = JSON.parse(l.responseText);
197
- if (console.log("服务器返回值:", a), a.ACK !== "Success" || !a.FileId) {
198
- ElMessage.error(`${e.name} 上传失败`);
198
+ const s = JSON.parse(a.responseText);
199
+ if (console.log("服务器返回值:", s), s.ACK !== "Success" || !s.FileId) {
200
+ S.error(`${e.name} 上传失败`);
199
201
  return;
200
202
  }
201
- ElMessage.success(`${e.name} 上传成功`), uploadProgress[e.name] = 100, setTimeout(() => {
202
- localRequestData.value = {
203
- ...localRequestData.value,
203
+ S.success(`${e.name} 上传成功`), E[e.name] = 100, setTimeout(() => {
204
+ O.value = {
205
+ ...O.value,
204
206
  // 保留原有字段
205
207
  fileName: (e == null ? void 0 : e.name) || ""
206
208
  // ES6可选链避免报错
207
- }, sessionIds.value[e.name] || (sessionIds.value[e.name] = getRandomStr(20)), processFile({
208
- importId: importId.value,
209
- fileId: a.FileId,
210
- wsSessionId: sessionIds.value[e.name],
209
+ }, _.value[e.name] || (_.value[e.name] = Me(20)), Fe({
210
+ importId: F.value,
211
+ fileId: s.FileId,
212
+ wsSessionId: _.value[e.name],
211
213
  file: e,
212
- requestData: localRequestData.value
214
+ requestData: O.value
213
215
  });
214
216
  }, 500);
215
- } catch (a) {
216
- console.error("解析服务器返回值失败:", a), ElMessage.error(`${e.name} 上传完成,但解析返回值失败`);
217
+ } catch (s) {
218
+ console.error("解析服务器返回值失败:", s), S.error(`${e.name} 上传完成,但解析返回值失败`);
217
219
  }
218
220
  else
219
- ElMessage.error(`${e.name} 上传失败`);
220
- }, l.onerror = () => {
221
- ElMessage.error(`${e.name} 上传异常`);
222
- }, l.send(o);
223
- }, processFile = (e) => {
224
- processFiles.value(processImportUrl.value, e, {}).then((t) => {
225
- var a;
226
- if (uploadLoading.value = !1, console.log("processFiles 返回值:", t), t != null && t.success) {
227
- ElMessageBox.alert("文件导入成功", "操作成功", {
221
+ S.error(`${e.name} 上传失败`);
222
+ }, a.onerror = () => {
223
+ S.error(`${e.name} 上传异常`);
224
+ }, a.send(o);
225
+ }, Fe = (e) => {
226
+ fe.value(H.value, e, {}).then((t) => {
227
+ var s;
228
+ if (B.value = !1, console.log("processFiles 返回值:", t), t != null && t.success) {
229
+ ue.alert("文件导入成功", "操作成功", {
228
230
  confirmButtonText: "确定",
229
231
  callback: () => {
230
- var s;
231
- t != null && t.fileId && (problemFiles.value[(s = e == null ? void 0 : e.file) == null ? void 0 : s.name] = t.fileId, responseData.value = t.data, isShowResponseDataMessage.value && emitResponseData());
232
+ var v;
233
+ t != null && t.fileId && ($.value[(v = e == null ? void 0 : e.file) == null ? void 0 : v.name] = t.fileId, K.value = t.data, me.value && ye());
232
234
  }
233
235
  });
234
236
  return;
235
237
  }
236
- const l = (Array.isArray(t == null ? void 0 : t.messages) ? t.messages : ["未知错误"]).join(`
238
+ const a = (Array.isArray(t == null ? void 0 : t.messages) ? t.messages : ["未知错误"]).join(`
237
239
  `) + `
238
240
 
239
241
  (可使用鼠标滚轮滚动查看)`;
240
- ElMessageBox.alert(l, "导入错误", {
242
+ ue.alert(a, "导入错误", {
241
243
  confirmButtonText: "知道了",
242
244
  customClass: "custom-common-import-alert",
243
245
  dangerouslyUseHTMLString: !0
244
- }), t != null && t.fileId && (problemFiles.value[(a = e == null ? void 0 : e.file) == null ? void 0 : a.name] = t.fileId);
246
+ }), t != null && t.fileId && ($.value[(s = e == null ? void 0 : e.file) == null ? void 0 : s.name] = t.fileId);
245
247
  }).catch((t) => {
246
- var l;
248
+ var a;
247
249
  console.error("processFiles 失败", t);
248
250
  let o = t == null ? void 0 : t.exMsg;
249
- o || (o = M2("处理过程中发生错误!")), errorMessage.value[(l = e == null ? void 0 : e.file) == null ? void 0 : l.name] = o;
251
+ o || (o = u("处理过程中发生错误!")), x.value[(a = e == null ? void 0 : e.file) == null ? void 0 : a.name] = o;
250
252
  });
251
- }, getRandomStr = (e, t) => {
253
+ }, Me = (e, t) => {
252
254
  t || (t = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ");
253
255
  let o = "";
254
- for (let l = e; l > 0; --l)
256
+ for (let a = e; a > 0; --a)
255
257
  o += t[Math.floor(Math.random() * t.length)];
256
258
  return o;
257
- }, getWebSocketServerUrl = (e) => {
259
+ }, Ne = (e) => {
258
260
  let t = "";
259
261
  const { domain: o } = document;
260
262
  return o.indexOf("localhost") >= 0 || o.indexOf("yahee.com") >= 0 ? t = "ws://qas-newerp.yahee.com.cn:8306" : t = "wss://websocket.yaheecloud.com:10001", t + e;
261
- }, getAuthCode = async () => await get(getCommonUrl("/Common/GetWsAuthCode")), setupWebSocket = (e) => {
262
- socket[e] = new WebSocket(getWebSocketServerUrl("/excel-import/")), socket[e].onmessage = (t) => {
263
- var l, a;
263
+ }, Ue = async () => await He(j("/Common/GetWsAuthCode")), Be = (e) => {
264
+ C[e] = new WebSocket(Ne("/excel-import/")), C[e].onmessage = (t) => {
265
+ var a, s;
264
266
  if (t.data == "get-auth") {
265
- getAuthCode().then((s) => {
266
- var r;
267
- console.log("发送authCode:", s), (r = socket[e]) == null || r.send(`auth:${s}`);
267
+ Ue().then((v) => {
268
+ var m;
269
+ console.log("发送authCode:", v), (m = C[e]) == null || m.send(`auth:${v}`);
268
270
  });
269
271
  return;
270
272
  }
271
273
  const o = JSON.parse(t.data);
272
274
  if (console.log("接收普通消息", o), !!o)
273
275
  if (o.MessageType === 0) {
274
- const s = o.MessageIndex || 0, r = JSON.parse(o == null ? void 0 : o.Content);
275
- if ((r == null ? void 0 : r.error) == !0) {
276
- errorMessage.value[e] = r.message;
276
+ const v = o.MessageIndex || 0, m = JSON.parse(o == null ? void 0 : o.Content);
277
+ if ((m == null ? void 0 : m.error) == !0) {
278
+ x.value[e] = m.message;
277
279
  return;
278
280
  }
279
- (!importProgress.value[e] || s > ((l = importProgress.value[e]) == null ? void 0 : l.MessageIndex)) && (importProgress.value[e] = r, importProgress.value[e].MessageIndex = s, r != null && r.finished && ((a = socket[e]) == null || a.close()));
280
- } else o.MessageType === 1 ? sessionIds.value[e] = o.Content : console.log("进度:", o);
281
- }, socket[e].onerror = (t) => {
281
+ (!p.value[e] || v > ((a = p.value[e]) == null ? void 0 : a.MessageIndex)) && (p.value[e] = m, p.value[e].MessageIndex = v, m != null && m.finished && ((s = C[e]) == null || s.close()));
282
+ } else o.MessageType === 1 ? _.value[e] = o.Content : console.log("进度:", o);
283
+ }, C[e].onerror = (t) => {
282
284
  console.error("WebSocket 错误:", t), t instanceof ErrorEvent ? console.error("Error message:", t.message) : console.error("Unknown WebSocket error:", t);
283
- }, socket[e].onclose = () => {
285
+ }, C[e].onclose = () => {
284
286
  console.log("WebSocket 连接关闭");
285
287
  };
286
288
  };
287
- return onMounted(() => {
288
- if (!processImportUrl.value) {
289
+ return qe(() => {
290
+ if (!H.value) {
289
291
  console.error("processImportUrl不能为空!");
290
292
  return;
291
293
  }
292
- if (!importId.value) {
294
+ if (!F.value) {
293
295
  console.error("importId不能为空!");
294
296
  return;
295
297
  }
296
- fetchExcelImportEvent(importId.value).then((t) => {
297
- eventData.value = t;
298
+ De(F.value).then((t) => {
299
+ k.value = t;
298
300
  });
299
301
  const e = window.location.hostname;
300
- e.includes("localhost") || e.includes("127.0.0.1") || e.includes("yahee.com") || getWebRoot("PictureUrlRoot");
301
- }), onUnmounted(() => {
302
- fileNames.value.forEach((e) => {
302
+ e.includes("localhost") || e.includes("127.0.0.1") || e.includes("yahee.com") || Ee("PictureUrlRoot");
303
+ }), Ae(() => {
304
+ D.value.forEach((e) => {
303
305
  var t;
304
- (t = socket[e]) == null || t.close();
306
+ (t = C[e]) == null || t.close();
305
307
  });
306
- }), (e, t) => (openBlock(), createElementBlock(Fragment, null, [
307
- createVNode(unref(ElDialog), {
308
- modelValue: unref(isShowDialog),
309
- "onUpdate:modelValue": t[1] || (t[1] = (o) => isRef(isShowDialog) ? isShowDialog.value = o : null),
310
- title: unref(M2)(unref(title)),
308
+ }), (e, t) => (d(), y(ae, null, [
309
+ n(l(ne), {
310
+ modelValue: l(q),
311
+ "onUpdate:modelValue": t[1] || (t[1] = (o) => Ve(q) ? q.value = o : null),
312
+ title: l(u)(l(ge)),
311
313
  width: "900",
312
- "before-close": handleClose,
314
+ "before-close": ee,
313
315
  draggable: "",
314
- onOpen: handleOpen
316
+ onOpen: Ie
315
317
  }, {
316
- default: withCtx(() => {
318
+ default: r(() => {
317
319
  var o;
318
320
  return [
319
- withDirectives((openBlock(), createElementBlock("div", null, [
320
- createElementVNode("div", _hoisted_1, [
321
- renderSlot(e.$slots, "form")
321
+ re((d(), y("div", null, [
322
+ T("div", lt, [
323
+ se(e.$slots, "form")
322
324
  ]),
323
- createVNode(unref(ElRow), null, {
324
- default: withCtx(() => [
325
- createVNode(unref(ElUpload), {
325
+ n(l(I), null, {
326
+ default: r(() => [
327
+ n(l(Qe), {
326
328
  class: "upload-record",
327
- "http-request": handleFileUpload,
329
+ "http-request": Te,
328
330
  accept: ".xls,.xlsx,.txt,.csv",
329
331
  "show-file-list": !1,
330
332
  multiple: e.multiple,
331
333
  drag: "",
332
334
  style: { width: "20%", height: "100%" },
333
- disabled: e.uploadDisabled || uploadLoading.value
335
+ disabled: e.uploadDisabled || B.value
334
336
  }, {
335
- default: withCtx(() => [
336
- createVNode(unref(ElButton), {
337
+ default: r(() => [
338
+ n(l(W), {
337
339
  style: { "background-color": "rgba(0, 183, 238, 1)", "font-weight": "bold" },
338
340
  size: "large",
339
341
  type: "primary",
340
342
  disabled: e.uploadDisabled,
341
- loading: uploadLoading.value
343
+ loading: B.value
342
344
  }, {
343
- default: withCtx(() => [
344
- createTextVNode(toDisplayString(unref(M2)("上传文件")), 1)
345
+ default: r(() => [
346
+ g(i(l(u)("上传文件")), 1)
345
347
  ]),
346
348
  _: 1
347
349
  }, 8, ["disabled", "loading"])
@@ -351,188 +353,188 @@ const _hoisted_1 = { class: "form-slot" }, _hoisted_2 = { key: 0 }, _hoisted_3 =
351
353
  ]),
352
354
  _: 1
353
355
  }),
354
- (o = fileNames.value) != null && o.size ? (openBlock(), createElementBlock("div", _hoisted_2, [
355
- (openBlock(!0), createElementBlock(Fragment, null, renderList(fileNames.value, (l) => {
356
- var a, s;
357
- return openBlock(), createElementBlock("div", {
358
- key: l,
356
+ (o = D.value) != null && o.size ? (d(), y("div", at, [
357
+ (d(!0), y(ae, null, Je(D.value, (a) => {
358
+ var s, v;
359
+ return d(), y("div", {
360
+ key: a,
359
361
  class: "uploadProgress"
360
362
  }, [
361
- createVNode(unref(ElRow), { style: { "margin-bottom": "5px" } }, {
362
- default: withCtx(() => [
363
- createVNode(unref(ElCol), { span: 18 }, {
364
- default: withCtx(() => [
365
- createVNode(unref(ElLink), {
363
+ n(l(I), { style: { "margin-bottom": "5px" } }, {
364
+ default: r(() => [
365
+ n(l(b), { span: 18 }, {
366
+ default: r(() => [
367
+ n(l(z), {
366
368
  type: "primary",
367
369
  underline: !1,
368
370
  style: { font: "inherit" },
369
- onClick: t[0] || (t[0] = (r) => getFile(eventData.value.Template))
371
+ onClick: t[0] || (t[0] = (m) => G(k.value.Template))
370
372
  }, {
371
- default: withCtx(() => [
372
- createTextVNode(toDisplayString(l), 1)
373
+ default: r(() => [
374
+ g(i(a), 1)
373
375
  ]),
374
376
  _: 2
375
377
  }, 1024)
376
378
  ]),
377
379
  _: 2
378
380
  }, 1024),
379
- uploadProgress[l] ? (openBlock(), createBlock(unref(ElCol), {
381
+ E[a] ? (d(), w(l(b), {
380
382
  key: 0,
381
383
  span: 6
382
384
  }, {
383
- default: withCtx(() => [
384
- uploadProgress[l] == 100 ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(unref(M2)("文件上传完成")), 1)) : (openBlock(), createElementBlock("span", _hoisted_4, toDisplayString(unref(M2)("文件正在上传,进度") + `${uploadProgress[l]}% ...`), 1))
385
+ default: r(() => [
386
+ E[a] == 100 ? (d(), y("span", rt, i(l(u)("文件上传完成")), 1)) : (d(), y("span", st, i(l(u)("文件正在上传,进度") + `${E[a]}% ...`), 1))
385
387
  ]),
386
388
  _: 2
387
- }, 1024)) : createCommentVNode("", !0)
389
+ }, 1024)) : h("", !0)
388
390
  ]),
389
391
  _: 2
390
392
  }, 1024),
391
- sessionIds.value[l] ? (openBlock(), createBlock(unref(ElRow), {
393
+ _.value[a] ? (d(), w(l(I), {
392
394
  key: 0,
393
395
  style: { "margin-bottom": "5px" }
394
396
  }, {
395
- default: withCtx(() => [
396
- createTextVNode(toDisplayString(unref(M2)("导入ID")) + ":" + toDisplayString(sessionIds.value[l]), 1)
397
+ default: r(() => [
398
+ g(i(l(u)("导入ID")) + ":" + i(_.value[a]), 1)
397
399
  ]),
398
400
  _: 2
399
- }, 1024)) : createCommentVNode("", !0),
400
- errorMessage.value[l] ? (openBlock(), createBlock(unref(ElRow), {
401
+ }, 1024)) : h("", !0),
402
+ x.value[a] ? (d(), w(l(I), {
401
403
  key: 1,
402
404
  style: { "margin-bottom": "5px" }
403
405
  }, {
404
- default: withCtx(() => [
405
- createElementVNode("span", _hoisted_5, toDisplayString(unref(M2)(errorMessage.value[l])), 1)
406
+ default: r(() => [
407
+ T("span", nt, i(l(u)(x.value[a])), 1)
406
408
  ]),
407
409
  _: 2
408
- }, 1024)) : createCommentVNode("", !0),
409
- (a = importProgress.value[l]) != null && a.totalRowCount ? (openBlock(), createBlock(unref(ElRow), {
410
+ }, 1024)) : h("", !0),
411
+ (s = p.value[a]) != null && s.totalRowCount ? (d(), w(l(I), {
410
412
  key: 2,
411
413
  style: { "margin-bottom": "5px" }
412
414
  }, {
413
- default: withCtx(() => {
414
- var r, i;
415
+ default: r(() => {
416
+ var m, L;
415
417
  return [
416
- createVNode(unref(ElCol), { span: 6 }, {
417
- default: withCtx(() => {
418
- var n, u;
418
+ n(l(b), { span: 6 }, {
419
+ default: r(() => {
420
+ var f, P;
419
421
  return [
420
- createTextVNode(toDisplayString(unref(M2)("工作簿")) + ":" + toDisplayString((n = importProgress.value[l]) == null ? void 0 : n.currentSheet) + "/" + toDisplayString((u = importProgress.value[l]) == null ? void 0 : u.sheetCount), 1)
422
+ g(i(l(u)("工作簿")) + ":" + i((f = p.value[a]) == null ? void 0 : f.currentSheet) + "/" + i((P = p.value[a]) == null ? void 0 : P.sheetCount), 1)
421
423
  ];
422
424
  }),
423
425
  _: 2
424
426
  }, 1024),
425
- createVNode(unref(ElCol), { span: 6 }, {
426
- default: withCtx(() => {
427
- var n;
427
+ n(l(b), { span: 6 }, {
428
+ default: r(() => {
429
+ var f;
428
430
  return [
429
- createTextVNode(toDisplayString(unref(M2)("总行数")) + ":" + toDisplayString((n = importProgress.value[l]) == null ? void 0 : n.totalRowCount), 1)
431
+ g(i(l(u)("总行数")) + ":" + i((f = p.value[a]) == null ? void 0 : f.totalRowCount), 1)
430
432
  ];
431
433
  }),
432
434
  _: 2
433
435
  }, 1024),
434
- createVNode(unref(ElCol), { span: 6 }, {
435
- default: withCtx(() => {
436
- var n;
436
+ n(l(b), { span: 6 }, {
437
+ default: r(() => {
438
+ var f;
437
439
  return [
438
- createTextVNode(toDisplayString(unref(M2)("成功行数")) + ":" + toDisplayString((n = importProgress.value[l]) == null ? void 0 : n.successRowCount), 1)
440
+ g(i(l(u)("成功行数")) + ":" + i((f = p.value[a]) == null ? void 0 : f.successRowCount), 1)
439
441
  ];
440
442
  }),
441
443
  _: 2
442
444
  }, 1024),
443
- (r = importProgress.value[l]) != null && r.failedRowCount ? createCommentVNode("", !0) : (openBlock(), createBlock(unref(ElCol), {
445
+ (m = p.value[a]) != null && m.failedRowCount ? h("", !0) : (d(), w(l(b), {
444
446
  key: 0,
445
447
  span: 6
446
448
  }, {
447
- default: withCtx(() => [
448
- createTextVNode(toDisplayString(unref(M2)("失败行数")) + ":0 ", 1)
449
+ default: r(() => [
450
+ g(i(l(u)("失败行数")) + ":0 ", 1)
449
451
  ]),
450
452
  _: 1
451
453
  })),
452
- (i = importProgress.value[l]) != null && i.failedRowCount ? (openBlock(), createBlock(unref(ElCol), {
454
+ (L = p.value[a]) != null && L.failedRowCount ? (d(), w(l(b), {
453
455
  key: 1,
454
456
  span: 6,
455
457
  style: { display: "flex" }
456
458
  }, {
457
- default: withCtx(() => [
458
- createTextVNode(toDisplayString(unref(M2)("失败行数")) + ": ", 1),
459
- createVNode(unref(ElLink), {
459
+ default: r(() => [
460
+ g(i(l(u)("失败行数")) + ": ", 1),
461
+ n(l(z), {
460
462
  type: "primary",
461
463
  underline: !1,
462
- title: problemFiles.value[l],
463
- onClick: (n) => getFile(problemFiles.value[l])
464
+ title: $.value[a],
465
+ onClick: (f) => G($.value[a])
464
466
  }, {
465
- default: withCtx(() => {
466
- var n;
467
+ default: r(() => {
468
+ var f;
467
469
  return [
468
- createTextVNode(toDisplayString((n = importProgress.value[l]) == null ? void 0 : n.failedRowCount), 1)
470
+ g(i((f = p.value[a]) == null ? void 0 : f.failedRowCount), 1)
469
471
  ];
470
472
  }),
471
473
  _: 2
472
474
  }, 1032, ["title", "onClick"])
473
475
  ]),
474
476
  _: 2
475
- }, 1024)) : createCommentVNode("", !0)
477
+ }, 1024)) : h("", !0)
476
478
  ];
477
479
  }),
478
480
  _: 2
479
- }, 1024)) : createCommentVNode("", !0),
480
- t[3] || (t[3] = createElementVNode("br", null, null, -1)),
481
- (s = importProgress.value[l]) != null && s.totalRowCount ? (openBlock(), createBlock(unref(ElProgress), {
481
+ }, 1024)) : h("", !0),
482
+ t[3] || (t[3] = T("br", null, null, -1)),
483
+ (v = p.value[a]) != null && v.totalRowCount ? (d(), w(l(Ke), {
482
484
  key: 3,
483
- percentage: getProgressPercentage(l)
484
- }, null, 8, ["percentage"])) : createCommentVNode("", !0),
485
- createElementVNode("div", _hoisted_6, [
486
- renderSlot(e.$slots, "resultMessage")
485
+ percentage: be(a)
486
+ }, null, 8, ["percentage"])) : h("", !0),
487
+ T("div", it, [
488
+ se(e.$slots, "resultMessage")
487
489
  ])
488
490
  ]);
489
491
  }), 128))
490
- ])) : createCommentVNode("", !0),
491
- createVNode(unref(ElRow), { style: { "margin-top": "10px" } }, {
492
- default: withCtx(() => [
493
- createVNode(unref(ElCard), { style: { width: "860px" } }, {
494
- header: withCtx(() => [
495
- e.displayGetTemplate ? (openBlock(), createElementBlock("div", _hoisted_7, [
496
- createElementVNode("span", null, toDisplayString(unref(M2)("说明")), 1)
497
- ])) : createCommentVNode("", !0)
492
+ ])) : h("", !0),
493
+ n(l(I), { style: { "margin-top": "10px" } }, {
494
+ default: r(() => [
495
+ n(l(et), { style: { width: "860px" } }, {
496
+ header: r(() => [
497
+ e.displayGetTemplate ? (d(), y("div", ut, [
498
+ T("span", null, i(l(u)("说明")), 1)
499
+ ])) : h("", !0)
498
500
  ]),
499
- footer: withCtx(() => [
500
- createVNode(unref(ElRow), null, {
501
- default: withCtx(() => [
502
- createVNode(unref(ElCol), { span: 10 }),
503
- createVNode(unref(ElCol), {
501
+ footer: r(() => [
502
+ n(l(I), null, {
503
+ default: r(() => [
504
+ n(l(b), { span: 10 }),
505
+ n(l(b), {
504
506
  span: 14,
505
507
  style: { display: "flex", "justify-content": "flex-end" }
506
508
  }, {
507
- default: withCtx(() => [
508
- e.displayGetTemplate && eventData.value.TemplateType != 0 ? (openBlock(), createBlock(unref(ElButton), {
509
+ default: r(() => [
510
+ e.displayGetTemplate && k.value.TemplateType != 0 ? (d(), w(l(W), {
509
511
  key: 0,
510
512
  style: { "background-color": "rgba(89, 191, 87, 1)", color: "white", "font-weight": "bold" },
511
513
  size: "large",
512
- onClick: getTemplateFile
514
+ onClick: ke
513
515
  }, {
514
- default: withCtx(() => [
515
- createTextVNode(toDisplayString(unref(M2)("获取模板")), 1)
516
+ default: r(() => [
517
+ g(i(l(u)("获取模板")), 1)
516
518
  ]),
517
519
  _: 1
518
- })) : createCommentVNode("", !0),
519
- createVNode(unref(ElButton), {
520
+ })) : h("", !0),
521
+ n(l(W), {
520
522
  style: { "background-color": "rgba(89, 191, 87, 1)", color: "white", "font-weight": "bold" },
521
523
  size: "large",
522
- onClick: displayRecords
524
+ onClick: Se
523
525
  }, {
524
- default: withCtx(() => [
525
- createTextVNode(toDisplayString(unref(M2)("导入记录")), 1)
526
+ default: r(() => [
527
+ g(i(l(u)("导入记录")), 1)
526
528
  ]),
527
529
  _: 1
528
530
  }),
529
- createVNode(unref(ElButton), {
531
+ n(l(W), {
530
532
  style: { color: "#949592", "font-weight": "bold" },
531
533
  size: "large",
532
- onClick: handleClose
534
+ onClick: ee
533
535
  }, {
534
- default: withCtx(() => [
535
- createTextVNode(toDisplayString(unref(M2)("关闭")), 1)
536
+ default: r(() => [
537
+ g(i(l(u)("关闭")), 1)
536
538
  ]),
537
539
  _: 1
538
540
  })
@@ -543,11 +545,11 @@ const _hoisted_1 = { class: "form-slot" }, _hoisted_2 = { key: 0 }, _hoisted_3 =
543
545
  _: 1
544
546
  })
545
547
  ]),
546
- default: withCtx(() => [
547
- e.displayGetTemplate ? (openBlock(), createElementBlock("div", {
548
+ default: r(() => [
549
+ e.displayGetTemplate ? (d(), y("div", {
548
550
  key: 0,
549
- innerHTML: eventData.value.Description
550
- }, null, 8, _hoisted_8)) : createCommentVNode("", !0)
551
+ innerHTML: k.value.Description
552
+ }, null, 8, dt)) : h("", !0)
551
553
  ]),
552
554
  _: 1
553
555
  })
@@ -555,126 +557,126 @@ const _hoisted_1 = { class: "form-slot" }, _hoisted_2 = { key: 0 }, _hoisted_3 =
555
557
  _: 1
556
558
  })
557
559
  ])), [
558
- [unref(vLoading), initWebRootUrlLoading.value]
560
+ [l(ie), N.value]
559
561
  ])
560
562
  ];
561
563
  }),
562
564
  _: 3
563
565
  }, 8, ["modelValue", "title"]),
564
- createVNode(unref(ElDialog), {
565
- modelValue: isShowCoreImportRecordDialog.value,
566
- "onUpdate:modelValue": t[2] || (t[2] = (o) => isShowCoreImportRecordDialog.value = o),
567
- title: unref(M2)("导入记录"),
566
+ n(l(ne), {
567
+ modelValue: M.value,
568
+ "onUpdate:modelValue": t[2] || (t[2] = (o) => M.value = o),
569
+ title: l(u)("导入记录"),
568
570
  width: "1400",
569
- "before-close": handleCloseRecord,
571
+ "before-close": _e,
570
572
  draggable: ""
571
573
  }, {
572
- default: withCtx(() => [
573
- createElementVNode("div", null, [
574
- withDirectives((openBlock(), createBlock(unref(ElTable), {
574
+ default: r(() => [
575
+ T("div", null, [
576
+ re((d(), w(l(tt), {
575
577
  border: "",
576
578
  "row-key": "id",
577
- data: tableData.value,
579
+ data: Y.value,
578
580
  "max-height": "500",
579
581
  style: { width: "100%" },
580
- "empty-text": unref(M2)("暂无数据")
582
+ "empty-text": l(u)("暂无数据")
581
583
  }, {
582
- default: withCtx(() => [
583
- createVNode(unref(ElTableColumn), {
584
+ default: r(() => [
585
+ n(l(R), {
584
586
  align: "center",
585
- label: unref(M2)("记录ID"),
587
+ label: l(u)("记录ID"),
586
588
  "min-width": "220",
587
589
  prop: "TaskId"
588
590
  }, null, 8, ["label"]),
589
- createVNode(unref(ElTableColumn), {
591
+ n(l(R), {
590
592
  align: "center",
591
- label: unref(M2)("导入时间"),
593
+ label: l(u)("导入时间"),
592
594
  "min-width": "100"
593
595
  }, {
594
- default: withCtx((o) => [
595
- createTextVNode(toDisplayString(getFormattedDate(o.row)), 1)
596
+ default: r((o) => [
597
+ g(i(Ce(o.row)), 1)
596
598
  ]),
597
599
  _: 1
598
600
  }, 8, ["label"]),
599
- createVNode(unref(ElTableColumn), {
601
+ n(l(R), {
600
602
  align: "center",
601
- label: unref(M2)("导入人")
603
+ label: l(u)("导入人")
602
604
  }, {
603
- default: withCtx((o) => [
604
- createTextVNode(toDisplayString(o.row.CreatedBy ? unref(translateEmployeeName)(o.row.CreatedBy) : "-"), 1)
605
+ default: r((o) => [
606
+ g(i(o.row.CreatedBy ? l(je)(o.row.CreatedBy) : "-"), 1)
605
607
  ]),
606
608
  _: 1
607
609
  }, 8, ["label"]),
608
- createVNode(unref(ElTableColumn), {
610
+ n(l(R), {
609
611
  align: "center",
610
- label: unref(M2)("上传文件"),
612
+ label: l(u)("上传文件"),
611
613
  "min-width": "160"
612
614
  }, {
613
- default: withCtx((o) => [
614
- createVNode(unref(ElLink), {
615
+ default: r((o) => [
616
+ n(l(z), {
615
617
  type: "primary",
616
618
  underline: !1,
617
619
  style: { font: "inherit" },
618
- onClick: (l) => getFile(o.row.InFileId)
620
+ onClick: (a) => G(o.row.InFileId)
619
621
  }, {
620
- default: withCtx(() => [
621
- createTextVNode(toDisplayString(o.row.InFileId), 1)
622
+ default: r(() => [
623
+ g(i(o.row.InFileId), 1)
622
624
  ]),
623
625
  _: 2
624
626
  }, 1032, ["onClick"])
625
627
  ]),
626
628
  _: 1
627
629
  }, 8, ["label"]),
628
- createVNode(unref(ElTableColumn), {
630
+ n(l(R), {
629
631
  align: "center",
630
- label: unref(M2)("输出文件"),
632
+ label: l(u)("输出文件"),
631
633
  "min-width": "160"
632
634
  }, {
633
- default: withCtx((o) => [
634
- createVNode(unref(ElLink), {
635
+ default: r((o) => [
636
+ n(l(z), {
635
637
  type: "primary",
636
638
  underline: !1,
637
639
  style: { font: "inherit" },
638
- onClick: (l) => getFile(o.row.OutFileId)
640
+ onClick: (a) => G(o.row.OutFileId)
639
641
  }, {
640
- default: withCtx(() => [
641
- createTextVNode(toDisplayString(o.row.OutFileId), 1)
642
+ default: r(() => [
643
+ g(i(o.row.OutFileId), 1)
642
644
  ]),
643
645
  _: 2
644
646
  }, 1032, ["onClick"])
645
647
  ]),
646
648
  _: 1
647
649
  }, 8, ["label"]),
648
- createVNode(unref(ElTableColumn), {
650
+ n(l(R), {
649
651
  align: "center",
650
- label: unref(M2)("错误信息"),
652
+ label: l(u)("错误信息"),
651
653
  prop: "ErrorMessage",
652
654
  width: "200"
653
655
  }, {
654
- default: withCtx((o) => [
655
- o.row.ErrorMessage ? (openBlock(), createElementBlock("div", _hoisted_9, toDisplayString(o.row.ErrorMessage), 1)) : createCommentVNode("", !0)
656
+ default: r((o) => [
657
+ o.row.ErrorMessage ? (d(), y("div", ct, i(o.row.ErrorMessage), 1)) : h("", !0)
656
658
  ]),
657
659
  _: 1
658
660
  }, 8, ["label"]),
659
- createVNode(unref(ElTableColumn), {
661
+ n(l(R), {
660
662
  align: "center",
661
- label: unref(M2)("备注"),
663
+ label: l(u)("备注"),
662
664
  prop: "Remark"
663
665
  }, null, 8, ["label"])
664
666
  ]),
665
667
  _: 1
666
668
  }, 8, ["data", "empty-text"])), [
667
- [unref(vLoading), tableLoading.value]
669
+ [l(ie), he.value]
668
670
  ]),
669
- createVNode(unref(ElPagination), {
670
- "current-page": pageNo.value,
671
+ n(l(ot), {
672
+ "current-page": Z.value,
671
673
  "page-sizes": [50, 100, 150, 200],
672
- "page-size": pageSize.value,
674
+ "page-size": A.value,
673
675
  layout: "total, sizes, prev, pager, next, jumper",
674
- total: totalNum.value,
676
+ total: Q.value,
675
677
  class: "page-pagination",
676
- onSizeChange: handleSizeChange,
677
- onCurrentChange: handleCurrentChange
678
+ onSizeChange: te,
679
+ onCurrentChange: Re
678
680
  }, null, 8, ["current-page", "page-size", "total"])
679
681
  ])
680
682
  ]),
@@ -684,5 +686,5 @@ const _hoisted_1 = { class: "form-slot" }, _hoisted_2 = { key: 0 }, _hoisted_3 =
684
686
  }
685
687
  });
686
688
  export {
687
- _sfc_main as default
689
+ Vt as default
688
690
  };