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
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="37.07" height="36" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 198"><path fill="#41B883" d="M204.8 0H256L128 220.8L0 0h97.92L128 51.2L157.44 0h47.36Z"></path><path fill="#41B883" d="m0 0l128 220.8L256 0h-51.2L128 132.48L50.56 0H0Z"></path><path fill="#35495E" d="M50.56 0L128 133.12L204.8 0h-47.36L128 51.2L97.92 0H50.56Z"></path></svg>
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
v-show="visibleShow"
|
|
4
|
+
v-loading="loading"
|
|
5
|
+
:value="visibleShow"
|
|
6
|
+
class="full_page"
|
|
7
|
+
:style="{ height: height ? height : 'calc(100% + 1rem)', top: top ? top : '-1rem' }"
|
|
8
|
+
:data-test-id="`${dataTestId}-DIV-NjXo0`"
|
|
9
|
+
>
|
|
10
|
+
<div v-if="globalProps" class="title_name" :data-test-id="`${dataTestId}-DIV-VCvcCd`">
|
|
11
|
+
{{ globalProps }}
|
|
12
|
+
</div>
|
|
13
|
+
<div style="height: 2rem; float: right; line-height: 2rem" :data-test-id="`${dataTestId}-DIV-E2CzeU`">
|
|
14
|
+
<slot name="head_button" />
|
|
15
|
+
<el-button
|
|
16
|
+
v-if="isShowSave"
|
|
17
|
+
class="button_item"
|
|
18
|
+
type="primary"
|
|
19
|
+
link
|
|
20
|
+
:data-test-id="`${dataTestId}-EL-BUTTON-w4qzUN`"
|
|
21
|
+
@click="dialogEvent('submit')"
|
|
22
|
+
>
|
|
23
|
+
<i
|
|
24
|
+
:class="`mdi mdi-content-save-check-outline`"
|
|
25
|
+
style="margin-right: 0.5rem"
|
|
26
|
+
:data-test-id="`${dataTestId}-I-oIdZaY`"
|
|
27
|
+
/>
|
|
28
|
+
{{ $t('save') }}
|
|
29
|
+
</el-button>
|
|
30
|
+
<el-button
|
|
31
|
+
class="button_item"
|
|
32
|
+
type="primary"
|
|
33
|
+
style="padding-right: 10px"
|
|
34
|
+
link
|
|
35
|
+
:data-test-id="`${dataTestId}-EL-BUTTON-SM1nlI`"
|
|
36
|
+
@click="dialogEvent('close')"
|
|
37
|
+
>
|
|
38
|
+
<i :class="`mdi mdi-close`" style="margin-right: 0.5rem" :data-test-id="`${dataTestId}-I-kreuD8`" />
|
|
39
|
+
{{ $t('cancel') }}
|
|
40
|
+
</el-button>
|
|
41
|
+
</div>
|
|
42
|
+
<div style="height: calc(100% - 2rem)" :data-test-id="`${dataTestId}-DIV-2oISpK`">
|
|
43
|
+
<slot />
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
46
|
+
</template>
|
|
47
|
+
|
|
48
|
+
<script setup>
|
|
49
|
+
import { computed, ref } from 'vue';
|
|
50
|
+
const props = defineProps({
|
|
51
|
+
modelValue: {
|
|
52
|
+
type: Boolean,
|
|
53
|
+
default: false,
|
|
54
|
+
},
|
|
55
|
+
globalProps: {
|
|
56
|
+
title: {
|
|
57
|
+
type: String,
|
|
58
|
+
default: '',
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
height: {
|
|
62
|
+
type: String,
|
|
63
|
+
default: '100%',
|
|
64
|
+
},
|
|
65
|
+
top: {
|
|
66
|
+
type: String,
|
|
67
|
+
default: '0rem',
|
|
68
|
+
},
|
|
69
|
+
isShowSave: {
|
|
70
|
+
type: Boolean,
|
|
71
|
+
default: true,
|
|
72
|
+
},
|
|
73
|
+
dataTestId: {
|
|
74
|
+
type: String,
|
|
75
|
+
default: '',
|
|
76
|
+
},
|
|
77
|
+
});
|
|
78
|
+
const loading = ref(false);
|
|
79
|
+
const emit = defineEmits(['update:modelValue', 'update:address', 'submit', 'close']);
|
|
80
|
+
const visibleShow = computed({
|
|
81
|
+
get() {
|
|
82
|
+
return props.modelValue;
|
|
83
|
+
},
|
|
84
|
+
set(value) {
|
|
85
|
+
emit('update:modelValue', value);
|
|
86
|
+
},
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
function dialogEvent(type) {
|
|
90
|
+
emit(type);
|
|
91
|
+
}
|
|
92
|
+
defineExpose({ closed, open });
|
|
93
|
+
</script>
|
|
94
|
+
|
|
95
|
+
<style lang="scss" scoped>
|
|
96
|
+
.full_page {
|
|
97
|
+
width: 100%;
|
|
98
|
+
height: calc(100% + 1rem);
|
|
99
|
+
position: absolute;
|
|
100
|
+
top: -3rem;
|
|
101
|
+
z-index: 300;
|
|
102
|
+
background: white;
|
|
103
|
+
}
|
|
104
|
+
.title_name {
|
|
105
|
+
float: left;
|
|
106
|
+
height: 1.5rem;
|
|
107
|
+
text-align: center;
|
|
108
|
+
font-size: 15px;
|
|
109
|
+
font-weight: 600;
|
|
110
|
+
line-height: 1.5rem;
|
|
111
|
+
border-left: 5px solid rgb(3, 3, 151);
|
|
112
|
+
}
|
|
113
|
+
</style>
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/* 动态筛选 */
|
|
2
|
+
const dynamicFilteringOptions = [
|
|
3
|
+
{ value: 2, label: 'today', sql: 'today' }, // 今天需要处理
|
|
4
|
+
{ value: 3, label: 'yesterday', sql: 'yesterday' }, // 昨天需要处理
|
|
5
|
+
{ value: 4, label: 'thisWeek', sql: 'thisweek' },
|
|
6
|
+
{ value: 5, label: 'lastWeek', sql: 'lastweek' },
|
|
7
|
+
{ value: 6, label: 'thisMonth', sql: 'thismonth' },
|
|
8
|
+
{ value: 7, label: 'lastMonth', sql: 'lastmonth' },
|
|
9
|
+
{ value: 8, label: 'lastThreeMonths', sql: 'lastthreemonths' },
|
|
10
|
+
{ value: 0, label: 'custom', sql: 'custom' },
|
|
11
|
+
{ value: 1, label: 'customRange' }, // 自定义范围
|
|
12
|
+
];
|
|
13
|
+
/* 动态筛选自定义筛选 */
|
|
14
|
+
const pastOrFutureOptions = [
|
|
15
|
+
{ value: 0, label: 'past' },
|
|
16
|
+
{ value: 2, label: 'current' },
|
|
17
|
+
{ value: 1, label: 'future' },
|
|
18
|
+
];
|
|
19
|
+
/* 动态筛选自定义筛选时间类型 */
|
|
20
|
+
const dayTypeOptions = [
|
|
21
|
+
{ value: 1, label: 'daily' },
|
|
22
|
+
{ value: 2, label: 'week' },
|
|
23
|
+
{ value: 3, label: 'month' },
|
|
24
|
+
{ value: 4, label: 'quarter' },
|
|
25
|
+
{ value: 5, label: 'year' },
|
|
26
|
+
];
|
|
27
|
+
/* 筛选条件内容的字段类型为4时,判断逻辑选项 */
|
|
28
|
+
const startOrEndOptions = [
|
|
29
|
+
{ value: 0, label: 'intervalStart' },
|
|
30
|
+
{ value: 1, label: 'intervalEnd' },
|
|
31
|
+
];
|
|
32
|
+
/* 判断逻辑 */
|
|
33
|
+
const operatorOptions = [
|
|
34
|
+
{ value: 1, label: 'greaterThan', sql: '>' }, // 大于
|
|
35
|
+
{ value: 2, label: 'greaterThanOrEqualTo', sql: '>=' }, // 大于等于
|
|
36
|
+
{ value: 3, label: 'lessThan', sql: '<' }, // 小于
|
|
37
|
+
{ value: 4, label: 'lessThanOrEqualTo', sql: '<=' }, // 小于等于
|
|
38
|
+
{ value: 5, label: 'equalTo', sql: '=' }, // 等于
|
|
39
|
+
{ value: 6, label: 'notEqualTo', sql: '!=' }, // 不等于
|
|
40
|
+
{ value: 7, label: 'contains', sql: 'LIKE' }, // 包含
|
|
41
|
+
{ value: 8, label: 'notContains', sql: 'NOT LIKE' }, // 不包含
|
|
42
|
+
{ value: 9, label: 'yesEmpty', sql: 'is' }, // 为空
|
|
43
|
+
{ value: 10, label: 'notEmpty', sql: 'is not' }, // 不为空
|
|
44
|
+
{ value: 11, label: 'selectRange', sql: 'BETWEEN' }, // 选择范围
|
|
45
|
+
{ value: 12, label: 'dynamicFiltering', sql: 'BETWEEN' }, // 动态筛选
|
|
46
|
+
{ value: 13, label: 'inRange', sql: 'BETWEEN' }, // 在范围内
|
|
47
|
+
{ value: 14, label: 'notInRange', sql: 'NOT BETWEEN' }, // 不在范围内
|
|
48
|
+
{ value: 15, label: 'isOneOf', sql: 'IN' }, // 是其中一个
|
|
49
|
+
{ value: 16, label: 'notAnyOf', sql: 'NOT IN' }, // 不是任何一个
|
|
50
|
+
];
|
|
51
|
+
/* 时间精度 */
|
|
52
|
+
const timePrecisionOptions = [
|
|
53
|
+
{ value: 0, label: 'daily', timeFormat: 'YYYY-MM-DD' },
|
|
54
|
+
{ value: 1, label: 'hour', timeFormat: 'YYYY-MM-DD HH' },
|
|
55
|
+
{ value: 2, label: 'minute', timeFormat: 'YYYY-MM-DD HH:mm' },
|
|
56
|
+
{ value: 3, label: 'second', timeFormat: 'YYYY-MM-DD HH:mm:ss' },
|
|
57
|
+
];
|
|
58
|
+
export default {
|
|
59
|
+
dynamicFilteringOptions,
|
|
60
|
+
pastOrFutureOptions,
|
|
61
|
+
dayTypeOptions,
|
|
62
|
+
startOrEndOptions,
|
|
63
|
+
operatorOptions,
|
|
64
|
+
timePrecisionOptions,
|
|
65
|
+
};
|