Browse Source

排产页面的BUG 和 列表的功能

master
Rui_Li 4 years ago
parent
commit
7ce4ebb32d
  1. 74
      src/views/modules/schedule/order_schedule.vue

74
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%;">
<el-table-column
@ -197,6 +199,8 @@
height="135"
:data="orderScheduleList"
border
highlight-current-row
@row-click="setCurrentSchedulingRow"
v-loading="dataListLoading"
style="margin-top: -20px; width: 100%;">
<el-table-column
@ -237,6 +241,8 @@ export default {
tagNo: '',
modelFlag: false,
modelInputFlag: true,
currentRoutingRow: {},
currentSchedlingRow: {},
selectList: [],
searchData: {
site: this.$store.state.user.site,
@ -1730,8 +1736,11 @@ export default {
},
/*开始排产的操作*/
startScheduleOperation(row, $event){
this.$message.error('字段time_required找不到!');
startScheduleOperation(row, $event, column){
row.qtyScheduled = 1;
//
//this.shopOrderList = JSON.parse(JSON.stringify(this.shopOrderList));
//this.$message.error('time_required!');
},
/*列表方法的回调*/
@ -1745,6 +1754,20 @@ export default {
}
},
//
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)
})
},
/*获取当前的机台对应的加工中心*/
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;
}
/*控制上下间距*/
</style>
Loading…
Cancel
Save