|
@@ -64,7 +64,13 @@
|
|
|
>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
- <el-table v-loading="loading" :data="tableList">
|
|
|
+ <el-button type="primary" size="mini" @click="handlePrint">订单打印</el-button>
|
|
|
+ <el-table
|
|
|
+ v-loading="loading"
|
|
|
+ :data="tableList"
|
|
|
+ @selection-change="handleSelectionChange"
|
|
|
+ >
|
|
|
+ <el-table-column type="selection" width="55"> </el-table-column>
|
|
|
<el-table-column
|
|
|
label="订单编号"
|
|
|
align="center"
|
|
@@ -750,6 +756,15 @@ export default {
|
|
|
this.printSelect();
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 表格多选
|
|
|
+ handleSelectionChange(val) {
|
|
|
+ console.log(val);
|
|
|
+ this.print.id = val.toString();
|
|
|
+ },
|
|
|
+ handlePrint() {
|
|
|
+ this.printSubmit(); //多选唤醒订单打印
|
|
|
+ },
|
|
|
+
|
|
|
printSelect() {
|
|
|
printerList({ page: 1, size: 999 }).then((res) => {
|
|
|
if (res.code == 200) {
|