diff --git a/src/api/kanban/Packagingline.js b/src/api/kanban/Packagingline.js
index 832925c7..9041e474 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 4e9d7c09..83545106 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 065bce68..cfa39b24 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 4f222501..18995d4c 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 0bae3692..5ce0f2de 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 7ee95078..934b8cfa 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 8e002588..00000000
--- 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 59455010..d0352323 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 00000000..c3b70fa5
--- /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 00000000..f68bbc8f
--- /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 20f10328..f95ee8cd 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 00000000..655124f8
--- /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 f4e42354..8271e281 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 3af934db..47b5d03b 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 0fcfcd1b..d64975b8 100644
--- a/src/views/index.vue
+++ b/src/views/index.vue
@@ -1,17 +1,72 @@
-
+
+
+
+
+ {{ titlename }}
+
+
+
+
+
+
+
+
-
+
+
diff --git a/src/views/mes/reportWork/index.vue b/src/views/mes/reportWork/index.vue
index 83d17b72..fa079434 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 e7eadd9e..1afb049e 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 f0ec4192..3676f4a7 100644
--- a/src/views/quality/checkTypeProject/index.vue
+++ b/src/views/quality/checkTypeProject/index.vue
@@ -220,6 +220,10 @@
+
+ 是
+ 否
+