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
d9e28236
Commit
d9e28236
authored
Oct 24, 2020
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了资质管理和试样管理
parent
aa0dc916
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
80 additions
and
69 deletions
+80
-69
soil-statistics.js
api/soil/soil-statistics.js
+3
-1
FileManageCont.vue
components/file/file-manage/FileManageCont.vue
+2
-2
ExperimentItemManage.vue
pages/meter-aptitude/item-manage/ExperimentItemManage.vue
+1
-1
StanardFileManage.vue
pages/meter-aptitude/standard-manage/StanardFileManage.vue
+43
-22
StandardManage.vue
pages/meter-aptitude/standard-manage/StandardManage.vue
+2
-2
Preparation.vue
pages/soil-sample-manage/sample-preparation/Preparation.vue
+29
-41
No files found.
api/soil/soil-statistics.js
View file @
d9e28236
...
...
@@ -32,5 +32,7 @@ export default {
pageCoordinateStatistics
:
data
=>
http
.
post
(
'soil/v1/statistics/page_coordinate_statistics'
,
data
)
.
then
(
res
=>
res
)
.
then
(
res
=>
res
),
filePage
:
data
=>
http
.
post
(
'soil/v1/standard_annex/page'
,
data
).
then
(
res
=>
res
)
}
components/file/file-manage/FileManageCont.vue
View file @
d9e28236
...
...
@@ -102,8 +102,8 @@ export default {
this
.
entrustId
=
id
this
.
urlData
=
{
msg
:
'FoodContractAttachment'
,
pageUrl
:
'
/soil/v1/standard
_annex/page'
,
deleteUrl
:
'/soil/v1/
standard
_annex/?ids='
,
pageUrl
:
'
soil/v1/entrust
_annex/page'
,
deleteUrl
:
'/soil/v1/
entrust
_annex/?ids='
,
uploadFileUrl
:
'/soil/v1/standard_annex/upload/'
,
downloadFileUrl
:
'/soil/v1/standard_annex/download/'
,
downloadBatch
:
'/food/v1/contract_attachment/download_batch'
,
...
...
pages/meter-aptitude/item-manage/ExperimentItemManage.vue
View file @
d9e28236
...
...
@@ -98,7 +98,7 @@ export default {
iconMsg
:
[
{
type
:
'md-apps'
,
id
:
''
,
name
:
'指标管理'
},
{
type
:
'md-create'
,
id
:
''
,
name
:
'编辑'
},
{
type
:
'md-add'
,
id
:
''
,
name
:
'附件'
},
//
{ type: 'md-add', id: '', name: '附件' },
{
type
:
'md-trash'
,
id
:
''
,
name
:
'删除'
}
// { type: 'md-add', id: '', name: '操作日志' }
],
...
...
pages/meter-aptitude/standard-manage/StanardFileManage.vue
View file @
d9e28236
...
...
@@ -12,7 +12,7 @@
<Form
id=
"search-sample-company"
v-show=
"searchOpen"
:label-width=
"90"
inline
onsubmit=
"return false"
>
<label
class=
"label-sign"
></label>
<Form-item
label=
"文件名称:"
class=
"search-item"
>
<Input
v-model=
"formObj.
name"
@
on-enter=
"_formSearch"
placeholder=
"请输入检测项目
"
clearable
/>
<Input
v-model=
"formObj.
fileName"
@
on-enter=
"_formSearch"
placeholder=
"请输入文件名
"
clearable
/>
</Form-item>
<Form-item
class=
"search-btn"
>
<Button
@
click=
"_formSearch"
type=
"primary"
>
...
...
@@ -56,7 +56,8 @@
</div>
</template>
<
script
>
import
{
soilEntrust
}
from
'../../../api'
import
{
soilEntrust
,
soilStatistics
}
from
'../../../api'
import
global
from
'../../../api/config'
export
default
{
components
:
{},
data
()
{
...
...
@@ -65,9 +66,9 @@ export default {
currentComponent
:
''
,
btn
:
[],
iconMsg
:
[
{
type
:
'
pt-a-end
'
,
id
:
''
,
name
:
'预览'
},
{
type
:
'
pt-a-en
d'
,
id
:
''
,
name
:
'下载'
},
{
type
:
'
pt-a-end
'
,
id
:
''
,
name
:
'删除'
}
{
type
:
'
ios-book
'
,
id
:
''
,
name
:
'预览'
},
{
type
:
'
ios-downloa
d'
,
id
:
''
,
name
:
'下载'
},
{
type
:
'
md-trash
'
,
id
:
''
,
name
:
'删除'
}
],
sampleId
:
''
,
// 样品id
entrustId
:
''
,
...
...
@@ -93,7 +94,7 @@ export default {
],
dateList
:
[],
formObj
:
{
n
ame
:
undefined
fileN
ame
:
undefined
}
}
},
...
...
@@ -162,22 +163,42 @@ export default {
this
.
currentComponent
=
componentName
this
.
$nextTick
(
function
()
{
switch
(
res
)
{
case
'
编辑
'
:
this
.
_
editModal
(
true
,
data
)
case
'
预览
'
:
this
.
_
viewReport
(
data
)
break
case
'
复制
'
:
this
.
_
copy
(
data
)
case
'
下载
'
:
this
.
_
download
(
data
)
break
case
'删除'
:
console
.
log
(
index
)
this
.
_deleteById
(
data
.
id
)
break
case
'导出样品委托协议'
:
this
.
_exportAgreement
(
data
.
id
)
break
case
'附件'
:
this
.
$refs
.
refModal
.
_open
(
data
.
id
,
'sampleId'
)
break
}
})
},
_viewReport
(
data
)
{
console
.
log
(
navigator
.
platform
)
if
(
this
.
$platform
())
{
// eslint-disable-next-line no-undef
POBrowser
.
openWindowModeless
(
global
.
baseURL
+
'/print/v1/view_attachment?key='
+
data
.
objectKey
,
'width=1163px;height=850px;'
)
}
else
{
this
.
$Message
.
warning
(
'暂不支持预览'
)
}
},
// 下载
_download
(
data
)
{
console
.
log
(
data
)
this
.
$Modal
.
confirm
({
title
:
'提示'
,
content
:
'确定要下载文件?'
,
onOk
:
()
=>
{
window
.
open
(
global
.
baseURL
+
'/soil/v1/standard_annex/download/'
+
data
.
id
,
'_blank'
)
}
})
},
...
...
@@ -213,9 +234,9 @@ export default {
this
.
selectIds
=
selectIds
this
.
selectData
=
data
break
//
case 'iconClick':
//
this._iconClick(data.name, data.rowData, data.componentName)
//
break
case
'iconClick'
:
this
.
_iconClick
(
data
.
name
,
data
.
rowData
,
data
.
componentName
)
break
case
'page'
:
this
.
_page
()
break
...
...
@@ -228,7 +249,7 @@ export default {
this
.
formObj
=
this
.
$resetFields
(
this
.
formObj
)
this
.
dateList
=
[]
this
.
showModal
=
true
this
.
sample
Id
=
id
// 委托id
this
.
entrust
Id
=
id
// 委托id
this
.
$refs
.
pageTable
.
_hideLoading
()
this
.
_page
()
},
...
...
@@ -268,8 +289,8 @@ export default {
_page
:
async
function
()
{
Object
.
assign
(
this
.
formObj
,
this
.
$refs
.
pageTable
.
_searchParams
())
this
.
formObj
=
this
.
$serializeForm
(
this
.
formObj
)
this
.
formObj
.
sampleId
=
this
.
sample
Id
const
result
=
await
soil
Entrust
.
pageItem
(
this
.
formObj
.
entrustId
=
this
.
entrust
Id
const
result
=
await
soil
Statistics
.
filePage
(
this
.
$serializeForm
(
this
.
formObj
)
)
if
(
result
)
{
...
...
pages/meter-aptitude/standard-manage/StandardManage.vue
View file @
d9e28236
...
...
@@ -85,7 +85,7 @@
<DownloadTemplateImport
ref=
"importModal"
@
on-result-change=
"_page"
></DownloadTemplateImport>
<SubstitutionalRelation
ref=
"relationModal"
@
on-result-change=
"_page"
></SubstitutionalRelation>
<UploadModal
ref=
"uploadModal"
@
on-result-change=
"_page"
></UploadModal>
<StanardFileManage
ref=
"FileManage"
></StanardFileManage>
<StanardFileManage
ref=
"
stanard
FileManage"
></StanardFileManage>
<!-- <component ref="refModal" :is="currentComponent" @on-result-change="_page"></component>-->
</div>
</template>
...
...
@@ -250,7 +250,7 @@ export default {
})
},
_fileManage
(
id
)
{
this
.
$refs
.
FileManage
.
_openByEntrustId
(
id
)
this
.
$refs
.
stanardFileManage
.
_open
(
id
)
},
_upload
(
id
)
{
const
obj
=
{
...
...
pages/soil-sample-manage/sample-preparation/Preparation.vue
View file @
d9e28236
<
template
>
<div>
<Modal
v-model=
"showModal"
:mask-closable=
"false"
width=
"100"
class=
"zIndex-1000 full-screen
"
>
<Modal
v-model=
"showModal"
:mask-closable=
"false"
:fullscreen=
"true"
width=
"100"
class=
"zIndex-1000
"
>
<p
slot=
"header"
>
制备
</p>
<Row>
<!--操作-->
<Col
span=
"24"
>
<btn-list
:msg=
"btn"
class=
"contHide"
@
on-result-change=
"_btnClick
"
></btn-list>
<btn-list
:msg=
"btn"
@
on-result-change=
"_btnClick"
class=
"contHide
"
></btn-list>
</Col>
<!--内容-->
<Col
span=
"24"
>
<PTVXETable
<PTVXETable
Height
ref=
"pageTable"
:table-height=
"tableHeight"
:get-page=
"getPage"
:icon-msg=
"iconMsg"
:form-id=
"formId"
@
on-result-change=
"_tableResultChange"
select-data
is-edit
hide-page
@
on-result-change=
"_tableResultChange"
>
hide-page
>
<vxe-table-column
v-for=
"item in pageColumns"
:key=
"item.key"
...
...
@@ -33,8 +32,8 @@
<template
v-slot:edit=
"scope"
>
<div
v-if=
"item.key==='prepareWay'"
@
click=
"_handleRow(scope)"
>
<AutoComplete
v-model=
"scope.row.prepareWay"
:down-data=
"preparationWayData"
:way-data=
"wayData"
:handle-obj=
"scope"
clearable
placeholder=
"输入或选择制备方式"
@
on-result-change=
"_preparationChange
"
></AutoComplete>
:handle-obj=
"scope"
@
on-result-change=
"_preparationChange"
clearable
placeholder=
"输入或选择制备方式
"
></AutoComplete>
</div>
<div
v-else-if=
"item.key==='unit'"
@
click=
"_handleRow(scope)"
>
<el-input
v-model=
"scope.row.unit"
name=
"unit"
placeholder=
"输入或选择单位"
>
...
...
@@ -47,13 +46,13 @@
<span
v-else-if=
"item.key==='type'"
>
{{
scope
.
row
[
item
.
key
]
===
0
?
'检样'
:
'备样'
}}
</span>
<div
v-else-if=
"item.key==='keepWay'"
@
click=
"_handleRow(scope)"
>
<AutoComplete
v-model=
"scope.row.keepWay"
:handle-obj=
"scope"
:down-data=
"saveWayData"
clearable
placeholder=
"输入或选择保存方式"
show-key=
"name"
@
on-result-change=
"_saveChang
e"
></AutoComplete>
@
on-result-change=
"_saveChange"
clearable
placeholder=
"输入或选择保存方式"
show-key=
"nam
e"
></AutoComplete>
</div>
<div
v-else-if=
"item.key==='keepContainer'"
@
click=
"_handleRow(scope)"
>
<AutoComplete
v-model=
"scope.row.keepContainer"
:handle-obj=
"scope"
:down-data=
"packList"
clearable
placeholder=
"输入或选择保存容器"
show-key=
"name"
@
on-result-change=
"_packSaveChang
e"
></AutoComplete>
@
on-result-change=
"_packSaveChange"
clearable
placeholder=
"输入或选择保存容器"
show-key=
"nam
e"
></AutoComplete>
</div>
<!--
<div
v-else-if=
"item.key==='prepareDate'"
@
click=
"_handleTimeRow(scope)"
>
-->
<!--
<el-date-picker-->
...
...
@@ -62,9 +61,9 @@
<!-- placeholder="选择日期时间">-->
<!--
</el-date-picker>
-->
<!--
</div>
-->
<div
v-else-if=
"item.key==='prepareDate'"
>
<
Date-picker
v-model=
"scope.row.prepareDate"
type=
"dat
e"
format=
"yyyy-MM-dd HH:mm"
style=
"width:100%;"
placeholder=
"请选择日期"
></
D
ate-picker>
<div
v-else-if=
"item.key==='prepareDate'"
@
click=
"_handleRow(scope)"
>
<
el-date-picker
@
change=
"timeChange(scope.row)"
v-model=
"scope.row.prepareDate"
type=
"datetim
e"
format=
"yyyy-MM-dd HH:mm"
style=
"width:100%;"
placeholder=
"请选择日期"
></
el-d
ate-picker>
</div>
<!--
<div
v-else-if=
"item.key==='prepareDate' && isAccurate === '是'"
@
click=
"_handleRow(scope)"
>
-->
<!--
<date-picker
:editable=
"false"
:transfer=
"true"
v-model=
"scope.row.prepareDate"
type=
"datetime"
--
>
...
...
@@ -91,48 +90,32 @@
<!--
</el-date-picker>
-->
<!--
</div>
-->
<div
v-else-if=
"item.key==='preparer'"
@
click=
"_handleRow(scope)"
>
<el-input
v-model=
"scope.row.preparer"
placeholder=
"制备人
"
size=
"small"
name=
"preparer"
@
focus=
"_handleRow(scope)
"
></el-input>
<el-input
v-model=
"scope.row.preparer"
@
focus=
"_handleRow(scope)
"
placeholder=
"制备人"
size=
"small"
name=
"preparer
"
></el-input>
</div>
<div
v-else-if=
"item.key==='remark'"
@
click=
"_handleRow(scope)"
>
<el-input
v-model=
"scope.row.remark"
placeholder=
"备注"
size=
"small
"
@
focus=
"_handleRow(scope)
"
></el-input>
<el-input
v-model=
"scope.row.remark"
@
focus=
"_handleRow(scope)"
placeholder=
"备注
"
size=
"small
"
></el-input>
</div>
<span
v-else
>
{{
scope
.
row
[
item
.
key
]
}}
</span>
</
template
>
<!--只读模板-->
<
template
v-slot=
"scope"
>
<!--
<div
v-if=
"item.key==='prepareDate' && isAccurate === '是'"
>
-->
<!--
<div>
-->
<!--
{{
scope
.
row
.
prepareDate
?
$dateformat
(
scope
.
row
.
preparationDate
,
'yyyy-mm-dd HH:MM'
):
''
}}
-->
<!--
</div>
-->
<!--
</div>
-->
<!--
<div
v-else-if=
"item.key==='prepareDate' && isAccurate === '否'"
>
-->
<!--
<div>
-->
<!--
{{
scope
.
row
.
prepareDate
?
$dateformat
(
scope
.
row
.
preparationDate
,
'yyyy-mm-dd'
):
''
}}
-->
<!--
</div>
-->
<!--
</div>
-->
<!--
<div
v-else-if=
"item.key==='prepareDate' && !isAccurate"
>
-->
<!--
<div>
-->
<!--
{{
scope
.
row
.
prepareDate
?
$dateformat
(
scope
.
row
.
preparationDate
,
'yyyy-mm-dd'
):
''
}}
-->
<!--
</div>
-->
<!--
</div>
-->
<div
v-if=
"item.key==='num'"
>
<div
v-if=
"scope.row.itemPreparation===0"
>
{{
scope
.
row
[
item
.
key
]
}}
</div>
<div
v-else-if=
"scope.row.itemPreparation===1"
class=
"red-color"
>
{{
scope
.
row
[
item
.
key
]
}}
</div>
</div>
<div
v-else-if=
"item.
key==='prepareDate'
"
>
{{
scope
.
row
.
prepareDate
?
$dateformat
(
scope
.
row
.
preparationDate
,
'yyyy-mm-dd HH:MM'
):
''
}}
<div
v-else-if=
"item.
date
"
>
{{
scope
.
row
[
item
.
key
]?
$dateformat
(
scope
.
row
[
item
.
key
]
,
'yyyy-mm-dd HH:MM'
):
''
}}
</div>
<span
v-else-if=
"item.key==='type'"
>
{{
scope
.
row
[
item
.
key
]
===
0
?
'检样'
:
'余样'
}}
</span>
<span
v-else-if=
"item.key==='status'"
>
{{
scope
.
row
[
item
.
key
].
display
}}
</span>
<div
v-else
>
{{
scope
.
row
[
item
.
key
]
}}
</div>
</
template
>
</vxe-table-column>
</PTVXETable>
</PTVXETable
Height
>
</Col>
</Row>
<div
slot=
"footer"
>
...
...
@@ -171,8 +154,8 @@ export default {
{
type
:
'error'
,
id
:
''
,
name
:
'删除'
}
],
iconMsg
:
[
{
type
:
'md-create'
,
id
:
''
,
name
:
'批量赋值'
},
{
type
:
'md-trash'
,
id
:
''
,
name
:
'删除'
}
//
{ type: 'md-create', id: '', name: '批量赋值' },
//
{ type: 'md-trash', id: '', name: '删除' }
],
getPage
:
{
records
:
[]
...
...
@@ -206,6 +189,7 @@ export default {
title
:
'制备时间'
,
key
:
'prepareDate'
,
width
:
200
,
date
:
true
,
editCell
:
true
},
{
...
...
@@ -313,7 +297,9 @@ export default {
},
timeChange
(
data
)
{
console
.
log
(
data
)
this
.
currentRow
.
prepareDate
=
data
this
.
$forceUpdate
()
this
.
currentRow
.
prepareDate
=
data
.
prepareDate
console
.
log
(
this
.
getPage
.
records
)
},
_packSaveChange
(
msg
,
data
,
handleObj
)
{
this
.
_handleRow
(
handleObj
)
...
...
@@ -625,6 +611,8 @@ export default {
},
// 操作的序号
_handleRow
(
data
)
{
console
.
log
(
data
)
this
.
currentIndex
=
data
.
index
this
.
currentRow
=
data
.
row
},
_handleTimeRow
(
data
)
{
...
...
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