Commit d43f0059 by lichengming

修改了报告编制生成报告

parent 701eff7d
......@@ -173,6 +173,11 @@ export default {
type: 'primary',
id: 'make-report-pass',
name: '提交'
},
{
type: 'primary',
id: '',
name: '生成报告'
}
],
selectIds: [],
......@@ -208,6 +213,13 @@ export default {
case '提交':
this._submitToCheck()
break
case '生成报告':
if (this.selectIds.length === 1) {
this._viewItemRecord(this.selectIds.join(','))
} else {
this.$Message.warning('请选择一条数据')
}
break
case 'search':
this.searchOpen = !this.searchOpen
break
......@@ -363,6 +375,8 @@ export default {
}
},
_page: async function() {
this.selectIds = []
this.selectData = []
Object.assign(this.formObj, this.$refs.pageTable._searchParams())
const result = await soilStatistics.pageReportMakeByExpReport(
this.$serializeForm(this.formObj)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment