From 7ce4ebb32d7de71d97d8528951a33cb4d41ef3a7 Mon Sep 17 00:00:00 2001 From: Rui_Li <877258667@qq.com> Date: Mon, 28 Feb 2022 18:46:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=92=E4=BA=A7=E9=A1=B5=E9=9D=A2=E7=9A=84BU?= =?UTF-8?q?G=20=E5=92=8C=20=E5=88=97=E8=A1=A8=E7=9A=84=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/schedule/order_schedule.vue | 74 +++++++++++++++---- 1 file changed, 59 insertions(+), 15 deletions(-) diff --git a/src/views/modules/schedule/order_schedule.vue b/src/views/modules/schedule/order_schedule.vue index ff9b038..1e9b3a9 100644 --- a/src/views/modules/schedule/order_schedule.vue +++ b/src/views/modules/schedule/order_schedule.vue @@ -166,7 +166,9 @@ height="120" :data="shopOrderList" border - @row-dblclick="startScheduleOperation(row, $event)" + @row-click="setCurrentRoutingRow" + :row-class-name="routingRowClassName" + @row-dblclick="startScheduleOperation" v-loading="dataListLoading" style="margin-top: -20px; width: 100%;"> { + let strVal = ""; + if (val === 88){ + strVal = this.searchData.resourceId; + }else if(val === 24){ + strVal = this.searchData.workCenterNo; + } + this.$refs.baseList.init(val,strVal) + }) + }, + /*获取当前的机台对应的加工中心*/ getCurrentWorkCenterNoByResourceId(){ getCurrentWorkCenterNoByResourceId(this.searchData).then(({data}) => { @@ -1758,20 +1781,23 @@ export default { }); }, + /*设置当前行的下标*/ + routingRowClassName({row, rowIndex}){ + row.index = rowIndex; + //判断当前行颜色参数 + if(row.qtyScheduled > 0){ + return 'customer-row-gray'; + } + }, + /*设置工艺的行*/ + setCurrentRoutingRow(row, column, event) { + this.currentRoutingRow = JSON.parse(JSON.stringify(row)); + }, - // 获取基础数据列表 - getBaseList(val){ - this.tagNo = val - this.$nextTick(() => { - let strVal = ""; - if (val === 88){ - strVal = this.searchData.resourceId; - }else if(val === 24){ - strVal = this.searchData.workCenterNo; - } - this.$refs.baseList.init(val,strVal) - }) + /*设置派工单的行*/ + setCurrentSchedulingRow(row, column, event) { + this.currentSchedlingRow = JSON.parse(JSON.stringify(row)); }, }, created() { @@ -1855,5 +1881,23 @@ div.customer-el-card-blue { padding: 5px 5px; } +/*灰色的表格行背景颜色*/ +.customer-css /deep/ tr.customer-row-gray{ + background: #7e819e; +} + +/*去掉悬浮的样式*/ +.customer-css /deep/ tr:hover > td{ + background-color: transparent !important; +} + +.customer-css /deep/ tr.hover-row.current-row > td{ + background-color: transparent !important; +} + +.customer-css /deep/ tr.hover-row > td{ + background-color: transparent !important; +} + /*控制上下间距*/