diff --git a/src/api/wms/outorderfc.js b/src/api/wms/outorderfc.js index a1db855..04d6279 100644 --- a/src/api/wms/outorderfc.js +++ b/src/api/wms/outorderfc.js @@ -248,3 +248,19 @@ export function batchSapTl(data) { data: data }); } + +export function submitTransferPosting(data) { + return request({ + url: '/wms/outorder/submitTransferPosting', + method: 'post', + data: data + }); +} + +export function submitReversePosting(data) { + return request({ + url: '/wms/outorder/submitReversePosting', + method: 'post', + data: data + }); +} diff --git a/src/views/energy/powerUse/Energystatistics/index.vue b/src/views/energy/powerUse/Energystatistics/index.vue index e3b2e3e..9707a0b 100644 --- a/src/views/energy/powerUse/Energystatistics/index.vue +++ b/src/views/energy/powerUse/Energystatistics/index.vue @@ -95,6 +95,16 @@ >导出 + + 补录 +
合计电量:
@@ -253,6 +263,36 @@ 取 消
+ + + + + +
将文件拖到此处,或点击上传
+
+ 仅允许导入xls、xlsx格式文件。 + 下载模板 + +
+
+ +
+
@@ -321,21 +361,6 @@ export default { children: "children", label: "lable", }, - // 用户导入参数 - upload: { - // 是否显示弹出层(用户导入) - open: false, - // 弹出层标题(用户导入) - title: "", - // 是否禁用上传 - isUploading: false, - // 是否更新已经存在的用户数据 - updateSupport: 0, - // 设置上传的请求头部 - headers: { Authorization: "Bearer " + getToken() }, - // 上传的地址 - url: process.env.VUE_APP_BASE_API + "/system/user/importData", - }, // 查询参数 queryParams: { pageNum: NaN, @@ -409,6 +434,19 @@ export default { }, // 合计电量 number: "", + upload: { + // 是否显示弹出层 + open: false, + // 弹出层标题 + title: "", + // 是否禁用上传 + isUploading: false, + // 设置上传的请求头部 + headers: {poolName: localStorage.getItem("USER_POOL_NAME_CURRENT"), Authorization: "Bearer " + getToken()}, + // 上传的地址 + importUrl: process.env.VUE_APP_BASE_API + "/energy/report/analysis/energyImport", + templateUrl:"" + } }; }, watch: { @@ -635,6 +673,27 @@ export default { handleExport() { handleExport("bootstrap-table", "能耗统计", true); }, + + // 导入-下载模板 + importTemplate() { + this.download('/energy/report/analysis/energyTemplate', {}, `能耗补录模版_${new Date().getTime()}.xlsx`) + }, + + // 导入-文件上传中处理 + handleFileUploadProgress(event, file, fileList) { + this.upload.isUploading = true; + }, + // 导入-文件上传成功处理 + handleFileSuccess(response, file, fileList) { + this.upload.open = false; + this.upload.isUploading = false; + this.$refs.upload.clearFiles(); + this.$alert("
" + response.msg + "
", "导入结果", {dangerouslyUseHTMLString: true}); + this.getList(); + }, + submitImport(){ + this.$refs.upload.submit(); + } }, }; diff --git a/src/views/mes/prepare/index.vue b/src/views/mes/prepare/index.vue index 9ddaa19..732cfb3 100644 --- a/src/views/mes/prepare/index.vue +++ b/src/views/mes/prepare/index.vue @@ -731,7 +731,7 @@ export default { this.refreshNewWorkerTable = true // 立即将refreshProTable设置为true,显示表格 this.newWorkerLoading = false // 设置加载状态为false,表示加载完成 - this.generateBarcode(this.printData.productDate); //条码 根据打印日期生成 + this.generateBarcode("ZC_"+this.printData.productDate); //条码 根据打印日期生成 }) }, } diff --git a/src/views/quality/report/bpDefectItem/index.vue b/src/views/quality/report/bpDefectItem/index.vue index f30406e..437ecb3 100644 --- a/src/views/quality/report/bpDefectItem/index.vue +++ b/src/views/quality/report/bpDefectItem/index.vue @@ -34,7 +34,7 @@ -

{{form.column080090}} 年 {{form.column090100}} 月 份 白 坯 不 良 排 列 图

+

{{ parseTime(queryParams.yearMonthDate,'{y}-{m}')}} 白 坯 不 良 排 列 图

@@ -57,7 +57,6 @@ - @@ -68,6 +67,7 @@ import {getDefectItemTitle,getDefectItemData,getDefectItemLine} from "@/api/quality/qcTable"; import moment from 'moment'; import * as echarts from "echarts"; +import {parseTime} from "../../../../utils/ruoyi"; export default { name: "BpDefectItem", data() { @@ -142,6 +142,7 @@ export default { this.getList(); }, methods: { + parseTime, /**获取默认查询时间段**/ getDate() { let start = this.Fungetdate (0); diff --git a/src/views/quality/report/bpDefectItemPC/index.vue b/src/views/quality/report/bpDefectItemPC/index.vue index 29943b4..285fc05 100644 --- a/src/views/quality/report/bpDefectItemPC/index.vue +++ b/src/views/quality/report/bpDefectItemPC/index.vue @@ -34,7 +34,7 @@ -

{{queryParams.yearMonthDate}} 黑蚊香白坯性能不良排列图

+

{{ parseTime(queryParams.yearMonthDate,'{y}-{m}')}} 黑蚊香白坯性能不良排列图

@@ -53,11 +53,10 @@ - + - @@ -182,6 +181,7 @@ export default { //获取Table数据 getDefectItemDataPC(this.queryParams).then(response => { this.itemProList = response; + this.itemProList.push("其他") this.getTbody(); this.loading = false; }); diff --git a/src/views/wms/outorderzs/index.vue b/src/views/wms/outorderzs/index.vue index 06f1bff..a896b8c 100644 --- a/src/views/wms/outorderzs/index.vue +++ b/src/views/wms/outorderzs/index.vue @@ -40,9 +40,16 @@ 导出 + + 转储过账 + + + 反冲过账 + @@ -168,7 +175,40 @@ 取 消 - + + + + + + + + + + + + + + + + + + + + + + + + +