diff --git a/src/api/kanban/Packagingline.js b/src/api/kanban/Packagingline.js index 832925c..9041e47 100644 --- a/src/api/kanban/Packagingline.js +++ b/src/api/kanban/Packagingline.js @@ -30,4 +30,12 @@ export function getProductionLineInfo(data) { method: 'post', data: data }); +} +// 产线信息 +export function getPorOrderList(data) { + return request({ + url: '/mes/mesborad/getPorOrderList', + method: 'post', + data: data + }); } \ No newline at end of file diff --git a/src/api/kanban/quality.js b/src/api/kanban/quality.js index 4e9d7c0..8354510 100644 --- a/src/api/kanban/quality.js +++ b/src/api/kanban/quality.js @@ -93,4 +93,4 @@ export function getMonthOfYearContrast(data) { method: 'post', data: data }); -} \ No newline at end of file +} diff --git a/src/api/mes/reportWork.js b/src/api/mes/reportWork.js index 065bce6..cfa39b2 100644 --- a/src/api/mes/reportWork.js +++ b/src/api/mes/reportWork.js @@ -81,7 +81,29 @@ export function getLineChartData() { method: 'get' }); } - +// 首页-各线体当日计划产量(横向柱状图) +export function getLineProData(data) { + return request({ + url: '/mes/reportWork/getLineProData', + method: 'post', + params: data + }); +} +// 首页-当月各日实际产量(单折线图, +export function getMonthProData() { + return request({ + url: '/mes/reportWork/getMonthProData', + method: 'get', + }); +} +// 首页-当日产品产量(饼图) +export function getProductProData(data) { + return request({ + url: '/mes/reportWork/getProductProData', + method: 'post', + params: data, + }); +} // 获取组线每月设备故障数 export function getGroupLineEquInfo() { return request({ diff --git a/src/api/technology/proroute.js b/src/api/technology/proroute.js index 4f22250..18995d4 100644 --- a/src/api/technology/proroute.js +++ b/src/api/technology/proroute.js @@ -59,3 +59,15 @@ export function syncSAP() { method: 'post' }); } + +//同步制定产品的sap工艺 +export function syncProductSAP(productCodes) { + const data = { + productCodes + } + return request({ + url: '/technology/pro/proroute/syncProductSAP', + method: 'post', + data: data + }) +} \ No newline at end of file diff --git a/src/router/index.js b/src/router/index.js index 0bae369..5ce0f2d 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -135,7 +135,7 @@ export const constantRoutes = [ // 包装线产线生产看板 { path: "/kanban/Packagingline", - component: () => import("@/views/kanban/Packagingline/index"), + component: () => import("@/views/kanban/Packagingline/index2"), hidden: true, }, diff --git a/src/views/dashboard/DeviceChartLine.vue b/src/views/dashboard/DeviceChartLine.vue index 7ee9507..934b8cf 100644 --- a/src/views/dashboard/DeviceChartLine.vue +++ b/src/views/dashboard/DeviceChartLine.vue @@ -1,7 +1,7 @@ diff --git a/src/views/dashboard/LineChart copy.vue b/src/views/dashboard/LineChart copy.vue deleted file mode 100644 index 8e00258..0000000 --- a/src/views/dashboard/LineChart copy.vue +++ /dev/null @@ -1,136 +0,0 @@ - - - diff --git a/src/views/dashboard/LineChart.vue b/src/views/dashboard/LineChart.vue index 5945501..d035232 100644 --- a/src/views/dashboard/LineChart.vue +++ b/src/views/dashboard/LineChart.vue @@ -30,7 +30,8 @@ }, chartData: { type: Object, - required: true + required: true, + default: {}, } }, data() { diff --git a/src/views/dashboard/LineChartshadow.vue b/src/views/dashboard/LineChartshadow.vue new file mode 100644 index 0000000..c3b70fa --- /dev/null +++ b/src/views/dashboard/LineChartshadow.vue @@ -0,0 +1,203 @@ + + + diff --git a/src/views/dashboard/PieChart3.vue b/src/views/dashboard/PieChart3.vue new file mode 100644 index 0000000..f68bbc8 --- /dev/null +++ b/src/views/dashboard/PieChart3.vue @@ -0,0 +1,210 @@ + + + diff --git a/src/views/dashboard/QcChartLine.vue b/src/views/dashboard/QcChartLine.vue index 20f1032..f95ee8c 100644 --- a/src/views/dashboard/QcChartLine.vue +++ b/src/views/dashboard/QcChartLine.vue @@ -1,7 +1,7 @@ @@ -26,7 +26,7 @@ }, height: { type: String, - default: '260px' + default: '230px' }, autoResize: { type: Boolean, @@ -34,7 +34,8 @@ }, chartData: { type: Object, - required: true + required: true, + default: {}, } }, data() { diff --git a/src/views/dashboard/crossBarChart.vue b/src/views/dashboard/crossBarChart.vue new file mode 100644 index 0000000..655124f --- /dev/null +++ b/src/views/dashboard/crossBarChart.vue @@ -0,0 +1,190 @@ + + + diff --git a/src/views/device/inspectionPlan/index.vue b/src/views/device/inspectionPlan/index.vue index f4e4235..8271e28 100644 --- a/src/views/device/inspectionPlan/index.vue +++ b/src/views/device/inspectionPlan/index.vue @@ -904,7 +904,7 @@ export default { for (let i = 0; i < response.data.length; i++) { this.personList.push({ label: response.data[i].nickName + '(' + response.data[i].userName + ')', - key: response.data[i].userId, + key: response.data[i].userName, }) } }); diff --git a/src/views/device/spotCheckPlan/index.vue b/src/views/device/spotCheckPlan/index.vue index 3af934d..47b5d03 100644 --- a/src/views/device/spotCheckPlan/index.vue +++ b/src/views/device/spotCheckPlan/index.vue @@ -949,7 +949,7 @@ export default { for (let i = 0; i < response.data.length; i++) { this.personList.push({ label: response.data[i].nickName + '(' + response.data[i].userName + ')', - key: response.data[i].userId, + key: response.data[i].userName, }) } }); diff --git a/src/views/index.vue b/src/views/index.vue index 0fcfcd1..d64975b 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -1,17 +1,72 @@ + diff --git a/src/views/mes/reportWork/index.vue b/src/views/mes/reportWork/index.vue index 83d17b7..fa07943 100644 --- a/src/views/mes/reportWork/index.vue +++ b/src/views/mes/reportWork/index.vue @@ -584,7 +584,7 @@ + :data="printData.workTable" border style="width: 100%" :summary-method="getRKSummaries" show-summary> @@ -1604,6 +1604,38 @@ export default { item.remark = remark; }); }, + getRKSummaries(param) { + const { columns, data } = param; + const sums = []; + columns.forEach((column, index) => { + if (index === 0) { + sums[index] = ""; + return; + } + const values = data.map((item) => Number(item[column.property])); + if (!values.every((value) => isNaN(value))) { + sums[index] = values.reduce((prev, curr) => { + const value = Number(curr); + if (!isNaN(value)) { + return prev + curr; + } else { + return prev; + } + }, 0); + sums[index] += ""; + if (sums[index] > 1000000) { + sums[index] = ""; + } + } else{ + sums[index] = ""; //N/A + } + if(column.label == "批次"){ + sums[index] = "合计"; + } + }); + + return sums; + }, }, }; diff --git a/src/views/plan/workorder/index.vue b/src/views/plan/workorder/index.vue index e7eadd9..1afb049 100644 --- a/src/views/plan/workorder/index.vue +++ b/src/views/plan/workorder/index.vue @@ -170,7 +170,7 @@ :disabled="single" @click="editMachine" v-hasPermi="['mes:pro:workorder:edit']" - >设备修改 + >切线调拨 diff --git a/src/views/quality/checkTypeProject/index.vue b/src/views/quality/checkTypeProject/index.vue index f0ec419..3676f4a 100644 --- a/src/views/quality/checkTypeProject/index.vue +++ b/src/views/quality/checkTypeProject/index.vue @@ -220,6 +220,10 @@ + + + +