diff --git a/.env.dev b/.env.dev
index 809263f..aaeed2e 100644
--- a/.env.dev
+++ b/.env.dev
@@ -1,8 +1,8 @@
###
# @Author: zhp
# @Date: 2024-04-28 13:42:51
- # @LastEditTime: 2024-06-24 08:29:45
- # @LastEditors: zhp
+ # @LastEditTime: 2024-06-24 16:57:53
+ # @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 }}
+
+
+
+