| | |
| | | </div> |
| | | <div class="content02Parent"> |
| | | <div class="content02"> |
| | | <div class="content02_1 ">任务</div> |
| | | <div class="content02_2 borderTop ">{{ parseFloat(it.planqty) }}</div> |
| | | <div class="content02_1 ">开工</div> |
| | | <div class="content02_2 borderTop ">{{ parseFloat(it.startqty) }}</div> |
| | | </div> |
| | | <div class="content02"> |
| | | <div class="content02_1 ">合格</div> |
| | |
| | | <el-table-column |
| | | prop="saleOrderCode" |
| | | label="销售订单号" |
| | | width="170" |
| | | width="160" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div v-if="row.saleOrderCode">{{ row.saleOrderCode }}</div> |
| | |
| | | <el-table-column |
| | | prop="wo_code" |
| | | label="加工单号" |
| | | width="190" |
| | | width="200" |
| | | /> |
| | | <el-table-column |
| | | prop="partname" |
| | |
| | | label="序号" |
| | | width="60" |
| | | /> |
| | | <el-table-column |
| | | prop="linename" |
| | | width="125" |
| | | label="产线" |
| | | /> |
| | | <!-- <el-table-column--> |
| | | <!-- prop="linename"--> |
| | | <!-- width="125"--> |
| | | <!-- label="产线"--> |
| | | <!-- />--> |
| | | <el-table-column |
| | | prop="partname" |
| | | width="160" |
| | | width="260" |
| | | label="产品" |
| | | > |
| | | <template slot-scope="{row}"> |
| | |
| | | <el-table-column |
| | | prop="good_qty" |
| | | label="数量" |
| | | width="90" |
| | | width="115" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div>{{ parseFloat(row.good_qty) }}</div> |
| | |
| | | { code: '205', name: '包装车间' }, |
| | | { code: '204', name: '喷涂车间' }, |
| | | { code: '203', name: '抛光车间' }, |
| | | // { code: '001', name: '压铸车间' } |
| | | { code: '201', name: '压铸车间' } |
| | | ], |
| | | title: '车间综合' |
| | |
| | | // 两小时看板刷新一次 |
| | | setInterval(() => { |
| | | window.location.reload() |
| | | }, 1000 * 60 * 60 * 10) |
| | | }, 1000 * 60 * 120) |
| | | }, |
| | | mounted() { |
| | | // 监听网络是否在线 |
| | |
| | | getLineSearchTopRightData() { |
| | | LineSearchTopRightData({ shopcode: this.ShopArr.join(',') }).then(res => { |
| | | this.tableDataRightTop = res.data |
| | | const divData = this.$refs.tableDataRightTopRef.bodyWrapper |
| | | |
| | | const temp = setInterval(() => { |
| | | divData.scrollTop += 1 |
| | | |
| | | if (divData.clientHeight + divData.scrollTop === divData.scrollHeight) { |
| | | divData.scrollTop = 0 |
| | | LineSearchTopRightData({ shopcode: this.ShopArr.join(',') }).then(res => { |
| | | this.tableDataRightTop = res.data |
| | | |
| | | if (this.tableDataRightTop.length > 10) { |
| | | clearInterval(temp) |
| | | this.getLineSearchTopRightData() |
| | | } |
| | | }) |
| | | } |
| | | }, this.tableDataRightTop.length <= 10 ? 1000 * 15 : 300) |
| | | // const divData = this.$refs.tableDataRightTopRef.bodyWrapper |
| | | // |
| | | // const temp = setInterval(() => { |
| | | // divData.scrollTop += 1 |
| | | // |
| | | // if (divData.clientHeight + divData.scrollTop === divData.scrollHeight) { |
| | | // divData.scrollTop = 0 |
| | | // LineSearchTopRightData({ shopcode: this.ShopArr.join(',') }).then(res => { |
| | | // this.tableDataRightTop = res.data |
| | | // |
| | | // if (this.tableDataRightTop.length > 9) { |
| | | // clearInterval(temp) |
| | | // this.getLineSearchTopRightData() |
| | | // } |
| | | // }) |
| | | // } |
| | | // }, this.tableDataRightTop.length <= 9 ? 1000 * 15 : 300) |
| | | }) |
| | | |
| | | // let startValue = 0 // 初始值 |
| | |
| | | LineSearchBottomLeftData({ shopcode: this.ShopArr.join(',') }).then(res => { |
| | | this.tableDataLeftBottom = res.data |
| | | |
| | | if (this.tableDataLeftBottom.length > 10) { |
| | | if (this.tableDataLeftBottom.length > 9) { |
| | | clearInterval(this.TableDataRollTask) |
| | | this.getLeftBottomData() |
| | | } |
| | | }) |
| | | } |
| | | }, this.tableDataLeftBottom.length <= 10 ? 1000 * 15 : 200) |
| | | }, this.tableDataLeftBottom.length <= 9 ? 1000 * 15 : 200) |
| | | }) |
| | | |
| | | // let startValue = 0 // 初始值 |
| | |
| | | .content01 { |
| | | height: 30px; |
| | | width: 100%; |
| | | border-bottom: 1px solid $main_color; |
| | | //border-bottom: 1px solid $main_color; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | |
| | | |
| | | .content02Parent { |
| | | display: flex; |
| | | |
| | | border-top: 1px solid $main_color; |
| | | .content02 { |
| | | width: 60px; |
| | | border-right: 1px solid $main_color; |