From eb4f953201282618767ef3a4246f18f2b4f956ea Mon Sep 17 00:00:00 2001
From: rui_li <877258667@qq.com>
Date: Thu, 25 Nov 2021 11:45:22 +0800
Subject: [PATCH] =?UTF-8?q?=E7=BB=84=E4=BB=B6=E5=BC=80=E5=8F=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../modules/yieldReport/com_defect_roll.vue | 336 +++++++++++++++
.../modules/yieldReport/com_finish_roll.vue | 382 +++++++++++++++++-
.../modules/yieldReport/com_merge_roll.vue | 152 +++++++
.../modules/yieldReport/com_produce_down.vue | 317 +++++++++++++++
.../yieldReport/com_produce_material.vue | 115 ++++++
.../yieldReport/com_produce_report_normal.vue | 252 ++++++++++--
.../modules/yieldReport/com_produce_tool.vue | 148 +++++++
.../modules/yieldReport/com_separate_roll.vue | 168 ++++++++
.../modules/yieldReport/com_start_produce.vue | 158 ++++++++
.../modules/yieldReport/com_start_tuning.vue | 145 +++++++
.../yieldReport/com_switch_operator.vue | 8 +-
.../modules/yieldReport/com_switch_roll.vue | 135 +++++++
12 files changed, 2262 insertions(+), 54 deletions(-)
create mode 100644 src/views/modules/yieldReport/com_defect_roll.vue
create mode 100644 src/views/modules/yieldReport/com_merge_roll.vue
create mode 100644 src/views/modules/yieldReport/com_produce_down.vue
create mode 100644 src/views/modules/yieldReport/com_produce_material.vue
create mode 100644 src/views/modules/yieldReport/com_produce_tool.vue
create mode 100644 src/views/modules/yieldReport/com_separate_roll.vue
create mode 100644 src/views/modules/yieldReport/com_start_produce.vue
create mode 100644 src/views/modules/yieldReport/com_start_tuning.vue
create mode 100644 src/views/modules/yieldReport/com_switch_roll.vue
diff --git a/src/views/modules/yieldReport/com_defect_roll.vue b/src/views/modules/yieldReport/com_defect_roll.vue
new file mode 100644
index 0000000..91a0264
--- /dev/null
+++ b/src/views/modules/yieldReport/com_defect_roll.vue
@@ -0,0 +1,336 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 列表
+
+
+
+
+
+
+
+ 插入
+
+
+
+
+
+
+
+ 关闭
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/modules/yieldReport/com_finish_roll.vue b/src/views/modules/yieldReport/com_finish_roll.vue
index d669591..995593b 100644
--- a/src/views/modules/yieldReport/com_finish_roll.vue
+++ b/src/views/modules/yieldReport/com_finish_roll.vue
@@ -1,9 +1,10 @@
-
+
+
@@ -18,33 +19,192 @@
列表
-
-
+
+
刷新
-
-
+
+
结束卷
-
-
+
+
关闭
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -68,7 +228,7 @@ export default {
rollNo: '',
partDesc: '',
reportTime: this.dayjs(new Date()).format('YYYY-MM-DD HH:mm:ss'),
- planFinishTime: '',
+ reportedFlag: 'N',
qtyRequiredOriginal: 0,
scheduledDate: '',
shiftNo: '',
@@ -92,6 +252,171 @@ export default {
seqNo: '',
showFlag: false
},
+ sfdcMaterialList: [],
+ columnMaterialArray: [
+ {
+ userId: this.$store.state.user.name,
+ functionId: 5303,
+ serialNumber: '5303MaterialReportDate',
+ tableId: "5303Material",
+ tableName: "派工单材料",
+ columnProp: "reportDate",
+ headerAlign: "center",
+ align: "center",
+ columnLabel: "报告时间",
+ columnWidth: 125,
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: false
+ },
+ {
+ userId: this.$store.state.user.name,
+ functionId: 5303,
+ serialNumber: '5303MaterialReportedBy',
+ tableId: "5303Material",
+ tableName: "派工单材料",
+ columnProp: "reportedBy",
+ headerAlign: "center",
+ align: "center",
+ columnLabel: "报告人",
+ columnWidth: 80,
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: false
+ },
+ {
+ userId: this.$store.state.user.name,
+ functionId: 5303,
+ serialNumber: '5303MaterialRmRollNo',
+ tableId: "5303Material",
+ tableName: "派工单材料",
+ columnProp: "rmRollNo",
+ headerAlign: "center",
+ align: "center",
+ columnLabel: "材料卷号",
+ columnWidth: 100,
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: false
+ },
+ {
+ userId: this.$store.state.user.name,
+ functionId: 5303,
+ serialNumber: '5303MaterialPartNo',
+ tableId: "5303Material",
+ tableName: "派工单材料",
+ columnProp: "partNo",
+ headerAlign: "center",
+ align: "center",
+ columnLabel: "零部件编码",
+ columnWidth: 100,
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: false
+ },
+ {
+ userId: this.$store.state.user.name,
+ functionId: 5303,
+ serialNumber: '5303MaterialStartDate',
+ tableId: "5303Material",
+ tableName: "派工单材料",
+ columnProp: "startDate",
+ headerAlign: "center",
+ align: "center",
+ columnLabel: "开始使用时间",
+ columnWidth: 125,
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: false
+ },
+ {
+ userId: this.$store.state.user.name,
+ functionId: 5303,
+ serialNumber: '5303MaterialTransQty',
+ tableId: "5303Material",
+ tableName: "派工单材料",
+ columnProp: "transQty",
+ headerAlign: "center",
+ align: "center",
+ columnLabel: "数量",
+ columnWidth: 80,
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: false
+ },
+ {
+ userId: this.$store.state.user.name,
+ functionId: 5303,
+ serialNumber: '5303MaterialNetIssueQty',
+ tableId: "5303Material",
+ tableName: "派工单材料",
+ columnProp: "netIssueQty",
+ headerAlign: "center",
+ align: "center",
+ columnLabel: "本卷耗用数量",
+ columnWidth: 100,
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: false
+ },
+ {
+ userId: this.$store.state.user.name,
+ functionId: 5303,
+ serialNumber: '5303MaterialKeyRMFlag',
+ tableId: "5303Material",
+ tableName: "派工单材料",
+ columnProp: "keyRMFlag",
+ headerAlign: "center",
+ align: "center",
+ columnLabel: "是否主材",
+ columnWidth: 80,
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: false
+ },
+ {
+ userId: this.$store.state.user.name,
+ functionId: 5303,
+ serialNumber: '5303MaterialSAPBOMItemNo',
+ tableId: "5303Material",
+ tableName: "派工单材料",
+ columnProp: "sAPBOMItemNo",
+ headerAlign: "center",
+ align: "center",
+ columnLabel: "SAP BOM序号",
+ columnWidth: 100,
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: false
+ }
+ ],
buttonTags:{
createRollFlag: true,
switchRollFlag: true,
@@ -110,6 +435,10 @@ export default {
},
methods: {
+ /*关闭modal*/
+ closeDialog(){
+ this.$emit('update:visible', false);
+ },
@@ -147,8 +476,21 @@ export default {
diff --git a/src/views/modules/yieldReport/com_merge_roll.vue b/src/views/modules/yieldReport/com_merge_roll.vue
new file mode 100644
index 0000000..691c7a5
--- /dev/null
+++ b/src/views/modules/yieldReport/com_merge_roll.vue
@@ -0,0 +1,152 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/modules/yieldReport/com_produce_down.vue b/src/views/modules/yieldReport/com_produce_down.vue
new file mode 100644
index 0000000..d7d7d42
--- /dev/null
+++ b/src/views/modules/yieldReport/com_produce_down.vue
@@ -0,0 +1,317 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 列表
+
+
+
+
+
+
+
+ 插入
+
+
+
+
+
+
+
+ 关闭
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/modules/yieldReport/com_produce_material.vue b/src/views/modules/yieldReport/com_produce_material.vue
new file mode 100644
index 0000000..e083517
--- /dev/null
+++ b/src/views/modules/yieldReport/com_produce_material.vue
@@ -0,0 +1,115 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/modules/yieldReport/com_produce_report_normal.vue b/src/views/modules/yieldReport/com_produce_report_normal.vue
index d3a7b23..71aad2b 100644
--- a/src/views/modules/yieldReport/com_produce_report_normal.vue
+++ b/src/views/modules/yieldReport/com_produce_report_normal.vue
@@ -63,11 +63,11 @@
创建新卷
-
+
切换卷
-
+
创建分卷
@@ -76,7 +76,8 @@
结束卷
-
+
合并卷
@@ -297,11 +298,11 @@
切换用户
-
+
开始调机
-
+
开始生产
@@ -311,7 +312,7 @@
-
+
报告不良
@@ -322,11 +323,13 @@
-
+
刀模板
-
+
材料
@@ -337,7 +340,8 @@
-
+
报告其他停机
@@ -352,11 +356,65 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -376,14 +434,32 @@ import {
} from "@/api/yieldReport/produce_report_normal.js";
/*引入组件*/
import comSwitchOperator from "./com_switch_operator";/*切换操作员*/
+import comSwitchRoll from "./com_switch_roll";/*切换卷操作*/
+import comSeparateRoll from "./com_separate_roll";
import comFinishRoll from "./com_finish_roll";/*结束卷数的组件*/
+import comMergeRoll from "./com_merge_roll";/*合并卷的组件*/
+import comStartTuning from "./com_start_tuning";/*开始调机组件*/
+import comStartProduce from "./com_start_produce";/*开始生产组件*/
+import comDefectRoll from "./com_defect_roll";/*报告不良品卷*/
+import comProduceTool from "./com_produce_tool";/*生产过程的工具组件*/
+import comProduceMaterial from "./com_produce_material";/*生产过程的材料组件*/
+import comProduceDown from "./com_produce_down";/*生产过程的停机组件*/
export default {
name: "com_produce_report_normal",
data() {
return {
titleCon:'',
showOperatorFlag: false,
+ showSwitchFlag: false,
+ showSeparateFlag: false,
showFinishFlag: false,
+ showMergeFlag: false,
+ showTuningFlag: false,
+ showProduceFlag: false,
+ showDefectFlag: false,
+ showToolFlag: false,
+ showMaterialFlag: false,
+ showDownFlag: false,
activeTable: 'sfdc_time',
sfdcTimeList: [],
orderToolList: [],
@@ -2569,23 +2645,32 @@ export default {
},
buttonTags:{
createRollFlag: true,
- switchRollFlag: true,
- separatorRollFlag: true,
+ switchRollFlag: false,
+ separateRollFlag: false,
finishRollFlag: false,
- mergeRollFlag: true,
- tuningFlag: true,
- produceFlag: true,
- defectFlag: true,
- toolFlag: true,
- materialFlag: true,
- downTimeFlag: true
+ mergeRollFlag: false,
+ tuningFlag: false,
+ produceFlag: false,
+ defectFlag: false,
+ produceToolFlag: false,
+ materialFlag: false,
+ downTimeFlag: false
},
dataListLoading: false,
}
},
components: {
comSwitchOperator,/*切换用户的组件*/
+ comSwitchRoll,/*切换卷操作*/
+ comSeparateRoll,/*創建分卷组件*/
comFinishRoll,/*结束卷的组件*/
+ comMergeRoll,/*合并卷组件*/
+ comStartTuning,/*开始调机组件*/
+ comStartProduce,/*开始生产组件*/
+ comDefectRoll,/*报告不良品*/
+ comProduceTool,/*生产过程的工具组件*/
+ comProduceMaterial,/*生产过程的材料组件*/
+ comProduceDown,/*生产过程的停机组件*/
},
methods: {
// 获取多语言列表
@@ -2703,21 +2788,6 @@ export default {
}
},
- //切换员工modal
- switchOperatorModal() {
- //首先判断是否选择好派工单
- if (JSON.stringify(this.currentRow) == '{}') {
- this.$message.error('请先选择派工单!');
- return false;
- }
- //打开操作员切换功能
- this.showOperatorFlag = true;
- this.$nextTick(() => {
- this.$refs.comSwitchOperator.init();
- });
- },
-
-
init(seqNo, operatorData) {
this.scheduleData.seqNo = seqNo;
this.currentRollOps.seqNo = seqNo;
@@ -2771,6 +2841,42 @@ export default {
+ this.scheduleData.resourceDesc + ' (' + this.operatorData.operatorName+ ')';
},
+ //切换员工modal
+ switchOperatorModal() {
+ //首先判断是否选择好派工单
+ if (JSON.stringify(this.currentRow) == '{}') {
+ this.$message.error('请先选择派工单!');
+ return false;
+ }
+ //打开操作员切换功能
+ this.showOperatorFlag = true;
+ this.$nextTick(() => {
+ this.$refs.comSwitchOperator.init();
+ });
+ },
+
+ /*切换卷操作*/
+ switchRollModal(){
+ //1.首先调用菜单判断方式 看看是否可以结束卷
+ //checkProduceButton('switchRollFlag');
+ //打开切换用户的页面
+ this.$nextTick(() => {
+ this.showSwitchFlag = true;
+ this.$refs.comSwitchRoll.init(this.scheduleData.seqNo, this.operatorData)
+ });
+ },
+
+ /*创建分卷的modal调用*/
+ separateRollModal(){
+ //1.首先调用菜单判断方式 看看是否可以结束卷
+ //checkProduceButton('separateRollFlag');
+ //打开创建分卷的页面
+ this.$nextTick(() => {
+ this.showSeparateFlag = true;
+ this.$refs.comSeparateRoll.init(this.scheduleData.seqNo, this.operatorData)
+ });
+ },
+
/*结束卷操作*/
finishRollModal(){
//1.首先调用菜单判断方式 看看是否可以结束卷
@@ -2779,10 +2885,90 @@ export default {
this.$nextTick(() => {
this.showFinishFlag = true;
this.$refs.comFinishRoll.init(this.scheduleData.seqNo, this.operatorData)
+ });
+ },
+
+ /*合并卷modal*/
+ mergeRollModal(){
+ //1.首先调用菜单判断方式 看看是否可以结束卷
+ //checkProduceButton('mergeRollFlag');
+ //打开合并卷的页面
+ this.$nextTick(() => {
+ this.showMergeFlag = true;
+ this.$refs.comMergeRoll.init(this.scheduleData.seqNo, this.operatorData)
+ // this.$refs.com_finish_roll.init(this.scheduleData.seqNo, this.currentRollOps.rollNo);
+ });
+ },
+
+ /*开始调机modal*/
+ startTuningModal(){
+ //1.首先调用菜单判断方式 看看是否可以结束卷
+ //checkProduceButton('startTuningFlag');
+ //打开开始调机的页面
+ this.$nextTick(() => {
+ this.showTuningFlag = true;
+ this.$refs.comStartTuning.init(this.scheduleData.seqNo, this.operatorData)
+ // this.$refs.com_finish_roll.init(this.scheduleData.seqNo, this.currentRollOps.rollNo);
+ });
+ },
+
+ /*开始调机modal*/
+ startProduceModal(){
+ //1.首先调用菜单判断方式 看看是否可以结束卷
+ //checkProduceButton('startProduceFlag');
+ //打开开始生产的页面
+ this.$nextTick(() => {
+ this.showProduceFlag = true;
+ this.$refs.comStartProduce.init(this.scheduleData.seqNo, this.operatorData)
// this.$refs.com_finish_roll.init(this.scheduleData.seqNo, this.currentRollOps.rollNo);
});
},
+ /*报告不良modal*/
+ defectRollModal(){
+ //1.首先调用菜单判断方式 看看是否可以结束卷
+ //checkProduceButton('defectRollFlag');
+ //打开不良卷的页面
+ this.$nextTick(() => {
+ this.showDefectFlag = true;
+ this.$refs.comDefectRoll.init(this.scheduleData.seqNo, this.operatorData)
+ });
+ },
+
+ /*生产过程的工具组件*/
+ produceToolModal(){
+ //1.首先调用菜单判断方式 打开生产过程的工具的页面
+ //checkProduceButton('produceToolFlag');
+ //打开生产过程的工具的页面
+ this.$nextTick(() => {
+ this.showToolFlag = true;
+ this.$refs.comProduceTool.init(this.scheduleData.seqNo, this.operatorData)
+ });
+ },
+
+ /*生产过程的工具组件*/
+ produceMaterialModal(){
+ //1.首先调用菜单判断方式 打开生产过程的材料的页面
+ //checkProduceButton('produceMaterialFlag');
+ //打开生产过程的工具的页面
+ this.$nextTick(() => {
+ this.showMaterialFlag = true;
+ this.$refs.comProduceMaterial.init(this.scheduleData.seqNo, this.operatorData)
+ });
+ },
+
+
+ /*生产过程的停机组件*/
+ produceDownModal(){
+ //1.首先调用菜单判断方式 打开生产过程的停机的页面
+ //checkProduceButton('produceDownFlag');
+ //打开生产过程的工具的页面
+ this.$nextTick(() => {
+ this.showDownFlag = true;
+ this.$refs.comProduceDown.init(this.scheduleData.seqNo, this.operatorData)
+ });
+ },
+
},
created() {
// this.factoryList()
diff --git a/src/views/modules/yieldReport/com_produce_tool.vue b/src/views/modules/yieldReport/com_produce_tool.vue
new file mode 100644
index 0000000..fa4f43c
--- /dev/null
+++ b/src/views/modules/yieldReport/com_produce_tool.vue
@@ -0,0 +1,148 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/modules/yieldReport/com_separate_roll.vue b/src/views/modules/yieldReport/com_separate_roll.vue
new file mode 100644
index 0000000..eda48b3
--- /dev/null
+++ b/src/views/modules/yieldReport/com_separate_roll.vue
@@ -0,0 +1,168 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/modules/yieldReport/com_start_produce.vue b/src/views/modules/yieldReport/com_start_produce.vue
new file mode 100644
index 0000000..11fc6c9
--- /dev/null
+++ b/src/views/modules/yieldReport/com_start_produce.vue
@@ -0,0 +1,158 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/modules/yieldReport/com_start_tuning.vue b/src/views/modules/yieldReport/com_start_tuning.vue
new file mode 100644
index 0000000..f4656ed
--- /dev/null
+++ b/src/views/modules/yieldReport/com_start_tuning.vue
@@ -0,0 +1,145 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/modules/yieldReport/com_switch_operator.vue b/src/views/modules/yieldReport/com_switch_operator.vue
index 9e4014f..fd9a36c 100644
--- a/src/views/modules/yieldReport/com_switch_operator.vue
+++ b/src/views/modules/yieldReport/com_switch_operator.vue
@@ -20,7 +20,7 @@
保存
- 关闭
+ 关闭
@@ -48,6 +48,12 @@ export default {
}
},
methods: {
+
+ /*关闭modal*/
+ closeDialog(){
+ this.$emit('update:visible', false);
+ },
+
//初始化的
init() {
this.visibleFlag = true;
diff --git a/src/views/modules/yieldReport/com_switch_roll.vue b/src/views/modules/yieldReport/com_switch_roll.vue
new file mode 100644
index 0000000..39693a0
--- /dev/null
+++ b/src/views/modules/yieldReport/com_switch_roll.vue
@@ -0,0 +1,135 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+