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
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-popover placement="right" :width="400">
|
|
3
|
+
<template #reference>
|
|
4
|
+
{{ rowData.partNumber }}
|
|
5
|
+
</template>
|
|
6
|
+
<template #default>
|
|
7
|
+
<div class="popoverContent">
|
|
8
|
+
<div class="popoverHeader">物料详情</div>
|
|
9
|
+
<el-form label-width="auto" style="width: 100%">
|
|
10
|
+
<el-form-item label="物料名称">
|
|
11
|
+
<el-input :value="rowData.partName" readonly />
|
|
12
|
+
</el-form-item>
|
|
13
|
+
<el-form-item label="规格型号">
|
|
14
|
+
<el-input :value="rowData.materialSpec" readonly />
|
|
15
|
+
</el-form-item>
|
|
16
|
+
<el-form-item label="预览">
|
|
17
|
+
<el-input value="此物料无图片预览" readonly />
|
|
18
|
+
</el-form-item>
|
|
19
|
+
</el-form>
|
|
20
|
+
</div>
|
|
21
|
+
</template>
|
|
22
|
+
</el-popover>
|
|
23
|
+
</template>
|
|
24
|
+
<script setup>
|
|
25
|
+
import { computed } from 'vue';
|
|
26
|
+
const props = defineProps({
|
|
27
|
+
row: {
|
|
28
|
+
type: Object,
|
|
29
|
+
default: () => ({}),
|
|
30
|
+
},
|
|
31
|
+
index: {
|
|
32
|
+
type: Number,
|
|
33
|
+
default: 0,
|
|
34
|
+
},
|
|
35
|
+
});
|
|
36
|
+
const rowData = computed(() => {
|
|
37
|
+
return props.row;
|
|
38
|
+
});
|
|
39
|
+
</script>
|
|
40
|
+
<style lang="scss" scoped>
|
|
41
|
+
.popoverContent {
|
|
42
|
+
padding-inline: 10px;
|
|
43
|
+
.popoverHeader {
|
|
44
|
+
padding-block: 10px;
|
|
45
|
+
border-bottom: solid 1px;
|
|
46
|
+
text-align: center;
|
|
47
|
+
margin-bottom: 15px;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
</style>
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-popover placement="right" :width="400">
|
|
3
|
+
<template #reference>
|
|
4
|
+
<el-button color="#626aef" plain size="small">查看</el-button>
|
|
5
|
+
</template>
|
|
6
|
+
<template #default>
|
|
7
|
+
<div class="popoverContent">
|
|
8
|
+
<el-table :data="rowData.defectiveProducts" border>
|
|
9
|
+
<el-table-column :min-width="150" property="defectiveProductsReason" label="不良原因名称" align="center" />
|
|
10
|
+
<el-table-column :min-width="100" property="defectiveProductsCount" label="数量" align="center" />
|
|
11
|
+
</el-table>
|
|
12
|
+
</div>
|
|
13
|
+
</template>
|
|
14
|
+
</el-popover>
|
|
15
|
+
</template>
|
|
16
|
+
<script setup>
|
|
17
|
+
import { computed } from 'vue';
|
|
18
|
+
const props = defineProps({
|
|
19
|
+
row: {
|
|
20
|
+
type: Object,
|
|
21
|
+
default: () => ({}),
|
|
22
|
+
},
|
|
23
|
+
index: {
|
|
24
|
+
type: Number,
|
|
25
|
+
default: 0,
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
|
+
const rowData = computed(() => {
|
|
29
|
+
return props.row;
|
|
30
|
+
});
|
|
31
|
+
</script>
|
|
32
|
+
<style lang="scss" scoped>
|
|
33
|
+
.popoverContent {
|
|
34
|
+
padding-inline: 10px;
|
|
35
|
+
.popoverHeader {
|
|
36
|
+
padding-block: 10px;
|
|
37
|
+
border-bottom: solid 1px;
|
|
38
|
+
text-align: center;
|
|
39
|
+
margin-bottom: 15px;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
</style>
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-dialog v-model="pageData.dialogTableVisible" title="工单详情" width="60%">
|
|
3
|
+
<div style="height: 50vh">
|
|
4
|
+
<tableContent
|
|
5
|
+
ref="tableContentRef"
|
|
6
|
+
:table-data="pageData.dataList"
|
|
7
|
+
:columns="tableColumns"
|
|
8
|
+
:show-pagination="false"
|
|
9
|
+
:table-actions-width="0"
|
|
10
|
+
:show-selection="false"
|
|
11
|
+
:column-min-width="120"
|
|
12
|
+
>
|
|
13
|
+
</tableContent>
|
|
14
|
+
</div>
|
|
15
|
+
</el-dialog>
|
|
16
|
+
</template>
|
|
17
|
+
<script setup>
|
|
18
|
+
import { reactive, computed, ref, nextTick } from 'vue';
|
|
19
|
+
import tableContent from '@/components/customTable/components/tableContent/index.vue';
|
|
20
|
+
const tableContentRef = ref();
|
|
21
|
+
const pageData = reactive({
|
|
22
|
+
dataList: [
|
|
23
|
+
{
|
|
24
|
+
status: 1,
|
|
25
|
+
reportEmp: '张三',
|
|
26
|
+
orderNumber: 10001,
|
|
27
|
+
partCount: 12,
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
status: 2,
|
|
31
|
+
reportEmp: '李四',
|
|
32
|
+
orderNumber: 10002,
|
|
33
|
+
partCount: 13,
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
dialogTableVisible: false,
|
|
37
|
+
});
|
|
38
|
+
function formatStatus(status) {
|
|
39
|
+
switch (status) {
|
|
40
|
+
case 1:
|
|
41
|
+
return {
|
|
42
|
+
bgColor: '#1E88E5',
|
|
43
|
+
textColor: '#E3F2FD',
|
|
44
|
+
text: '待审核',
|
|
45
|
+
};
|
|
46
|
+
case 2:
|
|
47
|
+
return {
|
|
48
|
+
bgColor: 'rgb(224, 242, 241)',
|
|
49
|
+
textColor: 'rgb(96, 189, 181)',
|
|
50
|
+
text: '审核通过',
|
|
51
|
+
};
|
|
52
|
+
case 3:
|
|
53
|
+
return {
|
|
54
|
+
bgColor: 'rgb(238, 238, 238)',
|
|
55
|
+
textColor: 'rgb(167, 167, 167)',
|
|
56
|
+
text: '审核不通过',
|
|
57
|
+
};
|
|
58
|
+
default:
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
const tableColumns = computed(() => [
|
|
63
|
+
{
|
|
64
|
+
text: '审核状态',
|
|
65
|
+
value: 'status',
|
|
66
|
+
isFixed: false, // 是否固定列
|
|
67
|
+
isShown: true, // 是否显示隐藏
|
|
68
|
+
disabled: false, // 是否禁用
|
|
69
|
+
freeze: false, // 是否冻结列
|
|
70
|
+
customizeFields: false,
|
|
71
|
+
formatterType: 'tags',
|
|
72
|
+
formatter: (row) => formatStatus(row.status),
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
text: '报工人员',
|
|
76
|
+
value: 'reportEmp',
|
|
77
|
+
isFixed: false, // 是否固定列
|
|
78
|
+
isShown: true, // 是否显示隐藏
|
|
79
|
+
disabled: false, // 是否禁用
|
|
80
|
+
freeze: false, // 是否冻结列
|
|
81
|
+
customizeFields: false,
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
text: '生产工单号',
|
|
85
|
+
value: 'orderNumber',
|
|
86
|
+
isFixed: false, // 是否固定列
|
|
87
|
+
isShown: true, // 是否显示隐藏
|
|
88
|
+
disabled: false, // 是否禁用
|
|
89
|
+
freeze: false, // 是否冻结列
|
|
90
|
+
customizeFields: false,
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
text: '生产数量',
|
|
94
|
+
value: 'partCount',
|
|
95
|
+
isFixed: false, // 是否固定列
|
|
96
|
+
isShown: true, // 是否显示隐藏
|
|
97
|
+
disabled: false, // 是否禁用
|
|
98
|
+
freeze: false, // 是否冻结列
|
|
99
|
+
customizeFields: false,
|
|
100
|
+
},
|
|
101
|
+
]);
|
|
102
|
+
function open() {
|
|
103
|
+
pageData.dialogTableVisible = true;
|
|
104
|
+
nextTick(() => {
|
|
105
|
+
console.log(tableContentRef.value.tableRef);
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
function close() {
|
|
109
|
+
pageData.dialogTableVisible = false;
|
|
110
|
+
}
|
|
111
|
+
defineExpose({
|
|
112
|
+
open,
|
|
113
|
+
close,
|
|
114
|
+
});
|
|
115
|
+
</script>
|