diff --git a/src/api/mes/reportWork.js b/src/api/mes/reportWork.js index a002262..fb5c5fe 100644 --- a/src/api/mes/reportWork.js +++ b/src/api/mes/reportWork.js @@ -81,6 +81,14 @@ export function getLineChartData() { method: 'get' }); } + +// 获取组线每月设备故障数 +export function getGroupLineEquInfo() { + return request({ + url: '/device/deviceInterface/getGroupLineEquInfo', + method: 'get' + }); +} //查询设备小时表头 export function getHourProductionTitle(query) { return request({ @@ -115,7 +123,7 @@ export function getMesListUser(query) { method: 'get', params: query }); -} +} //查询工单列表 export function getMesListWorkOrder(query) { @@ -124,7 +132,7 @@ export function getMesListWorkOrder(query) { method: 'get', params: query }); -} +} //查询线体列表 export function getMesListEquip(query) { @@ -133,7 +141,7 @@ export function getMesListEquip(query) { method: 'get', params: query }); -} +} //报工按钮 export function reportSap(workorderCode) { const data = { diff --git a/src/api/wms/outorder.js b/src/api/wms/outorder.js index a2c39bc..b814e5a 100644 --- a/src/api/wms/outorder.js +++ b/src/api/wms/outorder.js @@ -25,6 +25,14 @@ export function addOutorder(data) { data: data }); } +// 用于出库任务页面--查询 +export function getOutorderOUT(data) { + return request({ + url: '/wms/order/PurchaseOrderOutboundPda', + method: 'post', + data: data + }); +} // 修改包材出库单 export function updateOutorder(data) { @@ -65,4 +73,12 @@ export function addPurchaseOrderOutbound(data) { method: 'post', data: data }); -} \ No newline at end of file +} +// 新增 +export function OutboundPostingSAP(data) { + return request({ + url: '/wms/order/OutboundPostingSAP', + method: 'post', + data: data + }); +} diff --git a/src/views/dashboard/DeviceChartLine.vue b/src/views/dashboard/DeviceChartLine.vue new file mode 100644 index 0000000..7673e57 --- /dev/null +++ b/src/views/dashboard/DeviceChartLine.vue @@ -0,0 +1,101 @@ + + + + + + + diff --git a/src/views/device/repairOrder/index.vue b/src/views/device/repairOrder/index.vue index 8623238..6e42cae 100644 --- a/src/views/device/repairOrder/index.vue +++ b/src/views/device/repairOrder/index.vue @@ -343,6 +343,12 @@ prop="workReason" width="300" /> + + + + + + + + @@ -1423,6 +1442,20 @@ + + + + + + + diff --git a/src/views/index.vue b/src/views/index.vue index bb0aa0b..dc30c72 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -22,6 +22,12 @@ + + {{deviceTitle}} + + + + @@ -30,10 +36,12 @@ import LineChart from './dashboard/LineChart'; import PieChart from './dashboard/PieChart'; import PieChart2 from './dashboard/PieChart2'; -import {getLineChartData} from '@/api/mes/reportWork' +import {getGroupLineEquInfo, getLineChartData} from '@/api/mes/reportWork' +import DeviceChartLine from "./dashboard/DeviceChartLine"; export default { name: "Index", components: { + DeviceChartLine, LineChart//,PieChart,PieChart2 }, data() { @@ -41,11 +49,14 @@ export default { // 版本号 version: "1.0.0", lineChartData: null, - title:"本月工厂产量" + deviceChartLineData:null, + title:"本月工厂产量", + deviceTitle: "各组线月设备故障数" }; }, created() { this.getLineChartData(); + this.getGroupLineEquInfo(); }, methods: { goTarget(href) { @@ -55,6 +66,11 @@ export default { getLineChartData().then(data => { this.lineChartData = data; }); + }, + getGroupLineEquInfo(){ + getGroupLineEquInfo().then(response => { + this.deviceChartLineData = response.data; + }); } }, }; diff --git a/src/views/quality/checkTypeProject/index.vue b/src/views/quality/checkTypeProject/index.vue index 3db50c2..b88ad8e 100644 --- a/src/views/quality/checkTypeProject/index.vue +++ b/src/views/quality/checkTypeProject/index.vue @@ -2,7 +2,7 @@
- + @@ -125,7 +125,7 @@ @change="handleStatusChange(scope.row)" > - + tab.name !== targetName); } @@ -541,14 +544,14 @@ export default { onSelectProjects(objs) { let _this = this; objs.forEach(function(item,index,arr){ - item.projectId = item.id; + item.projectId = item.id; item.projectNo = item.orderNum; item.unit = item.unitCode; item.standardValue = item.checkStandard; item.typeId = _this.queryParams.typeId; item.groupId = _this.groupId; item.materialCode = _this.materialCode; - + }); submitProjects(objs).then(response => { this.$modal.msgSuccess("提交成功"); diff --git a/src/views/wms/order/index.vue b/src/views/wms/order/index.vue index f9fc299..e924c0e 100644 --- a/src/views/wms/order/index.vue +++ b/src/views/wms/order/index.vue @@ -104,7 +104,7 @@ - + @@ -356,7 +356,7 @@ export default { reset() { this.form = { siteCode: null, - ID: null, + id: null, procureCode: null, materialCode: null, materialDesc: null, @@ -401,7 +401,7 @@ export default { }, // 多选框选中数据 handleSelectionChange(selection) { - this.ids = selection.map(item => item.ID) + this.ids = selection.map(item => item.id) this.single = selection.length!==1 this.multiple = !selection.length }, @@ -414,7 +414,7 @@ export default { /** 修改按钮操作 */ handleUpdate(row) { this.reset(); - const ID = row.ID || this.ids + const ID = row.id || this.ids getOrder(ID).then(response => { this.form = response.data; this.open = true; @@ -425,7 +425,7 @@ export default { submitForm() { this.$refs["form"].validate(valid => { if (valid) { - if (this.form.ID != null) { + if (this.form.id != null) { updateOrder(this.form).then(response => { this.$modal.msgSuccess("修改成功"); this.open = false; @@ -443,7 +443,7 @@ export default { }, /** 删除按钮操作 */ handleDelete(row) { - const IDs = row.ID || this.ids; + const IDs = row.id || this.ids; this.$modal.confirm('是否确认删除包材采购单编号为"' + IDs + '"的数据项?').then(function() { return delOrder(IDs); }).then(() => { diff --git a/src/views/wms/outorder/index.vue b/src/views/wms/outorder/index.vue index fff1180..85bb0e4 100644 --- a/src/views/wms/outorder/index.vue +++ b/src/views/wms/outorder/index.vue @@ -26,14 +26,14 @@ 新增 - + + 过账 + + 导出 @@ -57,15 +57,31 @@ + - + - + + + + + + + +