| | |
| | | <div>{{currentProductionInfo.productionName}}</div> |
| | | </div> |
| | | |
| | | <div class="load-more"> |
| | | <div @click="modalVisible=true">点击查看更多>></div> |
| | | </div> |
| | | |
| | | <table class="plan-table"> |
| | | <thead> |
| | | <tr style="position: relative"> |
| | |
| | | |
| | | <tbody> |
| | | <tr v-for="(item,index) in todayProductionPlanList" :key="index"> |
| | | <td colspan="2">{{item.equipmentId}}</td> |
| | | <td colspan="2">{{item.equipmentName}}</td> |
| | | <a-tooltip :destroyTooltipOnHide="true" placement="topRight" @mouseenter="mouseEnterItem"> |
| | | <template slot="title"> |
| | | <span style="font-size: 1vw">{{item.productNo}}</span> |
| | | </template> |
| | | <td colspan="2">{{item.productNo}}</td> |
| | | </a-tooltip> |
| | | <td colspan="2">{{item.productName}}</td> |
| | | <td>{{item.planCount}}</td> |
| | | <td>{{item.completionCount}}</td> |
| | | <td>{{item.qualifiedCount}}</td> |
| | | <td>{{item.passRate+'%'}}</td> |
| | | <td colspan="2">{{item.processRoute}}</td> |
| | | <td colspan="2">{{item.orderId}}</td> |
| | | <td>{{item.clazz}}</td> |
| | | <template v-if="index<3"> |
| | | <td colspan="2">{{item.equipmentId}}</td> |
| | | <td colspan="2">{{item.equipmentName}}</td> |
| | | <a-tooltip :destroyTooltipOnHide="true" placement="topRight" @mouseenter="mouseEnterItem"> |
| | | <template slot="title"> |
| | | <span style="font-size: 1vw">{{item.productNo}}</span> |
| | | </template> |
| | | <td colspan="2">{{item.productNo}}</td> |
| | | </a-tooltip> |
| | | <td colspan="2">{{item.productName}}</td> |
| | | <td>{{item.planCount}}</td> |
| | | <td>{{item.completionCount}}</td> |
| | | <td>{{item.qualifiedCount}}</td> |
| | | <td>{{item.passRate+'%'}}</td> |
| | | <td colspan="2">{{item.processRoute}}</td> |
| | | <td colspan="2">{{item.orderId}}</td> |
| | | <td>{{item.clazz}}</td> |
| | | </template> |
| | | </tr> |
| | | </tbody> |
| | | </table> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <SignageModal :todayProductionPlanList="todayProductionPlanList" :modalVisible="modalVisible" |
| | | @closeModal="modalVisible=false"/> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import moment from 'moment' |
| | | import api from '@/api/mdc' |
| | | import SignageModal from './modules/SubControlWorkshopSignage/SignageModal' |
| | | |
| | | export default { |
| | | name: 'SubControlWorkshopSignage', |
| | | components: {}, |
| | | components: { SignageModal }, |
| | | data() { |
| | | return { |
| | | currentProductionInfo: { |
| | |
| | | brandList: [], |
| | | lifeList: [] |
| | | }, |
| | | maxBrandToolLifeListLength: null |
| | | maxBrandToolLifeListLength: null, |
| | | modalVisible: false |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | if (res.success) this.todayProductionPlanList = res.result |
| | | }) |
| | | }, |
| | | |
| | | clickToLoadMore() { |
| | | |
| | | }, |
| | | |
| | | getEquipmentStatusByApi() { |
| | | api.getEquipmentStatusApi(this.currentProductionInfo.productionId) |
| | | .then(res => { |
| | | if (res.success) this.equipmentStatusList = res.result |
| | | }) |
| | | }, |
| | | |
| | | getToolLifeListByApi() { |
| | | api.getToolLifeListApi(this.currentProductionInfo.productionId) |
| | | .then(res => { |
| | |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | getToolCurrentLifeDataBgColor(record) { |
| | | if (record.currentLife / record.ratedLife > 0.8) { |
| | | return '#FF9A10' |
| | |
| | | font-size: 2.5vw; |
| | | } |
| | | |
| | | .load-more { |
| | | display: flex; |
| | | justify-content: flex-end; |
| | | -webkit-justify-content: flex-end; |
| | | font-size: 1vw; |
| | | |
| | | div { |
| | | background-color: #83BF31; |
| | | margin: 0 0.5% 0.5% 0; |
| | | padding: 0 0.3%; |
| | | cursor: pointer; |
| | | } |
| | | } |
| | | |
| | | table { |
| | | td { |
| | | border: 0.1vw solid #fff; |