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
5f47328f
Commit
5f47328f
authored
Oct 31, 2020
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了报告编制
parent
0d0f0ad4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
90 additions
and
36 deletions
+90
-36
ReportMakeHis.vue
pages/soil-report-manage/report-make/ReportMakeHis.vue
+19
-10
ReportMakeIndex.vue
pages/soil-report-manage/report-make/ReportMakeIndex.vue
+31
-14
ReportMakeByEntrust.vue
...il-report-manage/report-make/tabs/ReportMakeByEntrust.vue
+40
-12
No files found.
pages/soil-report-manage/report-make/ReportMakeHis.vue
View file @
5f47328f
...
@@ -61,9 +61,13 @@
...
@@ -61,9 +61,13 @@
</div>
</div>
<!--组件加载-->
<!--组件加载-->
<!--选择领样人-->
<!--选择领样人-->
<UserInfo
ref=
"userModal"
@
on-result-change=
"_userResult"
></UserInfo>
<keep-alive>
<Operation
ref=
"operation"
></Operation>
<!-- eslint-disable-next-line vue/require-component-is -->
<FileManage
ref=
"FileManage"
></FileManage>
<component
ref=
"refModal"
:is=
"currentComponent"
@
on-result-change=
"_componentResult"
></component>
</keep-alive>
<!-- <UserInfo ref="userModal" @on-result-change="_userResult"></UserInfo>-->
<!-- <Operation ref="operation"></Operation>-->
<!-- <FileManage ref="FileManage"></FileManage>-->
</div>
</div>
</template>
</template>
<
script
>
<
script
>
...
@@ -71,10 +75,8 @@ import UserInfo from '../../../components/user-info-single/assignPerson'
...
@@ -71,10 +75,8 @@ import UserInfo from '../../../components/user-info-single/assignPerson'
import
{
soilReport
}
from
'../../../api'
import
{
soilReport
}
from
'../../../api'
import
Operation
from
'../../../components/operation/Operation'
import
Operation
from
'../../../components/operation/Operation'
export
default
{
export
default
{
components
:
{
// eslint-disable-next-line vue/no-unused-components
UserInfo
,
components
:
{
UserInfo
,
Operation
},
Operation
},
data
()
{
data
()
{
return
{
return
{
formObj
:
{
formObj
:
{
...
@@ -89,7 +91,6 @@ export default {
...
@@ -89,7 +91,6 @@ export default {
// name: '管理样品'
// name: '管理样品'
// },
// },
{
type
:
'md-cloud'
,
id
:
''
,
name
:
'附件'
},
{
type
:
'md-cloud'
,
id
:
''
,
name
:
'附件'
},
{
type
:
'md-trash'
,
id
:
''
,
name
:
'删除'
},
{
{
type
:
'ios-clock'
,
type
:
'ios-clock'
,
id
:
''
,
id
:
''
,
...
@@ -429,7 +430,11 @@ export default {
...
@@ -429,7 +430,11 @@ export default {
},
},
_operationRecord
(
id
)
{
_operationRecord
(
id
)
{
// 操作日志
// 操作日志
this
.
$refs
.
operation
.
_open
(
id
)
this
.
currentComponent
=
'Operation'
this
.
$nextTick
(()
=>
{
this
.
$refs
.
refModal
.
_open
(
id
)
})
// this.$refs.operation._open(id)
},
},
_resultChange
(
msg
)
{
_resultChange
(
msg
)
{
if
(
this
.
$store
.
state
.
FoodContract
.
success
)
{
if
(
this
.
$store
.
state
.
FoodContract
.
success
)
{
...
@@ -440,7 +445,11 @@ export default {
...
@@ -440,7 +445,11 @@ export default {
},
},
_upload
(
id
)
{
_upload
(
id
)
{
// 上传文件
// 上传文件
this
.
$refs
.
FileManage
.
_open
(
id
,
'entrustId'
)
this
.
currentComponent
=
'FileManage'
this
.
$nextTick
(()
=>
{
this
.
$refs
.
refModal
.
_open
(
id
,
'entrustId'
)
})
// this.$refs.FileManage._open(id, 'entrustId')
}
}
}
}
}
}
...
...
pages/soil-report-manage/report-make/ReportMakeIndex.vue
View file @
5f47328f
...
@@ -2,14 +2,22 @@
...
@@ -2,14 +2,22 @@
<div>
<div>
<div
class=
"layout-content-padding"
>
<div
class=
"layout-content-padding"
>
<div
class=
"layout-content-main"
>
<div
class=
"layout-content-main"
>
<!--
<el-tabs
v-model=
"activeName"
@
tab-click=
"_changeTabs"
>
-->
<!--
<el-tab-pane
label=
"按委托编制"
name=
"check"
>
-->
<!--
<ReportMakeByEntrust
ref=
"checkTabs"
></ReportMakeByEntrust>
-->
<!--
</el-tab-pane>
-->
<!--
<el-tab-pane
label=
"历史报告"
name=
"checkHis"
>
-->
<!--
<ReportMakeHis
ref=
"checkHisTabs"
></ReportMakeHis>
-->
<!--
</el-tab-pane>
-->
<!--
</el-tabs>
-->
<el-tabs
v-model=
"activeName"
@
tab-click=
"_changeTabs"
>
<el-tabs
v-model=
"activeName"
@
tab-click=
"_changeTabs"
>
<el-tab-pane
label=
"按委托编制"
name=
"check"
>
<el-tab-pane
label=
"数据审核"
name=
"check"
></el-tab-pane>
<ReportMakeByEntrust
ref=
"checkTabs"
></ReportMakeByEntrust>
<el-tab-pane
label=
"历史任务"
name=
"checkHis"
></el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"历史报告"
name=
"checkHis"
>
<ReportMakeHis
ref=
"checkHisTabs"
></ReportMakeHis>
</el-tab-pane>
</el-tabs>
</el-tabs>
<keep-alive>
<!-- eslint-disable-next-line vue/require-component-is -->
<component
ref=
"refModal"
:is=
"currentComponent"
></component>
</keep-alive>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -20,28 +28,37 @@ import ReportMakeByEntrust from './tabs/ReportMakeByEntrust'
...
@@ -20,28 +28,37 @@ import ReportMakeByEntrust from './tabs/ReportMakeByEntrust'
import
ReportMakeHis
from
'./ReportMakeHis'
import
ReportMakeHis
from
'./ReportMakeHis'
export
default
{
export
default
{
components
:
{
// eslint-disable-next-line vue/no-unused-components
ReportMakeByEntrust
,
components
:
{
ReportMakeByEntrust
,
ReportMakeHis
},
ReportMakeHis
},
data
()
{
data
()
{
return
{
return
{
activeName
:
'check'
activeName
:
'check'
,
currentComponent
:
''
}
}
},
},
mounted
()
{
mounted
()
{
this
.
activeName
=
'check'
this
.
activeName
=
'check'
this
.
$refs
.
checkTabs
.
_page
()
this
.
_page
()
},
},
methods
:
{
methods
:
{
_changeTabs
(
tab
,
event
)
{
_changeTabs
(
tab
,
event
)
{
if
(
tab
.
name
===
'check'
)
{
if
(
tab
.
name
===
'check'
)
{
this
.
$refs
.
checkTabs
.
_open
()
this
.
_page
()
}
else
if
(
tab
.
name
===
'applyRecord'
)
{
}
else
if
(
tab
.
name
===
'applyRecord'
)
{
// this.$refs.applyRecordTabs._page()
// this.$refs.applyRecordTabs._page()
}
else
{
}
else
{
this
.
$refs
.
checkHisTabs
.
_page
()
this
.
currentComponent
=
'ReportMakeHis'
this
.
$nextTick
(()
=>
{
this
.
$refs
.
refModal
.
_page
()
})
}
}
},
_page
()
{
this
.
currentComponent
=
'ReportMakeByEntrust'
this
.
$nextTick
(()
=>
{
this
.
$refs
.
refModal
.
_page
()
})
// this.$refs.entrustTabs._page()
}
}
}
}
}
}
...
...
pages/soil-report-manage/report-make/tabs/ReportMakeByEntrust.vue
View file @
5f47328f
...
@@ -76,11 +76,15 @@
...
@@ -76,11 +76,15 @@
</Row>
</Row>
</div>
</div>
</div>
</div>
<SampleByMakeModal
ref=
"sampleByMakeModal"
></SampleByMakeModal>
<keep-alive>
<Operation
ref=
"operation"
></Operation>
<!-- eslint-disable-next-line vue/require-component-is -->
<FileManage
ref=
"FileManage"
></FileManage>
<component
ref=
"refModal"
:is=
"currentComponent"
@
on-result-change=
"_componentResult"
></component>
<OriginalRecordView
ref=
"originalRecordView"
@
on-result-change=
"_page"
></OriginalRecordView>
</keep-alive>
<UploadByReport
ref=
"uploadReport"
@
on-result-change=
"_page"
></UploadByReport>
<!-- <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
>
...
@@ -91,9 +95,13 @@ import OriginalRecordView from '../OriginalRecordView'
...
@@ -91,9 +95,13 @@ import OriginalRecordView from '../OriginalRecordView'
import
UploadByReport
from
'../UploadByReport'
import
UploadByReport
from
'../UploadByReport'
export
default
{
export
default
{
components
:
{
components
:
{
// eslint-disable-next-line vue/no-unused-components
SampleByMakeModal
,
SampleByMakeModal
,
// eslint-disable-next-line vue/no-unused-components
Operation
,
Operation
,
// eslint-disable-next-line vue/no-unused-components
OriginalRecordView
,
OriginalRecordView
,
// eslint-disable-next-line vue/no-unused-components
UploadByReport
UploadByReport
},
},
data
()
{
data
()
{
...
@@ -124,12 +132,14 @@ export default {
...
@@ -124,12 +132,14 @@ export default {
{
{
type
:
'ios-flask-outline'
,
type
:
'ios-flask-outline'
,
id
:
''
,
id
:
''
,
name
:
'管理样品和报告'
name
:
'管理样品和报告'
,
currentComponent
:
SampleByMakeModal
},
},
{
{
type
:
'ios-beaker'
,
type
:
'ios-beaker'
,
id
:
''
,
id
:
''
,
name
:
'查看原始记录'
name
:
'查看原始记录'
,
currentComponent
:
OriginalRecordView
},
},
{
{
type
:
'ios-cloud-upload'
,
type
:
'ios-cloud-upload'
,
...
@@ -265,15 +275,21 @@ export default {
...
@@ -265,15 +275,21 @@ export default {
})
})
}
}
},
},
_componentResult
(
data
,
msg
)
{
switch
(
this
.
currentComponent
)
{
default
:
this
.
_page
()
}
},
_iconClick
(
res
,
data
,
componentName
)
{
_iconClick
(
res
,
data
,
componentName
)
{
this
.
currentComponent
=
componentName
this
.
currentComponent
=
componentName
this
.
$nextTick
(
function
()
{
this
.
$nextTick
(
function
()
{
switch
(
res
)
{
switch
(
res
)
{
case
'管理样品和报告'
:
case
'管理样品和报告'
:
this
.
$refs
.
sampleByMake
Modal
.
_open
(
data
.
id
)
this
.
$refs
.
ref
Modal
.
_open
(
data
.
id
)
break
break
case
'查看原始记录'
:
case
'查看原始记录'
:
this
.
$refs
.
originalRecordView
.
_open
(
data
.
id
)
this
.
$refs
.
refModal
.
_open
(
data
.
id
)
break
break
case
'上传报告'
:
case
'上传报告'
:
this
.
_uploadReport
(
data
.
id
)
this
.
_uploadReport
(
data
.
id
)
...
@@ -297,7 +313,11 @@ export default {
...
@@ -297,7 +313,11 @@ export default {
})
})
},
},
_uploadReport
(
id
)
{
_uploadReport
(
id
)
{
this
.
$refs
.
uploadReport
.
_open
(
id
)
this
.
currentComponent
=
'UploadByReport'
this
.
$nextTick
(()
=>
{
this
.
$refs
.
refModal
.
_open
(
id
)
})
// this.$refs.uploadReport._open(id)
},
},
_viewReport
:
async
function
(
id
)
{
_viewReport
:
async
function
(
id
)
{
const
result
=
await
soilSample
.
getReport
(
id
)
const
result
=
await
soilSample
.
getReport
(
id
)
...
@@ -314,8 +334,12 @@ export default {
...
@@ -314,8 +334,12 @@ export default {
})
})
},
},
_operationRecord
(
id
)
{
_operationRecord
(
id
)
{
this
.
currentComponent
=
'Operation'
this
.
$nextTick
(()
=>
{
this
.
$refs
.
refModal
.
_open
(
id
)
})
// 操作日志
// 操作日志
this
.
$refs
.
operation
.
_open
(
id
)
//
this.$refs.operation._open(id)
},
},
_tableResultChange
(
msg
,
data
)
{
_tableResultChange
(
msg
,
data
)
{
switch
(
msg
)
{
switch
(
msg
)
{
...
@@ -370,8 +394,12 @@ export default {
...
@@ -370,8 +394,12 @@ export default {
})
})
},
},
_upload
(
id
)
{
_upload
(
id
)
{
this
.
currentComponent
=
'FileManage'
this
.
$nextTick
(()
=>
{
this
.
$refs
.
refModal
.
_open
(
id
,
'entrustId'
)
})
// 上传文件
// 上传文件
this
.
$refs
.
FileManage
.
_open
(
id
,
'entrustId'
)
//
this.$refs.FileManage._open(id, 'entrustId')
}
}
}
}
}
}
...
...
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