yahee-components 0.0.18 → 0.0.20
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/es/_virtual/dayjs.min.js +4 -0
- package/es/annex-upload/annex-upload.vue.js +158 -0
- package/es/annex-upload/annex-upload.vue2.js +4 -0
- package/es/annex-upload/index.js +7 -0
- package/es/annex-upload/mimeType.js +822 -0
- package/es/annex-upload/style/index.css +7 -0
- package/es/api/server.js +29 -0
- package/es/api/tool.js +68 -0
- package/es/comprehensive-search/comprehensive-search.vue.js +165 -122
- package/es/copy/copy.vue.js +1 -1
- package/es/country-platform-shop-condition/country-platform-shop-condition.vue.js +218 -0
- package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +4 -0
- package/es/country-platform-shop-condition/index.js +7 -0
- package/es/country-platform-shop-condition/style/index.css +48 -0
- package/es/drop-down-condition/drop-down-condition.vue.js +216 -0
- package/es/drop-down-condition/drop-down-condition.vue2.js +4 -0
- package/es/drop-down-condition/index.js +7 -0
- package/es/drop-down-condition/style/index.css +45 -0
- package/es/image-upload/image-upload.vue.js +177 -0
- package/es/image-upload/image-upload.vue2.js +4 -0
- package/es/image-upload/index.js +7 -0
- package/es/image-upload/style/index.css +33 -0
- package/es/index.js +26 -7
- package/es/installs.js +22 -4
- package/es/left-condition/index.js +7 -0
- package/es/left-condition/left-condition-sub.vue.js +95 -0
- package/es/left-condition/left-condition-sub.vue2.js +4 -0
- package/es/left-condition/left-condition.vue.js +216 -0
- package/es/left-condition/left-condition.vue2.js +4 -0
- package/es/left-condition/style/index.css +10 -0
- package/es/left-condition-enum/index.js +7 -0
- package/es/left-condition-enum/left-condition-enum.vue.js +80 -0
- package/es/left-condition-enum/left-condition-enum.vue2.js +4 -0
- package/es/left-condition-enum/style/index.css +10 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/index.js +38 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/adapters/adapters.js +53 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/adapters/fetch.js +141 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/adapters/xhr.js +71 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/axios.js +46 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/cancel/CancelToken.js +77 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/cancel/CanceledError.js +11 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/cancel/isCancel.js +6 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/Axios.js +133 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/AxiosError.js +54 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/AxiosHeaders.js +173 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/InterceptorManager.js +58 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/buildFullPath.js +8 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/dispatchRequest.js +31 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/mergeConfig.js +70 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/settle.js +14 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/transformData.js +13 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/defaults/index.js +89 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/defaults/transitional.js +8 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/env/data.js +4 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +33 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/HttpStatusCode.js +71 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/bind.js +8 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/buildURL.js +19 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/combineURLs.js +6 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/composeSignals.js +30 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/cookies.js +32 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/formDataToJSON.js +31 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/isAbsoluteURL.js +6 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/isAxiosError.js +7 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/isURLSameOrigin.js +37 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/null.js +4 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/parseHeaders.js +30 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/parseProtocol.js +7 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/progressEventReducer.js +35 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/resolveConfig.js +33 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/speedometer.js +19 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/spread.js +8 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/throttle.js +15 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/toFormData.js +83 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/toURLEncodedForm.js +13 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/trackStream.js +63 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/validator.js +51 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/browser/classes/Blob.js +4 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/browser/classes/FormData.js +4 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +5 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/browser/index.js +15 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/common/utils.js +9 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/index.js +9 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/utils.js +233 -0
- package/es/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js +282 -0
- package/es/node_modules/{lodash → .pnpm/lodash@4.17.21/node_modules/lodash}/lodash.js +2 -2
- package/es/node_modules/.pnpm/v3-infinite-loading@1.3.2/node_modules/v3-infinite-loading/lib/v3-infinite-loading.es.js +120 -0
- package/es/operation-log/index.js +7 -0
- package/es/operation-log/operation-log-content.vue.js +100 -0
- package/es/operation-log/operation-log-content.vue2.js +4 -0
- package/es/operation-log/operation-log-dialog.vue.js +70 -0
- package/es/operation-log/operation-log-dialog.vue2.js +4 -0
- package/es/operation-log/operation-log-form.vue.js +181 -0
- package/es/operation-log/operation-log-form.vue2.js +4 -0
- package/es/operation-log/operation-log.vue.js +232 -0
- package/es/operation-log/operation-log.vue2.js +4 -0
- package/es/operation-log/style/index.css +220 -0
- package/es/packages/components/api/log/index.js +15 -0
- package/es/packages/components/api/log-server.js +50 -0
- package/es/packages/components/api/server.js +32 -0
- package/es/packages/components/api/tool.js +56 -0
- package/es/packages/components/api/upload-server.js +65 -0
- package/es/packages/components/assets/images/errorimg.png.js +4 -0
- package/es/packages/components/assets/images/excel.png.js +4 -0
- package/es/packages/components/assets/images/file-word.png.js +4 -0
- package/es/packages/components/assets/images/pdf.png.js +4 -0
- package/es/packages/components/assets/images/ppt.png.js +4 -0
- package/es/packages/components/assets/images/vue.svg.js +4 -0
- package/es/packages/components/hooks/useClipboard.js +30 -0
- package/es/packages/components/hooks/useImg.js +15 -0
- package/es/packages/components/hooks/useImgPath.js +14 -0
- package/es/packages/components/hooks/useImport.js +33 -0
- package/es/packages/components/hooks/useUpload.js +24 -0
- package/es/static/CommonObject.js +4 -0
- package/es/style.css +946 -0
- package/es/styles/custom.css +83 -0
- package/es/styles/globals.css +697 -0
- package/es/styles/index.css +787 -0
- package/es/styles/variables.css +32 -0
- package/es/utils/config.js +19 -0
- package/es/utils/const.js +19 -0
- package/es/utils/storage.js +52 -0
- package/es/utils/style.js +28 -0
- package/es/utils/translate.js +57 -0
- package/lib/annex-upload/style/index.css +7 -0
- package/lib/country-platform-shop-condition/style/index.css +48 -0
- package/lib/drop-down-condition/style/index.css +45 -0
- package/lib/image-upload/style/index.css +33 -0
- package/lib/left-condition/style/index.css +10 -0
- package/lib/left-condition-enum/style/index.css +10 -0
- package/lib/operation-log/style/index.css +220 -0
- package/lib/style.css +946 -0
- package/lib/styles/custom.css +83 -0
- package/lib/styles/globals.css +697 -0
- package/lib/styles/index.css +787 -0
- package/lib/styles/variables.css +32 -0
- package/package.json +10 -4
- package/types/hooks/useClipboard.d.ts +7 -0
- package/types/hooks/useImg.d.ts +10 -0
- package/types/hooks/useImgPath.d.ts +5 -0
- package/types/hooks/useImport.d.ts +11 -0
- package/types/hooks/useUpload.d.ts +12 -0
- package/types/index.d.ts +6 -204
- package/types/src/annex-upload/annex-upload.d.ts +30 -0
- package/types/src/annex-upload/annex-upload.vue.d.ts +443 -0
- package/types/src/annex-upload/index.d.ts +123 -0
- package/types/src/annex-upload/mimeType.d.ts +2 -0
- package/types/src/api/server.d.ts +6 -0
- package/types/src/api/tool.d.ts +6 -0
- package/types/src/api/types.d.ts +17 -0
- package/types/src/components.d.ts +10 -0
- package/types/src/comprehensive-search/comprehensive-search.d.ts +12 -0
- package/types/src/comprehensive-search/comprehensive-search.vue.d.ts +52 -0
- package/types/src/copy/copy.d.ts +12 -0
- package/types/src/copy/copy.vue.d.ts +21 -0
- package/types/src/copy/index.d.ts +32 -0
- package/types/src/country-platform-shop-condition/country-platform-shop-condition.d.ts +17 -0
- package/types/src/country-platform-shop-condition/country-platform-shop-condition.vue.d.ts +14 -0
- package/types/src/country-platform-shop-condition/index.d.ts +16 -0
- package/types/src/drop-down-condition/drop-down-condition.d.ts +6 -0
- package/types/src/drop-down-condition/drop-down-condition.vue.d.ts +40 -0
- package/types/src/drop-down-condition/index.d.ts +42 -0
- package/types/src/image-upload/image-upload.d.ts +26 -0
- package/types/src/image-upload/image-upload.vue.d.ts +43 -0
- package/types/src/image-upload/index.d.ts +94 -0
- package/types/src/index.d.ts +7 -0
- package/types/src/input/index.d.ts +16 -0
- package/types/src/input/input.d.ts +18 -0
- package/types/src/input/input.vue.d.ts +14 -0
- package/types/src/left-condition/index.d.ts +69 -0
- package/types/src/left-condition/left-condition-sub.vue.d.ts +47 -0
- package/types/src/left-condition/left-condition.d.ts +5 -0
- package/types/src/left-condition/left-condition.vue.d.ts +68 -0
- package/types/src/left-condition-enum/index.d.ts +162 -0
- package/types/src/left-condition-enum/left-condition-enum.d.ts +5 -0
- package/types/src/left-condition-enum/left-condition-enum.vue.d.ts +160 -0
- package/types/src/operation-log/index.d.ts +9 -0
- package/types/src/operation-log/operation-log-content.vue.d.ts +24 -0
- package/types/src/operation-log/operation-log-dialog.vue.d.ts +39 -0
- package/types/src/operation-log/operation-log-form.vue.d.ts +19 -0
- package/types/src/operation-log/operation-log.d.ts +11 -0
- package/types/src/operation-log/operation-log.vue.d.ts +6 -0
- package/types/src/static/CommonObject.d.ts +18 -0
- package/types/src/static/CommonVariables.d.ts +4 -0
- package/types/src/utils/config.d.ts +8 -0
- package/types/src/utils/const.d.ts +19 -0
- package/types/src/utils/functions.d.ts +1 -0
- package/types/src/utils/install.d.ts +8 -0
- package/types/src/utils/storage.d.ts +18 -0
- package/types/src/utils/style.d.ts +19 -0
- package/types/src/utils/to-kebab-case.d.ts +1 -0
- package/types/src/utils/translate.d.ts +5 -0
- package/types/src/utils/typescript.d.ts +5 -0
- package/es/hooks/useClipboard.js +0 -28
- package/lib/_virtual/_commonjsHelpers.js +0 -1
- package/lib/_virtual/lodash.js +0 -1
- package/lib/comprehensive-search/comprehensive-search.vue.js +0 -1
- package/lib/comprehensive-search/comprehensive-search.vue2.js +0 -1
- package/lib/comprehensive-search/index.js +0 -1
- package/lib/copy/copy.vue.js +0 -1
- package/lib/copy/copy.vue2.js +0 -1
- package/lib/copy/index.js +0 -1
- package/lib/hooks/useClipboard.js +0 -1
- package/lib/index.js +0 -1
- package/lib/input/index.js +0 -1
- package/lib/input/input.vue.js +0 -1
- package/lib/input/input.vue2.js +0 -1
- package/lib/installs.js +0 -1
- package/lib/node_modules/element-plus/es/locale/lang/zh-cn.js +0 -1
- package/lib/node_modules/lodash/lodash.js +0 -27
- package/lib/utils/install.js +0 -1
- /package/es/node_modules/{element-plus → .pnpm/element-plus@2.8.3_vue@3.5.12_typescript@5.6.2_/node_modules/element-plus}/es/locale/lang/zh-cn.js +0 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--el-color-primary: #3366cc;
|
|
3
|
+
--el-text-color-regular: #000;
|
|
4
|
+
--primary-color: #3d7eff;
|
|
5
|
+
--success-color: #28c445;
|
|
6
|
+
--error-color: #ff1e1e;
|
|
7
|
+
--warning-color: #ff8746;
|
|
8
|
+
--white-color: #fff;
|
|
9
|
+
--black-color: #000;
|
|
10
|
+
--text-color-primary: #252628;
|
|
11
|
+
--text-color-regular: #1c1c1c;
|
|
12
|
+
--text-color-secondary: #555;
|
|
13
|
+
--text-color-list: #323233;
|
|
14
|
+
--text-color-a4: #a4a4a4;
|
|
15
|
+
--text-color-tag: #737373;
|
|
16
|
+
--text-color-disabled: #eeeef5;
|
|
17
|
+
--border-color-base: #e8ecf2;
|
|
18
|
+
--border-color-light: #e4e7ed;
|
|
19
|
+
--border-color-lighter: #ebeef5;
|
|
20
|
+
--border-color-extra-light: #f2f6fc;
|
|
21
|
+
--bg-color: #f0f3f9;
|
|
22
|
+
--font-size-large: 18px;
|
|
23
|
+
--font-size-medium: 16px;
|
|
24
|
+
--font-size-base: 14px;
|
|
25
|
+
--font-size-small: 12px;
|
|
26
|
+
--font-size-extra-small: 10px;
|
|
27
|
+
--font-family: "Hiragino Sans GB", "Microsoft YaHei","WenQuanYi Micro Hei",Verdana, arial,"Open Sans", sans-serif;
|
|
28
|
+
--integer-font-family: avenir-heavy, pingfang sc, helvetica neue, arial, sans-serif;
|
|
29
|
+
--box-shadow-base: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
|
|
30
|
+
--el-menu-item-height: 40px;
|
|
31
|
+
--el-card-padding: 10px;
|
|
32
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { setBaseUrl as e } from "../packages/components/api/server.js";
|
|
2
|
+
import { setLogBaseUrl as a } from "../packages/components/api/log-server.js";
|
|
3
|
+
import { setUploadBaseUrl as p } from "../packages/components/api/upload-server.js";
|
|
4
|
+
import { apiUrl as r } from "./const.js";
|
|
5
|
+
let o;
|
|
6
|
+
function _() {
|
|
7
|
+
const t = (n) => {
|
|
8
|
+
o = { ...o, ...n }, i();
|
|
9
|
+
}, i = () => {
|
|
10
|
+
e(r[o.apiEnv].VITE_APP_API_BASEURL), a(r[o.apiEnv].VITE_APP_API_REMARK), p(r[o.apiEnv].VITE_APP_API_TOOLS);
|
|
11
|
+
};
|
|
12
|
+
return {
|
|
13
|
+
setConfig: t,
|
|
14
|
+
globalConfig: o
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
_ as config
|
|
19
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const t = {
|
|
2
|
+
development: {
|
|
3
|
+
VITE_APP_API_BASEURL: "http://192.168.83.220:8080/job-admin",
|
|
4
|
+
VITE_APP_API_TOOLS: "http://api-tools-test.yahee.com.cn:81/",
|
|
5
|
+
// 上传服务
|
|
6
|
+
VITE_APP_API_REMARK: "http://qas-newerp.yahee.com.cn:8088/PMS/Latest/"
|
|
7
|
+
// 日志服务
|
|
8
|
+
},
|
|
9
|
+
production: {
|
|
10
|
+
VITE_APP_API_BASEURL: "https://plmerp.yaheecloud.com/api/plm/product-dev/",
|
|
11
|
+
VITE_APP_API_TOOLS: "https://erptools.yaheecloud.com/",
|
|
12
|
+
// 上传服务
|
|
13
|
+
VITE_APP_API_REMARK: "https://newerp.yaheecloud.com/PMS/Latest/"
|
|
14
|
+
// 日志服务
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
t as apiUrl
|
|
19
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
const s = {
|
|
2
|
+
// 存储
|
|
3
|
+
set(t, e) {
|
|
4
|
+
t && (e = JSON.stringify(e), localStorage.setItem(t, e));
|
|
5
|
+
},
|
|
6
|
+
// 取出数据
|
|
7
|
+
get(t) {
|
|
8
|
+
const e = localStorage.getItem(t);
|
|
9
|
+
if (e && e != "undefined" && e != "null")
|
|
10
|
+
return JSON.parse(e);
|
|
11
|
+
},
|
|
12
|
+
// 删除数据
|
|
13
|
+
remove(t) {
|
|
14
|
+
t && localStorage.removeItem(t);
|
|
15
|
+
},
|
|
16
|
+
// 存储
|
|
17
|
+
setWithExpireTime(t, e, r) {
|
|
18
|
+
if (!t) return;
|
|
19
|
+
const o = {
|
|
20
|
+
value: e,
|
|
21
|
+
expireTime: (/* @__PURE__ */ new Date()).getTime() + r
|
|
22
|
+
};
|
|
23
|
+
localStorage.setItem(t, JSON.stringify(o));
|
|
24
|
+
},
|
|
25
|
+
// 取出数据
|
|
26
|
+
getWithExpireTime(t) {
|
|
27
|
+
const e = localStorage.getItem(t);
|
|
28
|
+
if (!e) return null;
|
|
29
|
+
const r = JSON.parse(e), n = r == null ? void 0 : r.value;
|
|
30
|
+
if (n && n != "undefined" && n != "null")
|
|
31
|
+
return (/* @__PURE__ */ new Date()).getTime() > r.expireTime ? (i.remove(t), null) : n;
|
|
32
|
+
}
|
|
33
|
+
}, i = {
|
|
34
|
+
// 存储
|
|
35
|
+
set(t, e) {
|
|
36
|
+
t && (typeof e != "string" && (e = JSON.stringify(e)), sessionStorage.setItem(t, e));
|
|
37
|
+
},
|
|
38
|
+
// 取出数据
|
|
39
|
+
get(t) {
|
|
40
|
+
const e = sessionStorage.getItem(t);
|
|
41
|
+
if (e && e != "undefined" && e != "null")
|
|
42
|
+
return JSON.parse(e);
|
|
43
|
+
},
|
|
44
|
+
// 删除数据
|
|
45
|
+
remove(t) {
|
|
46
|
+
t && sessionStorage.removeItem(t);
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
export {
|
|
50
|
+
i as sessionStorageProxy,
|
|
51
|
+
s as storage
|
|
52
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
function e(o) {
|
|
2
|
+
return o ? { backgroundColor: "#3366CC", color: "#fff", borderColor: "#3366CC" } : {};
|
|
3
|
+
}
|
|
4
|
+
function c(o) {
|
|
5
|
+
let r = "";
|
|
6
|
+
switch (o) {
|
|
7
|
+
case "急":
|
|
8
|
+
r = "#740F00";
|
|
9
|
+
break;
|
|
10
|
+
case "高":
|
|
11
|
+
r = "#AF6C12";
|
|
12
|
+
break;
|
|
13
|
+
case "中":
|
|
14
|
+
r = "#999";
|
|
15
|
+
break;
|
|
16
|
+
case "低":
|
|
17
|
+
r = "#999";
|
|
18
|
+
break;
|
|
19
|
+
}
|
|
20
|
+
return { backgroundColor: r, color: "#fff", borderColor: r };
|
|
21
|
+
}
|
|
22
|
+
const t = {
|
|
23
|
+
getBackgroundColor: e,
|
|
24
|
+
getPriorityColor: c
|
|
25
|
+
};
|
|
26
|
+
export {
|
|
27
|
+
t as stylesUtils
|
|
28
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { sessionStorageProxy as u, storage as s } from "./storage.js";
|
|
2
|
+
import m from "../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/lodash.js";
|
|
3
|
+
import h from "../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/axios.js";
|
|
4
|
+
import { i18nType as c } from "../static/CommonObject.js";
|
|
5
|
+
import { Get as y } from "../api/server.js";
|
|
6
|
+
const T = (e) => {
|
|
7
|
+
var i;
|
|
8
|
+
const t = u.get("employee") || {}, o = d(e);
|
|
9
|
+
if (o === 0) return e;
|
|
10
|
+
const n = u.get(`translate${t.Language}`) || {};
|
|
11
|
+
if (m.isEmpty(n) || t.Language === "zh-CN" || !/[\u4e00-\u9fa5]/.test(e)) return e;
|
|
12
|
+
const l = n[o];
|
|
13
|
+
if (l)
|
|
14
|
+
return l;
|
|
15
|
+
{
|
|
16
|
+
const r = ((i = localStorage.getItem("localStorageListId")) == null ? void 0 : i.split(",")) || [];
|
|
17
|
+
if (r.includes(o.toString()))
|
|
18
|
+
return e;
|
|
19
|
+
r.push(o.toString()), localStorage.setItem("localStorageListId", r.join(","));
|
|
20
|
+
const p = {
|
|
21
|
+
projectId: "place-order",
|
|
22
|
+
id: o,
|
|
23
|
+
cn: e
|
|
24
|
+
}, g = "https://erptools.yaheecloud.com/api/translation/addTranslate";
|
|
25
|
+
return console.log(g, "url"), h.post(g, p, { withCredentials: !0 }).then((f) => {
|
|
26
|
+
f.data.code;
|
|
27
|
+
}), e;
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
function d(e) {
|
|
31
|
+
let t = 0;
|
|
32
|
+
if (!e || e.length === 0) return t;
|
|
33
|
+
for (let o = 0, n = e.length; o < n; o++) {
|
|
34
|
+
const a = e.charCodeAt(o);
|
|
35
|
+
t = (t << 5) - t + a, t |= 0;
|
|
36
|
+
}
|
|
37
|
+
return t;
|
|
38
|
+
}
|
|
39
|
+
function $(e, t = "") {
|
|
40
|
+
const o = s.get("totalEmployees");
|
|
41
|
+
if (!e || m.isEmpty(o)) return t;
|
|
42
|
+
const n = u.get("employee");
|
|
43
|
+
if (n.Language === c.CN) return t;
|
|
44
|
+
const a = o[e];
|
|
45
|
+
return a ? n.Language === c.CN ? a.name || t : a.enName || "" : (E(e).then((l) => {
|
|
46
|
+
const i = s.get("totalEmployees") || {}, r = l.data[0];
|
|
47
|
+
return r ? (i[e] = r, s.setWithExpireTime("totalEmployees", i, 3600 * 1e3), n.Language === c.CN ? r.name || "" : r.enName || "") : t;
|
|
48
|
+
}), t);
|
|
49
|
+
}
|
|
50
|
+
function E(e) {
|
|
51
|
+
const t = "/employee/all";
|
|
52
|
+
return y(e ? `${t}?idsStr=${e}` : t);
|
|
53
|
+
}
|
|
54
|
+
export {
|
|
55
|
+
T as M2,
|
|
56
|
+
$ as translateEmployeeName
|
|
57
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
.yahee-country-platform-shop-condition .popover-table {
|
|
2
|
+
width: auto;
|
|
3
|
+
border: 1px solid transparent;
|
|
4
|
+
border-collapse: separate;
|
|
5
|
+
}
|
|
6
|
+
.yahee-country-platform-shop-condition .popover-table tr,
|
|
7
|
+
.yahee-country-platform-shop-condition .popover-table td {
|
|
8
|
+
text-align: left;
|
|
9
|
+
cursor: pointer;
|
|
10
|
+
min-height: 22px;
|
|
11
|
+
}
|
|
12
|
+
.yahee-country-platform-shop-condition .checkbox-group {
|
|
13
|
+
margin: 5px;
|
|
14
|
+
width: 100%;
|
|
15
|
+
}
|
|
16
|
+
.yahee-country-platform-shop-condition .popover-table th {
|
|
17
|
+
text-align: left;
|
|
18
|
+
cursor: pointer;
|
|
19
|
+
min-height: 22px;
|
|
20
|
+
border: 1px solid transparent;
|
|
21
|
+
}
|
|
22
|
+
.yahee-country-platform-shop-condition .popover-table td span {
|
|
23
|
+
display: block;
|
|
24
|
+
margin-bottom: 4px;
|
|
25
|
+
border: 1px solid transparent;
|
|
26
|
+
}
|
|
27
|
+
.yahee-country-platform-shop-condition .hover-trigger {
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
color: blue;
|
|
30
|
+
}
|
|
31
|
+
.yahee-country-platform-shop-condition .custom-total-button {
|
|
32
|
+
margin-right: 0;
|
|
33
|
+
padding: 1px 4px;
|
|
34
|
+
height: 22px;
|
|
35
|
+
}
|
|
36
|
+
.yahee-country-platform-shop-condition .custom-button {
|
|
37
|
+
width: 100%;
|
|
38
|
+
min-height: 22px;
|
|
39
|
+
min-width: 50px;
|
|
40
|
+
height: 22px;
|
|
41
|
+
margin: 3px;
|
|
42
|
+
}
|
|
43
|
+
.yahee-country-platform-shop-condition .custom-button.inner-el-button {
|
|
44
|
+
margin-top: 5px;
|
|
45
|
+
}
|
|
46
|
+
.yahee-country-platform-shop-condition ::v-deep(.el-checkbox-button__inner) {
|
|
47
|
+
width: 100%;
|
|
48
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
.yahee-drop-down-condition {
|
|
3
|
+
/* 滚动槽 */
|
|
4
|
+
/* 滚动条滑块 */
|
|
5
|
+
}
|
|
6
|
+
.yahee-drop-down-condition .checkbox-group {
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
}
|
|
10
|
+
.yahee-drop-down-condition .checkbox {
|
|
11
|
+
margin-top: 5px;
|
|
12
|
+
}
|
|
13
|
+
.yahee-drop-down-condition .custom-total-button {
|
|
14
|
+
margin-right: 0;
|
|
15
|
+
padding: 1px 4px;
|
|
16
|
+
height: 22px;
|
|
17
|
+
}
|
|
18
|
+
.yahee-drop-down-condition .custom-button {
|
|
19
|
+
margin-right: 0;
|
|
20
|
+
padding: 1px 4px;
|
|
21
|
+
min-height: 22px;
|
|
22
|
+
height: 22px;
|
|
23
|
+
margin-left: 5px;
|
|
24
|
+
}
|
|
25
|
+
.yahee-drop-down-condition .custom-button.inner-el-button {
|
|
26
|
+
margin-top: 5px;
|
|
27
|
+
}
|
|
28
|
+
.yahee-drop-down-condition .scrollable-container {
|
|
29
|
+
max-height: 700px;
|
|
30
|
+
overflow-y: auto;
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
}
|
|
34
|
+
.yahee-drop-down-condition .scrollable-container::-webkit-scrollbar {
|
|
35
|
+
width: 5px;
|
|
36
|
+
}
|
|
37
|
+
.yahee-drop-down-condition .scrollable-container::-webkit-scrollbar-track {
|
|
38
|
+
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
|
|
39
|
+
border-radius: 10px;
|
|
40
|
+
}
|
|
41
|
+
.yahee-drop-down-condition .scrollable-container::-webkit-scrollbar-thumb {
|
|
42
|
+
border-radius: 10px;
|
|
43
|
+
background: rgba(0, 0, 0, 0.1);
|
|
44
|
+
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
|
|
45
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
.yahee-image-upload .el-upload {
|
|
2
|
+
height: 100%;
|
|
3
|
+
width: 100%;
|
|
4
|
+
border: 1px dashed #d9d9d9;
|
|
5
|
+
border-radius: 6px;
|
|
6
|
+
cursor: pointer;
|
|
7
|
+
position: relative;
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
}
|
|
10
|
+
.yahee-image-upload .el-upload:hover {
|
|
11
|
+
border: 1px dashed blue;
|
|
12
|
+
}
|
|
13
|
+
.yahee-image-upload .picture {
|
|
14
|
+
width: 100%;
|
|
15
|
+
}
|
|
16
|
+
.yahee-image-upload .picture-uploader {
|
|
17
|
+
position: relative;
|
|
18
|
+
}
|
|
19
|
+
.yahee-image-upload .upload-actions {
|
|
20
|
+
position: absolute;
|
|
21
|
+
width: 100%;
|
|
22
|
+
height: 100%;
|
|
23
|
+
left: 0;
|
|
24
|
+
top: 0;
|
|
25
|
+
padding: 2px;
|
|
26
|
+
}
|
|
27
|
+
.yahee-image-upload .picture-uploader-icon {
|
|
28
|
+
height: 100%;
|
|
29
|
+
width: 100%;
|
|
30
|
+
font-size: 28px;
|
|
31
|
+
color: #8c939d;
|
|
32
|
+
text-align: center;
|
|
33
|
+
}
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
.yahee-operation-log {
|
|
2
|
+
min-width: 350px;
|
|
3
|
+
}
|
|
4
|
+
.yahee-operation-log .infinite-list-wrapper {
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
padding: 10px 4px;
|
|
7
|
+
}
|
|
8
|
+
.yahee-operation-log .infinite-list-wrapper .list-item-left {
|
|
9
|
+
display: flex;
|
|
10
|
+
justify-content: flex-start;
|
|
11
|
+
gap: 10px;
|
|
12
|
+
margin-bottom: 18px;
|
|
13
|
+
}
|
|
14
|
+
.yahee-operation-log .infinite-list-wrapper .list-item-left .date {
|
|
15
|
+
margin-top: 6px;
|
|
16
|
+
margin-left: 8px;
|
|
17
|
+
}
|
|
18
|
+
.yahee-operation-log .infinite-list-wrapper .list-item-left .name {
|
|
19
|
+
flex: none;
|
|
20
|
+
height: -moz-fit-content;
|
|
21
|
+
height: fit-content;
|
|
22
|
+
padding: 5px 8px;
|
|
23
|
+
text-align: center;
|
|
24
|
+
border-radius: 2px;
|
|
25
|
+
background: #E8FFE8;
|
|
26
|
+
}
|
|
27
|
+
.yahee-operation-log .infinite-list-wrapper .list-item-left .content {
|
|
28
|
+
border: 1px solid #ccc;
|
|
29
|
+
border-radius: 4px;
|
|
30
|
+
padding: 10px;
|
|
31
|
+
margin-left: -8px;
|
|
32
|
+
background: #F7FFF7;
|
|
33
|
+
}
|
|
34
|
+
.yahee-operation-log .infinite-list-wrapper .list-item-right {
|
|
35
|
+
display: flex;
|
|
36
|
+
justify-content: flex-end;
|
|
37
|
+
gap: 10px;
|
|
38
|
+
margin-bottom: 18px;
|
|
39
|
+
}
|
|
40
|
+
.yahee-operation-log .infinite-list-wrapper .list-item-right .date {
|
|
41
|
+
margin-top: 6px;
|
|
42
|
+
margin-right: 8px;
|
|
43
|
+
}
|
|
44
|
+
.yahee-operation-log .infinite-list-wrapper .list-item-right .name {
|
|
45
|
+
flex: none;
|
|
46
|
+
height: -moz-fit-content;
|
|
47
|
+
height: fit-content;
|
|
48
|
+
padding: 5px 8px;
|
|
49
|
+
text-align: center;
|
|
50
|
+
border-radius: 2px;
|
|
51
|
+
background: #f1f1f1;
|
|
52
|
+
}
|
|
53
|
+
.yahee-operation-log .infinite-list-wrapper .list-item-right .content {
|
|
54
|
+
text-align: right;
|
|
55
|
+
padding: 10px;
|
|
56
|
+
margin-right: -8px;
|
|
57
|
+
border: 1px solid #f1f1f1;
|
|
58
|
+
border-radius: 4px;
|
|
59
|
+
background: #FAFAFA;
|
|
60
|
+
}
|
|
61
|
+
.yahee-operation-log .bg-link {
|
|
62
|
+
color: #3366cc;
|
|
63
|
+
cursor: pointer;
|
|
64
|
+
}
|
|
65
|
+
.yahee-operation-log .imgBox {
|
|
66
|
+
display: flex;
|
|
67
|
+
flex-wrap: wrap;
|
|
68
|
+
}
|
|
69
|
+
.yahee-operation-log .timeBox {
|
|
70
|
+
margin: 0 5px;
|
|
71
|
+
}
|
|
72
|
+
.yahee-operation-log .input-with-select {
|
|
73
|
+
width: 150px;
|
|
74
|
+
}
|
|
75
|
+
.yahee-operation-log .lt-created-time {
|
|
76
|
+
display: block;
|
|
77
|
+
}
|
|
78
|
+
.yahee-operation-log .rt-created-time {
|
|
79
|
+
display: inline-block;
|
|
80
|
+
}
|
|
81
|
+
.yahee-operation-log .content-div {
|
|
82
|
+
width: 100%;
|
|
83
|
+
height: 121px;
|
|
84
|
+
border: 1px solid #ccc;
|
|
85
|
+
padding: 10px;
|
|
86
|
+
}
|
|
87
|
+
.yahee-operation-log .titleRemarks {
|
|
88
|
+
font-size: 14px;
|
|
89
|
+
font-weight: bold;
|
|
90
|
+
padding-left: 5px;
|
|
91
|
+
border-bottom: 1px solid #eee;
|
|
92
|
+
height: 30px;
|
|
93
|
+
line-height: 30px;
|
|
94
|
+
}
|
|
95
|
+
.yahee-operation-log .remarkContent {
|
|
96
|
+
position: relative;
|
|
97
|
+
margin-bottom: 20px;
|
|
98
|
+
border: 1px solid #eee;
|
|
99
|
+
}
|
|
100
|
+
.yahee-operation-log .remarkContent .buttonQuill {
|
|
101
|
+
position: absolute;
|
|
102
|
+
bottom: -35px;
|
|
103
|
+
right: 10px;
|
|
104
|
+
display: flex;
|
|
105
|
+
}
|
|
106
|
+
.yahee-operation-log .remarkContent .buttonQuill button {
|
|
107
|
+
margin-right: 10px;
|
|
108
|
+
}
|
|
109
|
+
.yahee-operation-log .content-main {
|
|
110
|
+
width: 100%;
|
|
111
|
+
}
|
|
112
|
+
.yahee-operation-log .span-backG {
|
|
113
|
+
position: relative;
|
|
114
|
+
display: flex;
|
|
115
|
+
min-height: 70px;
|
|
116
|
+
width: 100%;
|
|
117
|
+
margin-top: 10px;
|
|
118
|
+
}
|
|
119
|
+
.yahee-operation-log .bubble-tail {
|
|
120
|
+
position: absolute;
|
|
121
|
+
right: 85px;
|
|
122
|
+
top: 5px;
|
|
123
|
+
width: 0;
|
|
124
|
+
height: 0;
|
|
125
|
+
border-width: 6px;
|
|
126
|
+
border-style: solid;
|
|
127
|
+
border-color: transparent;
|
|
128
|
+
border-left-width: 9px;
|
|
129
|
+
border-left-color: currentColor;
|
|
130
|
+
color: #eee;
|
|
131
|
+
}
|
|
132
|
+
.yahee-operation-log .leftbubble-tail {
|
|
133
|
+
position: absolute;
|
|
134
|
+
left: 84px;
|
|
135
|
+
top: 5px;
|
|
136
|
+
width: 0;
|
|
137
|
+
height: 0;
|
|
138
|
+
border-width: 7px;
|
|
139
|
+
border-style: solid;
|
|
140
|
+
border-color: transparent;
|
|
141
|
+
margin-bottom: -39px;
|
|
142
|
+
border-right-width: 10px;
|
|
143
|
+
border-right-color: currentColor;
|
|
144
|
+
color: #eee;
|
|
145
|
+
}
|
|
146
|
+
.yahee-operation-log .r-text {
|
|
147
|
+
float: right;
|
|
148
|
+
margin-right: 100px;
|
|
149
|
+
max-width: 420px;
|
|
150
|
+
min-height: 52px;
|
|
151
|
+
}
|
|
152
|
+
.yahee-operation-log .r-text-main {
|
|
153
|
+
background: #FAFAFA;
|
|
154
|
+
border: 1px solid #ccc;
|
|
155
|
+
border-radius: 2px;
|
|
156
|
+
padding: 4px;
|
|
157
|
+
word-break: break-all;
|
|
158
|
+
text-align: right;
|
|
159
|
+
}
|
|
160
|
+
.yahee-operation-log .l-text {
|
|
161
|
+
margin-left: 100px;
|
|
162
|
+
max-width: 420px;
|
|
163
|
+
min-height: 52px;
|
|
164
|
+
}
|
|
165
|
+
.yahee-operation-log .l-text-main {
|
|
166
|
+
background: #F7FFF7;
|
|
167
|
+
border: 1px solid #ccc;
|
|
168
|
+
border-radius: 2px;
|
|
169
|
+
padding: 4px;
|
|
170
|
+
display: inline-block;
|
|
171
|
+
min-width: 123px;
|
|
172
|
+
word-break: break-all;
|
|
173
|
+
}
|
|
174
|
+
.yahee-operation-log .r-name {
|
|
175
|
+
border: 1px solid #ccc;
|
|
176
|
+
position: absolute;
|
|
177
|
+
right: 10px;
|
|
178
|
+
width: 65px;
|
|
179
|
+
line-height: 17px;
|
|
180
|
+
padding: 3px 0 5px;
|
|
181
|
+
text-align: center;
|
|
182
|
+
border: 1px solid #ccc;
|
|
183
|
+
border-radius: 2px;
|
|
184
|
+
background: #f1f1f1;
|
|
185
|
+
word-break: break-all;
|
|
186
|
+
}
|
|
187
|
+
.yahee-operation-log .l-name {
|
|
188
|
+
border: 1px solid #ccc;
|
|
189
|
+
position: absolute;
|
|
190
|
+
left: 10px;
|
|
191
|
+
width: 65px;
|
|
192
|
+
line-height: 17px;
|
|
193
|
+
padding: 3px 0 5px;
|
|
194
|
+
text-align: center;
|
|
195
|
+
border: 1px solid #ccc;
|
|
196
|
+
border-radius: 2px;
|
|
197
|
+
background: #E8FFE8;
|
|
198
|
+
float: right;
|
|
199
|
+
word-break: break-all;
|
|
200
|
+
}
|
|
201
|
+
.yahee-operation-log .text-m {
|
|
202
|
+
word-break: break-all;
|
|
203
|
+
white-space: pre-line;
|
|
204
|
+
}
|
|
205
|
+
.yahee-operation-log .loading {
|
|
206
|
+
display: flex;
|
|
207
|
+
justify-content: center;
|
|
208
|
+
align-items: center;
|
|
209
|
+
margin-bottom: 36px;
|
|
210
|
+
}
|
|
211
|
+
.yahee-operation-log .no-more {
|
|
212
|
+
display: flex;
|
|
213
|
+
justify-content: center;
|
|
214
|
+
align-items: center;
|
|
215
|
+
margin-bottom: 36px;
|
|
216
|
+
}
|
|
217
|
+
.yahee-operation-log .el-form--inline .el-form-item {
|
|
218
|
+
margin-right: 10px !important;
|
|
219
|
+
margin-bottom: 6px !important;
|
|
220
|
+
}
|