<template>
  <div class="app-container">
    <div class="headTitle">京源环保生产管理系统</div>

    <div class="chartBox chartBox1">
      <div class="title">工单信息</div>
      <div class="chart">
        <div class="form">
          <el-form :model="form" label-position="right" label-width="80px" size="mini">
            <el-form-item label="明细编号">
              <el-input v-model="form.planDetailCode"></el-input>
            </el-form-item>
            <el-form-item label="工单编号">
              <el-input v-model="form.planCode"></el-input>
            </el-form-item>
            <el-form-item label="成品编号">
              <el-input v-model="form.materialCode"></el-input>
            </el-form-item>
            <el-form-item label="成品名称">
              <el-input v-model="form.materialName"></el-input>
            </el-form-item>
            <el-form-item label="图纸名称">
              <el-input v-model="form.attachName"></el-input>
            </el-form-item>
            <el-form-item label="状态">
              <el-input v-model="form.planDetailStatus"></el-input>
            </el-form-item>
            <!--            <el-form-item label="扫码时间">-->
            <!--              <el-input v-model="form.materialId1"></el-input>-->
            <!--            </el-form-item>-->
            <!--            <el-form-item label="产品型号">-->
            <!--              <el-input v-model="form.materialId1"></el-input>-->
            <!--            </el-form-item>-->
          </el-form>
          <div style="text-align: center">
            <el-button type="success" @click="handleRawOutstock">板材领料</el-button>
            <el-button type="primary" @click="accomplishPlan">完成</el-button>
          </div>
        </div>

      </div>
      <div class="chart1">
        <Chart ref="chart1_1"></Chart>
      </div>
      <div class="chart2">
        <Chart ref="chart1_2"></Chart>
      </div>
      <div class="chart3">
        <Chart ref="chart1_3"></Chart>
      </div>
      <div class="chart4">
        <Chart ref="chart1_4"></Chart>
      </div>
    </div>

    <div class="chartBox chartBox2">
      <div class="title">库存统计</div>
      <div class="chart">
        <Chart ref="chart2"></Chart>
      </div>
    </div>

    <div class="chartBox chartBox3">
      <div class="title">生产派工</div>
      <div class="chart">
        <div class="whiteTable">
          <el-table
            ref="table1"
            :cell-style="{textAlign:'center'}"
            :data="tableData"
            :expand-row-keys="drawingList"
            :header-cell-style="{textAlign:'center'}"
            :max-height="19.13 *vw"
            highlight-current-row
            lazy
            row-key="planId"
            style="width: 100%"
            @current-change="getOrderInfo"
            @expand-change="expandChange"
          >
            <el-table-column type="expand">
              <template slot-scope="props">
                <div v-for="i in props.row.drawing">
                  <div style="display: inline-block;width: 50%;text-align: center;color:#000">{{ i.attachName }}</div>
                  <div style="display: inline-block;width: 50%;text-align: center">
                    <el-popconfirm
                      cancel-button-text='否'
                      confirm-button-text='是'
                      icon="el-icon-info"
                      icon-color="red"
                      title="确定开始计划吗？"
                      @confirm="startNextProduction(props.row,i)"
                    >
                      <el-button
                        slot="reference"
                        :disabled="i.dispatchFlag"
                        size="small"
                        type="text">开始
                      </el-button>
                    </el-popconfirm>
                  </div>
                </div>
              </template>
            </el-table-column>
            <el-table-column
              label="序号"
              type="index"
              width="50"
            >
            </el-table-column>
            <el-table-column
              label="工单编号"
              prop="planCode"
            >
            </el-table-column>
            <el-table-column
              label="成品名称"
              prop="materialName"
              width="100"
            >
            </el-table-column>
            <el-table-column
              label="计划图纸"
              prop="planAmount"
              width="80"
            >
              <template slot-scope="scope">
                {{ (scope.row.attachId || '').split(',').length }}
              </template>
            </el-table-column>
            <el-table-column
              label="实际图纸"
              prop="completeAmount"
              width="80"
            >
            </el-table-column>
            <el-table-column
              label="差异图纸"
              prop="difference"
              width="80"
            >
              <template slot-scope="scope">
                {{ (scope.row.attachId || '').split(',').length - scope.row.completeAmount }}
              </template>
            </el-table-column>
            <el-table-column
              label="交付时间"
              prop="planDeliveryDate"
              width="200"
            >
            </el-table-column>
            <el-table-column
              label="操作"
              width="120"
            >
              <template slot-scope="scope">
                <el-button
                  size="small"
                  style="margin-left: 4px"
                  type="text"
                >
                  退库
                </el-button>
              </template>
            </el-table-column>
          </el-table>
        </div>
      </div>
    </div>
    <div>
      <div class="roundBorder" style="top: 72%;left: 1.2%;">
        <el-button :disabled="nowNum1 <= 1" circle icon="el-icon-back" size="mini" @click="pre1"></el-button>
      </div>
      <div class="roundBorder" style="top: 72%;left: 49%;">
        <el-button :disabled="nowNum1 >= totalNum1" circle icon="el-icon-right" size="mini" @click="next1"></el-button>
      </div>
    </div>

    <div class="chartBox chartBox4">
      <div class="title">每周产量</div>
      <div class="chart">
        <Chart ref="chart4"></Chart>
      </div>
    </div>

    <div class="bottom">
      <el-row>
        <el-button type="primary">首页</el-button>
        <el-button type="success" @click="handleRawInstock">板材入库</el-button>
        <el-button type="info">SOP预览</el-button>
        <el-button type="danger" @click="logout">退出</el-button>
      </el-row>
    </div>

    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
      <el-form ref="wmsForm" :model="wmsForm" :rules="wmsRules" label-width="80px">
        <el-form-item label="库位编码"  prop="locationCode">
          <el-input v-model="wmsForm.locationCode" autocomplete="off"></el-input>
        </el-form-item>
        <el-form-item label="物料条码"  prop="materialBarcode">
          <el-input v-model="wmsForm.materialBarcode" autocomplete="off"></el-input>
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button @click="cancel">取 消</el-button>
        <el-button type="primary" @click="submitRawStock">确 定</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
