Commit b554ee29 by wangweidong

土工试验Lims

parent c362682e
...@@ -154,6 +154,8 @@ export default { ...@@ -154,6 +154,8 @@ export default {
http.delete('soil/v1/original_record/?ids=' + data).then(res => res), http.delete('soil/v1/original_record/?ids=' + data).then(res => res),
expReportPage: data => expReportPage: data =>
http.post('soil/v1/exp_report/page', data).then(res => res), http.post('soil/v1/exp_report/page', data).then(res => res),
pageExperimentReport: data =>
http.post('soil/v1/exp_report/page', data).then(res => res),
deleteReport: data => deleteReport: data =>
http.delete('soil/v1/exp_report/?ids=' + data).then(res => res) http.delete('soil/v1/exp_report/?ids=' + data).then(res => res)
} }
...@@ -33,16 +33,16 @@ export default { ...@@ -33,16 +33,16 @@ export default {
data() { data() {
return { return {
isTree: true, isTree: true,
leftSpan: 9, leftSpan: 8,
rightSpan: 15 rightSpan: 16
} }
}, },
methods: { methods: {
_treeHide() { _treeHide() {
this.isTree = !this.isTree this.isTree = !this.isTree
if (this.isTree) { if (this.isTree) {
this.leftSpan = 9 this.leftSpan = 8
this.rightSpan = 15 this.rightSpan = 16
} else { } else {
this.leftSpan = 0 this.leftSpan = 0
this.rightSpan = 24 this.rightSpan = 24
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<el-tab-pane label="样品台账" name="sample"> <el-tab-pane label="样品台账" name="sample">
<ReportMakeBySample ref="sampleTabs" @on-result-change="_sampleTabResult"></ReportMakeBySample> <ReportMakeBySample ref="sampleTabs" @on-result-change="_sampleTabResult"></ReportMakeBySample>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="报告台账" name="report"> <el-tab-pane label="试验项目报告台账" name="report">
<ReportInfoMake ref="reportTabs"></ReportInfoMake> <ReportInfoMake ref="reportTabs"></ReportInfoMake>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
......
...@@ -101,6 +101,7 @@ export default { ...@@ -101,6 +101,7 @@ export default {
btn: [{ id: 'food-report-make-batch-down', name: '下载' }], btn: [{ id: 'food-report-make-batch-down', name: '下载' }],
getPage: {}, getPage: {},
pageColumns: [ pageColumns: [
{ title: '试验项目', key: 'expName', width: 180, fixed: 'left' },
{ title: '创建人', key: 'uname', width: 180, fixed: 'left' }, { title: '创建人', key: 'uname', width: 180, fixed: 'left' },
{ title: '创建时间', key: 'ctime', width: 180, dateTime: true } { title: '创建时间', key: 'ctime', width: 180, dateTime: true }
], ],
...@@ -326,7 +327,7 @@ export default { ...@@ -326,7 +327,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())
const result = await soilTest.expReportPage( const result = await soilTest.pageExperimentReport(
this.$serializeForm(this.formObj) this.$serializeForm(this.formObj)
) )
if (result) { if (result) {
......
...@@ -77,14 +77,8 @@ ...@@ -77,14 +77,8 @@
</div> </div>
</div> </div>
<keep-alive> <keep-alive>
<!-- eslint-disable-next-line vue/require-component-is -->
<component ref="refModal" :is="currentComponent" @on-result-change="_componentResult"></component> <component ref="refModal" :is="currentComponent" @on-result-change="_componentResult"></component>
</keep-alive> </keep-alive>
<!-- <SampleByMakeModal ref="sampleByMakeModal"></SampleByMakeModal>-->
<!-- <Operation ref="operation"></Operation>-->
<!-- <FileManage ref="FileManage"></FileManage>-->
<!-- <OriginalRecordView ref="originalRecordView" @on-result-change="_page"></OriginalRecordView>-->
<!-- <UploadByReport ref="uploadReport" @on-result-change="_page"></UploadByReport>-->
</div> </div>
</template> </template>
<script> <script>
......
<template> <template>
<div> <div>
<Modal v-model="showSampleModal" v-drag width="1200" class="zIndex-900 modal-footer-none" <Modal v-model="showSampleModal" v-drag width="1330" class="zIndex-900 modal-footer-none"
@on-visible-change="_visibleChange"> @on-visible-change="_visibleChange">
<p slot="header"> {{name}}--管理样品</p> <p slot="header"> {{name}}--管理样品</p>
<div> <div>
......
...@@ -71,11 +71,7 @@ export default { ...@@ -71,11 +71,7 @@ export default {
iconMsg: [{ type: 'ios-book', id: '', name: '生成项目报告' }], iconMsg: [{ type: 'ios-book', id: '', name: '生成项目报告' }],
id: '', id: '',
selectId: '', selectId: '',
pageColumns: [ pageColumns: [{ title: '检测项目', key: 'name', width: 120 }]
{ title: '检测项目', key: 'name', width: 120 },
{ title: '检测方法', key: 'testMethod', width: 140 },
{ title: '检测依据名称', key: 'testBasisName', width: 200 }
]
} }
}, },
computed: { computed: {
......
...@@ -144,16 +144,16 @@ export default { ...@@ -144,16 +144,16 @@ export default {
getPage: {}, getPage: {},
pageColumns: [ pageColumns: [
{ title: '试验项目', key: 'name', width: 120, fixed: 'left' }, { title: '试验项目', key: 'name', width: 120, fixed: 'left' },
{ title: '试样编号', key: 'sampleCode', width: 180 }, { title: '试样编号', key: 'sampleCode', width: 150 },
{ title: '是否填写原始记录', key: 'recorded', width: 180 }, { title: '原始记录填写', key: 'recorded', width: 120 },
{ title: '试样深度', key: 'sampleDepth', width: 180 }, { title: '试样深度', key: 'sampleDepth', width: 110 },
{ title: '试样包装类型', key: 'samplePack', width: 180 }, { title: '检测方法', key: 'testMethod', width: 140 },
{ title: '检测依据', key: 'testBasis', width: 140 },
{ title: '试样包装类型', key: 'samplePack', width: 160 },
{ title: '检测科室', key: 'groupName', width: 150 },
{ title: '状态', key: 'progress', width: 180 }, { title: '状态', key: 'progress', width: 180 },
{ title: '大类', key: 'mainType', width: 140 }, { title: '大类', key: 'mainType', width: 140 },
{ title: '小类', key: 'smallType', width: 140 }, { title: '小类', key: 'smallType', width: 140 }
{ title: '检测方法', key: 'testMethod', width: 260 },
{ title: '检测依据', key: 'testBasis', width: 140 },
{ title: '检测科室', key: 'groupName', width: 150 }
], ],
leftSelectData: {}, leftSelectData: {},
selectIds: [], // 检测项目id selectIds: [], // 检测项目id
......
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