| | |
| | | height="428" |
| | | > |
| | | <el-table-column |
| | | prop="xsdd" |
| | | prop="saleOrderCode" |
| | | label="销售单号" |
| | | width="141" |
| | | width="165" |
| | | /> |
| | | |
| | | <el-table-column |
| | | prop="cpmc" |
| | | width="133" |
| | | prop="partname" |
| | | width="120" |
| | | label="产品名称" |
| | | /> |
| | | <el-table-column |
| | | prop="sl" |
| | | prop="good_qty" |
| | | label="数量" |
| | | width="100" |
| | | width="80" |
| | | /> |
| | | </el-table> |
| | | </div> |
| | |
| | | </div> |
| | | <div class="lineContent horn"> |
| | | <el-table |
| | | ref="tableDataLeftTopRef" |
| | | :data="tableDataLeftTop" |
| | | ref="tableDataLeftBottomRef" |
| | | :data="tableDataLeftBottom" |
| | | class="tableData" |
| | | style="width: 100%;" |
| | | :header-cell-style="headerCellStyle" |
| | |
| | | height="428" |
| | | > |
| | | <el-table-column |
| | | prop="xsdd" |
| | | prop="saleOrderCode" |
| | | label="销售单号" |
| | | width="141" |
| | | width="165" |
| | | /> |
| | | |
| | | <el-table-column |
| | | prop="cpmc" |
| | | width="133" |
| | | prop="partname" |
| | | width="120" |
| | | label="产品名称" |
| | | /> |
| | | <el-table-column |
| | | prop="sl" |
| | | prop="good_qty" |
| | | label="数量" |
| | | width="100" |
| | | width="80" |
| | | /> |
| | | </el-table> |
| | | </div> |
| | |
| | | height="927" |
| | | > |
| | | <el-table-column |
| | | prop="xh" |
| | | type="RowNum" |
| | | label="序号" |
| | | width="50" |
| | | width="60" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div |
| | | :style="{color:row.cxmc==='装配一线'?'#ffff00':row.cxmc==='装配二线'?'#FF3333':row.cxmc==='装配三线'?'#FF00FF':'#00FFFF'}" |
| | | > {{ row.xh }} |
| | | :style="{color:row.eqp_name==='装配一线'?'#FFFF77':row.eqp_name==='装配二线'?'#FF8888':row.eqp_name==='装配三线'?'#D28EFF':'#66FFFF'}" |
| | | > {{ row.RowNum }} |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="jgdh" |
| | | prop="wo_code" |
| | | label="加工单号" |
| | | width="150" |
| | | width="190" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div |
| | | :style="{color:row.cxmc==='装配一线'?'#ffff00':row.cxmc==='装配二线'?'#FF3333':row.cxmc==='装配三线'?'#FF00FF':'#00FFFF'}" |
| | | > {{ row.jgdh }} |
| | | :style="{color:row.eqp_name==='装配一线'?'#FFFF77':row.eqp_name==='装配二线'?'#FF8888':row.eqp_name==='装配三线'?'#D28EFF':'#66FFFF'}" |
| | | > {{ row.wo_code }} |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="cxmc" |
| | | width="130" |
| | | prop="eqp_name" |
| | | width="100" |
| | | label="产线名称" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div |
| | | :style="{color:row.cxmc==='装配一线'?'#ffff00':row.cxmc==='装配二线'?'#FF3333':row.cxmc==='装配三线'?'#FF00FF':'#00FFFF'}" |
| | | > {{ row.cxmc }} |
| | | :style="{color:row.eqp_name==='装配一线'?'#FFFF77':row.eqp_name==='装配二线'?'#FF8888':row.eqp_name==='装配三线'?'#D28EFF':'#66FFFF'}" |
| | | > {{ row.eqp_name }} |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="cpmc" |
| | | width="150" |
| | | prop="partname" |
| | | width="140" |
| | | label="产品名称" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div |
| | | :style="{color:row.cxmc==='装配一线'?'#ffff00':row.cxmc==='装配二线'?'#FF3333':row.cxmc==='装配三线'?'#FF00FF':'#00FFFF'}" |
| | | > {{ row.cpmc }} |
| | | :style="{color:row.eqp_name==='装配一线'?'#FFFF77':row.eqp_name==='装配二线'?'#FF8888':row.eqp_name==='装配三线'?'#D28EFF':'#66FFFF'}" |
| | | > {{ row.partname }} |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="scsl" |
| | | prop="plan_qty" |
| | | label="生产数量" |
| | | width="100" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div |
| | | :style="{color:row.cxmc==='装配一线'?'#ffff00':row.cxmc==='装配二线'?'#FF3333':row.cxmc==='装配三线'?'#FF00FF':'#00FFFF'}" |
| | | > {{ row.scsl }} |
| | | :style="{color:row.eqp_name==='装配一线'?'#FFFF77':row.eqp_name==='装配二线'?'#FF8888':row.eqp_name==='装配三线'?'#D28EFF':'#66FFFF'}" |
| | | > {{ row.plan_qty }} |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="yjks" |
| | | prop="plan_startdate" |
| | | label="预计开始" |
| | | width="150" |
| | | width="130" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div |
| | | :style="{color:row.cxmc==='装配一线'?'#ffff00':row.cxmc==='装配二线'?'#FF3333':row.cxmc==='装配三线'?'#FF00FF':'#00FFFF'}" |
| | | > {{ row.yjks }} |
| | | v-if="row.plan_startdate" |
| | | :style="{color:row.eqp_name==='装配一线'?'#FFFF77':row.eqp_name==='装配二线'?'#FF8888':row.eqp_name==='装配三线'?'#D28EFF':'#66FFFF'}" |
| | | > {{ row.plan_startdate.substring(0, 11) }} |
| | | </div> |
| | | <div v-else /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="yjwg" |
| | | prop="plan_enddate" |
| | | label="预计完工" |
| | | width="150" |
| | | width="130" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div |
| | | :style="{color:row.cxmc==='装配一线'?'#ffff00':row.cxmc==='装配二线'?'#FF3333':row.cxmc==='装配三线'?'#FF00FF':'#00FFFF'}" |
| | | > {{ row.yjwg }} |
| | | v-if="row.plan_enddate" |
| | | :style="{color:row.eqp_name==='装配一线'?'#FFFF77':row.eqp_name==='装配二线'?'#FF8888':row.eqp_name==='装配三线'?'#D28EFF':'#66FFFF'}" |
| | | > {{ row.plan_enddate.substring(0, 11) }} |
| | | </div> |
| | | <div v-else /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="gx" |
| | | prop="stepname" |
| | | label="工序" |
| | | width="90" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div |
| | | :style="{color:row.cxmc==='装配一线'?'#ffff00':row.cxmc==='装配二线'?'#FF3333':row.cxmc==='装配三线'?'#FF00FF':'#00FFFF'}" |
| | | > {{ row.gx }} |
| | | :style="{color:row.eqp_name==='装配一线'?'#FFFF77':row.eqp_name==='装配二线'?'#FF8888':row.eqp_name==='装配三线'?'#D28EFF':'#66FFFF'}" |
| | | > {{ row.stepname }} |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="scjd" |
| | | prop="scjdxxx" |
| | | label="生产进度" |
| | | width="90" |
| | | width="130" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div |
| | | :style="{color:row.cxmc==='装配一线'?'#ffff00':row.cxmc==='装配二线'?'#FF3333':row.cxmc==='装配三线'?'#FF00FF':'#00FFFF'}" |
| | | > {{ row.scjd }} |
| | | </div> |
| | | <div :id="'progress'+row.RowNum" style="width: 100%;height:30px" /> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | </div> |
| | | <div class="lineContent horn"> |
| | | <el-table |
| | | ref="tableDataLeftTopRef" |
| | | :data="tableDataLeftTop" |
| | | ref="tableDataRightTopRef" |
| | | :data="tableDataRightTop" |
| | | class="tableData" |
| | | style="width: 100%;" |
| | | :header-cell-style="headerCellStyle" |
| | |
| | | height="428" |
| | | > |
| | | <el-table-column |
| | | prop="xsdd" |
| | | prop="saleOrderCode" |
| | | label="销售单号" |
| | | width="141" |
| | | width="165" |
| | | /> |
| | | |
| | | <el-table-column |
| | | prop="cpmc" |
| | | width="133" |
| | | prop="partname" |
| | | width="120" |
| | | label="产品名称" |
| | | /> |
| | | <el-table-column |
| | | prop="sl" |
| | | prop="good_qty" |
| | | label="数量" |
| | | width="100" |
| | | width="80" |
| | | /> |
| | | </el-table> |
| | | </div> |
| | |
| | | </div> |
| | | <div class="lineContent horn"> |
| | | <el-table |
| | | ref="tableDataLeftTopRef" |
| | | :data="tableDataLeftTop" |
| | | ref="tableDataRightBottomRef" |
| | | :data="tableDataRightBottom" |
| | | class="tableData" |
| | | style="width: 100%;" |
| | | :header-cell-style="headerCellStyle" |
| | |
| | | height="428" |
| | | > |
| | | <el-table-column |
| | | prop="xsdd" |
| | | prop="saleOrderCode" |
| | | label="销售单号" |
| | | width="141" |
| | | width="165" |
| | | /> |
| | | |
| | | <el-table-column |
| | | prop="cpmc" |
| | | width="133" |
| | | prop="partname" |
| | | width="120" |
| | | label="产品名称" |
| | | /> |
| | | <el-table-column |
| | | prop="sl" |
| | | prop="good_qty" |
| | | label="数量" |
| | | width="100" |
| | | width="80" |
| | | /> |
| | | </el-table> |
| | | </div> |
| | |
| | | |
| | | <script> |
| | | import './kbCommon.css' |
| | | import { kbTop, loadEcharts } from '@/utils/myEcharts' |
| | | import { kbTop, loadEcharts, progress } from '@/utils/myEcharts' |
| | | import { WkshpContentData, WkshpLineData } from '@/api/dzkb' |
| | | import clearAllChildren from '@/utils/global' |
| | | |
| | | export default { |
| | | name: 'Cjsc', |
| | |
| | | return { |
| | | headTime: '', |
| | | tableDataLeftTop: [], |
| | | tableDataLeftTopTemp: [ |
| | | { xsdd: 'MO-2022111501', cpmc: '产品名称1', sl: '100' }, |
| | | { xsdd: 'MO-2022111502', cpmc: '产品名称2', sl: '100' }, |
| | | { xsdd: 'MO-2022111503', cpmc: '产品名称3', sl: '100' }, |
| | | { xsdd: 'MO-2022111504', cpmc: '产品名称4', sl: '100' }, |
| | | { xsdd: 'MO-2022111505', cpmc: '产品名称5', sl: '100' }, |
| | | { xsdd: 'MO-2022111506', cpmc: '产品名称6', sl: '100' }, |
| | | { xsdd: 'MO-2022111507', cpmc: '产品名称7', sl: '100' }, |
| | | { xsdd: 'MO-2022111508', cpmc: '产品名称8', sl: '100' }, |
| | | { xsdd: 'MO-2022111509', cpmc: '产品名称9', sl: '100' }, |
| | | { xsdd: 'MO-2022111510', cpmc: '产品名称10', sl: '100' }, |
| | | { xsdd: 'MO-2022111511', cpmc: '产品名称11', sl: '100' }, |
| | | { xsdd: 'MO-2022111512', cpmc: '产品名称12', sl: '100' }, |
| | | { xsdd: 'MO-2022111513', cpmc: '产品名称13', sl: '100' }, |
| | | { xsdd: 'MO-2022111514', cpmc: '产品名称14', sl: '100' }, |
| | | { xsdd: 'MO-2022111515', cpmc: '产品名称15', sl: '100' }, |
| | | { xsdd: 'MO-2022111516', cpmc: '产品名称16', sl: '100' }, |
| | | { xsdd: 'MO-2022111517', cpmc: '产品名称17', sl: '100' }, |
| | | { xsdd: 'MO-2022111518', cpmc: '产品名称18', sl: '100' }, |
| | | { xsdd: 'MO-2022111519', cpmc: '产品名称19', sl: '100' }, |
| | | { xsdd: 'MO-2022111520', cpmc: '产品名称20', sl: '100' }, |
| | | { xsdd: 'MO-2022111521', cpmc: '产品名称21', sl: '100' }, |
| | | { xsdd: 'MO-2022111522', cpmc: '产品名称22', sl: '100' }, |
| | | { xsdd: 'MO-2022111523', cpmc: '产品名称23', sl: '100' }, |
| | | { xsdd: 'MO-2022111524', cpmc: '产品名称24', sl: '100' } |
| | | ], |
| | | tableDataLeftTopTemp: [], |
| | | tableDataLeftBottom: [], |
| | | tableDataLeftBottomTemp: [], |
| | | tableDataRightTop: [], |
| | | tableDataRightTopTemp: [], |
| | | tableDataRightBottom: [], |
| | | tableDataRightBottomTemp: [], |
| | | |
| | | tableDataCenterTop: [], |
| | | tableDataCenterTopTemp: [ |
| | | { |
| | | xh: 1, |
| | | jgdh: 'MO-2022-1115-01', |
| | | cxmc: '装配一线', |
| | | cpmc: '产品名称1', |
| | | scsl: '100', |
| | | yjks: '2022-10-01', |
| | | yjwg: '2022-10-10', |
| | | gx: '工序一', |
| | | scjd: '10/20' |
| | | }, |
| | | { |
| | | xh: 2, |
| | | jgdh: 'MO-2022-1115-01', |
| | | cxmc: '装配二线', |
| | | cpmc: '产品名称1', |
| | | scsl: '100', |
| | | yjks: '2022-10-01', |
| | | yjwg: '2022-10-10', |
| | | gx: '工序一', |
| | | scjd: '10/20' |
| | | }, |
| | | { |
| | | xh: 3, |
| | | jgdh: 'MO-2022-1115-01', |
| | | cxmc: '装配三线', |
| | | cpmc: '产品名称1', |
| | | scsl: '100', |
| | | yjks: '2022-10-01', |
| | | yjwg: '2022-10-10', |
| | | gx: '工序一', |
| | | scjd: '10/20' |
| | | }, |
| | | { |
| | | xh: 4, |
| | | jgdh: 'MO-2022-1115-01', |
| | | cxmc: '装配四线', |
| | | cpmc: '产品名称1', |
| | | scsl: '100', |
| | | yjks: '2022-10-01', |
| | | yjwg: '2022-10-10', |
| | | gx: '工序一', |
| | | scjd: '10/20' |
| | | }, |
| | | { |
| | | xh: 5, |
| | | jgdh: 'MO-2022-1115-01', |
| | | cxmc: '装配一线', |
| | | cpmc: '产品名称1', |
| | | scsl: '100', |
| | | yjks: '2022-10-01', |
| | | yjwg: '2022-10-10', |
| | | gx: '工序一', |
| | | scjd: '10/20' |
| | | }, |
| | | { |
| | | xh: 6, |
| | | jgdh: 'MO-2022-1115-01', |
| | | cxmc: '装配一线', |
| | | cpmc: '产品名称1', |
| | | scsl: '100', |
| | | yjks: '2022-10-01', |
| | | yjwg: '2022-10-10', |
| | | gx: '工序一', |
| | | scjd: '10/20' |
| | | }, |
| | | { |
| | | xh: 7, |
| | | jgdh: 'MO-2022-1115-01', |
| | | cxmc: '装配一线', |
| | | cpmc: '产品名称1', |
| | | scsl: '100', |
| | | yjks: '2022-10-01', |
| | | yjwg: '2022-10-10', |
| | | gx: '工序一', |
| | | scjd: '10/20' |
| | | }, |
| | | { |
| | | xh: 8, |
| | | jgdh: 'MO-2022-1115-01', |
| | | cxmc: '装配一线', |
| | | cpmc: '产品名称1', |
| | | scsl: '100', |
| | | yjks: '2022-10-01', |
| | | yjwg: '2022-10-10', |
| | | gx: '工序一', |
| | | scjd: '10/20' |
| | | }, |
| | | { |
| | | xh: 9, |
| | | jgdh: 'MO-2022-1115-01', |
| | | cxmc: '装配二线', |
| | | cpmc: '产品名称1', |
| | | scsl: '100', |
| | | yjks: '2022-10-01', |
| | | yjwg: '2022-10-10', |
| | | gx: '工序一', |
| | | scjd: '10/20' |
| | | }, |
| | | { |
| | | xh: 10, |
| | | jgdh: 'MO-2022-1115-01', |
| | | cxmc: '装配二线', |
| | | cpmc: '产品名称1', |
| | | scsl: '100', |
| | | yjks: '2022-10-01', |
| | | yjwg: '2022-10-10', |
| | | gx: '工序一', |
| | | scjd: '10/20' |
| | | }, |
| | | { |
| | | xh: 11, |
| | | jgdh: 'MO-2022-1115-01', |
| | | cxmc: '装配三线', |
| | | cpmc: '产品名称1', |
| | | scsl: '100', |
| | | yjks: '2022-10-01', |
| | | yjwg: '2022-10-10', |
| | | gx: '工序一', |
| | | scjd: '10/20' |
| | | }, |
| | | { |
| | | xh: 12, |
| | | jgdh: 'MO-2022-1115-01', |
| | | cxmc: '装配三线', |
| | | cpmc: '产品名称1', |
| | | scsl: '100', |
| | | yjks: '2022-10-01', |
| | | yjwg: '2022-10-10', |
| | | gx: '工序一', |
| | | scjd: '10/20' |
| | | }, |
| | | { |
| | | xh: 13, |
| | | jgdh: 'MO-2022-1115-01', |
| | | cxmc: '装配一线', |
| | | cpmc: '产品名称1', |
| | | scsl: '100', |
| | | yjks: '2022-10-01', |
| | | yjwg: '2022-10-10', |
| | | gx: '工序一', |
| | | scjd: '10/20' |
| | | }, |
| | | { |
| | | xh: 14, |
| | | jgdh: 'MO-2022-1115-01', |
| | | cxmc: '装配一线', |
| | | cpmc: '产品名称1', |
| | | scsl: '100', |
| | | yjks: '2022-10-01', |
| | | yjwg: '2022-10-10', |
| | | gx: '工序一', |
| | | scjd: '10/20' |
| | | }, |
| | | { |
| | | xh: 15, |
| | | jgdh: 'MO-2022-1115-01', |
| | | cxmc: '装配一线', |
| | | cpmc: '产品名称1', |
| | | scsl: '100', |
| | | yjks: '2022-10-01', |
| | | yjwg: '2022-10-10', |
| | | gx: '工序一', |
| | | scjd: '10/20' |
| | | }, |
| | | { |
| | | xh: 16, |
| | | jgdh: 'MO-2022-1115-01', |
| | | cxmc: '装配四线', |
| | | cpmc: '产品名称1', |
| | | scsl: '100', |
| | | yjks: '2022-10-01', |
| | | yjwg: '2022-10-10', |
| | | gx: '工序一', |
| | | scjd: '10/20' |
| | | }, |
| | | { |
| | | xh: 17, |
| | | jgdh: 'MO-2022-1115-01', |
| | | cxmc: '装配四线', |
| | | cpmc: '产品名称1', |
| | | scsl: '100', |
| | | yjks: '2022-10-01', |
| | | yjwg: '2022-10-10', |
| | | gx: '工序一', |
| | | scjd: '10/20' |
| | | }, |
| | | { |
| | | xh: 18, |
| | | jgdh: 'MO-2022-1115-01', |
| | | cxmc: '装配四线', |
| | | cpmc: '产品名称1', |
| | | scsl: '100', |
| | | yjks: '2022-10-01', |
| | | yjwg: '2022-10-10', |
| | | gx: '工序一', |
| | | scjd: '10/20' |
| | | }, |
| | | { |
| | | xh: 19, |
| | | jgdh: 'MO-2022-1115-01', |
| | | cxmc: '装配四线', |
| | | cpmc: '产品名称1', |
| | | scsl: '100', |
| | | yjks: '2022-10-01', |
| | | yjwg: '2022-10-10', |
| | | gx: '工序一', |
| | | scjd: '10/20' |
| | | }, |
| | | { |
| | | xh: 20, |
| | | jgdh: 'MO-2022-1115-01', |
| | | cxmc: '装配四线', |
| | | cpmc: '产品名称1', |
| | | scsl: '100', |
| | | yjks: '2022-10-01', |
| | | yjwg: '2022-10-10', |
| | | gx: '工序一', |
| | | scjd: '10/20' |
| | | }, |
| | | { |
| | | xh: 21, |
| | | jgdh: 'MO-2022-1115-01', |
| | | cxmc: '装配四线', |
| | | cpmc: '产品名称1', |
| | | scsl: '100', |
| | | yjks: '2022-10-01', |
| | | yjwg: '2022-10-10', |
| | | gx: '工序一', |
| | | scjd: '10/20' |
| | | }, |
| | | { |
| | | xh: 22, |
| | | jgdh: 'MO-2022-1115-01', |
| | | cxmc: '装配一线', |
| | | cpmc: '产品名称1', |
| | | scsl: '100', |
| | | yjks: '2022-10-01', |
| | | yjwg: '2022-10-10', |
| | | gx: '工序一', |
| | | scjd: '10/20' |
| | | }, |
| | | { |
| | | xh: 23, |
| | | jgdh: 'MO-2022-1115-01', |
| | | cxmc: '装配一线', |
| | | cpmc: '产品名称1', |
| | | scsl: '100', |
| | | yjks: '2022-10-01', |
| | | yjwg: '2022-10-10', |
| | | gx: '工序一', |
| | | scjd: '10/20' |
| | | }, |
| | | { |
| | | xh: 24, |
| | | jgdh: 'MO-2022-1115-01', |
| | | cxmc: '装配三线', |
| | | cpmc: '产品名称1', |
| | | scsl: '100', |
| | | yjks: '2022-10-01', |
| | | yjwg: '2022-10-10', |
| | | gx: '工序一', |
| | | scjd: '10/20' |
| | | }, |
| | | { |
| | | xh: 25, |
| | | jgdh: 'MO-2022-1115-01', |
| | | cxmc: '装配二线', |
| | | cpmc: '产品名称1', |
| | | scsl: '100', |
| | | yjks: '2022-10-01', |
| | | yjwg: '2022-10-10', |
| | | gx: '工序一', |
| | | scjd: '10/20' |
| | | }, |
| | | { |
| | | xh: 26, |
| | | jgdh: 'MO-2022-1115-01', |
| | | cxmc: '装配三线', |
| | | cpmc: '产品名称1', |
| | | scsl: '100', |
| | | yjks: '2022-10-01', |
| | | yjwg: '2022-10-10', |
| | | gx: '工序一', |
| | | scjd: '10/20' |
| | | }, |
| | | { |
| | | xh: 27, |
| | | jgdh: 'MO-2022-1115-01', |
| | | cxmc: '装配四线', |
| | | cpmc: '产品名称1', |
| | | scsl: '100', |
| | | yjks: '2022-10-01', |
| | | yjwg: '2022-10-10', |
| | | gx: '工序一', |
| | | scjd: '10/20' |
| | | } |
| | | ] |
| | | tableDataCenterTopTemp: [] |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | }, |
| | | mounted() { |
| | | this.getTopBar() |
| | | this.getTableDataSetInterval() |
| | | // 边上四个表格数据内容 |
| | | this.getLeftTopTableDataSetInterval() |
| | | this.getLeftBottomTableDataSetInterval() |
| | | this.getRightTopTableDataSetInterval() |
| | | this.getRightBottomTableDataSetInterval() |
| | | |
| | | // 中间表格数据内容 |
| | | this.getCenterTableDataSetInterval() |
| | | }, |
| | | methods: { |
| | | // 中间部分的表格 |
| | | getCenterTableDataSetInterval() { |
| | | let startValue = 0 // 初始值 |
| | | const scale = 23// 刻度 |
| | | const scale = 20// 刻度 |
| | | |
| | | this.tableDataCenterTop = this.tableDataCenterTopTemp.slice(startValue, startValue + scale) |
| | | |
| | | const loop = Math.floor(this.tableDataCenterTopTemp.length / scale)// 需要循环的次数 |
| | | let nowLoop = 0// 当前循环的次数 |
| | | |
| | | setInterval(() => { |
| | | startValue = startValue + scale |
| | | WkshpContentData().then(res => { |
| | | this.tableDataCenterTopTemp = res.data |
| | | this.tableDataCenterTop = this.tableDataCenterTopTemp.slice(startValue, startValue + scale) |
| | | if (nowLoop === loop) { |
| | | this.getCenterTableDataSetInterval() |
| | | } |
| | | |
| | | nowLoop++ |
| | | }, 5000) |
| | | const loop = Math.floor(this.tableDataCenterTopTemp.length / scale)// 需要循环的次数 |
| | | let nowLoop = 0// 当前循环的次数 |
| | | |
| | | const timer = setInterval(() => { |
| | | startValue = startValue + scale |
| | | this.tableDataCenterTop = this.tableDataCenterTopTemp.slice(startValue, startValue + scale) |
| | | if (nowLoop === loop) { |
| | | clearInterval(timer) |
| | | this.getCenterTableDataSetInterval() |
| | | } |
| | | nowLoop++ |
| | | this.$nextTick(() => { |
| | | this.tableDataCenterTop.forEach(i => { |
| | | loadEcharts('progress' + i.RowNum, progress(i.good_qty, i.plan_qty)) |
| | | }) |
| | | }) |
| | | }, 1000 * 10) |
| | | |
| | | this.$nextTick(() => { |
| | | this.tableDataCenterTop.forEach(i => { |
| | | loadEcharts('progress' + i.RowNum, progress(i.good_qty, i.plan_qty)) |
| | | }) |
| | | }) |
| | | }) |
| | | }, |
| | | |
| | | // 定时刷新表格数据 |
| | | getTableDataSetInterval() { |
| | | // 获取左上数据并定时刷新 |
| | | getLeftTopTableDataSetInterval() { |
| | | let startValue = 0 // 初始值 |
| | | const scale = 10// 刻度 |
| | | |
| | | this.tableDataLeftTop = this.tableDataLeftTopTemp.slice(startValue, startValue + scale) |
| | | |
| | | const loop = Math.floor(this.tableDataLeftTopTemp.length / scale)// 需要循环的次数 |
| | | let nowLoop = 0// 当前循环的次数 |
| | | |
| | | setInterval(() => { |
| | | startValue = startValue + scale |
| | | WkshpLineData({ LineCode: '001' }).then(res => { |
| | | this.tableDataLeftTopTemp = res.data |
| | | this.tableDataLeftTop = this.tableDataLeftTopTemp.slice(startValue, startValue + scale) |
| | | if (nowLoop === loop) { |
| | | this.getTableDataSetInterval() |
| | | } |
| | | nowLoop++ |
| | | }, 5000) |
| | | |
| | | const loop = Math.floor(this.tableDataLeftTopTemp.length / scale)// 需要循环的次数 |
| | | let nowLoop = 0// 当前循环的次数 |
| | | |
| | | const timer = setInterval(() => { |
| | | startValue = startValue + scale |
| | | this.tableDataLeftTop = this.tableDataLeftTopTemp.slice(startValue, startValue + scale) |
| | | if (nowLoop === loop) { |
| | | clearInterval(timer) |
| | | this.getLeftTopTableDataSetInterval() |
| | | } |
| | | nowLoop++ |
| | | }, 1000 * 10) |
| | | }) |
| | | }, |
| | | // 获取左下数据并定时刷新 |
| | | getLeftBottomTableDataSetInterval() { |
| | | let startValue = 0 // 初始值 |
| | | const scale = 10// 刻度 |
| | | |
| | | WkshpLineData({ LineCode: '002' }).then(res => { |
| | | this.tableDataLeftBottomTemp = res.data |
| | | this.tableDataLeftBottom = this.tableDataLeftBottomTemp.slice(startValue, startValue + scale) |
| | | |
| | | const loop = Math.floor(this.tableDataLeftBottomTemp.length / scale)// 需要循环的次数 |
| | | let nowLoop = 0// 当前循环的次数 |
| | | |
| | | const timer = setInterval(() => { |
| | | startValue = startValue + scale |
| | | this.tableDataLeftBottom = this.tableDataLeftBottomTemp.slice(startValue, startValue + scale) |
| | | if (nowLoop === loop) { |
| | | clearInterval(timer) |
| | | this.getLeftBottomTableDataSetInterval() |
| | | } |
| | | nowLoop++ |
| | | }, 1000 * 10) |
| | | }) |
| | | }, |
| | | // 获取右上数据并定时刷新 |
| | | getRightTopTableDataSetInterval() { |
| | | let startValue = 0 // 初始值 |
| | | const scale = 10// 刻度 |
| | | |
| | | WkshpLineData({ LineCode: '003' }).then(res => { |
| | | this.tableDataRightTop = this.tableDataRightTopTemp.slice(startValue, startValue + scale) |
| | | |
| | | const loop = Math.floor(this.tableDataRightTopTemp.length / scale)// 需要循环的次数 |
| | | let nowLoop = 0// 当前循环的次数 |
| | | |
| | | const timer = setInterval(() => { |
| | | startValue = startValue + scale |
| | | this.tableDataRightTop = this.tableDataRightTopTemp.slice(startValue, startValue + scale) |
| | | if (nowLoop === loop) { |
| | | clearInterval(timer) |
| | | this.getRightTopTableDataSetInterval() |
| | | } |
| | | nowLoop++ |
| | | }, 1000 * 10) |
| | | }) |
| | | }, |
| | | // 获取右下数据并定时刷新 |
| | | getRightBottomTableDataSetInterval() { |
| | | let startValue = 0 // 初始值 |
| | | const scale = 10// 刻度 |
| | | |
| | | WkshpLineData({ LineCode: '004' }).then(res => { |
| | | this.tableDataRightBottom = this.tableDataRightBottomTemp.slice(startValue, startValue + scale) |
| | | |
| | | const loop = Math.floor(this.tableDataRightBottomTemp.length / scale)// 需要循环的次数 |
| | | let nowLoop = 0// 当前循环的次数 |
| | | |
| | | const timer = setInterval(() => { |
| | | startValue = startValue + scale |
| | | this.tableDataRightBottom = this.tableDataRightBottomTemp.slice(startValue, startValue + scale) |
| | | if (nowLoop === loop) { |
| | | clearInterval(timer) |
| | | this.getRightBottomTableDataSetInterval() |
| | | } |
| | | nowLoop++ |
| | | }, 1000 * 10) |
| | | }) |
| | | }, |
| | | |
| | | // 获取topEcharts |
| | |
| | | padding: '10px 0', |
| | | textAlign: 'center', |
| | | color: '#07acc2', |
| | | border: 'none' |
| | | border: 'none', |
| | | fontSize: '18px' |
| | | } |
| | | }, |
| | | cellStyle() { |
| | |
| | | backgroundColor: '#000', |
| | | // backgroundColor: 'transparent', |
| | | color: '#fff', |
| | | border: 'none' |
| | | border: 'none', |
| | | fontSize: '18px' |
| | | } |
| | | }, |
| | | headerCellStyleCenter() { |
| | |
| | | padding: '10px 0', |
| | | textAlign: 'center', |
| | | color: '#07acc2', |
| | | border: 'none' |
| | | border: 'none', |
| | | fontSize: '18px' |
| | | } |
| | | }, |
| | | cellStyleCenter() { |
| | | return { |
| | | padding: '7.5px 0', |
| | | padding: '7px 0', |
| | | textAlign: 'center', |
| | | backgroundColor: '#000', |
| | | color: '#fff', |
| | | border: 'none' |
| | | border: 'none', |
| | | fontSize: '18px' |
| | | } |
| | | } |
| | | } |
| | |
| | | <style lang="scss" scoped> |
| | | $main_color: #09d8f2; |
| | | $color01: #00FFFF; |
| | | .lineContent { |
| | | height: 435px; |
| | | border: 1px solid $main_color; |
| | | //outline: 1px solid $main_color; |
| | | border-radius: 5px; |
| | | padding: 2px; |
| | | } |
| | | |
| | | .lineContentCenter { |
| | | height: 935px; |
| | | border: 1px solid $main_color; |
| | | //outline: 1px solid $main_color; |
| | | border-radius: 5px; |
| | | padding: 2px; |
| | | } |
| | | |
| | | .horn { |
| | | background: linear-gradient($color01, $color01) left top, |
| | | linear-gradient($color01, $color01) left top, |
| | | linear-gradient($color01, $color01) right top, |
| | | linear-gradient($color01, $color01) right top, |
| | | linear-gradient($color01, $color01) left bottom, |
| | | linear-gradient($color01, $color01) left bottom, |
| | | linear-gradient($color01, $color01) right bottom, |
| | | linear-gradient($color01, $color01) right bottom; |
| | | background-repeat: no-repeat; |
| | | //background-size: 5px 20px, 20px 5px; |
| | | background-size: 2px 20px, 20px 2px; |
| | | } |
| | | |
| | | .tableData { |
| | | background: #000; |
| | | } |
| | | |
| | | //.el-table::before{ |
| | | // height: 0; |
| | | //} |
| | | .el-table::before { |
| | | height: 0; |
| | | } |
| | | |
| | | .el-table__empty-text { |
| | | color: $main_color; |
| | | } |
| | | |
| | | </style> |