Commit 1a93a1c4 by lichengming

修改了报告编制

parent 70e422db
......@@ -77,5 +77,8 @@ export default {
.then(res => res),
// 余样样品历史分页列表
pageSurplusHis: data =>
http.post('soil/v1/prepare/page_surplus_his', data).then(res => res)
http.post('soil/v1/prepare/page_surplus_his', data).then(res => res),
// 报告模板
reportTemplate: data =>
http.post('soil/v1/report/page', data).then(res => res)
}
......@@ -17,7 +17,7 @@
</div>
</template>
<script>
import global from '../../../api/config'
import { soilSample } from '../../../api'
export default {
components: {},
......@@ -25,6 +25,7 @@ export default {
return {
tableHeight: '400',
pageColumns: [{ title: '报告模板名称', key: 'name' }],
formObj: {},
getPage: {},
modalTitle: '报告模板',
tempId: ''
......@@ -49,17 +50,14 @@ export default {
},
_open(tempId) {
this.tempId = tempId || ''
// this._page()
this._page()
},
_page() {
this.$refs.pageTable._page(
'report-template-list',
'SysFileTemplate/page',
{
classifyName: '食品报告模板',
service: global.getCode()
}
)
_page: async function() {
const result = await soilSample.reportTemplate(this.formObj)
if (result) {
console.log(result)
this.getPage.records = result
}
}
}
}
......
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