|
|
|
@ -80,10 +80,11 @@ |
|
|
|
<el-table-column |
|
|
|
header-align="center" |
|
|
|
align="center" |
|
|
|
width="70" |
|
|
|
width="120" |
|
|
|
label="操作"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<a type="text" size="small" @click="deleteRoll(scope.row)">删除卷</a> |
|
|
|
<a type="text" size="small" @click="printRollLabel(scope.row)">打印卷标签</a> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
@ -132,7 +133,12 @@ |
|
|
|
saveSuppRollNo, |
|
|
|
doSaveSuppRollNo, |
|
|
|
deleteRoll, |
|
|
|
getPrintCRollInfo,/*2022-04-26 LR 打印卷标签请求*/ |
|
|
|
} from "@/api/purchasingManagement/materialSplit.js" |
|
|
|
/*打印标签专用的js*/ |
|
|
|
import { |
|
|
|
printMaterialLabel, |
|
|
|
} from "@/views/modules/yieldReport/print_roll_label.js" |
|
|
|
|
|
|
|
export default { |
|
|
|
//查询-订单卷信息 |
|
|
|
@ -831,6 +837,18 @@ |
|
|
|
return s |
|
|
|
}, |
|
|
|
// 导出 end |
|
|
|
|
|
|
|
/*打印卷标签*/ |
|
|
|
printRollLabel(currentRow){ |
|
|
|
/*组装打印需要的数据*/ |
|
|
|
let requestData = {site: currentRow.site, rollNo: currentRow.rollNo}; |
|
|
|
getPrintCRollInfo(requestData).then(({data}) => { |
|
|
|
//打印材料卷标签 |
|
|
|
let printList = data.rows; |
|
|
|
printMaterialLabel(printList); |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
created() { |
|
|
|
|
|
|
|
|