Browse Source

2022-05-31 派工单颜色显示

master
rui_li 4 years ago
parent
commit
b5c4d8df65
  1. 34
      src/views/modules/schedule/order_schedule.vue

34
src/views/modules/schedule/order_schedule.vue

@ -1,7 +1,7 @@
<template> <template>
<div class="customer-css" > <div class="customer-css" >
<!-- 菜单按钮区域 --> <!-- 菜单按钮区域 -->
<fieldset class="customer-field" style="width: 612px; padding: 0.35em 0.35em 0.35em;" >
<fieldset class="customer-field" style="margin-top: -3px; width: 612px; padding: 0.35em 0.35em 0.35em;" >
<legend>菜单</legend> <legend>菜单</legend>
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: -5px;" > <el-form :inline="true" label-position="top" label-width="100px" style="margin-top: -5px;" >
<el-form-item :label="''" style="margin-left: 30px;"> <el-form-item :label="''" style="margin-left: 30px;">
@ -16,7 +16,7 @@
</el-form> </el-form>
</fieldset> </fieldset>
<!-- 排序规则 --> <!-- 排序规则 -->
<fieldset class="customer-field" style="margin-left: 640px; margin-top: -45px; width: 135px;" >
<fieldset class="customer-field" style="margin-left: 640px; margin-top: -41px; width: 135px;" >
<legend>排序</legend><br> <legend>排序</legend><br>
<el-form :inline="true" style="margin-top: -10px; margin-bottom: 10px;" label-position="top" label-width="100px" > <el-form :inline="true" style="margin-top: -10px; margin-bottom: 10px;" label-position="top" label-width="100px" >
<el-form-item :label="''" style="margin-bottom: 10px;"> <el-form-item :label="''" style="margin-bottom: 10px;">
@ -29,7 +29,7 @@
</el-form> </el-form>
</fieldset> </fieldset>
<!-- 查询时间和产品 --> <!-- 查询时间和产品 -->
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: -25px;" >
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: -32px;" >
<el-form-item :label="'录入日期:'"> <el-form-item :label="'录入日期:'">
<el-date-picker class="el-time-width" <el-date-picker class="el-time-width"
style="" style=""
@ -68,7 +68,7 @@
<fieldset class="customer-field" style="margin-top: 0px; width: 612px; padding: 0.125em;" > <fieldset class="customer-field" style="margin-top: 0px; width: 612px; padding: 0.125em;" >
<legend>排产信息</legend> <legend>排产信息</legend>
<!-- 排产日期 --> <!-- 排产日期 -->
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 5px;">
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: -5px;">
<el-form-item :label="'排产日期:'"> <el-form-item :label="'排产日期:'">
<el-date-picker class="el-time-width" <el-date-picker class="el-time-width"
style="" style=""
@ -90,7 +90,7 @@
<el-checkbox style="margin-top: 28px;" label="仅查看前道工序已排产的工序" name="type"></el-checkbox> <el-checkbox style="margin-top: 28px;" label="仅查看前道工序已排产的工序" name="type"></el-checkbox>
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 10px;">
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 5px;">
<el-form-item :label="'工厂编号:'"> <el-form-item :label="'工厂编号:'">
<el-input v-model="pageData.site" style="width: 85px"></el-input> <el-input v-model="pageData.site" style="width: 85px"></el-input>
</el-form-item> </el-form-item>
@ -134,9 +134,9 @@
</fieldset > </fieldset >
<!-- 机台班次信息 --> <!-- 机台班次信息 -->
<el-main style="margin-left: 770px; margin-top: -235px; width: 452px;">
<el-main style="margin-left: 770px; margin-top: -215px; width: 452px;">
<el-table <el-table
height="215"
height="192"
:data="resourceShiftList" :data="resourceShiftList"
border border
v-loading="dataListLoading" v-loading="dataListLoading"
@ -195,7 +195,7 @@
</el-dropdown> </el-dropdown>
</el-form> </el-form>
<el-table <el-table
:height="height"
:height="height - 50"
:data="shopOrderList" :data="shopOrderList"
border border
ref="routingTable" ref="routingTable"
@ -252,12 +252,13 @@
</el-dropdown> </el-dropdown>
</el-form> </el-form>
<el-table <el-table
:height="height"
:height="height + 50"
:data="orderScheduleList" :data="orderScheduleList"
border border
highlight-current-row highlight-current-row
ref="scheduleTable" ref="scheduleTable"
:row-class-name="scheduleRowClassName" :row-class-name="scheduleRowClassName"
:row-style="controlRowStyle"
@row-click="setCurrentSchedulingRow" @row-click="setCurrentSchedulingRow"
@current-change="currentSchedulingRow" @current-change="currentSchedulingRow"
@row-dblclick="warnCancelScheduleConfirm" @row-dblclick="warnCancelScheduleConfirm"
@ -1862,7 +1863,7 @@ export default {
mounted() { mounted() {
this.$nextTick(() => { this.$nextTick(() => {
this.height = (window.innerHeight - 360) / 2;
this.height = (window.innerHeight - 340) / 2;
}) })
}, },
methods: { methods: {
@ -2586,6 +2587,19 @@ export default {
this.getShopOrderList(); this.getShopOrderList();
}, },
/*控制单行的背景颜色*/
controlRowStyle({row, rowIndex}){
let colorStyle = row.colorStyle;
//
if(colorStyle == 'firstColor'){
return "background-color: #FF00FF";
}else if(colorStyle == 'secondColor'){
return "background-color: #0000CD";
}else if(colorStyle == 'thirdColor'){
return "background-color: #FFD700";
}
},
}, },
created() { created() {

Loading…
Cancel
Save