|
|
|
@ -110,18 +110,18 @@ |
|
|
|
style="width: 100px; height: 80px"/></span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<!-- <el-table-column |
|
|
|
<el-table-column |
|
|
|
fixed="left" |
|
|
|
header-align="center" |
|
|
|
align="center" |
|
|
|
width="150" |
|
|
|
:label=labels.rollListOperation> |
|
|
|
label='操作'> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<!– <a class="customer-a" v-if="operatorData.operatorName != ''" |
|
|
|
@click="printSfdcFlowLabel(scope.row)" |
|
|
|
>{{ labels.rollListPrint }}</a>–> |
|
|
|
<a class="customer-a" v-if="scope.row.statusCode === 0" |
|
|
|
@click="deleteFinalRollConfirm(scope.row)" |
|
|
|
>删除</a> |
|
|
|
</template> |
|
|
|
</el-table-column>--> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</el-tab-pane> |
|
|
|
</el-tabs> |
|
|
|
@ -130,12 +130,12 @@ |
|
|
|
</el-dialog> |
|
|
|
<!-- 扫描材料的组件 --> |
|
|
|
<comScanMaterial :close-on-click-modal="false" ref="comScanMaterial" |
|
|
|
@refreshPageData="refreshPageData"> |
|
|
|
@refreshCurrentTabTable="refreshCurrentTabTable"> |
|
|
|
</comScanMaterial> |
|
|
|
|
|
|
|
<!-- 创建分卷的操作 --> |
|
|
|
<comSeparateRoll :close-on-click-modal="false" ref="comSeparateRoll" |
|
|
|
@refreshPageData="refreshPageData"> |
|
|
|
@refreshCurrentTabTable="refreshCurrentTabTable"> |
|
|
|
</comSeparateRoll> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
@ -146,6 +146,7 @@ import { |
|
|
|
getCurrentRollOpsBySeqNo, |
|
|
|
getSfdcRollOpsByCon, |
|
|
|
getSoFinalRollsByCon, |
|
|
|
deleteSoFinalRoll, |
|
|
|
} from "@/api/scheduleReport/com_die_cutting_report.js"; |
|
|
|
/*打印标签专用的js*/ |
|
|
|
import { |
|
|
|
@ -968,7 +969,7 @@ export default { |
|
|
|
//设置table页签 |
|
|
|
//this.activeTable = 'sfdc_rollOps'; |
|
|
|
//刷新当前页签的table的内容 |
|
|
|
await this.refreshCurrentTabTable(); |
|
|
|
await this.refreshCurrentTabTable(false); |
|
|
|
}, |
|
|
|
|
|
|
|
//设置当前的夏季卷 |
|
|
|
@ -1023,7 +1024,7 @@ export default { |
|
|
|
//列表表格选择替换 |
|
|
|
tabClick(tab, event) { |
|
|
|
//刷新列表数据 |
|
|
|
this.refreshCurrentTabTable(); |
|
|
|
this.refreshCurrentTabTable(false); |
|
|
|
}, |
|
|
|
|
|
|
|
//刷新派工单 的下机卷的记录 |
|
|
|
@ -1040,7 +1041,7 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
//刷新页签的table数据 |
|
|
|
async refreshCurrentTabTable() { |
|
|
|
async refreshCurrentTabTable(tableMark) { |
|
|
|
//设置查询的数据 |
|
|
|
this.searchData = JSON.parse(JSON.stringify(this.scheduleData)); |
|
|
|
//判断是否按照当前卷来查询 |
|
|
|
@ -1050,6 +1051,10 @@ export default { |
|
|
|
} else { |
|
|
|
this.searchData.rollNo = ''; |
|
|
|
} |
|
|
|
//判断是否是跳转回来组件使用的 |
|
|
|
if(tableMark){ |
|
|
|
this.activeTable = tableMark; |
|
|
|
} |
|
|
|
|
|
|
|
//区分不同的页签刷新不同的列表数据 |
|
|
|
if (this.activeTable == 'sfdc_material') { |
|
|
|
@ -1061,14 +1066,23 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
/*结束卷操作*/ |
|
|
|
finishRollModal() { |
|
|
|
//1.首先调用菜单判断方式 看看是否可以结束卷 |
|
|
|
//checkProduceButton('finishRollFlag'); |
|
|
|
//打开结束卷的页面 |
|
|
|
this.$nextTick(() => { |
|
|
|
this.showFinishFlag = true; |
|
|
|
this.$refs.comFinishRoll.init(this.scheduleData) |
|
|
|
/*确认删除操作*/ |
|
|
|
deleteFinalRollConfirm(finalRow) { |
|
|
|
this.$confirm('确认删除成品卷:'+finalRow.finalRollNo, '提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
}).then(() => { |
|
|
|
//执行删除的操作 |
|
|
|
deleteSoFinalRoll(finalRow).then(({data}) => { |
|
|
|
//如果成功刷新表格 |
|
|
|
if(data.code == 200) { |
|
|
|
this.$message.success(data.msg); |
|
|
|
this.refreshCurrentTabTable(false); |
|
|
|
}else { |
|
|
|
this.$message.error(data.msg); |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
|