Commit 1a93a1c4 by lichengming

修改了报告编制

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