Commit 713a33ab by lichengming

修改了生成报告和报告审核退回

parent d6562aee
...@@ -9,7 +9,6 @@ module.exports = { ...@@ -9,7 +9,6 @@ module.exports = {
parser: 'babel-eslint' parser: 'babel-eslint'
}, },
extends: [ extends: [
'@nuxtjs',
'plugin:nuxt/recommended', 'plugin:nuxt/recommended',
'plugin:prettier/recommended', 'plugin:prettier/recommended',
'prettier', 'prettier',
......
...@@ -105,6 +105,11 @@ export default { ...@@ -105,6 +105,11 @@ export default {
data.remark data.remark
) )
.then(res => res), .then(res => res),
// 审核退回至编制
summaryReportBackFromCheck: data =>
http
.post('soil/v1/report/summary_report_back_from_check', data)
.then(res => res),
// 报告签发提交 // 报告签发提交
reportIssueSubmit: data => reportIssueSubmit: data =>
http http
......
...@@ -103,7 +103,7 @@ export default { ...@@ -103,7 +103,7 @@ export default {
], ],
btn: [ btn: [
// { id: '', type: 'primary', name: '提交' }, // { id: '', type: 'primary', name: '提交' },
// { id: '', type: 'primary', name: '退回' } { id: '', type: 'primary', name: '退回' }
], ],
getPage: {}, getPage: {},
searchOpen: false, searchOpen: false,
...@@ -178,8 +178,8 @@ export default { ...@@ -178,8 +178,8 @@ export default {
} }
}, },
_reportCheckBack: async function(data) { _reportCheckBack: async function(data) {
const result = await soilSample.reportCheckBack({ const result = await soilSample.summaryReportBackFromCheck({
ids: this.selectIds, ids: this.selectIds.join(','),
remark: data remark: data
}) })
......
...@@ -206,7 +206,13 @@ export default { ...@@ -206,7 +206,13 @@ export default {
return false return false
} else { } else {
this.$refs.pageTable._hideLoading() this.$refs.pageTable._hideLoading()
this._viewReport(result) // this._viewReport(result)
this.$openWindowModeless({
objectKey: result.objectKey,
idType: 12,
id: result.id,
isReport: 4
})
} }
} else { } else {
this.$refs.pageTable._hideLoading() this.$refs.pageTable._hideLoading()
......
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