kz-ui-base 1.0.2 → 1.0.4
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/package.json +1 -1
- package/common/package-lock.json +0 -18
- package/common/package.json +0 -51
- package/common/src/api/common/cacher.js +0 -15
- package/common/src/api/common/common.js +0 -299
- package/common/src/api/common/material.js +0 -71
- package/common/src/api/login.js +0 -103
- package/common/src/api/menu.js +0 -18
- package/common/src/assets/401_images/401.gif +0 -0
- package/common/src/assets/404_images/404.png +0 -0
- package/common/src/assets/404_images/404_cloud.png +0 -0
- package/common/src/assets/icons/file-config.png +0 -0
- package/common/src/assets/icons/file-doc.png +0 -0
- package/common/src/assets/icons/file-exe.png +0 -0
- package/common/src/assets/icons/file-ini.png +0 -0
- package/common/src/assets/icons/file-jpg.png +0 -0
- package/common/src/assets/icons/file-mpg.png +0 -0
- package/common/src/assets/icons/file-none.png +0 -0
- package/common/src/assets/icons/file-pdf.png +0 -0
- package/common/src/assets/icons/file-png.png +0 -0
- package/common/src/assets/icons/file-ppt.png +0 -0
- package/common/src/assets/icons/file-rar.png +0 -0
- package/common/src/assets/icons/file-txt.png +0 -0
- package/common/src/assets/icons/file-wav.png +0 -0
- package/common/src/assets/icons/file-xls.png +0 -0
- package/common/src/assets/icons/index.js +0 -9
- package/common/src/assets/icons/svg/404.svg +0 -1
- package/common/src/assets/icons/svg/bug.svg +0 -1
- package/common/src/assets/icons/svg/build.svg +0 -1
- package/common/src/assets/icons/svg/button.svg +0 -1
- package/common/src/assets/icons/svg/cascader.svg +0 -1
- package/common/src/assets/icons/svg/chart.svg +0 -1
- package/common/src/assets/icons/svg/checkbox.svg +0 -1
- package/common/src/assets/icons/svg/client.svg +0 -1
- package/common/src/assets/icons/svg/clipboard.svg +0 -1
- package/common/src/assets/icons/svg/code.svg +0 -1
- package/common/src/assets/icons/svg/color.svg +0 -1
- package/common/src/assets/icons/svg/component.svg +0 -1
- package/common/src/assets/icons/svg/dashboard.svg +0 -1
- package/common/src/assets/icons/svg/date-range.svg +0 -1
- package/common/src/assets/icons/svg/date.svg +0 -1
- package/common/src/assets/icons/svg/dict.svg +0 -1
- package/common/src/assets/icons/svg/documentation.svg +0 -1
- package/common/src/assets/icons/svg/download.svg +0 -1
- package/common/src/assets/icons/svg/drag.svg +0 -1
- package/common/src/assets/icons/svg/druid.svg +0 -1
- package/common/src/assets/icons/svg/edit.svg +0 -1
- package/common/src/assets/icons/svg/education.svg +0 -1
- package/common/src/assets/icons/svg/email.svg +0 -1
- package/common/src/assets/icons/svg/example.svg +0 -1
- package/common/src/assets/icons/svg/excel.svg +0 -1
- package/common/src/assets/icons/svg/exit-fullscreen.svg +0 -1
- package/common/src/assets/icons/svg/eye-open.svg +0 -1
- package/common/src/assets/icons/svg/eye.svg +0 -1
- package/common/src/assets/icons/svg/form.svg +0 -1
- package/common/src/assets/icons/svg/fullscreen.svg +0 -1
- package/common/src/assets/icons/svg/github.svg +0 -1
- package/common/src/assets/icons/svg/guide.svg +0 -1
- package/common/src/assets/icons/svg/icon.svg +0 -1
- package/common/src/assets/icons/svg/input.svg +0 -1
- package/common/src/assets/icons/svg/international.svg +0 -1
- package/common/src/assets/icons/svg/job.svg +0 -1
- package/common/src/assets/icons/svg/kz_authority.svg +0 -1
- package/common/src/assets/icons/svg/kz_build.svg +0 -1
- package/common/src/assets/icons/svg/kz_code.svg +0 -1
- package/common/src/assets/icons/svg/kz_config.svg +0 -1
- package/common/src/assets/icons/svg/kz_creatTime.svg +0 -1
- package/common/src/assets/icons/svg/kz_dept.svg +0 -1
- package/common/src/assets/icons/svg/kz_dept_profile.svg +0 -1
- package/common/src/assets/icons/svg/kz_dict.svg +0 -1
- package/common/src/assets/icons/svg/kz_edit.svg +0 -1
- package/common/src/assets/icons/svg/kz_enlarge.svg +0 -1
- package/common/src/assets/icons/svg/kz_enterprise.svg +0 -1
- package/common/src/assets/icons/svg/kz_fold.svg +0 -2
- package/common/src/assets/icons/svg/kz_job.svg +0 -1
- package/common/src/assets/icons/svg/kz_layout.svg +0 -1
- package/common/src/assets/icons/svg/kz_log.svg +0 -1
- package/common/src/assets/icons/svg/kz_log_loginInfo.svg +0 -1
- package/common/src/assets/icons/svg/kz_log_operation.svg +0 -1
- package/common/src/assets/icons/svg/kz_master-slave.svg +0 -2
- package/common/src/assets/icons/svg/kz_menu.svg +0 -1
- package/common/src/assets/icons/svg/kz_menu_analyse.svg +0 -22
- package/common/src/assets/icons/svg/kz_message.svg +0 -1
- package/common/src/assets/icons/svg/kz_monitor.svg +0 -1
- package/common/src/assets/icons/svg/kz_nacos.svg +0 -1
- package/common/src/assets/icons/svg/kz_narrow.svg +0 -1
- package/common/src/assets/icons/svg/kz_notice.svg +0 -2
- package/common/src/assets/icons/svg/kz_online.svg +0 -1
- package/common/src/assets/icons/svg/kz_open.svg +0 -2
- package/common/src/assets/icons/svg/kz_organization.svg +0 -1
- package/common/src/assets/icons/svg/kz_post.svg +0 -1
- package/common/src/assets/icons/svg/kz_post_profile.svg +0 -1
- package/common/src/assets/icons/svg/kz_productCenter.svg +0 -1
- package/common/src/assets/icons/svg/kz_rabbit.svg +0 -1
- package/common/src/assets/icons/svg/kz_refresh.svg +0 -2
- package/common/src/assets/icons/svg/kz_renovation.svg +0 -1
- package/common/src/assets/icons/svg/kz_role.svg +0 -1
- package/common/src/assets/icons/svg/kz_roleGroup.svg +0 -1
- package/common/src/assets/icons/svg/kz_search.svg +0 -1
- package/common/src/assets/icons/svg/kz_sentinel.svg +0 -1
- package/common/src/assets/icons/svg/kz_server.svg +0 -1
- package/common/src/assets/icons/svg/kz_setting.svg +0 -1
- package/common/src/assets/icons/svg/kz_sex.svg +0 -1
- package/common/src/assets/icons/svg/kz_source.svg +0 -2
- package/common/src/assets/icons/svg/kz_strategy.svg +0 -2
- package/common/src/assets/icons/svg/kz_swagger.svg +0 -1
- package/common/src/assets/icons/svg/kz_system.svg +0 -1
- package/common/src/assets/icons/svg/kz_tenant.svg +0 -1
- package/common/src/assets/icons/svg/kz_tool.svg +0 -1
- package/common/src/assets/icons/svg/kz_user.svg +0 -1
- package/common/src/assets/icons/svg/language.svg +0 -1
- package/common/src/assets/icons/svg/link.svg +0 -1
- package/common/src/assets/icons/svg/list.svg +0 -1
- package/common/src/assets/icons/svg/lock.svg +0 -1
- package/common/src/assets/icons/svg/log.svg +0 -1
- package/common/src/assets/icons/svg/logininfor.svg +0 -1
- package/common/src/assets/icons/svg/mes-ad.svg +0 -21
- package/common/src/assets/icons/svg/mes-ic.svg +0 -16
- package/common/src/assets/icons/svg/mes-mfg-order.svg +0 -22
- package/common/src/assets/icons/svg/mes-tm.svg +0 -15
- package/common/src/assets/icons/svg/message.svg +0 -1
- package/common/src/assets/icons/svg/money.svg +0 -1
- package/common/src/assets/icons/svg/monitor.svg +0 -2
- package/common/src/assets/icons/svg/nacos.svg +0 -1
- package/common/src/assets/icons/svg/nested.svg +0 -1
- package/common/src/assets/icons/svg/number.svg +0 -1
- package/common/src/assets/icons/svg/online.svg +0 -1
- package/common/src/assets/icons/svg/password.svg +0 -1
- package/common/src/assets/icons/svg/pdf.svg +0 -1
- package/common/src/assets/icons/svg/people.svg +0 -1
- package/common/src/assets/icons/svg/peoples.svg +0 -1
- package/common/src/assets/icons/svg/phone.svg +0 -1
- package/common/src/assets/icons/svg/post.svg +0 -1
- package/common/src/assets/icons/svg/qq.svg +0 -1
- package/common/src/assets/icons/svg/question.svg +0 -1
- package/common/src/assets/icons/svg/radio.svg +0 -1
- package/common/src/assets/icons/svg/rate.svg +0 -1
- package/common/src/assets/icons/svg/row.svg +0 -1
- package/common/src/assets/icons/svg/search.svg +0 -1
- package/common/src/assets/icons/svg/select.svg +0 -1
- package/common/src/assets/icons/svg/sentinel.svg +0 -1
- package/common/src/assets/icons/svg/server.svg +0 -1
- package/common/src/assets/icons/svg/shop-call.svg +0 -14
- package/common/src/assets/icons/svg/shopping.svg +0 -1
- package/common/src/assets/icons/svg/size.svg +0 -1
- package/common/src/assets/icons/svg/skill.svg +0 -1
- package/common/src/assets/icons/svg/slider.svg +0 -1
- package/common/src/assets/icons/svg/star.svg +0 -1
- package/common/src/assets/icons/svg/stock-query.svg +0 -14
- package/common/src/assets/icons/svg/stock-report.svg +0 -14
- package/common/src/assets/icons/svg/stock-take.svg +0 -14
- package/common/src/assets/icons/svg/swagger.svg +0 -1
- package/common/src/assets/icons/svg/switch.svg +0 -1
- package/common/src/assets/icons/svg/system.svg +0 -2
- package/common/src/assets/icons/svg/tab.svg +0 -1
- package/common/src/assets/icons/svg/table.svg +0 -1
- package/common/src/assets/icons/svg/textarea.svg +0 -1
- package/common/src/assets/icons/svg/theme.svg +0 -1
- package/common/src/assets/icons/svg/time-range.svg +0 -1
- package/common/src/assets/icons/svg/time.svg +0 -1
- package/common/src/assets/icons/svg/tool.svg +0 -1
- package/common/src/assets/icons/svg/tree-table.svg +0 -1
- package/common/src/assets/icons/svg/tree.svg +0 -1
- package/common/src/assets/icons/svg/upload.svg +0 -1
- package/common/src/assets/icons/svg/user.svg +0 -1
- package/common/src/assets/icons/svg/validCode.svg +0 -1
- package/common/src/assets/icons/svg/wechat.svg +0 -1
- package/common/src/assets/icons/svg/xy-cancel.svg +0 -1
- package/common/src/assets/icons/svg/xy-choice.svg +0 -1
- package/common/src/assets/icons/svg/xy-choice2.svg +0 -31
- package/common/src/assets/icons/svg/zip.svg +0 -1
- package/common/src/assets/icons/svgo.yml +0 -22
- package/common/src/assets/images/dark.svg +0 -39
- package/common/src/assets/images/light.svg +0 -39
- package/common/src/assets/images/login-background.jpg +0 -0
- package/common/src/assets/images/logo.jpg +0 -0
- package/common/src/assets/images/profile.jpg +0 -0
- package/common/src/assets/images/xy-folder.png +0 -0
- package/common/src/assets/images/xy_email.png +0 -0
- package/common/src/assets/images/xy_message.png +0 -0
- package/common/src/assets/images/xy_notice.png +0 -0
- package/common/src/assets/logo/logo.png +0 -0
- package/common/src/assets/styles/btn.scss +0 -99
- package/common/src/assets/styles/element-ui.scss +0 -84
- package/common/src/assets/styles/element-variables.scss +0 -31
- package/common/src/assets/styles/index.scss +0 -207
- package/common/src/assets/styles/kezhi.scss +0 -100
- package/common/src/assets/styles/mixin.scss +0 -66
- package/common/src/assets/styles/ruoyi.scss +0 -350
- package/common/src/assets/styles/sidebar.scss +0 -185
- package/common/src/assets/styles/transition.scss +0 -48
- package/common/src/assets/styles/variables.scss +0 -52
- package/common/src/components/base/dialog/BaseDialog.vue +0 -140
- package/common/src/components/base/dialog/Dialog.js +0 -118
- package/common/src/components/base/dialog/dialogSetting.js +0 -65
- package/common/src/components/base/dialog/dialogType.js +0 -80
- package/common/src/components/base/dialog/index.js +0 -42
- package/common/src/components/base/dialog/printDialog.vue +0 -324
- package/common/src/components/base/dialog/tableDialog.vue +0 -187
- package/common/src/components/base/dialog/uploadDialog.vue +0 -149
- package/common/src/components/base/menuTab.js +0 -130
- package/common/src/components/basics/Breadcrumb/index.vue +0 -77
- package/common/src/components/basics/Crontab/day.vue +0 -179
- package/common/src/components/basics/Crontab/hour.vue +0 -122
- package/common/src/components/basics/Crontab/index.vue +0 -425
- package/common/src/components/basics/Crontab/min.vue +0 -120
- package/common/src/components/basics/Crontab/mouth.vue +0 -128
- package/common/src/components/basics/Crontab/result.vue +0 -566
- package/common/src/components/basics/Crontab/second.vue +0 -133
- package/common/src/components/basics/Crontab/week.vue +0 -167
- package/common/src/components/basics/Crontab/year.vue +0 -144
- package/common/src/components/basics/DictData/index.js +0 -24
- package/common/src/components/basics/DictTag/index.vue +0 -52
- package/common/src/components/basics/Editor/index.vue +0 -286
- package/common/src/components/basics/FileUpload/index.vue +0 -197
- package/common/src/components/basics/Hamburger/index.vue +0 -35
- package/common/src/components/basics/HeaderSearch/index.vue +0 -206
- package/common/src/components/basics/IconSelect/index.vue +0 -84
- package/common/src/components/basics/IconSelect/requireIcons.js +0 -10
- package/common/src/components/basics/Iframe/index.vue +0 -36
- package/common/src/components/basics/ImageUpload/index.vue +0 -204
- package/common/src/components/basics/Pagination/index.vue +0 -107
- package/common/src/components/basics/PanThumb/index.vue +0 -142
- package/common/src/components/basics/ParentView/index.vue +0 -3
- package/common/src/components/basics/RightPanel/index.vue +0 -149
- package/common/src/components/basics/RightToolbar/index.vue +0 -111
- package/common/src/components/basics/Screenfull/index.vue +0 -60
- package/common/src/components/basics/SizeSelect/index.vue +0 -60
- package/common/src/components/basics/SvgIcon/index.vue +0 -61
- package/common/src/components/basics/ThemePicker/index.vue +0 -183
- package/common/src/components/basics/TopNav/index.vue +0 -476
- package/common/src/components/custom/Editor/index.vue +0 -267
- package/common/src/components/custom/FileBox/index.vue +0 -293
- package/common/src/components/custom/FileBox/indexTs.vue +0 -280
- package/common/src/components/custom/ImageBox/index.vue +0 -208
- package/common/src/components/custom/Material/fileNameHelper.js +0 -38
- package/common/src/components/custom/Material/index.vue +0 -893
- package/common/src/components/custom/Material/indexTs.vue +0 -890
- package/common/src/components/custom/Notice/index.vue +0 -244
- package/common/src/plugins/auth.js +0 -60
- package/common/src/plugins/cache.js +0 -77
- package/common/src/plugins/download.js +0 -31
- package/common/src/plugins/index.js +0 -82
- package/common/src/plugins/modal.js +0 -75
- package/common/src/plugins/tab.js +0 -66
- package/common/src/utils/auth.js +0 -29
- package/common/src/utils/cache/bdCache.js +0 -202
- package/common/src/utils/cache/fdCache.js +0 -407
- package/common/src/utils/common.js +0 -141
- package/common/src/utils/dateHelper.js +0 -122
- package/common/src/utils/dialog.js +0 -35
- package/common/src/utils/dict/Dict.js +0 -82
- package/common/src/utils/dict/DictConverter.js +0 -17
- package/common/src/utils/dict/DictData.js +0 -13
- package/common/src/utils/dict/DictMeta.js +0 -38
- package/common/src/utils/dict/DictOptions.js +0 -51
- package/common/src/utils/dict/index.js +0 -33
- package/common/src/utils/element.js +0 -49
- package/common/src/utils/errorCode.js +0 -6
- package/common/src/utils/eventHub.js +0 -3
- package/common/src/utils/file.js +0 -38
- package/common/src/utils/index.js +0 -390
- package/common/src/utils/jsencrypt.js +0 -30
- package/common/src/utils/kezhi.js +0 -311
- package/common/src/utils/kezhiToolLibrary.js +0 -51
- package/common/src/utils/permission.js +0 -51
- package/common/src/utils/printService.js +0 -749
- package/common/src/utils/request.js +0 -209
- package/common/src/utils/ruoyi.js +0 -317
- package/common/src/utils/scroll-to.js +0 -58
- package/common/src/utils/supers.js +0 -25
- package/common/src/utils/utils.js +0 -614
- package/common/src/utils/validate.js +0 -105
- package/common/src/utils/websoketservice.js +0 -161
- package/common/src/utils/zipdownload.js +0 -42
- package/common/src/views/authorize.vue +0 -270
- package/common/src/views/error/401.vue +0 -88
- package/common/src/views/error/404.vue +0 -248
- package/common/src/views/login.vue +0 -350
- package/common/src/views/register.vue +0 -208
- package/common/src/views/sample/dialog/sampleEditDialog.vue +0 -279
- package/common/src/views/tenantLogin.vue +0 -331
- package/common/vue.config.js +0 -130
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
import Vue from 'vue'
|
|
2
|
-
import {getUrl} from '../../api/common/common';
|
|
3
|
-
import Big from "big.js";
|
|
4
|
-
|
|
5
|
-
let that = new Vue()
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* 初始化基础数据模块相关缓存
|
|
10
|
-
*
|
|
11
|
-
*/
|
|
12
|
-
export function initBdCache() {
|
|
13
|
-
|
|
14
|
-
getUrl("/bd/ItemClass/getItemClassAll").then((response) => {
|
|
15
|
-
var data = response.data;
|
|
16
|
-
Vue.prototype.$cache.local.setJSON("itemClass", data);
|
|
17
|
-
},
|
|
18
|
-
(error) => {
|
|
19
|
-
console.log(error);
|
|
20
|
-
}
|
|
21
|
-
);
|
|
22
|
-
|
|
23
|
-
getUrl("/bd/itemCategory/getItemCategoryAll").then((response) => {
|
|
24
|
-
var data = response.data;
|
|
25
|
-
Vue.prototype.$cache.local.setJSON("itemCategory", data);
|
|
26
|
-
},
|
|
27
|
-
(error) => {
|
|
28
|
-
console.log(error);
|
|
29
|
-
}
|
|
30
|
-
);
|
|
31
|
-
|
|
32
|
-
getUrl("/bd/ProductLine/getProductLineAll").then((response) => {
|
|
33
|
-
var data = response.data;
|
|
34
|
-
Vue.prototype.$cache.local.setJSON("itemLine", data);
|
|
35
|
-
},
|
|
36
|
-
(error) => {
|
|
37
|
-
console.log(error);
|
|
38
|
-
}
|
|
39
|
-
);
|
|
40
|
-
|
|
41
|
-
getUrl("/bd/currency/listAll").then((response) => {
|
|
42
|
-
var data = response.data;
|
|
43
|
-
Vue.prototype.$cache.local.setJSON("currency", data);
|
|
44
|
-
},
|
|
45
|
-
(error) => {
|
|
46
|
-
console.log(error);
|
|
47
|
-
}
|
|
48
|
-
);
|
|
49
|
-
|
|
50
|
-
getUrl("/bd/bd/listScale").then((response) => {
|
|
51
|
-
var data = response.data;
|
|
52
|
-
Vue.prototype.$cache.local.setJSON("scales", data);
|
|
53
|
-
},
|
|
54
|
-
(error) => {
|
|
55
|
-
console.log(error);
|
|
56
|
-
}
|
|
57
|
-
);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export function getCurrencyNameByIdOrNo(value) {
|
|
61
|
-
let cache = that.$cache.local.getJSON("currency");
|
|
62
|
-
return getComponentNameByIdOrNo(value, cache, "currencyName", "currencyNo");
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* 根据存货分类Id或编号获取名称
|
|
67
|
-
* @param {any} value
|
|
68
|
-
* @returns
|
|
69
|
-
*/
|
|
70
|
-
export function getItemClassNameByIdOrNo(value) {
|
|
71
|
-
var cache = that.$cache.local.getJSON("itemClass");
|
|
72
|
-
return getComponentNameByIdOrNo(value, cache, "itemClassName", "itemClassNo");
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* 根据物料种类Id或编号获取名称
|
|
77
|
-
* @param {any} value
|
|
78
|
-
* @returns
|
|
79
|
-
*/
|
|
80
|
-
export function getItemCategoryNameByIdOrNo(value) {
|
|
81
|
-
var cache = that.$cache.local.getJSON("itemCategory");
|
|
82
|
-
return getComponentNameByIdOrNo(value, cache, "itemCategoryName", "itemCategoryNo");
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* 根据产品线Id或编号获取名称
|
|
87
|
-
* @param {any} value
|
|
88
|
-
* @returns
|
|
89
|
-
*/
|
|
90
|
-
export function geProductLineNameByIdOrNo(value) {
|
|
91
|
-
var cache = that.$cache.local.getJSON("itemLine");
|
|
92
|
-
return getComponentNameByIdOrNo(value, cache, "productLineName", "productLineNo");
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
export function getComponentNameByIdOrNo(value, cacheItems, nameField, noField) {
|
|
96
|
-
var component = getComponentByIdOrNo(value, cacheItems, noField);
|
|
97
|
-
if (!component) return value;
|
|
98
|
-
return component[nameField];
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
export function getComponentByIdOrNo(value, cacheItems, noField) {
|
|
102
|
-
if (!cacheItems) return null;
|
|
103
|
-
for (var item of cacheItems) {
|
|
104
|
-
if (item[noField] == value || item.id == value) {
|
|
105
|
-
return item;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
return value;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
export function getAllItemClass() {
|
|
112
|
-
return that.$cache.local.getJSON("itemClass");
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
export function getAllItemCategory() {
|
|
116
|
-
return that.$cache.local.getJSON("itemCategory");
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
export function getAllProductLine() {
|
|
120
|
-
return that.$cache.local.getJSON("itemLine");
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
export function getUomScaleByUomNo(uomNo) {
|
|
125
|
-
let scaleVO = that.$cache.local.getJSON("scales").find((item) => item.uomNo === uomNo);
|
|
126
|
-
if (scaleVO != null) {
|
|
127
|
-
return {
|
|
128
|
-
scale: Number(scaleVO.uomScale),
|
|
129
|
-
roundingTypeCode: scaleVO.priceRoundingTypeCode
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
return null;
|
|
133
|
-
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
export function getPriceScaleByCurrencyId(currencyId) {
|
|
137
|
-
let scaleVO = that.$cache.local.getJSON("scales").find((item) => item.currencyId === currencyId);
|
|
138
|
-
if (scaleVO != null) {
|
|
139
|
-
return {
|
|
140
|
-
scale: Number(scaleVO.priceScale),
|
|
141
|
-
roundingTypeCode: scaleVO.priceRoundingTypeCode
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
return null;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
export function getAmountScaleByCurrencyId(currencyId) {
|
|
148
|
-
let scaleVO = that.$cache.local.getJSON("scales").find((item) => item.currencyId === currencyId);
|
|
149
|
-
if (scaleVO != null) {
|
|
150
|
-
return {
|
|
151
|
-
scale: Number(scaleVO.amountScale),
|
|
152
|
-
roundingTypeCode: scaleVO.priceRoundingTypeCode
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
return null;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
export function formatByUomCode(val, uomCode){
|
|
159
|
-
let scaleVo = getUomScaleByUomNo(uomCode);
|
|
160
|
-
if(scaleVo != null){
|
|
161
|
-
let scale = scaleVo.scale;
|
|
162
|
-
return Math.round(val * Math.pow(10, scale)) / Math.pow(10, scale);
|
|
163
|
-
}else{
|
|
164
|
-
// throw error
|
|
165
|
-
console.error(options.component, "未找到相关 uomNo 为", uomCode, "的单位精度信息");
|
|
166
|
-
return val;
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
export function formatPriceByCurrencyId(val, currencyId){
|
|
171
|
-
let scaleVo = getPriceScaleByCurrencyId(currencyId);
|
|
172
|
-
if(scaleVo != null){
|
|
173
|
-
let scale = scaleVo.scale;
|
|
174
|
-
if(scaleVo.roundingTypeCode === "1") { //四舍五入
|
|
175
|
-
return Math.round(val * Math.pow(10, scale)) / Math.pow(10, scale);
|
|
176
|
-
}else{
|
|
177
|
-
//四舍六入五成双
|
|
178
|
-
return val.toFixed(scale);
|
|
179
|
-
}
|
|
180
|
-
}else{
|
|
181
|
-
// throw error
|
|
182
|
-
console.error(options.component, "未找到相关 currencyId 为", currencyId, "的单位精度信息");
|
|
183
|
-
return val;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
export function formatAmountByCurrencyId(val, currencyId){
|
|
188
|
-
let scaleVo = getAmountScaleByCurrencyId(currencyId);
|
|
189
|
-
if(scaleVo != null){
|
|
190
|
-
let scale = scaleVo.scale;
|
|
191
|
-
if(scaleVo.roundingTypeCode === "1") { //四舍五入
|
|
192
|
-
return Math.round(val * Math.pow(10, scale)) / Math.pow(10, scale);
|
|
193
|
-
}else{
|
|
194
|
-
//四舍六入五成双
|
|
195
|
-
return val.toFixed(scale);
|
|
196
|
-
}
|
|
197
|
-
}else{
|
|
198
|
-
// throw error
|
|
199
|
-
console.error(options.component, "未找到相关 currencyId 为", currencyId, "的单位精度信息");
|
|
200
|
-
return val;
|
|
201
|
-
}
|
|
202
|
-
}
|
|
@@ -1,407 +0,0 @@
|
|
|
1
|
-
import Vue from 'vue'
|
|
2
|
-
import {getUrl} from '../../api/common/common';
|
|
3
|
-
|
|
4
|
-
let that = new Vue()
|
|
5
|
-
//import * as cache from '../..plugins/cache'
|
|
6
|
-
|
|
7
|
-
//公共接口
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* 工区类型_厂区
|
|
12
|
-
*/
|
|
13
|
-
const WA_TYPE_CODE_PLANT_AREA = "1";
|
|
14
|
-
/**
|
|
15
|
-
* 工区类型_车间
|
|
16
|
-
*/
|
|
17
|
-
const WA_TYPE_CODE_WORKSHOP = "2";
|
|
18
|
-
/**
|
|
19
|
-
* 工区类型_产线
|
|
20
|
-
*/
|
|
21
|
-
const WA_TYPE_CODE_PRODUCTION_LINE = "3";
|
|
22
|
-
/**
|
|
23
|
-
* 工区类型_工段
|
|
24
|
-
*/
|
|
25
|
-
const WA_TYPE_CODE_WORKSHOP_SECTION = "4";
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* factory component类型_组织
|
|
29
|
-
* @type {string}
|
|
30
|
-
*/
|
|
31
|
-
export const FACTORY_COMPONENT_SITE = "1";
|
|
32
|
-
/**
|
|
33
|
-
* factory component类型_工区
|
|
34
|
-
* @type {string}
|
|
35
|
-
*/
|
|
36
|
-
export const FACTORY_COMPONENT_WORKAREA = "2";
|
|
37
|
-
/**
|
|
38
|
-
* factory component类型_工作中心
|
|
39
|
-
* @type {string}
|
|
40
|
-
*/
|
|
41
|
-
export const FACTORY_COMPONENT_WORKCENTER = "3";
|
|
42
|
-
/**
|
|
43
|
-
* factory component类型_工作单元
|
|
44
|
-
* @type {string}
|
|
45
|
-
*/
|
|
46
|
-
export const FACTORY_COMPONENT_WORKUNIT = "4";
|
|
47
|
-
/**
|
|
48
|
-
* factory component类型_仓库
|
|
49
|
-
* @type {string}
|
|
50
|
-
*/
|
|
51
|
-
export const FACTORY_COMPONENT_STORAGEZONE = "5";
|
|
52
|
-
/**
|
|
53
|
-
* factory component类型_库位
|
|
54
|
-
* @type {string}
|
|
55
|
-
*/
|
|
56
|
-
export const FACTORY_COMPONENT_STORAGEUNIT = "6";
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* 初始化工厂模块相关缓存
|
|
60
|
-
*
|
|
61
|
-
*/
|
|
62
|
-
export function initFdCache() {
|
|
63
|
-
|
|
64
|
-
getUrl("/fd/fd/getAllSites").then((response) => {
|
|
65
|
-
var data = response.data;
|
|
66
|
-
Vue.prototype.$cache.local.setJSON("sites", data);
|
|
67
|
-
},
|
|
68
|
-
(error) => {
|
|
69
|
-
console.log(error);
|
|
70
|
-
}
|
|
71
|
-
);
|
|
72
|
-
|
|
73
|
-
getUrl("/fd/fd/getWorkAreas").then((response) => {
|
|
74
|
-
var data = response.data;
|
|
75
|
-
Vue.prototype.$cache.local.setJSON("workAreas", data);
|
|
76
|
-
},
|
|
77
|
-
(error) => {
|
|
78
|
-
console.log(error);
|
|
79
|
-
}
|
|
80
|
-
);
|
|
81
|
-
|
|
82
|
-
getUrl("/fd/fd/getWorkUnits").then((response) => {
|
|
83
|
-
var data = response.data;
|
|
84
|
-
Vue.prototype.$cache.local.setJSON("workUnits", data);
|
|
85
|
-
},
|
|
86
|
-
(error) => {
|
|
87
|
-
console.log(error);
|
|
88
|
-
}
|
|
89
|
-
);
|
|
90
|
-
|
|
91
|
-
getUrl("/fd/fd/getWorkCenters").then((response) => {
|
|
92
|
-
var data = response.data;
|
|
93
|
-
Vue.prototype.$cache.local.setJSON("workCenters", data);
|
|
94
|
-
},
|
|
95
|
-
(error) => {
|
|
96
|
-
console.log(error);
|
|
97
|
-
}
|
|
98
|
-
);
|
|
99
|
-
|
|
100
|
-
getUrl("/fd/fd/getStorageZones").then((response) => {
|
|
101
|
-
var data = response.data;
|
|
102
|
-
Vue.prototype.$cache.local.setJSON("storageZones", data);
|
|
103
|
-
},
|
|
104
|
-
(error) => {
|
|
105
|
-
console.log(error);
|
|
106
|
-
}
|
|
107
|
-
);
|
|
108
|
-
|
|
109
|
-
getUrl("/fd/fd/getStorageUnits").then((response) => {
|
|
110
|
-
var data = response.data;
|
|
111
|
-
Vue.prototype.$cache.local.setJSON("storageUnits", data);
|
|
112
|
-
},
|
|
113
|
-
(error) => {
|
|
114
|
-
console.log(error);
|
|
115
|
-
}
|
|
116
|
-
);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* 获取所有工作中心
|
|
121
|
-
* @param siteId 公司Id 可为空,为空时获取所有公司下数据
|
|
122
|
-
* @param workAreaId 工区Id 可为空
|
|
123
|
-
* @return
|
|
124
|
-
*/
|
|
125
|
-
export function getWorkCenters(siteIdOrNo, workAreaNoOrId = null) {
|
|
126
|
-
var cache = that.$cache.local.getJSON("workCenters");
|
|
127
|
-
if (!cache) return null;
|
|
128
|
-
if (siteIdOrNo != undefined && siteIdOrNo != null) {
|
|
129
|
-
var component = getSiteByIdOrNo(siteIdOrNo);
|
|
130
|
-
if (!component) return null;
|
|
131
|
-
cache = cache.filter(x => x.siteId == component.id);
|
|
132
|
-
}
|
|
133
|
-
if (workAreaNoOrId != undefined && workAreaNoOrId != null) {
|
|
134
|
-
var workAreaCache = getWorkAreas(siteIdOrNo);
|
|
135
|
-
var component = getComponentByIdOrNo(workAreaNoOrId, workAreaCache);
|
|
136
|
-
cache = cache.filter(x => x.parentComponentId == component.id);
|
|
137
|
-
}
|
|
138
|
-
return cache;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* 获取所有工作单元
|
|
143
|
-
* @param siteIdOrNo 组织Id/No 可为空,为空时获取所有公司下数据
|
|
144
|
-
* @param workCenterNoOrId 工作中心Id/No 可为空
|
|
145
|
-
* @param workUnitsIdOrNo 工作单元Id/No 可为空
|
|
146
|
-
* @return
|
|
147
|
-
*/
|
|
148
|
-
export function getWorkUnits(siteIdOrNo, workCenterNoOrId, workUnitsIdOrNo = null) {
|
|
149
|
-
var cache = that.$cache.local.getJSON("workUnits");
|
|
150
|
-
if (!cache) return null;
|
|
151
|
-
if (siteIdOrNo != undefined && siteIdOrNo != null) {
|
|
152
|
-
var site = getSiteByIdOrNo(siteIdOrNo);
|
|
153
|
-
if (!site) return null;
|
|
154
|
-
cache = cache.filter(x => x.siteId == site.id);
|
|
155
|
-
}
|
|
156
|
-
if (workCenterNoOrId != undefined && workCenterNoOrId != null) {
|
|
157
|
-
var workCenterCache = getWorkCenters(siteIdOrNo);
|
|
158
|
-
var component = getComponentByIdOrNo(workCenterNoOrId, workCenterCache);
|
|
159
|
-
cache = cache.filter(x => x.parentComponentId == component.id);
|
|
160
|
-
}
|
|
161
|
-
if (workUnitsIdOrNo != null) {
|
|
162
|
-
let res = getComponentByIdOrNo(workUnitsIdOrNo, cache);
|
|
163
|
-
return res == null ? null : [res];
|
|
164
|
-
}
|
|
165
|
-
return cache;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* 获取组织列表
|
|
170
|
-
* @param {string} siteTypeCode 组织类型
|
|
171
|
-
* @returns
|
|
172
|
-
*/
|
|
173
|
-
export function getSites(siteTypeCode) {
|
|
174
|
-
var cache = that.$cache.local.getJSON("sites");
|
|
175
|
-
return cache;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
/**
|
|
179
|
-
* 获取工区列表
|
|
180
|
-
* @param siteIdOrNo
|
|
181
|
-
* @param {string} waTypeCode 工区类型
|
|
182
|
-
* @param workAreaIdOrNo 工区id/no
|
|
183
|
-
* @returns
|
|
184
|
-
*/
|
|
185
|
-
export function getWorkAreas(siteIdOrNo, waTypeCode, workAreaIdOrNo = null) {
|
|
186
|
-
var cache = that.$cache.local.getJSON("workAreas");
|
|
187
|
-
if (!cache) return null;
|
|
188
|
-
if (siteIdOrNo != undefined && siteIdOrNo != null) {
|
|
189
|
-
var component = getSiteByIdOrNo(siteIdOrNo);
|
|
190
|
-
if (!component) return null;
|
|
191
|
-
cache = cache.filter(x => x.siteId == component.id);
|
|
192
|
-
}
|
|
193
|
-
if (waTypeCode != undefined && waTypeCode != null) {
|
|
194
|
-
cache = cache.filter(x => x.waTypeCode == waTypeCode);
|
|
195
|
-
}
|
|
196
|
-
if (workAreaIdOrNo != null) {
|
|
197
|
-
let res = getComponentByIdOrNo(workAreaIdOrNo, cache);
|
|
198
|
-
return res == null ? null : [res];
|
|
199
|
-
}
|
|
200
|
-
return cache;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
/**
|
|
205
|
-
* 获取所有厂区
|
|
206
|
-
* @param siteId 公司Id 可为空,为空时获取所有公司下数据
|
|
207
|
-
* @return
|
|
208
|
-
*/
|
|
209
|
-
export function getPlantAreas(siteId) {
|
|
210
|
-
return getWorkAreas(siteId, WA_TYPE_CODE_PLANT_AREA);
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
/**
|
|
214
|
-
* 获取所有车间
|
|
215
|
-
* @param siteId 公司Id 可为空,为空时获取所有公司下数据
|
|
216
|
-
* @return
|
|
217
|
-
*/
|
|
218
|
-
export function getWorkshops(siteId) {
|
|
219
|
-
return getWorkAreas(siteId, WA_TYPE_CODE_WORKSHOP);
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
/**
|
|
223
|
-
* 获取所有产线
|
|
224
|
-
* @param siteId 公司Id 可为空,为空时获取所有公司下数据
|
|
225
|
-
*/
|
|
226
|
-
export function getProductionLines(siteId) {
|
|
227
|
-
return getWorkAreas(siteId, WA_TYPE_CODE_PRODUCTION_LINE);
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
/**
|
|
232
|
-
* 获取所有工段
|
|
233
|
-
* @param siteId 公司Id 可为空,为空时获取所有公司下数据
|
|
234
|
-
* @return
|
|
235
|
-
*/
|
|
236
|
-
export function getWorkshopSections(siteId) {
|
|
237
|
-
return getWorkAreas(siteId, WA_TYPE_CODE_WORKSHOP_SECTION);
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
/**
|
|
242
|
-
* 根据组织Id或编号获取名称
|
|
243
|
-
* @param {any} value
|
|
244
|
-
* @returns
|
|
245
|
-
*/
|
|
246
|
-
export function getSiteNameByIdOrNo(value) {
|
|
247
|
-
var cache = that.$cache.local.getJSON("sites");
|
|
248
|
-
return getComponentNameByIdOrNo(value, cache);
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
/**
|
|
252
|
-
* 根据工区Id或编号获取名称
|
|
253
|
-
* @param {any} value
|
|
254
|
-
* @returns
|
|
255
|
-
*/
|
|
256
|
-
export function getWorkAreaNameByIdOrNo(value) {
|
|
257
|
-
var cache = that.$cache.local.getJSON("workAreas");
|
|
258
|
-
return getComponentNameByIdOrNo(value, cache);
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
/**
|
|
262
|
-
* 根据工作中心Id或编号获取名称
|
|
263
|
-
* @param {any} value
|
|
264
|
-
* @returns
|
|
265
|
-
*/
|
|
266
|
-
export function getWorkCenterNameByIdOrNo(value) {
|
|
267
|
-
var cache = that.$cache.local.getJSON("workCenters");
|
|
268
|
-
return getComponentNameByIdOrNo(value, cache);
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
/**
|
|
272
|
-
* 根据工作中心Id或编号获取对象
|
|
273
|
-
* @param {any} value
|
|
274
|
-
* @returns
|
|
275
|
-
*/
|
|
276
|
-
export function getWorkCenterByIdOrNo(value) {
|
|
277
|
-
let cache = that.$cache.local.getJSON("workCenters");
|
|
278
|
-
return getComponentByIdOrNo(value, cache);
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
/**
|
|
282
|
-
* 根据工作单元Id或编号获取名称
|
|
283
|
-
* @param {any} value
|
|
284
|
-
* @returns
|
|
285
|
-
*/
|
|
286
|
-
export function getWorkUnitNameByIdOrNo(value) {
|
|
287
|
-
var cache = that.$cache.local.getJSON("workUnits");
|
|
288
|
-
return getComponentNameByIdOrNo(value, cache);
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
export function getStorageZoneNameByIdOrNo(value) {
|
|
292
|
-
return getComponentNameByIdOrNo(value, that.$cache.local.getJSON("storageZones"));
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
export function getStorageUnitNameByIdOrNo(value) {
|
|
296
|
-
return getComponentNameByIdOrNo(value, that.$cache.local.getJSON("storageUnits"));
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
export function getComponentNameByIdOrNo(value, cacheItems) {
|
|
300
|
-
var component = getComponentByIdOrNo(value, cacheItems);
|
|
301
|
-
if (!component) return value;
|
|
302
|
-
return component.componentName;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
export function getComponentByIdOrNo(value, cacheItems) {
|
|
306
|
-
if (!cacheItems) return null;
|
|
307
|
-
for (var item of cacheItems) {
|
|
308
|
-
if (item.componentNo == value || item.id == value) {
|
|
309
|
-
return item;
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
return value;
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
export function getSiteByIdOrNo(siteIdOrNo) {
|
|
317
|
-
let cache = that.$cache.local.getJSON("sites");
|
|
318
|
-
for (let item of cache) {
|
|
319
|
-
if (item.id == siteIdOrNo || item.componentNo == siteIdOrNo) {
|
|
320
|
-
return item;
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
return null;
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
export function getStorageZones(siteIdOrNo, storageZoneNoOrId = null) {
|
|
327
|
-
let cache = that.$cache.local.getJSON("storageZones");
|
|
328
|
-
if (!cache) return null;
|
|
329
|
-
if (siteIdOrNo != null) {
|
|
330
|
-
let site = getSiteByIdOrNo(siteIdOrNo);
|
|
331
|
-
if (site == null) return null;
|
|
332
|
-
let siteId = site.id;
|
|
333
|
-
cache = cache.filter(x => x.siteId == siteId);
|
|
334
|
-
}
|
|
335
|
-
if (storageZoneNoOrId != null) {
|
|
336
|
-
cache = cache.filter(x => x.id == storageZoneNoOrId || x.componentNo == storageZoneNoOrId);
|
|
337
|
-
}
|
|
338
|
-
return cache;
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
/**
|
|
342
|
-
* 获取库位
|
|
343
|
-
* @param siteIdOrNo 组织Id 可为空
|
|
344
|
-
* @param storageZoneNoOrId 仓库Id/No 可为空
|
|
345
|
-
* @param storageUnitNoOrId 库位Id/No 可为空
|
|
346
|
-
* @return
|
|
347
|
-
*/
|
|
348
|
-
export function getStorageUnits(siteIdOrNo, storageZoneNoOrId, storageUnitNoOrId = null) {
|
|
349
|
-
let cache = that.$cache.local.getJSON("storageZones");
|
|
350
|
-
if (!cache) return null;
|
|
351
|
-
if (siteIdOrNo != null) {
|
|
352
|
-
let site = getSiteByIdOrNo(siteIdOrNo);
|
|
353
|
-
if (!site) return null;
|
|
354
|
-
cache = cache.filter(x => x.siteId == site.id);
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
if (storageZoneNoOrId != null) {
|
|
358
|
-
let storageZone = getStorageZones(null, storageUnitNoOrId)
|
|
359
|
-
if (!storageZone) return null;
|
|
360
|
-
cache = cache.filter(x => x.parentComponentId == storageZone.id);
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
if (storageUnitNoOrId != undefined && storageUnitNoOrId != null) {
|
|
364
|
-
cache = cache.filter(x => x.id == storageUnitNoOrId || x.componentNo == storageUnitNoOrId);
|
|
365
|
-
}
|
|
366
|
-
return cache;
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
export function getAllSites() {
|
|
370
|
-
return that.$cache.local.getJSON("sites");
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
export function getAllWorkAreas() {
|
|
374
|
-
return that.$cache.local.getJSON("workAreas");
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
export function getAllWorkUnits() {
|
|
378
|
-
return that.$cache.local.getJSON("workUnits");
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
export function getAllWorkCenters() {
|
|
382
|
-
return that.$cache.local.getJSON("workCenters");
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
export function getAllStorageZones() {
|
|
386
|
-
return that.$cache.local.getJSON("storageZones");
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
export function getAllStorageUnits() {
|
|
390
|
-
return that.$cache.local.getJSON("storageUnits");
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
export function populateSiteNameForEntities(entityList){
|
|
394
|
-
return entityList.map(entity => {
|
|
395
|
-
// if prop name ends with "SiteId", populate siteName
|
|
396
|
-
for(let prop in entity){
|
|
397
|
-
if (prop.endsWith("SiteId")){
|
|
398
|
-
let siteId = entity[prop];
|
|
399
|
-
entity[prop.replace("SiteId", "SiteName")] = getSiteNameByIdOrNo(siteId);
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
if(entity.siteId && entity.siteId !== '0'){
|
|
403
|
-
entity['siteName'] = getSiteNameByIdOrNo(entity.siteId);
|
|
404
|
-
}
|
|
405
|
-
return entity;
|
|
406
|
-
})
|
|
407
|
-
}
|