import Chart from '@/components/board/Chart'
import * as echarts from 'echarts'
import {
  completeProductPlanDetail,
  getNewestProductPlanDetailJoinAttach,
  getProductPlans,
  startNextProductPlanDetailAttach,
  getPlanDrawings,
  addRawInstock,
  directRawOutstock,
} from "@/api/board";

const setState = (e) => {
  if (e === '1') {
    return '未开始'
  }
  if (e === '2') {
    return '已开始'
  }
  if (e === '3' || e === '9') {
    return '已完成'
  }
}
const vw = (document.documentElement.clientWidth || document.body.clientWidth) / 100
export default {
  name: 'Board1',
  components: {
    Chart
  },
  data() {
    return {
      nowNum1: 1,
      totalNum1: 0,
      getMaterialsModel: false,
      form: {},
      vw: (document.documentElement.clientWidth || document.body.clientWidth) / 100,
      tableData: [],
      drawingList: [],
      title: '',
      open: false,
      stockType: '',
      wmsForm:{
        locationCode: null,
        materialBarcode : null,
      },//板材领料入库使用
      // 表单校验
      wmsRules: {
        locationCode: [
          { required: true, message: "库位编码不能为空", trigger: "blur" }
        ],
        materialBarcode: [
          { required: true, message: "物料条码不能为空", trigger: "blur" }
        ],
      }
    }
  },
  async mounted() {
    setInterval(() => {
      this.$notify.info({
        title: '通知',
        message: '通知公告',
        position: 'bottom-right',
        duration: 0
      });
    }, 60 * 1000)
    const data = await getProductPlans({pageNum: 1, pageSize: 5}).then(e => {
      this.tableData = e.rows
      this.totalNum1 = Math.ceil(e.total / 5)
      this.$refs.table1.setCurrentRow(e.rows[0]);
      this.getInfo(e.rows[0])
      getNewestProductPlanDetailJoinAttach({planId: e.rows[0].planId}).then(val => {
        this.form = val.data || {}
        this.form.materialId = e.rows[0]?.materialId
        this.form.materialCode = e.rows[0]?.materialCode
        this.form.materialName = e.rows[0]?.materialName
        this.form.planDetailStatus = setState(val.data.planDetailStatus)
      })
    })
    this.$refs.chart2.setData({
      tooltip: {
        trigger: 'axis',
        axisPointer: {
          // 坐标轴指示器，坐标轴触发有效
          type: 'shadow' // 默认为直线，可选为：'line' | 'shadow'
        }
      },
      grid: {
        left: '0',
        right: '4%',
        bottom: '0',
        top: 20,
        containLabel: true
      },
      xAxis: {
        type: 'category',
        data: [1, 2, 3, 4, 5, 6],
        axisLine: {
          lineStyle: {
            color: 'white'
          }
        },
        axisLabel: {
          // interval: 0,
          // rotate: 40,
          textStyle: {
            fontFamily: 'Microsoft YaHei'
          }
        }
      },

      yAxis: {
        type: 'value',
        axisLine: {
          show: false,
          lineStyle: {
            color: 'white'
          }
        },
        splitLine: {
          show: false
        },
        axisLabel: {}
      },
      series: [
        {
          name: '数量',
          label: {
            normal: {
              show: true,
              position: 'top',
              textStyle: {
                color: '#a8aab0',
                fontStyle: 'normal',
                fontFamily: '微软雅黑',
                fontSize: 0.75 * vw
              }
            }
          },
          type: 'bar',
          barWidth: '30%',
          barMaxWidth: 50,
          itemStyle: {
            normal: {
              color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
                {
                  offset: 0,
                  color: '#39ffff'
                },
                {
                  offset: 1,
                  color: '#5affa6'
                }
              ])
            }
          },
          data: [1, 2, 3, 4, 5, 6]
        }
      ]
    })
    this.$refs.chart4.setData({
      tooltip: {
        trigger: 'axis',
        axisPointer: {
          // 坐标轴指示器，坐标轴触发有效
          type: 'shadow' // 默认为直线，可选为：'line' | 'shadow'
        }
      },
      grid: {
        left: '0',
        right: '4%',
        bottom: '0',
        top: 20,
        containLabel: true
      },
      xAxis: {
        type: 'category',
        data: [1, 2, 3, 4, 5, 6],
        axisLine: {
          lineStyle: {
            color: 'white'
          }
        },
        axisLabel: {
          // interval: 0,
          // rotate: 40,
          textStyle: {
            fontFamily: 'Microsoft YaHei'
          }
        }
      },

      yAxis: {
        type: 'value',
        axisLine: {
          show: false,
          lineStyle: {
            color: 'white'
          }
        },
        splitLine: {
          show: false
        },
        axisLabel: {}
      },
      series: [
        {
          name: '数量',
          label: {
            normal: {
              show: true,
              position: 'top',
              textStyle: {
                color: '#a8aab0',
                fontStyle: 'normal',
                fontFamily: '微软雅黑',
                fontSize: 0.75 * vw
              }
            }
          },
          type: 'bar',
          barWidth: '30%',
          barMaxWidth: 50,
          itemStyle: {
            normal: {
              color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
                {
                  offset: 0,
                  color: '#39ffff'
                },
                {
                  offset: 1,
                  color: '#5affa6'
                }
              ])
            }
          },
          data: [1, 2, 3, 4, 5, 6]
        }
      ]
    })
  },
  methods: {

    async logout() {
      this.$confirm('确定注销并退出系统吗？', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      }).then(() => {
        this.$store.dispatch('LogOut').then(() => {
          location.href = '/login?isStationId=true';
        })
      }).catch(() => {});
    },
    next1() {
      this.nowNum1 += 1
      getProductPlans({pageNum: this.nowNum1, pageSize: 5}).then(e => {
        this.tableData = e.rows
        this.totalNum1 = Math.ceil(e.total / 5)
      })
    },
    pre1() {
      this.nowNum1 -= 1
      getProductPlans({pageNum: this.nowNum1, pageSize: 5}).then(e => {
        this.tableData = e.rows
        this.totalNum1 = Math.ceil(e.total / 5)
      })
    },
    getOrderInfo(e) {
      this.getInfo(e)
      getNewestProductPlanDetailJoinAttach({planId: e.planId}).then(val => {
        this.form = val.data
        this.form.materialId = e.materialId
        this.form.materialCode = e.materialCode
        this.form.materialName = e.materialName
        this.form.planDetailStatus = setState(val.data.planDetailStatus)
      })
    },
    async expandChange(e, rows) {
      this.drawingList = [e.planId]
      const data = await getPlanDrawings({planId: e.planId, attachId: e.attachId})
      this.$set(this.tableData, this.tableData.indexOf(e), {
        ...e, drawing: data?.data.map((v, i) => {
          return {
            ...v,
            planId: e.planId + '-' + i
          }
        }) || []
      })

    },
    // 设置图表信息
    getInfo(e) {
      this.$refs.chart1_1.setData({
        series: [
          {
            type: "pie",
            clockWise: false,
            radius: ['60%', '75%'],
            itemStyle: {
              normal: {
                label: {
                  show: false,
                },
                labelLine: {
                  show: false,
                },
                shadowBlur: 0,
                shadowColor: "#aa8e2c",
              },
            },
            hoverAnimation: false,
            center: ["50%", "50%"],
            data: [
              {
                value: (e.attachId || '').split(',').length === 0 ? 0.0001 : (e.attachId || '').split(',').length,
                label: {
                  normal: {
                    rich: {
                      a: {
                        color: "#aa8e2c",
                        align: "center",
                        fontSize: 1.1 * vw,
                        fontWeight: "bold",
                      },
                      b: {
                        color: "#fff",
                        align: "center",
                        fontSize: 0.9 * vw,
                      },
                    },
                    formatter: function (params) {
                      return (
                        "{a|" +
                        (params.data.value === 0.0001 ? 0 : params.data.value) +
                        "}" +
                        "\n{b|计划}"
                      );
                    },
                    position: "center",
                    show: true,
                    textStyle: {
                      fontSize: "14",
                      fontWeight: "normal",
                      color: "#fff",
                    },
                  },
                },
                itemStyle: {
                  normal: {
                    color: "#aa8e2c",
                    shadowColor: "#aa8e2c",
                    shadowBlur: 0,
                  },
                },
              },
              {
                value: 0,
                name: "invisible",
                itemStyle: {
                  normal: {
                    color: "#412a4e",
                  },
                  emphasis: {
                    color: "#412a4e",
                  },
                },
              },
            ],
          },
        ],
      })
      this.$refs.chart1_2.setData({
        series: [
          {
            type: "pie",
            clockWise: false,
            radius: ['60%', '75%'],
            itemStyle: {
              normal: {
                label: {
                  show: false,
                },
                labelLine: {
                  show: false,
                },
                shadowBlur: 0,
                shadowColor: "#389af4",
              },
            },
            hoverAnimation: false,
            center: ["50%", "50%"],
            data: [
              {
                value: e.completeAmount === 0 ? 0.0001 : e.completeAmount,
                label: {
                  normal: {
                    rich: {
                      a: {
                        color: "#389af4",
                        align: "center",
                        fontSize: 1.1 * vw,
                        fontWeight: "bold",
                      },
                      b: {
                        color: "#fff",
                        align: "center",
                        fontSize: 0.9 * vw,
                      },
                    },
                    formatter: function (params) {
                      return (
                        "{a|" +
                        (params.data.value === 0.0001 ? 0 : params.data.value) +
                        "}" +
                        "\n{b|实际}"
                      );
                    },
                    position: "center",
                    show: true,
                    textStyle: {
                      fontSize: "14",
                      fontWeight: "normal",
                      color: "#fff",
                    },
                  },
                },
                itemStyle: {
                  normal: {
                    color: "#389af4",
                    shadowColor: "#389af4",
                    shadowBlur: 0,
                  },
                },
              },
              {
                value: 0,
                name: "invisible",
                itemStyle: {
                  normal: {
                    color: "#412a4e",
                  },
                  emphasis: {
                    color: "#412a4e",
                  },
                },
              },
            ],
          },
        ],
      })
      this.$refs.chart1_3.setData({
        series: [
          {
            type: "pie",
            clockWise: false,
            radius: ['60%', '75%'],
            itemStyle: {
              normal: {
                label: {
                  show: false,
                },
                labelLine: {
                  show: false,
                },
                shadowBlur: 0,
                shadowColor: "#ff0000",
              },
            },
            hoverAnimation: false,
            center: ["50%", "50%"],
            data: [
              {
                value: Math.abs(((e.attachId || '').split(',').length - e.completeAmount) === 0 ? 0.0001 : ((e.attachId || '').split(',').length - e.completeAmount)),
                label: {
                  normal: {
                    rich: {
                      a: {
                        color: "#ff0000",
                        align: "center",
                        fontSize: 1.1 * vw,
                        fontWeight: "bold",
                      },
                      b: {
                        color: "#fff",
                        align: "center",
                        fontSize: 0.9 * vw,
                      },
                    },
                    formatter: function (params) {
                      return (
                        "{a|" +
                        (params.data.value === 0.0001 ? 0 : params.data.value) +
                        "}" +
                        "\n{b|差异}"
                      );
                    },
                    position: "center",
                    show: true,
                    textStyle: {
                      fontSize: "14",
                      fontWeight: "normal",
                      color: "#fff",
                    },
                  },
                },
                itemStyle: {
                  normal: {
                    color: "#b32b2b",
                    shadowColor: "#ff0000",
                    shadowBlur: 0,
                  },
                },
              },
              {
                value: 0,
                name: "invisible",
                itemStyle: {
                  normal: {
                    color: "#412a4e",
                  },
                  emphasis: {
                    color: "#412a4e",
                  },
                },
              },
            ],
          },
        ],
      })
      this.$refs.chart1_4.setData({
        series: [
          {
            type: "pie",
            clockWise: false,
            radius: ['60%', '75%'],
            itemStyle: {
              normal: {
                label: {
                  show: false,
                },
                labelLine: {
                  show: false,
                },
                shadowBlur: 0,
                shadowColor: "#00ff00",
              },
            },
            hoverAnimation: false,
            center: ["50%", "50%"],
            data: [
              {
                value: ((e.completeAmount / (e.attachId || '').split(',').length) * 100).toFixed(2),
                label: {
                  normal: {
                    rich: {
                      a: {
                        color: "#00ff00",
                        align: "center",
                        fontSize: 1.1 * vw,
                        fontWeight: "bold",
                      },
                      b: {
                        color: "#fff",
                        align: "center",
                        fontSize: 0.9 * vw,
                      },
                    },
                    formatter: function (params) {
                      return (
                        "{a|" +
                        (params.data.value === 0.0001 ? 0 : params.data.value) +
                        "%}" +
                        "\n{b|完成率}"
                      );
                    },
                    position: "center",
                    show: true,
                    textStyle: {
                      fontSize: "14",
                      fontWeight: "normal",
                      color: "#fff",
                    },
                  },
                },
                itemStyle: {
                  normal: {
                    color: "#3ac13a",
                    shadowColor: "#00ff00",
                    shadowBlur: 0,
                  },
                },
              },
              {
                value: ((1 - (e.completeAmount / (e.attachId || '').split(',').length)) * 100).toFixed(2),
                name: "invisible",
                itemStyle: {
                  normal: {
                    color: "#412a4e",
                  },
                  emphasis: {
                    color: "#412a4e",
                  },
                },
              },
            ],
          },
        ],
      })
    },
    // 开始
    async startNextProduction(val, e) {
      const dataIndex = this.tableData.indexOf(val)
      const lineIndex = this.tableData[dataIndex].drawing.indexOf(e)
      // this.$set(this.tableData?.[dataIndex]?.[lineIndex], 'dispatchFlag',false)
      await startNextProductPlanDetailAttach({planId: val.planId, attachId: e.attachId})
        .catch(() => {
          // this.$set(this.tableData?.[dataIndex]?.[lineIndex], 'dispatchFlag',true)
        })
      getNewestProductPlanDetailJoinAttach({planId: val.planId}).then(val1 => {
        this.form = val1.data
        this.form.materialId = val.materialId
        this.form.materialCode = val.materialCode
        this.form.materialName = val.materialName
        this.form.planDetailStatus = setState(val1.data.planDetailStatus)
      })
      const data = await getPlanDrawings({planId: val.planId, attachId: val.attachId})
      this.$set(this.tableData, this.tableData.indexOf(val), {
        ...val, drawing: data?.data.map((v, i) => {
          return {
            ...v,
            planId: val.planId + '-' + i
          }
        }) || []
      })
    },
    // 完成
    accomplishPlan() {
      this.$confirm('是否完成计划', '确认', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'success'
      }).then(() => {
        completeProductPlanDetail({
          planDetailId: this.form.planDetailId,
        })
          .then(() => {
            this.$message({
              type: 'success',
              message: '已完成'
            });
            getProductPlans({pageNum: this.nowNum1, pageSize: 5}).then(e => {
              this.tableData = e.rows
              this.totalNum1 = Math.ceil(e.total / 5)
              let data = e.rows.find(v => v.planCode === this.form.planCode) || null
              this.$refs.table1.setCurrentRow(data || e.rows[0]);
              this.getInfo(data || e.rows[0])
            })
          })
      })
        .catch(() => {
          this.$message({
            type: 'info',
            message: '已取消'
          });
        })
    },



    // 表单重置
    resetWmsForm() {
      this.wmsForm = {
        locationCode: undefined,
        materialBarcode: undefined
      };
      this.resetForm("wmsForm");
    },

    handleRawInstock(){
      this.resetWmsForm();
      this.open = true;
      this.stockType = "1";//入库
      this.title = "板材入库";
    },

    handleRawOutstock(){
      this.resetWmsForm();
      this.open = true;
      this.stockType = "2";//出库
      this.title = "板材领料";
    },

    cancel(){
      this.stockType = "";
      this.open = false;
      this.resetWmsForm();
    },

    submitRawStock(){
        if(this.stockType == "1"){//入库
          this.wmsForm.instockAmount = 1;
          addRawInstock(this.wmsForm).then(response => {
            this.$modal.msgSuccess("板材入库成功");
            this.cancel();
          });
        } else if(this.stockType == "2"){//出库
          this.wmsForm.outstockAmount = 1;
          this.wmsForm.planCode = this.form.planCode;
          this.wmsForm.planDetailCode = this.form.planDetailCode;
          this.wmsForm.operationType = '1';//人工
          this.wmsForm.taskType = '1';//生产领料

          directRawOutstock(this.wmsForm).then(response => {
            this.$modal.msgSuccess("板材领取成功");
            this.cancel();
          });
        }
    },


  },


}
</script>
<style lang="less" scoped>

