代码更新
This commit is contained in:
@@ -81,7 +81,7 @@
|
|||||||
>
|
>
|
||||||
导出
|
导出
|
||||||
</el-button>
|
</el-button>
|
||||||
<!-- <el-button
|
<el-button
|
||||||
slot="right"
|
slot="right"
|
||||||
class="filter-item"
|
class="filter-item"
|
||||||
type="warning"
|
type="warning"
|
||||||
@@ -91,7 +91,7 @@
|
|||||||
@click="printRepair"
|
@click="printRepair"
|
||||||
>
|
>
|
||||||
打印
|
打印
|
||||||
</el-button>-->
|
</el-button>
|
||||||
</crudOperation>
|
</crudOperation>
|
||||||
<!--表格渲染-->
|
<!--表格渲染-->
|
||||||
<el-table ref="table" v-loading="crud.loading" :data="crud.data" size="mini" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
|
<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
|
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')
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user