From a9392c89997b29a1ed1ef19c85c60584a4334803 Mon Sep 17 00:00:00 2001
From: juzi <819872918@qq.com>
Date: Mon, 24 Jun 2024 13:27:09 +0800
Subject: [PATCH 1/3] 1
---
.../components/bmSearchBarComplete.vue | 5 +++++
src/views/report/components/bmSearchBar.vue | 5 +++++
2 files changed, 10 insertions(+)
diff --git a/src/views/report/completionStatusIntrBM/components/bmSearchBarComplete.vue b/src/views/report/completionStatusIntrBM/components/bmSearchBarComplete.vue
index 0dbb2da..378a8d0 100644
--- a/src/views/report/completionStatusIntrBM/components/bmSearchBarComplete.vue
+++ b/src/views/report/completionStatusIntrBM/components/bmSearchBarComplete.vue
@@ -26,6 +26,7 @@
placeholder="选择日期"
value-format="yyyy-MM-dd"
style="width: 150px"
+ :picker-options="pickerOptions"
>
@@ -38,6 +39,7 @@
placeholder="选择周"
value-format="yyyy-MM-dd"
style="width: 150px"
+ :picker-options="pickerOptions"
>
@@ -97,6 +99,9 @@ export default {
{ id: 2, name: "月" },
{ id: 3, name: "年" },
],
+ pickerOptions: {
+ firstDayOfWeek: 1,
+ },
};
},
methods: {
diff --git a/src/views/report/components/bmSearchBar.vue b/src/views/report/components/bmSearchBar.vue
index 9d5caa9..c88398b 100644
--- a/src/views/report/components/bmSearchBar.vue
+++ b/src/views/report/components/bmSearchBar.vue
@@ -25,6 +25,7 @@
placeholder="选择日期"
value-format="yyyy-MM-dd"
style="width: 150px"
+ :picker-options="pickerOptions"
>
@@ -37,6 +38,7 @@
placeholder="选择周"
value-format="yyyy-MM-dd"
style="width: 150px"
+ :picker-options="pickerOptions"
>
@@ -118,6 +120,9 @@ export default {
{ id: 0, name: "瑞昌" },
{ id: 1, name: "邯郸" },
],
+ pickerOptions: {
+ firstDayOfWeek: 1,
+ },
};
},
methods: {
From 8437d52c1b87cf7fae423cb427d152cd46616cfe Mon Sep 17 00:00:00 2001
From: helloDy <1615073571@qq.com>
Date: Mon, 24 Jun 2024 16:57:15 +0800
Subject: [PATCH 2/3] bug
---
.env.dev | 2 +-
src/views/produce/data/add-or-updata.vue | 6 +-
src/views/produce/data/index.vue | 74 ++++++++++++++-------
src/views/produce/data/lineChart.vue | 20 +++---
src/views/produce/target/add-or-updata.vue | 9 ++-
src/views/produce/workOrder/index.vue | 13 ++--
src/views/produce/workOrder/statusChart.vue | 51 ++++++++++++++
7 files changed, 133 insertions(+), 42 deletions(-)
create mode 100644 src/views/produce/workOrder/statusChart.vue
diff --git a/.env.dev b/.env.dev
index 5b6262d..8020dfa 100644
--- a/.env.dev
+++ b/.env.dev
@@ -1,7 +1,7 @@
###
# @Author: zhp
# @Date: 2024-04-28 13:42:51
- # @LastEditTime: 2024-06-20 10:16:40
+ # @LastEditTime: 2024-06-24 08:52:00
# @LastEditors: DY
# @Description:
###
diff --git a/src/views/produce/data/add-or-updata.vue b/src/views/produce/data/add-or-updata.vue
index 51ea5a5..bc06e60 100644
--- a/src/views/produce/data/add-or-updata.vue
+++ b/src/views/produce/data/add-or-updata.vue
@@ -1,7 +1,7 @@
@@ -116,6 +116,10 @@
标准组件平均功率(W)
{{ dataForm.componentAveragePower }}
+
+ 标准组件转化效率
+ {{ dataForm.componentTransRate }}
+
diff --git a/src/views/produce/data/index.vue b/src/views/produce/data/index.vue
index f3a6387..ff5ae03 100644
--- a/src/views/produce/data/index.vue
+++ b/src/views/produce/data/index.vue
@@ -1,7 +1,7 @@
@@ -10,7 +10,7 @@
-
+
@@ -74,7 +74,7 @@
-
+
@@ -40,7 +40,7 @@ export default {
},
height: {
type: String,
- default: '30vh'
+ default: '35vh'
},
legendPosition: {
type: String,
@@ -140,20 +140,24 @@ export default {
xAxis: [
{
type: 'category',
- // prettier-ignore
- data: xAxis
+ name: '日期',
+ data: xAxis,
+ axisLabel: {
+ rotate: 25
+ }
}
],
yAxis: [
{
- type: 'value'
+ type: 'value',
+ name: '单位:个'
}
],
grid: {
- top: '20%',
+ top: '10%',
left: "1%",
- right: "3%",
- bottom: "1%",
+ right: "5%",
+ bottom: "0%",
containLabel: true
},
series: seriesList
diff --git a/src/views/produce/target/add-or-updata.vue b/src/views/produce/target/add-or-updata.vue
index 43b7cd3..81094af 100644
--- a/src/views/produce/target/add-or-updata.vue
+++ b/src/views/produce/target/add-or-updata.vue
@@ -1,7 +1,7 @@
@@ -375,7 +375,12 @@ export default {
this.visible = true
if (this.dataForm.id) {
getProduceTargetDetail(this.dataForm.id).then(res => {
- this.dataForm = res.data
+ // this.dataForm = res.data
+ for (const i in res.data) {
+ if (res.data[i] !== null) {
+ this.dataForm[i] = res.data[i]
+ }
+ }
if (this.dataForm.targetType === 0 || this.dataForm.targetType === 2 || this.dataForm.targetType === 3) {
// this.dataForm.reportTime = String(this.dataForm.targetTime)
this.$set(this.dataForm, 'reportTime', String(this.dataForm.targetTime))
diff --git a/src/views/produce/workOrder/index.vue b/src/views/produce/workOrder/index.vue
index eae0180..354e23a 100644
--- a/src/views/produce/workOrder/index.vue
+++ b/src/views/produce/workOrder/index.vue
@@ -1,7 +1,7 @@
@@ -76,7 +76,8 @@ import tableHeightMixin from "@/mixins/tableHeightMixin";
import basicPage from '@/mixins/basic-page'
import AddOrUpdate from './add-or-updata';
import { factoryList, factoryArray } from "@/utils/constants";
-import { publicFormatter } from "@/utils/dict";
+// import { publicFormatter } from "@/utils/dict";
+import statusChart from "./statusChart.vue";
// import FileSaver from 'file-saver'
// import * as XLSX from 'xlsx'
@@ -206,13 +207,13 @@ export default {
prop: 'factory',
label: '工厂名称',
filter: (val) => factoryList[val],
- minWidth: 200,
+ minWidth: 220,
showOverflowtooltip: true
},
{
prop: 'workOrderNumber',
label: '工单号',
- minWidth: 120,
+ minWidth: 130,
showOverflowtooltip: true
// filter: (val) => ['玻璃芯片', '标准组件', 'BIPV', '定制组件'][val]
},
@@ -246,8 +247,8 @@ export default {
{
prop: 'orderStatus',
label: '工单状态',
- // filter: publicFormatter('workorder_status')
- filter: (val) => ['', '未开始', '生产中', '已完成'][val],
+ subcomponent: statusChart
+ // filter: (val) => ['', '未开始', '生产中', '已完成'][val],
},
{
prop: 'startTime',
diff --git a/src/views/produce/workOrder/statusChart.vue b/src/views/produce/workOrder/statusChart.vue
new file mode 100644
index 0000000..792f27d
--- /dev/null
+++ b/src/views/produce/workOrder/statusChart.vue
@@ -0,0 +1,51 @@
+
+
+
+
+ {{ state }}
+
+
+
+
From 4e5a5f9ba27a7a425113cf0f81a515023809ba75 Mon Sep 17 00:00:00 2001
From: helloDy <1615073571@qq.com>
Date: Tue, 25 Jun 2024 14:35:23 +0800
Subject: [PATCH 3/3] =?UTF-8?q?=E5=8A=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/produce/data/add-or-updata.vue | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/views/produce/data/add-or-updata.vue b/src/views/produce/data/add-or-updata.vue
index bc06e60..1d6de55 100644
--- a/src/views/produce/data/add-or-updata.vue
+++ b/src/views/produce/data/add-or-updata.vue
@@ -1,7 +1,7 @@
@@ -58,7 +58,7 @@
{{ dataForm.chipCssMarriageRate }}
- 芯片段OEE
+ 芯片段OEE(%)
{{ dataForm.chipOee }}
@@ -120,6 +120,10 @@
标准组件转化效率
{{ dataForm.componentTransRate }}
+
+ 芯片投入
+ {{ dataForm.chipInput }}
+