.app-container {
  background-image: url("../../../assets/board/bg.jpg");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.headTitle {
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translate(-50%, -100%);
  font-size: 1.5vw;
  color: #d6eaed;
  letter-spacing: 10px;
}

.el-table {
  background-color: #fff0;
}

.whiteTable {
  /deep/ .el-table .el-table__header-wrapper th {
    background-color: #fff0;
  }

  /deep/ .el-table tr {
    background-color: #fff0;
  }

  /deep/ .el-table .cell {
    color: #fff
  }

  /deep/ .current-row .cell {
    color: #000
  }

  /deep/ .el-table--enable-row-hover .el-table__body tr:hover > td.el-table__cell {
    background-color: #fff0;
  }
}

.chartBox {
  background-image: url("../../../assets/board/box.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  position: absolute;
  width: 46%;
  height: 23.34vw;

  .title {
    position: absolute;
    top: 8%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2vw;
    color: #ccc;
  }

  .chart {
    position: absolute;
    top: 16%;
    left: 1%;
    width: 98%;
    height: 82%;
  }
}

.chartBox1 {
  top: 10%;
  left: 2%;

  .chart1 {
    position: absolute;
    top: 16%;
    left: 60%;
    width: 20%;
    height: 35%;
  }

  .chart2 {
    position: absolute;
    top: 16%;
    left: 80%;
    width: 20%;
    height: 35%;
  }

  .chart3 {
    position: absolute;
    top: 55%;
    left: 60%;
    width: 20%;
    height: 35%;
  }

  .chart4 {
    position: absolute;
    top: 55%;
    left: 80%;
    width: 20%;
    height: 35%;
  }
}

.chartBox2 {
  top: 10%;
  right: 2%;
}

.chartBox3 {
  top: 53%;
  left: 2%;
}

.chartBox4 {
  top: 53%;
  right: 2%;
}

.bottom {
  position: absolute;
  bottom: 1.5%;
  left: 2%;
}

.form {
  position: absolute;
  width: 50%;
  height: 100%;
  top: 2%;
  left: 2%;

  /deep/ .el-form-item__label {
    color: #fff;
    font-weight: 500;
  }

  /deep/ .el-input__inner {
    color: #fff;
    background-color: #0000;
    border: none;
    border-bottom: 1px solid #fff9;
    border-radius: 0;
  }
}

.roundBorder {
  position: absolute;
  transform: translate(-50%, -50%);
}
</style>
