Commit 50816c31 by lichengming

修改了编辑报告模板,原始记录模板

parent 8e25462e
...@@ -165,7 +165,7 @@ export default { ...@@ -165,7 +165,7 @@ export default {
this.$openWindowModeless({ this.$openWindowModeless({
objectKey: data.objectKey, objectKey: data.objectKey,
id: data.id, id: data.id,
idType: 11, idType: 12,
isReport: 4 isReport: 4
}) })
} }
......
...@@ -158,7 +158,7 @@ export default { ...@@ -158,7 +158,7 @@ export default {
const result = await soilReport.pageReportCheckHis(data) const result = await soilReport.pageReportCheckHis(data)
if (result) { if (result) {
this.getPage = result this.getPage = result
this.$refs.pageTable._initTable() this.$refs.pageTable._hideLoading()
} }
}, },
_clearPage() { _clearPage() {
......
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
* 原始记录查看 * 原始记录查看
*/ */
import Global from '../../../api/config' import Global from '../../../api/config'
import { soilTest } from '../../../api' import { soilReport, soilTest } from '../../../api'
import ItemOriginalRecordEdit from './OriginalRecordEdit' import ItemOriginalRecordEdit from './OriginalRecordEdit'
import ItemView from './ItemView' import ItemView from './ItemView'
...@@ -146,10 +146,7 @@ export default { ...@@ -146,10 +146,7 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
switch (res) { switch (res) {
case '编辑': case '编辑':
this.$refs.recordEditModal._openWithType( this._reportEdit(data)
data.originalRecordId,
'ENVTESTMAKEEDIT'
)
break break
case '查看原始记录': case '查看原始记录':
this._reportView(data) this._reportView(data)
...@@ -175,13 +172,22 @@ export default { ...@@ -175,13 +172,22 @@ export default {
this._recordView(data.originalRecordId) this._recordView(data.originalRecordId)
} }
}, },
_reportMakeLook(data) { _reportEdit(data) {
if (data.objectKey) {
this._reportMakeLook(data)
} else {
this.$refs.recordEditModal._openWithType(
data.originalRecordId,
'ENVTESTMAKEEDIT'
)
}
},
_reportMakeLook: async function(data) {
console.log(data) console.log(data)
this._viewReport(data) const result = await soilReport.originalRecordGetById(data.id)
// const result = await soilReport.getExcelOriginalRecord(data.id) if (result) {
// if (result) { this._viewReport(result)
// this._viewReport(result) }
// }
}, },
_viewReport(data) { _viewReport(data) {
if (data) { if (data) {
......
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