Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
patzn-cloud-web-back-soil
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangweidong
patzn-cloud-web-back-soil
Commits
2e8e8339
Commit
2e8e8339
authored
Mar 03, 2021
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了开土制备历史记录导出开土制备记录页面
parent
3db68ddc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
73 additions
and
15 deletions
+73
-15
SamplePreparationHis.vue
...sample-manage/sample-preparation/SamplePreparationHis.vue
+73
-15
No files found.
pages/soil-sample-manage/sample-preparation/SamplePreparationHis.vue
View file @
2e8e8339
...
...
@@ -59,14 +59,22 @@
</div>
</template>
<
script
>
import
{
soilAptitude
,
soilEntrust
}
from
'../../../api'
import
{
soilAptitude
,
soilEntrust
,
soilSample
}
from
'../../../api'
import
MeterEntrustRecord
from
'../../../components/operation/Operation'
import
global
from
'../../../api/config'
import
SoilSampleManageHis
from
'./SampleManageHis'
import
SoilEntrustItemNum
from
'./SoilItemNum'
import
CreateReport
from
'./CreateReport'
export
default
{
// eslint-disable-next-line vue/no-unused-components
components
:
{
SoilSampleManageHis
,
MeterEntrustRecord
,
SoilEntrustItemNum
},
components
:
{
// eslint-disable-next-line vue/no-unused-components
SoilSampleManageHis
,
// eslint-disable-next-line vue/no-unused-components
MeterEntrustRecord
,
// eslint-disable-next-line vue/no-unused-components
SoilEntrustItemNum
,
// eslint-disable-next-line vue/no-unused-components
CreateReport
},
data
()
{
return
{
currentComponent
:
''
,
...
...
@@ -212,25 +220,75 @@ export default {
})
},
_exportPrepare
(
id
)
{
this
.
$Modal
.
confirm
({
title
:
'提示'
,
content
:
'确定导出这条记录'
,
onOk
:
()
=>
{
window
.
open
(
global
.
baseURL
+
'/soil/v1/entrust/export_soil_prepare_record?ids='
+
id
,
'_blank'
)
}
// this.$Modal.confirm({
// title: '提示',
// content: '确定导出这条记录',
// onOk: () => {
// window.open(
// global.baseURL +
// '/soil/v1/entrust/export_soil_prepare_record?ids=' +
// id,
// '_blank'
// )
// }
// })
this
.
currentComponent
=
'CreateReport'
this
.
$nextTick
(()
=>
{
this
.
$refs
.
refModal
.
_open
(
id
)
})
},
_componentResult
(
data
,
msg
)
{
switch
(
this
.
currentComponent
)
{
case
'CreateReport'
:
this
.
_openSoilRecordMake
(
data
)
break
default
:
this
.
_page
()
}
},
_openSoilRecordMake
(
data
)
{
if
(
data
)
{
this
.
$refs
.
pageTable
.
_showLoading
()
this
.
_makeCodeExcel
(
data
)
}
else
{
const
ids
=
this
.
selectIds
if
(
ids
.
length
===
0
)
{
this
.
$Message
.
warning
(
'请至少选择一条数据!'
)
}
else
{
// this._appendOriginalRecord()
}
}
},
_makeCodeExcel
:
async
function
(
data
)
{
this
.
$refs
.
pageTable
.
_showLoading
()
const
result
=
await
soilSample
.
saveExcelOpenSoilRecord
({
entrustId
:
data
.
entrustId
,
templateId
:
data
.
id
})
this
.
$refs
.
pageTable
.
_hideLoading
()
if
(
result
)
{
await
this
.
_page
()
if
(
result
===
null
||
result
===
undefined
)
{
this
.
$Message
.
warning
(
'证书编制失败,请联系管理员!'
)
this
.
$refs
.
pageTable
.
_hideLoading
()
return
false
}
else
{
this
.
$emit
(
'on-result-change'
)
this
.
_viewReport
(
result
)
}
}
},
_viewReport
(
data
)
{
this
.
$refs
.
pageTable
.
_hideLoading
()
if
(
data
)
{
this
.
$openWindowModeless
({
objectKey
:
data
.
objectKey
,
idType
:
10
,
id
:
data
.
id
,
isReport
:
4
})
}
},
_sampleManage
(
data
)
{
this
.
currentComponent
=
'SoilSampleManageHis'
this
.
$nextTick
(()
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment