diff --git a/src/api/yieldReport/produce_report_normal.js b/src/api/yieldReport/produce_report_normal.js
index fd26fcd..7ebb105 100644
--- a/src/api/yieldReport/produce_report_normal.js
+++ b/src/api/yieldReport/produce_report_normal.js
@@ -1,4 +1,4 @@
-import { createAPI } from '@/utils/httpRequest.js'
+import { createAPI, createFormAPI } from '@/utils/httpRequest.js'
// 获取派工单信息
export const getScheduleDataBySeqNo = data => createAPI('schedule/getScheduleDataBySeqNo', 'POST', data)
@@ -115,3 +115,9 @@ export const openMaterialRoll = data => createAPI('schedule/openMaterialRoll', '
// 获取领料记录
export const getMaterialRecordList = data => createAPI('schedule/getMaterialRecordList', 'POST', data)
+
+// MES获取班次数据
+export const getMesShiftData = data => createAPI('schedule/getMesShiftData', 'POST', data)
+
+// MES上传订单日志
+export const uploadMesOrderLog = data => createFormAPI('schedule/uploadMesOrderLog', 'POST', data)
diff --git a/src/views/modules/warehouse/labelTransactionLog.vue b/src/views/modules/warehouse/labelTransactionLog.vue
index 22157b4..1b604b0 100644
--- a/src/views/modules/warehouse/labelTransactionLog.vue
+++ b/src/views/modules/warehouse/labelTransactionLog.vue
@@ -213,14 +213,20 @@
-
-
-
-
+
+
+
+
+
+
+ 变动总数:
+ {{ formatTotalRollQty(totalRollQty) }}
+
+
{
this.dataListLoading = false
this.dataList = []
this.totalPage = 0
+ this.totalRollQty = 0
+ })
+ },
+
+ formatTotalRollQty(value) {
+ const numberValue = Number(value)
+ if (!isFinite(numberValue)) {
+ return '0'
+ }
+ return numberValue.toLocaleString('zh-CN', {
+ minimumFractionDigits: 0,
+ maximumFractionDigits: 6
})
},
@@ -1167,10 +1188,55 @@ export default {
}
/* 页签样式 */
-/deep/ .el-tabs__header {
+.tab-row-wrap {
+ position: relative;
+}
+
+.tab-row-tabs {
+ width: 100%;
+}
+
+.tab-row-tabs /deep/ .el-tabs__header {
margin-bottom: 10px;
}
+.tab-row-tabs /deep/ .el-tabs__nav-wrap {
+ padding-right: 180px;
+}
+
+.tab-total-inline {
+ position: absolute;
+ right: 10px;
+ top: 0;
+ height: 36px;
+ display: inline-flex;
+ align-items: center;
+ font-size: 14px;
+ white-space: nowrap;
+ background: #fff;
+ z-index: 2;
+ padding-left: 12px;
+}
+
+.tab-total-inline::before {
+ content: '';
+ display: inline-block;
+ width: 1px;
+ height: 16px;
+ margin-right: 10px;
+ background: #dcdfe6;
+}
+
+.tab-total-label {
+ color: #606266;
+}
+
+.tab-total-value {
+ margin-left: 2px;
+ color: rgb(38, 92, 147);
+ font-weight: bold;
+}
+
/deep/ .el-tabs__nav-wrap::after {
height: 1px;
}
diff --git a/src/views/modules/yieldReport/com_produce_report_normal.vue b/src/views/modules/yieldReport/com_produce_report_normal.vue
index 34121da..8635af7 100644
--- a/src/views/modules/yieldReport/com_produce_report_normal.vue
+++ b/src/views/modules/yieldReport/com_produce_report_normal.vue
@@ -269,8 +269,17 @@
TID绑定
-
- TID文件
+
+ 上传订单
+
+
+ 结束班次
+
+
+ 上传MT日志
+
+
+ 获取班次
@@ -827,6 +836,9 @@
+
+
+
@@ -1067,6 +1079,7 @@ import ComMalformedMaterial from "./com_malformed_material";/*生产过程的停
import ComProcessInspection from "./com_process_inspection";/*过程检验组件*/
import ComMrbRegister from "./com_mrb_register";/*MRB异常单登记组件*/
import comAbnormalContinueRoll from "./com_abnormal_continue_roll";/*异常续卷组件*/
+import comTidUploadOrder from "./com_tid_upload_order";/*TID上传订单组件*/
var functionId = 'C10000002';
export default {
mixins: [labelPrintTemplates], // 添加标签打印模板 mixin
@@ -1081,6 +1094,7 @@ export default {
showProcessInspectionFlag: false,// 过程检验弹窗显示状态
processInspectionButtonStyle: '', // 过程检验按钮样式
showMrbRegisterFlag: false,// MRB异常单登记弹窗显示状态
+ showTidUploadOrderFlag: false,// TID上传订单弹窗显示状态
showAbnormalContinueRollFlag: false,// 异常续卷弹窗显示状态
showDefault: false,
popoverFlag: false,
@@ -4075,6 +4089,7 @@ export default {
ComProcessInspection,/*过程检验组件*/
ComMrbRegister,/*MRB异常单登记组件*/
comAbnormalContinueRoll,/*异常续卷组件*/
+ comTidUploadOrder,/*TID上传订单组件*/
},
methods: {
// 删除不良
@@ -5496,6 +5511,25 @@ export default {
}
},
+ // 打开TID上传订单对话框
+ openUploadOrderDialog() {
+ if (!this.scheduleData.seqNo) {
+ this.$message.warning('请先选择派工单!')
+ return
+ }
+ this.showTidUploadOrderFlag = true
+ this.$nextTick(() => {
+ if (this.$refs.comTidUploadOrder) {
+ this.$refs.comTidUploadOrder.init(this.scheduleData)
+ }
+ })
+ },
+
+ // TID区域其他功能占位
+ showMesFeatureTip(featureName) {
+ this.$message.info(featureName + '功能开发中')
+ },
+
// 打开过程检验对话框
openProcessInspectionModal() {
// 直接打开过程检验对话框
diff --git a/src/views/modules/yieldReport/com_tid_upload_order.vue b/src/views/modules/yieldReport/com_tid_upload_order.vue
new file mode 100644
index 0000000..87be3a0
--- /dev/null
+++ b/src/views/modules/yieldReport/com_tid_upload_order.vue
@@ -0,0 +1,830 @@
+
+
+
+
+
+
+
+
+
成功卷数
+
{{ getMesFieldValue('rollCountSuccess') }}
+
+
+
失败卷数
+
{{ getMesFieldValue('rollCountFail') }}
+
+
+
上传总数
+
{{ getMesFieldValue('quantityTotal') }}
+
+
+
良品数
+
{{ getMesFieldValue('quantityGood') }}
+
+
+
不良数
+
{{ getMesFieldValue('quantityBad') }}
+
+
+
+
+
+
+
+ {{ Number(scope.row.status) === 1 ? '成功' : '失败' }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
订单日志文件(支持多选)
+
+
+
+
可一次选择多个日志文件,保存时会逐个上传
+
+
+
+
+
+
+
+
+
+ {{ scope.row.name }}
+
+
+
+
+ {{ formatFileSize(scope.row.size) }}
+
+
+
+
+ 移除
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.statusText }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+