代码更新

This commit is contained in:
2022-10-08 18:19:27 +08:00
parent 48f1ce8b01
commit d86c4dc1b2

View File

@@ -81,7 +81,7 @@
>
导出
</el-button>
<!-- <el-button
<el-button
slot="right"
class="filter-item"
type="warning"
@@ -91,7 +91,7 @@
@click="printRepair"
>
打印
</el-button>-->
</el-button>
</crudOperation>
<!--表格渲染-->
<el-table ref="table" v-loading="crud.loading" :data="crud.data" size="mini" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
@@ -298,6 +298,15 @@ export default {
crud.downloadLoading = false
})
}
},
printRepair() {
const _selectData = this.$refs.table.selection
const data = _selectData[0]
download('api/devicerepairmst/createExcel', { 'repair_id': data.repair_id }).then(result => {
const name = data.repair_code + '派工单'
this.crud.toQuery()
downloadFile(result, name, 'xlsx')
})
}
}
}