Commit db82cf34 by lichengming

修改了报告管理历史报告

parent e6c31ade
...@@ -31,3 +31,4 @@ export { default as soilEntrust } from './soil/soil-entrust' ...@@ -31,3 +31,4 @@ export { default as soilEntrust } from './soil/soil-entrust'
export { default as soilSample } from './soil/soil-sample' export { default as soilSample } from './soil/soil-sample'
export { default as soilTest } from './soil/soil-test' export { default as soilTest } from './soil/soil-test'
export { default as soilStatistics } from './soil/soil-statistics' export { default as soilStatistics } from './soil/soil-statistics'
export { default as soilReport } from './soil/soil-report'
/**
* 工作台
*/
import http from '../http'
// import { https } from '../https'
export default {
// 报告编制 历史报告分页列表
pageReportMakeHis: data =>
http.post('soil/v1/entrust/page_report_make_his', data).then(res => res),
// 报告审核 历史任务分页列表
pageReportCheckHis: data =>
http.post('soil/v1/entrust/page_report_check_his', data).then(res => res),
// 报告签发 历史任务分页列表
pageReportIssueHis: data =>
http.post('soil/v1/entrust/page_report_issue_his', data).then(res => res)
}
...@@ -38,12 +38,7 @@ ...@@ -38,12 +38,7 @@
<Col span="24"> <Col span="24">
<btn-list :msg="btn" :open="searchOpen" @on-result-change="_btnClick" show-search-btn="true" /> <btn-list :msg="btn" :open="searchOpen" @on-result-change="_btnClick" show-search-btn="true" />
</Col> </Col>
<Col /> <Col span="24">
<Button @click="_downloadByIds">
下载
</Button>
</Col>
<Col />
<element-table <element-table
ref="pageTable" ref="pageTable"
:page-columns="pageColumns" :page-columns="pageColumns"
...@@ -103,7 +98,7 @@ ...@@ -103,7 +98,7 @@
<script> <script>
// eslint-disable-next-line import/named // eslint-disable-next-line import/named
import { soilStatistics } from '../../../../api' import { soilReport, soilStatistics } from '../../../../api'
import global from '../../../../api/config' import global from '../../../../api/config'
import OperationModal from '../../../../components/operation/Operation' import OperationModal from '../../../../components/operation/Operation'
export default { export default {
...@@ -113,22 +108,27 @@ export default { ...@@ -113,22 +108,27 @@ export default {
return { return {
name: '', name: '',
pageColumns: [ pageColumns: [
{ title: '委托方', key: 'client', width: 200 }, {
{ title: '联系人', key: 'person', width: 120 }, title: '委托商',
{ title: '委托编号', key: 'entrustCode', width: 120 }, key: 'client',
{ title: '报告是否生成', key: 'reported', width: 120 }, width: 100,
{ title: '状态', key: 'progress', width: 120, status: true }, fixed: 'left'
{ title: '电话/手机', key: 'tel', width: 120 }, },
{ title: '传真', key: 'fax', width: 120 }, { title: '委托编号', key: 'entrustCode', width: 100 },
{ title: '详细地址', key: 'address', width: 250 }, { title: '报告编号', key: 'reportCode', width: 100 },
{ title: '邮箱', key: 'email' }, { title: '进度', key: 'progress', width: 110, status: true },
{ title: '费用合计', key: 'fee', width: 120 }, { title: '状态', key: 'status', width: 100, status: true },
{ title: '备注', key: 'remark' } { title: '委托日期', key: 'entrustDate', width: 100, date: true },
{ title: '钻孔位置', key: 'boreholeLocation', width: 100 },
{ title: '钻孔名称', key: 'boreholeName', width: 100 },
{ title: '水深', key: 'waterDepth', width: 100 },
{ title: '制表人', key: 'tabulater', width: 110 },
{ title: '制表日期', key: 'tabulateDate', width: 110, date: true }
], ],
btn: [ btn: [
// { id: 'env-report-make-submit', type: 'primary', name: '提交' }, // { id: 'env-report-make-submit', type: 'primary', name: '提交' },
// { id: '', type: 'primary', name: '生成' }, // { id: '', type: 'primary', name: '生成' },
// { id: '', type: 'primary', name: '下载' } { id: 'ZBC', type: 'primary', name: '下载' }
], ],
getPage: {}, getPage: {},
searchOpen: false, searchOpen: false,
...@@ -155,7 +155,7 @@ export default { ...@@ -155,7 +155,7 @@ export default {
async _page() { async _page() {
const data = this.$serialize('lab-sample-form-his') const data = this.$serialize('lab-sample-form-his')
Object.assign(data, this.$refs.pageTable._searchParams()) Object.assign(data, this.$refs.pageTable._searchParams())
const result = await soilStatistics.pageReportMake(data) const result = await soilReport.pageReportCheckHis(data)
if (result) { if (result) {
this.getPage = result this.getPage = result
this.$refs.pageTable._initTable() this.$refs.pageTable._initTable()
......
...@@ -100,7 +100,6 @@ export default { ...@@ -100,7 +100,6 @@ export default {
], ],
btn: [ btn: [
{ id: '', type: 'primary', name: '提交' }, { id: '', type: 'primary', name: '提交' },
{ id: '', type: 'primary', name: '下载' },
{ id: '', type: 'primary', name: '退回' } { id: '', type: 'primary', name: '退回' }
], ],
getPage: {}, getPage: {},
......
...@@ -38,15 +38,10 @@ ...@@ -38,15 +38,10 @@
<Col span="24"> <Col span="24">
<btn-list :msg="btn" :open="searchOpen" @on-result-change="_btnClick" show-search-btn="true" /> <btn-list :msg="btn" :open="searchOpen" @on-result-change="_btnClick" show-search-btn="true" />
</Col> </Col>
<Col />
<!-- <Button type="primary" @click="_submitReportCheck">--> <!-- <Button type="primary" @click="_submitReportCheck">-->
<!-- 提交--> <!-- 提交-->
<!-- </Button>--> <!-- </Button>-->
<Button @click="_downloadByIds"> <Col span="24">
下载
</Button>
</Col>
<Col />
<element-table <element-table
ref="pageTable" ref="pageTable"
:page-columns="pageColumns" :page-columns="pageColumns"
...@@ -106,7 +101,7 @@ ...@@ -106,7 +101,7 @@
<script> <script>
// eslint-disable-next-line import/named // eslint-disable-next-line import/named
import { soilStatistics } from '../../../../api' import { soilReport, soilStatistics } from '../../../../api'
import global from '../../../../api/config' import global from '../../../../api/config'
import OperationModal from '../../../../components/operation/Operation' import OperationModal from '../../../../components/operation/Operation'
export default { export default {
...@@ -116,22 +111,27 @@ export default { ...@@ -116,22 +111,27 @@ export default {
return { return {
name: '', name: '',
pageColumns: [ pageColumns: [
{ title: '委托方', key: 'client', width: 200 }, {
{ title: '联系人', key: 'person', width: 120 }, title: '委托商',
{ title: '委托编号', key: 'entrustCode', width: 120 }, key: 'client',
{ title: '报告是否生成', key: 'reported', width: 120 }, width: 100,
{ title: '状态', key: 'progress', width: 120, status: true }, fixed: 'left'
{ title: '电话/手机', key: 'tel', width: 120 }, },
{ title: '传真', key: 'fax', width: 120 }, { title: '委托编号', key: 'entrustCode', width: 100 },
{ title: '详细地址', key: 'address', width: 250 }, { title: '报告编号', key: 'reportCode', width: 100 },
{ title: '邮箱', key: 'email' }, { title: '进度', key: 'progress', width: 110, status: true },
{ title: '费用合计', key: 'fee', width: 120 }, { title: '状态', key: 'status', width: 100, status: true },
{ title: '备注', key: 'remark' } { title: '委托日期', key: 'entrustDate', width: 100, date: true },
{ title: '钻孔位置', key: 'boreholeLocation', width: 100 },
{ title: '钻孔名称', key: 'boreholeName', width: 100 },
{ title: '水深', key: 'waterDepth', width: 100 },
{ title: '制表人', key: 'tabulater', width: 110 },
{ title: '制表日期', key: 'tabulateDate', width: 110, date: true }
], ],
btn: [ btn: [
// { id: 'env-report-make-submit', type: 'primary', name: '提交' }, // { id: 'env-report-make-submit', type: 'primary', name: '提交' },
// { id: '', type: 'primary', name: '生成' }, // { id: '', type: 'primary', name: '生成' },
// { id: '', type: 'primary', name: '下载' } { id: 'ZBC', type: 'primary', name: '下载' }
], ],
getPage: {}, getPage: {},
searchOpen: false, searchOpen: false,
...@@ -159,7 +159,7 @@ export default { ...@@ -159,7 +159,7 @@ export default {
async _page() { async _page() {
const data = this.$serialize('lab-sample-form-his') const data = this.$serialize('lab-sample-form-his')
Object.assign(data, this.$refs.pageTable._searchParams()) Object.assign(data, this.$refs.pageTable._searchParams())
const result = await soilStatistics.pageReportMake(data) const result = await soilReport.pageReportIssueHis(data)
if (result) { if (result) {
this.getPage = result this.getPage = result
this.$refs.pageTable._initTable() this.$refs.pageTable._initTable()
......
...@@ -124,7 +124,6 @@ export default { ...@@ -124,7 +124,6 @@ export default {
], ],
btn: [ btn: [
{ id: '', type: 'primary', name: '提交' }, { id: '', type: 'primary', name: '提交' },
{ id: '', type: 'primary', name: '下载' },
{ id: '', type: 'primary', name: '退回' } { id: '', type: 'primary', name: '退回' }
], ],
getPage: {}, getPage: {},
......
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
</template> </template>
<script> <script>
import UserInfo from '../../../components/user-info-single/AssignPerson' import UserInfo from '../../../components/user-info-single/AssignPerson'
import { soilTest } from '../../../api' import { soilReport } from '../../../api'
import Operation from '../../../components/operation/Operation' import Operation from '../../../components/operation/Operation'
export default { export default {
components: { components: {
...@@ -98,20 +98,22 @@ export default { ...@@ -98,20 +98,22 @@ export default {
], ],
getPage: {}, getPage: {},
pageColumns: [ pageColumns: [
{ title: '委托商', key: 'client', width: 200 }, {
{ title: '委托编号', key: 'entrustCode', width: 120 }, title: '委托商',
{ title: '委托日期', key: 'entrustDate', width: 120, date: true }, key: 'client',
{ title: '钻孔位置', key: 'boreholeLocation', width: 120 }, width: 100,
{ title: '水深(米)', key: 'waterDepth', width: 120 }, fixed: 'left'
{ title: '钻孔名称', key: 'boreholeName', width: 120 }, },
{ title: '进度', key: 'progress', width: 120, status: true }, { title: '委托编号', key: 'entrustCode', width: 100 },
{ title: '工程号', key: 'projectNo', width: 120 }, { title: '报告编号', key: 'reportCode', width: 100 },
{ title: '报告编号', key: 'reportCode', width: 120 }, { title: '进度', key: 'progress', width: 110, status: true },
{ title: '制表日期', key: 'tabulateDate', width: 120, date: true }, { title: '状态', key: 'status', width: 100, status: true },
{ title: '制表人', key: 'tabulater', width: 120 }, { title: '委托日期', key: 'entrustDate', width: 100, date: true },
{ title: '批准日期', key: 'approveDate', width: 120, date: true }, { title: '钻孔位置', key: 'boreholeLocation', width: 100 },
{ title: '批准人', key: 'approver', width: 120 }, { title: '钻孔名称', key: 'boreholeName', width: 100 },
{ title: '检验类别', key: 'testType', width: 120 } { title: '水深', key: 'waterDepth', width: 100 },
{ title: '制表人', key: 'tabulater', width: 110 },
{ title: '制表日期', key: 'tabulateDate', width: 110, date: true }
], ],
searchOpen: false, searchOpen: false,
btn: [ btn: [
...@@ -399,7 +401,7 @@ export default { ...@@ -399,7 +401,7 @@ export default {
_page: async function() { _page: async function() {
Object.assign(this.formObj, this.$refs.pageTable._searchParams()) Object.assign(this.formObj, this.$refs.pageTable._searchParams())
console.log('this.formObj', this.formObj) console.log('this.formObj', this.formObj)
const result = await soilTest.pageExpTest( const result = await soilReport.pageReportMakeHis(
this.$serializeForm(this.formObj) this.$serializeForm(this.formObj)
) )
if (result) { if (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