syntec3-0-ui-components-test 1.0.0
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/README.md +5 -0
- package/dist/S3_0UC_main.csv +4 -0
- package/dist/S3_0UC_sub.csv +2 -0
- package/dist/globalVariableS3_0UC.json +1 -0
- package/dist/style.css +1 -0
- package/dist/syntec3-0-ui-components.es.js +19518 -0
- package/dist/syntec3-0-ui-components.es.js.map +1 -0
- package/dist/syntec3-0-ui-components.umd.js +23 -0
- package/dist/syntec3-0-ui-components.umd.js.map +1 -0
- package/dist/vite.svg +1 -0
- package/dist/web.config +17 -0
- package/package.json +137 -0
- package/src/App.vue +31 -0
- package/src/assets/fonts/genYoGothicTW-normal.js +7 -0
- package/src/assets/image/defaultImage.png +0 -0
- package/src/assets/vue.svg +1 -0
- package/src/components/Layout/modules/fullPageGlobal.vue +113 -0
- package/src/components/Layout/modules/viewFile/config.js +65 -0
- package/src/components/Layout/modules/viewFile/createView.vue +1000 -0
- package/src/components/Layout/modules/viewFile/filterCriteria.vue +816 -0
- package/src/components/Layout/modules/viewFile/viewList.vue +291 -0
- package/src/components/Layout/modules/viewFile/viewManageTool.js +271 -0
- package/src/components/Layout/modules/viewFile/viewRecord.vue +472 -0
- package/src/components/Layout/modules/viewFile/viewTabs.vue +542 -0
- package/src/components/Layout/tools/GlobalDialog.vue +115 -0
- package/src/components/Pagination.vue +139 -0
- package/src/components/columnConfigNext.vue +273 -0
- package/src/components/customFilter/customFilter.vue +492 -0
- package/src/components/customFilter/filterCriteria.vue +769 -0
- package/src/components/customTable/components/headerOperation/index.vue +136 -0
- package/src/components/customTable/components/headerTabs/index.vue +171 -0
- package/src/components/customTable/components/tableContent/index.vue +440 -0
- package/src/components/customTable/index.vue +305 -0
- package/src/components/dialog.vue +85 -0
- package/src/components/pageContent.vue +48 -0
- package/src/components/popover.vue +402 -0
- package/src/configFiles/apiFile/baseApiList.json +11 -0
- package/src/configFiles/apiFile/coreApiList.json +24 -0
- package/src/configFiles/apiFile/mesApiList.json +4 -0
- package/src/configFiles/apiFile/mmsApiList.json +3 -0
- package/src/configFiles/errorCode.json +291 -0
- package/src/configFiles/version.js +2 -0
- package/src/i18n/lang/en-us.json +2060 -0
- package/src/i18n/lang/errorCodeTranslate.mjs +847 -0
- package/src/i18n/lang/zh-cn.json +2062 -0
- package/src/i18n/lang/zh-tw.json +2059 -0
- package/src/index.js +115 -0
- package/src/main.js +51 -0
- package/src/plugins/excel.js +88 -0
- package/src/router/index.js +41 -0
- package/src/scriptFiles/apiConfig/baseApis.js +10 -0
- package/src/scriptFiles/apiConfig/mesApis.js +10 -0
- package/src/scriptFiles/apiConfig/mmsApis.js +10 -0
- package/src/scriptFiles/apiConfig/privateCloudCoreApis.js +13 -0
- package/src/scriptFiles/apiConfig/serviceRoute.js +23 -0
- package/src/scriptFiles/apis/baseApiFunction.js +63 -0
- package/src/scriptFiles/apis/mesApiFunction.js +15 -0
- package/src/scriptFiles/apis/mmsApiFunction.js +9 -0
- package/src/scriptFiles/apis/privateCloudCoreApiFunction.js +101 -0
- package/src/scriptFiles/backendApiFunction.js +11 -0
- package/src/scriptFiles/checkApiErrorMechanism.js +137 -0
- package/src/scriptFiles/common/objectDataProcessing.js +65 -0
- package/src/scss/base/commom.scss +1068 -0
- package/src/scss/base/dialog.scss +45 -0
- package/src/scss/base/index.scss +3 -0
- package/src/scss/base/table.scss +28 -0
- package/src/store/index.js +25 -0
- package/src/store/module/langStore.js +116 -0
- package/src/style.css +52 -0
- package/src/utils/excel.js +86 -0
- package/src/utils/formula.js +69 -0
- package/src/utils/https.js +13 -0
- package/src/utils/i18n.js +42 -0
- package/src/utils/shiftSelect.js +164 -0
- package/src/utils/summation.js +77 -0
- package/src/utils/tableWidth.js +29 -0
- package/src/utils/toolFun.js +93 -0
- package/src/views/productionWorkOrder/components/columnConfig.vue +242 -0
- package/src/views/productionWorkOrder/components/docCustomFieldForm.vue +739 -0
- package/src/views/productionWorkOrder/components/filePreview.vue +148 -0
- package/src/views/productionWorkOrder/components/querySearch.vue +363 -0
- package/src/views/productionWorkOrder/configFiles/excelImportErrorCode.json +94 -0
- package/src/views/productionWorkOrder/configFiles/pdfDefaultConfig.js +933 -0
- package/src/views/productionWorkOrder/configFiles/planMakingScript.js +600 -0
- package/src/views/productionWorkOrder/configFiles/productionRelatedScript.js +368 -0
- package/src/views/productionWorkOrder/configFiles/rulse.js +23 -0
- package/src/views/productionWorkOrder/configFiles/status.js +50 -0
- package/src/views/productionWorkOrder/index.vue +2174 -0
- package/src/views/productionWorkOrder/productionFlowLabel/component/addCirculationLabel.vue +394 -0
- package/src/views/productionWorkOrder/productionFlowLabel/component/circulationLabelTable.vue +124 -0
- package/src/views/productionWorkOrder/productionFlowLabel/component/materialPartFilePreview.vue +167 -0
- package/src/views/productionWorkOrder/productionFlowLabel/component/workOrderInformation.vue +28 -0
- package/src/views/productionWorkOrder/productionFlowLabel/index.vue +604 -0
- package/src/views/production_work_order/components/priorityTooltip.vue +53 -0
- package/src/views/production_work_order/index.vue +1307 -0
- package/src/views/review_record/components/materialInfo.vue +50 -0
- package/src/views/review_record/components/rootCause.vue +42 -0
- package/src/views/review_record/components/workDetail.vue +115 -0
- package/src/views/review_record/index.vue +884 -0
package/src/index.js
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
// 组件库入口文件
|
|
2
|
+
// 导入样式文件
|
|
3
|
+
import './scss/base/index.scss';
|
|
4
|
+
import './style.css';
|
|
5
|
+
|
|
6
|
+
// 导出国际化配置
|
|
7
|
+
export * from './utils/i18n';
|
|
8
|
+
|
|
9
|
+
import SynColumnConfigNext from './components/columnConfigNext.vue';
|
|
10
|
+
import SynDialog from './components/dialog.vue';
|
|
11
|
+
import SynPageContent from './components/pageContent.vue';
|
|
12
|
+
import SynPagination from './components/Pagination.vue';
|
|
13
|
+
import SynPopover from './components/popover.vue';
|
|
14
|
+
import SynCustomFilter from './components/customFilter/customFilter.vue';
|
|
15
|
+
import SynFilterCriteria from './components/customFilter/filterCriteria.vue';
|
|
16
|
+
import SynFullPageGlobal from './components/Layout/modules/fullPageGlobal.vue';
|
|
17
|
+
import SynGlobalDialog from './components/Layout/tools/GlobalDialog.vue';
|
|
18
|
+
import SynCreateView from './components/Layout/modules/viewFile/createView.vue';
|
|
19
|
+
import SynViewList from './components/Layout/modules/viewFile/viewList.vue';
|
|
20
|
+
import SynViewRecord from './components/Layout/modules/viewFile/viewRecord.vue';
|
|
21
|
+
import SynViewTabs from './components/Layout/modules/viewFile/viewTabs.vue';
|
|
22
|
+
import SynViewFileFilterCriteria from './components/Layout/modules/viewFile/filterCriteria.vue';
|
|
23
|
+
import SynMainPageContent from './components/customTable/index.vue';
|
|
24
|
+
import SynTheWholeViewContent from './components/customTable/components/headerTabs/index.vue';
|
|
25
|
+
import SynRightButtonBlockContent from './components/customTable/components/headerOperation/index.vue';
|
|
26
|
+
import SynTableContent from './components/customTable/components/tableContent/index.vue';
|
|
27
|
+
|
|
28
|
+
// 所有组件列表
|
|
29
|
+
const components = [
|
|
30
|
+
SynColumnConfigNext,
|
|
31
|
+
SynDialog,
|
|
32
|
+
SynPageContent,
|
|
33
|
+
SynPagination,
|
|
34
|
+
SynPopover,
|
|
35
|
+
SynCustomFilter,
|
|
36
|
+
SynFilterCriteria,
|
|
37
|
+
SynFullPageGlobal,
|
|
38
|
+
SynGlobalDialog,
|
|
39
|
+
SynCreateView,
|
|
40
|
+
SynViewList,
|
|
41
|
+
SynViewRecord,
|
|
42
|
+
SynViewTabs,
|
|
43
|
+
SynViewFileFilterCriteria,
|
|
44
|
+
SynMainPageContent,
|
|
45
|
+
SynTheWholeViewContent,
|
|
46
|
+
SynRightButtonBlockContent,
|
|
47
|
+
SynTableContent,
|
|
48
|
+
];
|
|
49
|
+
|
|
50
|
+
// 组件名称列表(与 components 数组顺序对应)
|
|
51
|
+
const componentNames = [
|
|
52
|
+
'SynColumnConfigNext',
|
|
53
|
+
'SynDialog',
|
|
54
|
+
'SynPageContent',
|
|
55
|
+
'SynPagination',
|
|
56
|
+
'SynPopover',
|
|
57
|
+
'SynCustomFilter',
|
|
58
|
+
'SynFilterCriteria',
|
|
59
|
+
'SynFullPageGlobal',
|
|
60
|
+
'SynGlobalDialog',
|
|
61
|
+
'SynCreateView',
|
|
62
|
+
'SynViewList',
|
|
63
|
+
'SynViewRecord',
|
|
64
|
+
'SynViewTabs',
|
|
65
|
+
'SynViewFileFilterCriteria',
|
|
66
|
+
'SynMainPageContent',
|
|
67
|
+
'SynTheWholeViewContent',
|
|
68
|
+
'SynRightButtonBlockContent',
|
|
69
|
+
'SynTableContent',
|
|
70
|
+
];
|
|
71
|
+
|
|
72
|
+
// 定义 install 方法,用于 Vue.use() 安装
|
|
73
|
+
const install = (app) => {
|
|
74
|
+
components.forEach((component, index) => {
|
|
75
|
+
const componentName = componentNames[index];
|
|
76
|
+
// 尝试多种方式获取组件名,优先使用组件自身的 name
|
|
77
|
+
const name = component.name || component.__name || componentName;
|
|
78
|
+
if (name) {
|
|
79
|
+
app.component(name, component);
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
// 如果通过 script 标签引入,自动安装
|
|
85
|
+
if (typeof window !== 'undefined' && window.Vue) {
|
|
86
|
+
install(window.Vue);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
// 导出所有组件和 install 方法
|
|
90
|
+
export {
|
|
91
|
+
SynColumnConfigNext,
|
|
92
|
+
SynDialog,
|
|
93
|
+
SynPageContent,
|
|
94
|
+
SynPagination,
|
|
95
|
+
SynPopover,
|
|
96
|
+
SynCustomFilter,
|
|
97
|
+
SynFilterCriteria,
|
|
98
|
+
SynFullPageGlobal,
|
|
99
|
+
SynGlobalDialog,
|
|
100
|
+
SynCreateView,
|
|
101
|
+
SynViewList,
|
|
102
|
+
SynViewRecord,
|
|
103
|
+
SynViewTabs,
|
|
104
|
+
SynViewFileFilterCriteria,
|
|
105
|
+
SynMainPageContent,
|
|
106
|
+
SynTheWholeViewContent,
|
|
107
|
+
SynRightButtonBlockContent,
|
|
108
|
+
SynTableContent,
|
|
109
|
+
install,
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
// 默认导出,支持 Vue.use()
|
|
113
|
+
export default {
|
|
114
|
+
install,
|
|
115
|
+
};
|
package/src/main.js
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { createApp } from 'vue';
|
|
2
|
+
import './style.css';
|
|
3
|
+
import App from './App.vue';
|
|
4
|
+
import router from './router';
|
|
5
|
+
import store from './store';
|
|
6
|
+
import i18n from './utils/i18n.js';
|
|
7
|
+
import ElementPlus from 'element-plus';
|
|
8
|
+
import 'element-plus/dist/index.css';
|
|
9
|
+
import * as ElementPlusIconsVue from '@element-plus/icons-vue';
|
|
10
|
+
import { renderWithQiankun, qiankunWindow } from 'vite-plugin-qiankun/dist/helper';
|
|
11
|
+
import '@/scss/base/index.scss';
|
|
12
|
+
import '@mdi/font/css/materialdesignicons.css';
|
|
13
|
+
import { vShiftSelect } from '@/utils/shiftSelect';
|
|
14
|
+
|
|
15
|
+
let app = null;
|
|
16
|
+
|
|
17
|
+
const render = (container) => {
|
|
18
|
+
app = createApp(App);
|
|
19
|
+
app.use(i18n);
|
|
20
|
+
app.use(router);
|
|
21
|
+
app.component('v-icon', 'mdi');
|
|
22
|
+
app.use(ElementPlus);
|
|
23
|
+
app.use(store);
|
|
24
|
+
app.directive('shift-select', vShiftSelect);
|
|
25
|
+
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
|
|
26
|
+
app.component(key, component);
|
|
27
|
+
}
|
|
28
|
+
app.mount(container ? container.querySelector('#S3_0UC_app') : '#S3_0UC_app');
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
const initQianKun = () => {
|
|
32
|
+
renderWithQiankun({
|
|
33
|
+
mount(props) {
|
|
34
|
+
const { container, actions } = props;
|
|
35
|
+
store.dispatch('setLangInfo');
|
|
36
|
+
actions.onGlobalStateChange((state) => {
|
|
37
|
+
store.dispatch('setLangInfo');
|
|
38
|
+
i18n.global.locale = state.locale;
|
|
39
|
+
// 在这里处理全局状态的变化,比如更新子应用的状态或重新渲染组件
|
|
40
|
+
});
|
|
41
|
+
render(container);
|
|
42
|
+
},
|
|
43
|
+
bootstrap() {
|
|
44
|
+
return;
|
|
45
|
+
},
|
|
46
|
+
unmount() {
|
|
47
|
+
app.unmount();
|
|
48
|
+
},
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
qiankunWindow.__POWERED_BY_QIANKUN__ ? initQianKun() : render();
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { utils } from 'xlsx';
|
|
2
|
+
import * as XLSX from 'xlsx';
|
|
3
|
+
|
|
4
|
+
const EXCEL = {
|
|
5
|
+
// 輸出excel表單
|
|
6
|
+
exportFromArray(option) {
|
|
7
|
+
const config = { name: 'demo', suffix: 'xml', ...option };
|
|
8
|
+
const {
|
|
9
|
+
title, body, name, suffix, wscols,
|
|
10
|
+
} = config;
|
|
11
|
+
const array = [...title, ...body];
|
|
12
|
+
const workBook = utils.book_new();
|
|
13
|
+
const workSheet = utils.aoa_to_sheet(array, { raw: true });
|
|
14
|
+
// 欄位寬度設定
|
|
15
|
+
workSheet['!cols'] = wscols;
|
|
16
|
+
const fileName = `${name}.${suffix}`;
|
|
17
|
+
utils.book_append_sheet(workBook, workSheet, name);
|
|
18
|
+
XLSX.writeFile(workBook, fileName, { bookType: suffix, type: 'buffer', writeFile: true });
|
|
19
|
+
},
|
|
20
|
+
// 輸出批量excel表單
|
|
21
|
+
async exportBatchFromArray(arr, fileName) {
|
|
22
|
+
const workBook = utils.book_new();
|
|
23
|
+
for (let i = 0; i < arr.length; i += 1) {
|
|
24
|
+
const config = { ...arr[i] };
|
|
25
|
+
const {
|
|
26
|
+
title, body, name, wscols, wsmerges, wsrow,
|
|
27
|
+
} = config;
|
|
28
|
+
const array = [...title, ...body];
|
|
29
|
+
const workSheet = utils.aoa_to_sheet(array, { raw: true });
|
|
30
|
+
// 欄位寬度設定
|
|
31
|
+
workSheet['!cols'] = wscols;
|
|
32
|
+
workSheet['!rows'] = wsrow;
|
|
33
|
+
workSheet['!merges'] = wsmerges;
|
|
34
|
+
// eslint-disable-next-line no-await-in-loop
|
|
35
|
+
await utils.book_append_sheet(workBook, workSheet, name);
|
|
36
|
+
}
|
|
37
|
+
// eslint-disable-next-line max-len
|
|
38
|
+
XLSX.writeFile(workBook, `${fileName}.xlsx`, { bookType: 'xlsx', type: 'buffer', writeFile: true });
|
|
39
|
+
},
|
|
40
|
+
// 解析表格數據,返回表格内容,目前不支援導入有單元格合併的表格,data.title為表头、data.body為表格數據
|
|
41
|
+
async importFromLocal(file) {
|
|
42
|
+
const workBook = await this.readerWorkBookFromLocal(file);
|
|
43
|
+
const workSheet = workBook.Sheets[workBook.SheetNames[0]];
|
|
44
|
+
const content = utils.sheet_to_json(workSheet, { defval: '' });
|
|
45
|
+
const contentSort = utils.sheet_to_json(workSheet, { header: 1 });
|
|
46
|
+
if (content.length === 0) {
|
|
47
|
+
return content;
|
|
48
|
+
}
|
|
49
|
+
const data = {};
|
|
50
|
+
data.title = Object.keys(content[0]);
|
|
51
|
+
data.body = content;
|
|
52
|
+
data.titleSort = [...contentSort[0]]; // 记录Excel中的顺序,不会因为数字而导致顺序错乱
|
|
53
|
+
return data;
|
|
54
|
+
},
|
|
55
|
+
// 解析表格數據(第二张Sheet表数据),返回表格内容,目前不支援導入有單元格合併的表格,data.title為表头、data.body為表格數據
|
|
56
|
+
async importInstructionsFromLocal(file) {
|
|
57
|
+
const workBook = await this.readerWorkBookFromLocal(file);
|
|
58
|
+
const workSheet = workBook.Sheets[workBook.SheetNames[1]];
|
|
59
|
+
const content = utils.sheet_to_json(workSheet, { defval: '' });
|
|
60
|
+
const contentSort = utils.sheet_to_json(workSheet, { header: 1 });
|
|
61
|
+
if (content.length === 0) {
|
|
62
|
+
return content;
|
|
63
|
+
}
|
|
64
|
+
const data = {};
|
|
65
|
+
data.title = Object.keys(content[0]);
|
|
66
|
+
data.body = content;
|
|
67
|
+
data.titleSort = [...contentSort[0]]; // 记录Excel中的顺序,不会因为数字而导致顺序错乱
|
|
68
|
+
return data;
|
|
69
|
+
},
|
|
70
|
+
// 讀取文件的方法,file為文件Data
|
|
71
|
+
readerWorkBookFromLocal(file) {
|
|
72
|
+
const reader = new FileReader();
|
|
73
|
+
reader.readAsBinaryString(file);
|
|
74
|
+
return new Promise(((resolve, reject) => {
|
|
75
|
+
reader.onload = function (e) {
|
|
76
|
+
const fileData = e.target.result;
|
|
77
|
+
if (reader.readyState === 2) {
|
|
78
|
+
const workBook = XLSX.read(fileData, { type: 'binary' });
|
|
79
|
+
resolve(workBook);
|
|
80
|
+
} else {
|
|
81
|
+
reject(new Error('讀取文件失敗'));
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
}));
|
|
85
|
+
},
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export default EXCEL;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { createRouter, createWebHistory } from 'vue-router';
|
|
2
|
+
import i18n from '../utils/i18n.js';
|
|
3
|
+
import { qiankunWindow } from 'vite-plugin-qiankun/dist/helper';
|
|
4
|
+
|
|
5
|
+
const routes = [
|
|
6
|
+
{
|
|
7
|
+
path: '/',
|
|
8
|
+
redirect: '/review_record',
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
path: '/productionWorkOrder',
|
|
12
|
+
name: 'productionWorkOrder',
|
|
13
|
+
component: () => import('../views/productionWorkOrder/index.vue'),
|
|
14
|
+
},
|
|
15
|
+
// 生产工单
|
|
16
|
+
{
|
|
17
|
+
path: '/production_work_order',
|
|
18
|
+
name: 'production_work_order',
|
|
19
|
+
component: () => import('../views/production_work_order/index.vue'),
|
|
20
|
+
},
|
|
21
|
+
// 报工审核
|
|
22
|
+
{
|
|
23
|
+
path: '/review_record',
|
|
24
|
+
name: 'review_record',
|
|
25
|
+
component: () => import('../views/review_record/index.vue'),
|
|
26
|
+
},
|
|
27
|
+
];
|
|
28
|
+
const router = createRouter({
|
|
29
|
+
history: createWebHistory(
|
|
30
|
+
process.env.NODE_ENV === 'production' && qiankunWindow.__POWERED_BY_QIANKUN__ ? '/BASE/syntec3-0-ui-components/' : '/syntec3-0-ui-components',
|
|
31
|
+
),
|
|
32
|
+
routes,
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
router.beforeEach((to, from, next) => {
|
|
36
|
+
const lang = localStorage.getItem('lang');
|
|
37
|
+
i18n.global.locale = lang || 'zh-cn';
|
|
38
|
+
next();
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
export default router;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import axios from 'axios';
|
|
2
|
+
import serviceRoute from './serviceRoute';
|
|
3
|
+
|
|
4
|
+
const originPath = serviceRoute(
|
|
5
|
+
'PrivateCloudCore/API/V1',
|
|
6
|
+
'PrivateCloudCoreApi_SynComponent/PrivateCloudCore/API/V1',
|
|
7
|
+
);
|
|
8
|
+
|
|
9
|
+
const getBaseApi = axios.create({
|
|
10
|
+
baseURL: originPath,
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
export default getBaseApi;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const BUILD_TYPE = process.env.NODE_ENV;
|
|
2
|
+
|
|
3
|
+
function serviceRoute(productionRoute, devRoute = '') {
|
|
4
|
+
let localDevRoute = devRoute;
|
|
5
|
+
if (localDevRoute.length === 0) {
|
|
6
|
+
localDevRoute = productionRoute;
|
|
7
|
+
}
|
|
8
|
+
let originPath = '';
|
|
9
|
+
if (BUILD_TYPE === 'production') {
|
|
10
|
+
// 放上研發測試環境或是整合測試環境(連自己同源的API)
|
|
11
|
+
const { protocol } = window.location;
|
|
12
|
+
const { hostname } = window.location;
|
|
13
|
+
const { port } = window.location;
|
|
14
|
+
originPath = `${protocol}//${hostname}:${port}/${productionRoute}`;
|
|
15
|
+
} else if (BUILD_TYPE === 'development') {
|
|
16
|
+
// 在本地端開發連研發測試環境(讓devServer代理到API專案)
|
|
17
|
+
originPath = `/${localDevRoute}`;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
return originPath;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export default serviceRoute;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import baseApi from '../apiConfig/baseApis';
|
|
2
|
+
import baseApiList from '@/configFiles/apiFile/baseApiList';
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
// 文件上传
|
|
6
|
+
docCustomUpload(data) {
|
|
7
|
+
const config = {
|
|
8
|
+
headers: {
|
|
9
|
+
'Content-Type': 'multipart/form-data',
|
|
10
|
+
},
|
|
11
|
+
};
|
|
12
|
+
return baseApi.post(`${baseApiList.docCustomUpload}/${data.DocCode}/${data.DocCustomId}`, data.file, config);
|
|
13
|
+
},
|
|
14
|
+
// 查询单据自定义栏位
|
|
15
|
+
querySetting(data) {
|
|
16
|
+
const config = {
|
|
17
|
+
headers: {
|
|
18
|
+
'Content-Type': 'application/json',
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
return baseApi.post(baseApiList.querySetting, data, config);
|
|
22
|
+
},
|
|
23
|
+
// 单据自定义附件下载
|
|
24
|
+
docDownloadFile(data) {
|
|
25
|
+
const config = {
|
|
26
|
+
headers: {
|
|
27
|
+
'Content-Type': 'application/json',
|
|
28
|
+
},
|
|
29
|
+
responseType: 'blob',
|
|
30
|
+
};
|
|
31
|
+
return baseApi.post(baseApiList.docDownloadFile, data, config);
|
|
32
|
+
},
|
|
33
|
+
// 更新列配置数据(最新版)
|
|
34
|
+
updateColumnSettingNext(data) {
|
|
35
|
+
const config = {
|
|
36
|
+
headers: {
|
|
37
|
+
'Content-Type': 'application/json',
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
return baseApi.put(baseApiList.updateColumnSettingNext, data, config);
|
|
41
|
+
},
|
|
42
|
+
// 查询列配置数据(最新版)
|
|
43
|
+
queryColumnSettingNext(data) {
|
|
44
|
+
const config = {
|
|
45
|
+
headers: {
|
|
46
|
+
'Content-Type': 'application/json',
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
return baseApi.post(baseApiList.queryColumnSettingNext, data, config);
|
|
50
|
+
},
|
|
51
|
+
// 新增或更新筛选条件
|
|
52
|
+
insertOrUpdateFilterCondition(data) {
|
|
53
|
+
return baseApi.post(baseApiList.insertOrUpdateFilterCondition, data);
|
|
54
|
+
},
|
|
55
|
+
// 查询筛选条件
|
|
56
|
+
queryFilterCondition(data) {
|
|
57
|
+
return baseApi.post(baseApiList.queryFilterCondition, data);
|
|
58
|
+
},
|
|
59
|
+
// 获取自定义筛选字段内容
|
|
60
|
+
getFieldSetting(permissionCode) {
|
|
61
|
+
return baseApi.get(`${baseApiList.getFieldSetting}?permissionCode=${permissionCode}`);
|
|
62
|
+
},
|
|
63
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import mesApiList from '@/configFiles/apiFile/mesApiList.json';
|
|
2
|
+
import mesApi from '../apiConfig/mesApis';
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
// 生产工单页查询接口
|
|
6
|
+
planFormulationQuery(data) {
|
|
7
|
+
const returnObject = mesApi.post(mesApiList.planFormulationQuery, data);
|
|
8
|
+
return returnObject;
|
|
9
|
+
},
|
|
10
|
+
// 报工审核查询接口
|
|
11
|
+
GetReviewRecord(data) {
|
|
12
|
+
const returnObject = mesApi.post(mesApiList.GetReviewRecord, data);
|
|
13
|
+
return returnObject;
|
|
14
|
+
},
|
|
15
|
+
};
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import coreApiList from '@/configFiles/apiFile/coreApiList.json';
|
|
2
|
+
import getCoreBaseApi from '../apiConfig/privateCloudCoreApis';
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
refreshToken(data) {
|
|
6
|
+
const config = {
|
|
7
|
+
headers: {
|
|
8
|
+
'Content-Type': 'application/json',
|
|
9
|
+
token: 'store.state.login.token',
|
|
10
|
+
},
|
|
11
|
+
};
|
|
12
|
+
const returnObject = getCoreBaseApi.post(coreApiList.refreshToken, data, config);
|
|
13
|
+
return returnObject;
|
|
14
|
+
},
|
|
15
|
+
logins(data) {
|
|
16
|
+
return getCoreBaseApi.post(coreApiList.logins, data);
|
|
17
|
+
},
|
|
18
|
+
logout() {
|
|
19
|
+
localStorage.removeItem('synFactoryUserID');
|
|
20
|
+
localStorage.removeItem('synFactoryUserName');
|
|
21
|
+
localStorage.removeItem('synFactoryPermission');
|
|
22
|
+
localStorage.removeItem('synFactoryEmpID');
|
|
23
|
+
const returnObject = getCoreBaseApi.get(coreApiList.logout);
|
|
24
|
+
return returnObject;
|
|
25
|
+
},
|
|
26
|
+
//获取全部人员接口
|
|
27
|
+
getEmployeeList(params) {
|
|
28
|
+
return getCoreBaseApi.post(coreApiList.employeeList, params);
|
|
29
|
+
},
|
|
30
|
+
QueryMyPermission(params) {
|
|
31
|
+
return getCoreBaseApi.get(coreApiList.QueryMyPermission, {
|
|
32
|
+
params,
|
|
33
|
+
});
|
|
34
|
+
},
|
|
35
|
+
// 查询分页配置API
|
|
36
|
+
queryPageSetting(data) {
|
|
37
|
+
return getCoreBaseApi.get(
|
|
38
|
+
`${coreApiList.queryPageSetting}?permissionCode=${data.permissionCode}&pageType=${data.pageType}`,
|
|
39
|
+
);
|
|
40
|
+
},
|
|
41
|
+
// 更新分页配置API
|
|
42
|
+
updatePageSetting(data) {
|
|
43
|
+
return getCoreBaseApi.post(coreApiList.updatePageSetting, data);
|
|
44
|
+
},
|
|
45
|
+
queryDeptAssigneeInfoList(data) {
|
|
46
|
+
return getCoreBaseApi.post(coreApiList.queryDeptAssigneeInfoList, data);
|
|
47
|
+
},
|
|
48
|
+
//查询视图只读列表
|
|
49
|
+
getViewOnlyReadList(data) {
|
|
50
|
+
return getCoreBaseApi.post(coreApiList.getViewOnlyReadList, data);
|
|
51
|
+
},
|
|
52
|
+
//获取视图操作记录
|
|
53
|
+
getViewOpLogList(data) {
|
|
54
|
+
return getCoreBaseApi.post(coreApiList.getViewLogList, data);
|
|
55
|
+
},
|
|
56
|
+
//获取视图操作人员列表
|
|
57
|
+
getViewEmployeeList(data) {
|
|
58
|
+
return getCoreBaseApi.post(coreApiList.getViewOptEmployeeList, data);
|
|
59
|
+
},
|
|
60
|
+
|
|
61
|
+
//获取视图列表
|
|
62
|
+
getViewList(data) {
|
|
63
|
+
return getCoreBaseApi.post(coreApiList.getViewList, data);
|
|
64
|
+
},
|
|
65
|
+
//新增视图
|
|
66
|
+
addView(data) {
|
|
67
|
+
return getCoreBaseApi.post(coreApiList.addView, data);
|
|
68
|
+
},
|
|
69
|
+
//视图名称重复校验
|
|
70
|
+
checkViewName(data) {
|
|
71
|
+
return getCoreBaseApi.post(coreApiList.IsExistViewName, data);
|
|
72
|
+
},
|
|
73
|
+
//编辑视图
|
|
74
|
+
editView(data) {
|
|
75
|
+
return getCoreBaseApi.post(coreApiList.modifyView, data);
|
|
76
|
+
},
|
|
77
|
+
//删除视图
|
|
78
|
+
deleteView(id) {
|
|
79
|
+
return getCoreBaseApi.get(`${coreApiList.deleteView}?id=${id}`);
|
|
80
|
+
},
|
|
81
|
+
//获取视图详情
|
|
82
|
+
getViewDetail(id, type) {
|
|
83
|
+
return getCoreBaseApi.get(`${coreApiList.getViewTabDetail}?id=${id}&isCopy=${type}`);
|
|
84
|
+
},
|
|
85
|
+
//获取筛选字段
|
|
86
|
+
getViewFilterList(data) {
|
|
87
|
+
return getCoreBaseApi.post(coreApiList.getViewFieldList, data);
|
|
88
|
+
},
|
|
89
|
+
//视图排序
|
|
90
|
+
viewSortList(data) {
|
|
91
|
+
return getCoreBaseApi.post(coreApiList.upadateViewOrder, data);
|
|
92
|
+
},
|
|
93
|
+
//获取查阅权限人员列表
|
|
94
|
+
getViewReadEmployeeList(data) {
|
|
95
|
+
return getCoreBaseApi.post(coreApiList.getViewPermissionEmployeeList, data);
|
|
96
|
+
},
|
|
97
|
+
//查询人元列表
|
|
98
|
+
getViewPersionList(data) {
|
|
99
|
+
return getCoreBaseApi.post(coreApiList.getViewpersionList, data);
|
|
100
|
+
},
|
|
101
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import privateCloudCoreApiFunction from './apis/privateCloudCoreApiFunction';
|
|
2
|
+
import baseApiFun from './apis/baseApiFunction';
|
|
3
|
+
import mesApiFun from './apis/mesApiFunction';
|
|
4
|
+
import mmsApiFun from './apis/mmsApiFunction';
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
...privateCloudCoreApiFunction,
|
|
8
|
+
...baseApiFun,
|
|
9
|
+
...mesApiFun,
|
|
10
|
+
...mmsApiFun,
|
|
11
|
+
};
|