|
|
|
@ -2797,13 +2797,19 @@ export default { |
|
|
|
}); |
|
|
|
}, |
|
|
|
// 获取当前卷的信息 |
|
|
|
getCurrentRollOpsBySeqNoFun() { |
|
|
|
getCurrentRollOpsBySeqNo(this.currentRollOps).then(({data}) => { |
|
|
|
async getCurrentRollOpsBySeqNoFun() { |
|
|
|
await getCurrentRollOpsBySeqNo(this.currentRollOps).then(({data}) => { |
|
|
|
if(data.code === 200){ |
|
|
|
this.currentRollOps.rollNo = data.row.rollNo; |
|
|
|
this.scheduleData.rollNo = data.row.rollNo; |
|
|
|
this.currentRollOps.finishedFlag = data.row.finishedFlag; |
|
|
|
}else{ |
|
|
|
this.currentRollOps.rollNo = ''; |
|
|
|
this.scheduleData.rollNo = ''; |
|
|
|
} |
|
|
|
//设置查询的数据 |
|
|
|
this.searchData = JSON.parse(JSON.stringify(this.scheduleData)); |
|
|
|
console.log(123) |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
@ -2814,8 +2820,8 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
//刷新派工单的时间的记录 |
|
|
|
getSfdcTimeList() { |
|
|
|
getSfdcTimeByCon(this.searchData).then(({data}) => { |
|
|
|
async getSfdcTimeList() { |
|
|
|
await getSfdcTimeByCon(this.searchData).then(({data}) => { |
|
|
|
this.sfdcTimeList = data.rows; |
|
|
|
}); |
|
|
|
}, |
|
|
|
@ -2870,7 +2876,10 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
//刷新页签的table数据 |
|
|
|
refreshCurrentTabTable() { |
|
|
|
async refreshCurrentTabTable() { |
|
|
|
console.log(456) |
|
|
|
//设置查询的数据 |
|
|
|
this.searchData = JSON.parse(JSON.stringify(this.scheduleData)); |
|
|
|
//判断是否按照当前卷来查询 |
|
|
|
if (this.scheduleData.currentRollFlag) { |
|
|
|
//设置相关的卷号 判断是否存在卷 |
|
|
|
@ -2878,9 +2887,11 @@ export default { |
|
|
|
} else { |
|
|
|
this.searchData.rollNo = ''; |
|
|
|
} |
|
|
|
|
|
|
|
console.log(this.scheduleData,this.searchData) |
|
|
|
//区分不同的页签刷新不同的列表数据 |
|
|
|
if (this.activeTable == 'sfdc_time') { |
|
|
|
this.getSfdcTimeList(); |
|
|
|
await this.getSfdcTimeList(); |
|
|
|
} else if (this.activeTable == 'sfdc_tool') { |
|
|
|
this.getOrderToolList(); |
|
|
|
this.getSfdcToolList(); |
|
|
|
@ -2905,8 +2916,9 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
//刷新页面的数据 |
|
|
|
refreshPageData() { |
|
|
|
getScheduleDataBySeqNo(this.scheduleData.seqNo).then(({data}) => { |
|
|
|
async refreshPageData() { |
|
|
|
await getScheduleDataBySeqNo(this.scheduleData.seqNo).then(({data}) => { |
|
|
|
console.log(12) |
|
|
|
this.scheduleData.seqNo = data.row.seqNo; |
|
|
|
this.scheduleData.orderNo = data.row.orderNo; |
|
|
|
this.scheduleData.itemNo = data.row.itemNo; |
|
|
|
@ -2926,24 +2938,22 @@ export default { |
|
|
|
//设置弹窗的标题 |
|
|
|
this.titleCon = '机台工作台' + ' - ' + data.row.workCenterDesc + ' ' |
|
|
|
+ data.row.resourceDesc + ' (' + this.operatorData.operatorName + ')'; |
|
|
|
}).then(() => { |
|
|
|
//打开模态框 |
|
|
|
this.visibleFlag = true; |
|
|
|
}) |
|
|
|
//刷新页面的卷信息 |
|
|
|
this.getCurrentRollOpsBySeqNoFun(); |
|
|
|
}).then(() => { |
|
|
|
await this.getCurrentRollOpsBySeqNoFun(); |
|
|
|
|
|
|
|
//设置table页签 |
|
|
|
this.activeTable = 'sfdc_time'; |
|
|
|
//刷新当前页签的table的内容 |
|
|
|
this.refreshCurrentTabTable(); |
|
|
|
}).then(() => { |
|
|
|
await this.refreshCurrentTabTable(); |
|
|
|
|
|
|
|
//刷新当前的菜单 |
|
|
|
this.refreshPageButtons(); |
|
|
|
}); |
|
|
|
await this.refreshPageButtons(); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
//刷新当前页面的菜单 |
|
|
|
refreshPageButtons() { |
|
|
|
async refreshPageButtons() { |
|
|
|
//判断是否存在人员 |
|
|
|
if (this.operatorData.operatorId == null || this.operatorData.operatorId == '') { |
|
|
|
this.buttonTags.createNewRollFlag = true; |
|
|
|
@ -2960,7 +2970,7 @@ export default { |
|
|
|
//存在人员既可以合并卷 |
|
|
|
this.buttonTags.mergeRollFlag = false; |
|
|
|
//刷新其他的菜单 |
|
|
|
refreshWorkPlatformButtons(this.scheduleData).then(({data}) => { |
|
|
|
await refreshWorkPlatformButtons(this.scheduleData).then(({data}) => { |
|
|
|
if (data.resultMap.createNewRollFlag == 'Y') { |
|
|
|
this.buttonTags.createNewRollFlag = false; |
|
|
|
} else { |
|
|
|
|