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
c362682e
Commit
c362682e
authored
Dec 25, 2020
by
wangweidong
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
1f44bcdb
eaf17188
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
311 additions
and
17 deletions
+311
-17
soil-entrust.js
api/soil/soil-entrust.js
+4
-0
BatchUpload.vue
components/file/file-manage/BatchUpload.vue
+170
-0
FileManage.vue
components/file/file-manage/FileManage.vue
+1
-1
FileManageCont.vue
components/file/file-manage/FileManageCont.vue
+2
-2
FilesList.vue
components/file/file-manage/FilesList.vue
+8
-1
PhotoList.vue
components/file/photo-manage/PhotoList.vue
+1
-0
StanardFileManage.vue
pages/meter-aptitude/standard-manage/StanardFileManage.vue
+1
-1
EntrustRegisterEdit.vue
pages/meter-entrust/entrust-register/EntrustRegisterEdit.vue
+62
-2
ReportInfoMake.vue
pages/soil-report-manage/report-make/tabs/ReportInfoMake.vue
+47
-4
IndexManage.vue
pages/soil-sample-manage/sample-preparation/IndexManage.vue
+3
-3
IndexManageEdit.vue
...soil-sample-manage/sample-preparation/IndexManageEdit.vue
+4
-3
ItemRightList.vue
...s/soil-test-manage/test-input/item-tabs/ItemRightList.vue
+4
-0
SampleRightList.vue
...il-test-manage/test-input/sample-tabs/SampleRightList.vue
+4
-0
No files found.
api/soil/soil-entrust.js
View file @
c362682e
...
@@ -45,6 +45,8 @@ export default {
...
@@ -45,6 +45,8 @@ export default {
getVOById
:
data
=>
http
.
get
(
'soil/v1/entrust/vo/'
+
data
).
then
(
res
=>
res
),
getVOById
:
data
=>
http
.
get
(
'soil/v1/entrust/vo/'
+
data
).
then
(
res
=>
res
),
deleteById
:
data
=>
deleteById
:
data
=>
http
.
delete
(
'soil/v1/entrust/?ids='
+
data
).
then
(
res
=>
res
),
http
.
delete
(
'soil/v1/entrust/?ids='
+
data
).
then
(
res
=>
res
),
standardAnnexDelete
:
data
=>
http
.
delete
(
'soil/v1/standard_annex/?ids='
+
data
).
then
(
res
=>
res
),
experimentDeleteById
:
data
=>
experimentDeleteById
:
data
=>
http
.
delete
(
'soil/v1/experiment/?ids='
+
data
).
then
(
res
=>
res
),
http
.
delete
(
'soil/v1/experiment/?ids='
+
data
).
then
(
res
=>
res
),
// 保存
// 保存
...
@@ -131,6 +133,8 @@ export default {
...
@@ -131,6 +133,8 @@ export default {
http
.
post
(
'soil/v1/sample/page_take'
,
data
).
then
(
res
=>
res
),
http
.
post
(
'soil/v1/sample/page_take'
,
data
).
then
(
res
=>
res
),
testType
:
data
=>
testType
:
data
=>
http
.
post
(
'res/v1/dict/dict_query?type='
+
data
).
then
(
res
=>
res
),
http
.
post
(
'res/v1/dict/dict_query?type='
+
data
).
then
(
res
=>
res
),
projectQueryList
:
data
=>
http
.
post
(
'res/v1/dict/dict_query'
,
data
).
then
(
res
=>
res
),
pageSurplusHandleCheckHis
:
data
=>
pageSurplusHandleCheckHis
:
data
=>
http
http
.
post
(
'soil/v1/prepare/page_surplus_handle_check_his'
,
data
)
.
post
(
'soil/v1/prepare/page_surplus_handle_check_his'
,
data
)
...
...
components/file/file-manage/BatchUpload.vue
0 → 100644
View file @
c362682e
<
template
>
<div>
<Modal
v-model=
"showEditModal"
:mask-closable=
"false"
width=
"600"
>
<p
slot=
"header"
>
{{
modalTitle
}}
</p>
<div>
<Upload
:action=
"action"
:show-upload-list=
"false"
:before-upload=
"_beupload"
multiple
>
<Button
type=
"dashed"
icon=
"ios-cloud-upload-outline"
>
上传文件(小于50MB)
</Button>
</Upload>
<div>
<Card
:dis-hover=
"true"
style=
"width: 100%;height: 400px;overflow: auto;"
>
<p
slot=
"title"
>
已上传文件列表
</p>
<div
v-for=
"(item,index) in fileList"
:key=
"index"
class=
"file-upload-list"
>
<div>
<div
class=
"file-upload-list-cover"
>
<Icon
@
click
.
native
.
stop=
"_handleRemove(item)"
type=
"md-trash"
style=
"color: white;font-size: 20px;"
></Icon>
</div>
</div>
{{
item
.
fileName
}}
</div>
</Card>
</div>
</div>
<div
slot=
"footer"
class=
"btn-width"
>
<Button
@
click=
"showEditModal = false"
>
取消
</Button>
<Button
@
click=
"_mutipleUpload"
:loading=
"isLoading"
type=
"primary"
>
{{
btnName
}}
</Button>
</div>
</Modal>
</div>
</
template
>
<
script
>
/**
* 上传文件,在文件夹下
*/
import
axios
from
'axios'
import
global
from
'../../../api/config'
import
loading
from
'../../../api/loading'
export
default
{
data
()
{
return
{
id
:
''
,
ID
:
''
,
action
:
''
,
modalTitle
:
''
,
showEditModal
:
false
,
name
:
''
,
isLoading
:
false
,
btnName
:
'上传'
,
fileList
:
[]
}
},
methods
:
{
_open
(
obj
)
{
this
.
fileList
=
[]
this
.
showEditModal
=
true
this
.
ID
=
obj
this
.
modalTitle
=
'上传文件'
},
_beupload
(
file
)
{
// 单个文件上传超过50M时,取消上传
const
isLt50M
=
file
.
size
/
1024
/
1024
<
50
const
fileName
=
file
.
name
.
split
(
'.'
)[
0
]
if
(
!
isLt50M
)
{
this
.
$Message
.
warning
({
content
:
'文件 '
+
fileName
+
' 大小超多50M,请重新上传!'
,
duration
:
3
})
this
.
isLoading
=
false
}
else
{
// 动态循环给文件命名
const
temObj
=
{
file
:
file
,
fileName
:
fileName
}
this
.
fileList
.
push
(
temObj
)
}
return
false
},
_mutipleUpload
()
{
if
(
this
.
fileList
.
length
>
0
&&
this
.
btnName
===
'上传'
)
{
this
.
isLoading
=
true
this
.
btnName
=
'上传中...'
// 创建formula对象
const
formData
=
new
FormData
()
formData
.
append
(
'entrustId'
,
this
.
ID
)
// 多个文件
for
(
let
i
=
0
;
i
<
this
.
fileList
.
length
;
i
++
)
{
formData
.
append
(
'file'
+
i
,
this
.
fileList
[
i
].
file
)
}
const
config
=
{
headers
:
{
'Content-Type'
:
'multipart/form-data'
}
}
const
instanceFile
=
axios
.
create
()
instanceFile
.
defaults
.
withCredentials
=
true
// 发起请求
instanceFile
.
post
(
global
.
baseURL
+
'/soil/v1/entrust_annex/upload_bath/'
+
this
.
ID
,
formData
,
{
headers
:
config
}
)
.
then
(
res
=>
{
if
(
res
.
data
.
code
===
'1'
)
{
this
.
$Message
.
success
(
'上传成功!'
)
this
.
showEditModal
=
false
this
.
$emit
(
'on-result-change'
)
}
else
if
(
res
.
data
.
code
===
'0'
)
{
loading
.
toast
.
show
(
res
.
data
.
code
,
res
.
data
.
msg
)
this
.
$Message
.
error
(
'操作失败'
)
}
this
.
_resetLoading
()
})
.
catch
(
err
=>
{
console
.
log
(
err
)
this
.
_resetLoading
()
})
}
else
{
this
.
$Message
.
warning
(
'请至少上传一个文件'
)
this
.
_resetLoading
()
}
},
_resetLoading
()
{
this
.
isLoading
=
false
this
.
btnName
=
'上传'
},
// 删除对应的上传的文件
_handleRemove
(
data
)
{
const
index
=
this
.
fileList
.
findIndex
(
item
=>
item
===
data
)
this
.
fileList
.
splice
(
index
,
1
)
}
}
}
</
script
>
<
style
>
.file-upload-list
{
display
:
inline-block
;
width
:
100px
;
height
:
100px
;
text-align
:
center
;
line-height
:
100px
;
border
:
1px
solid
transparent
;
border-radius
:
4px
;
overflow
:
hidden
;
background
:
#fff
;
position
:
relative
;
box-shadow
:
0
1px
1px
rgba
(
0
,
0
,
0
,
0.2
);
margin-right
:
4px
;
}
.file-upload-list
:hover
.file-upload-list-cover
{
display
:
block
;
}
.file-upload-list-cover
{
display
:
none
;
position
:
absolute
;
top
:
0
;
bottom
:
0
;
left
:
0
;
right
:
0
;
background
:
rgba
(
0
,
0
,
0
,
0.6
);
}
</
style
>
components/file/file-manage/FileManage.vue
View file @
c362682e
...
@@ -22,7 +22,7 @@ export default {
...
@@ -22,7 +22,7 @@ export default {
data
()
{
data
()
{
return
{
return
{
showModal
:
false
,
showModal
:
false
,
modalTitle
:
'附件'
modalTitle
:
'附件
管理
'
}
}
},
},
methods
:
{
methods
:
{
...
...
components/file/file-manage/FileManageCont.vue
View file @
c362682e
...
@@ -104,8 +104,8 @@ export default {
...
@@ -104,8 +104,8 @@ export default {
msg
:
'FoodContractAttachment'
,
msg
:
'FoodContractAttachment'
,
pageUrl
:
'soil/v1/entrust_annex/page'
,
pageUrl
:
'soil/v1/entrust_annex/page'
,
deleteUrl
:
'/soil/v1/entrust_annex/?ids='
,
deleteUrl
:
'/soil/v1/entrust_annex/?ids='
,
uploadFileUrl
:
'/soil/v1/
standard
_annex/upload/'
,
uploadFileUrl
:
'/soil/v1/
entrust
_annex/upload/'
,
downloadFileUrl
:
'/soil/v1/
standard
_annex/download/'
,
downloadFileUrl
:
'/soil/v1/
entrust
_annex/download/'
,
downloadBatch
:
'/food/v1/contract_attachment/download_batch'
,
downloadBatch
:
'/food/v1/contract_attachment/download_batch'
,
uri
:
'FoodContractAttachment/getByContractId'
,
uri
:
'FoodContractAttachment/getByContractId'
,
viewUri
:
'/soil/v1/standard_annex/preview/'
viewUri
:
'/soil/v1/standard_annex/preview/'
...
...
components/file/file-manage/FilesList.vue
View file @
c362682e
...
@@ -22,6 +22,7 @@
...
@@ -22,6 +22,7 @@
<Button>
上传
</Button>
<Button>
上传
</Button>
</Upload>
</Upload>
</label>
</label>
<Button
@
click=
"_batchUpload"
>
批量上传
</Button>
<!--一系列操作-->
<!--一系列操作-->
<!--非表格-->
<!--非表格-->
<!--
<Button
v-if=
"viewStyle === 2 || viewStyle === 3"
v-for=
"item in menusListA"
:key=
"item.name"
@
click=
"_radioChange(item.value)"
--
>
<!--
<Button
v-if=
"viewStyle === 2 || viewStyle === 3"
v-for=
"item in menusListA"
:key=
"item.name"
@
click=
"_radioChange(item.value)"
--
>
...
@@ -115,6 +116,7 @@
...
@@ -115,6 +116,7 @@
<!--/-->
<!--/-->
</Col>
</Col>
</Row>
</Row>
<BatchUpload
ref=
"batchUpload"
@
on-result-change=
"_page"
></BatchUpload>
<!--上传loading-->
<!--上传loading-->
<div
v-show=
"isLoad"
>
<div
v-show=
"isLoad"
>
<Spin
fix
>
<Spin
fix
>
...
@@ -134,11 +136,12 @@
...
@@ -134,11 +136,12 @@
// import VueGallerySlideshow from 'vue-gallery-slideshow'
// import VueGallerySlideshow from 'vue-gallery-slideshow'
import
global
from
'../../../api/config'
import
global
from
'../../../api/config'
import
{
meterEntrust
}
from
'../../../api'
import
{
meterEntrust
}
from
'../../../api'
import
BatchUpload
from
'./BatchUpload'
/**
/**
* 公共组件modal 弹框(支持上传,下载,预览,删除附件等操作)
* 公共组件modal 弹框(支持上传,下载,预览,删除附件等操作)
*/
*/
export
default
{
export
default
{
// components: { VueGallerySlideshow
},
components
:
{
BatchUpload
},
props
:
{
props
:
{
fileName
:
null
fileName
:
null
},
},
...
@@ -202,6 +205,9 @@ export default {
...
@@ -202,6 +205,9 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
_batchUpload
()
{
this
.
$refs
.
batchUpload
.
_open
(
this
.
id
)
},
_setUploadData
(
data
,
idsObj
,
idKey
)
{
_setUploadData
(
data
,
idsObj
,
idKey
)
{
this
.
selectIds
=
[]
this
.
selectIds
=
[]
this
.
imgViewIndex
=
null
this
.
imgViewIndex
=
null
...
@@ -411,6 +417,7 @@ export default {
...
@@ -411,6 +417,7 @@ export default {
}
else
{
}
else
{
this
.
isLoad
=
true
this
.
isLoad
=
true
this
.
$Message
.
error
(
response
.
msg
)
this
.
$Message
.
error
(
response
.
msg
)
this
.
isLoad
=
false
}
}
}
}
}
}
...
...
components/file/photo-manage/PhotoList.vue
View file @
c362682e
...
@@ -423,6 +423,7 @@ export default {
...
@@ -423,6 +423,7 @@ export default {
}
else
{
}
else
{
this
.
isLoad
=
true
this
.
isLoad
=
true
this
.
$Message
.
error
(
response
.
msg
)
this
.
$Message
.
error
(
response
.
msg
)
this
.
isLoad
=
false
}
}
}
}
}
}
...
...
pages/meter-aptitude/standard-manage/StanardFileManage.vue
View file @
c362682e
...
@@ -310,7 +310,7 @@ export default {
...
@@ -310,7 +310,7 @@ export default {
},
},
_deleteOk
:
async
function
(
ids
)
{
_deleteOk
:
async
function
(
ids
)
{
const
result
=
await
soilEntrust
.
deleteById
(
ids
)
const
result
=
await
soilEntrust
.
standardAnnexDelete
(
ids
)
if
(
result
)
{
if
(
result
)
{
this
.
_resultChange
(
'删除成功! '
)
this
.
_resultChange
(
'删除成功! '
)
}
}
...
...
pages/meter-entrust/entrust-register/EntrustRegisterEdit.vue
View file @
c362682e
...
@@ -14,7 +14,10 @@
...
@@ -14,7 +14,10 @@
placeholder=
"请选择委托日期"
name=
"entrustDate"
></Date-picker>
placeholder=
"请选择委托日期"
name=
"entrustDate"
></Date-picker>
</Form-item>
</Form-item>
<Form-item
label=
"项目名称"
prop=
"projectName"
class=
"width-48"
>
<Form-item
label=
"项目名称"
prop=
"projectName"
class=
"width-48"
>
<Input
v-model=
"formObj.projectName"
name=
"projectName"
placeholder=
"请输入项目名称"
/>
<!--
<Input
v-model=
"formObj.projectName"
name=
"projectName"
placeholder=
"请输入项目名称"
/>
-->
<AutoComplete
ref=
"autoInput"
v-model=
"formObj.projectName"
:down-data=
"projectData"
@
on-result-change=
"_projectChange"
name=
"projectName"
placeholder=
"请输入或选择项目名称"
></AutoComplete>
</Form-item>
</Form-item>
<Form-item
label=
"钻孔名称"
prop=
"boreholeName"
class=
"width-48"
>
<Form-item
label=
"钻孔名称"
prop=
"boreholeName"
class=
"width-48"
>
<Input
v-model=
"formObj.boreholeName"
name=
"boreholeName"
placeholder=
"请输入名称"
/>
<Input
v-model=
"formObj.boreholeName"
name=
"boreholeName"
placeholder=
"请输入名称"
/>
...
@@ -149,6 +152,7 @@ export default {
...
@@ -149,6 +152,7 @@ export default {
},
},
showBtn
:
true
,
showBtn
:
true
,
customerData
:
[],
customerData
:
[],
projectData
:
[],
edit
:
false
,
edit
:
false
,
cityData
:
[],
cityData
:
[],
selectData
:
[],
selectData
:
[],
...
@@ -340,15 +344,41 @@ export default {
...
@@ -340,15 +344,41 @@ export default {
}
else
if
(
this
.
customerData
.
indexOf
(
data
)
!==
-
1
)
{
}
else
if
(
this
.
customerData
.
indexOf
(
data
)
!==
-
1
)
{
this
.
_getQueryList
(
data
)
this
.
_getQueryList
(
data
)
}
else
{
}
else
{
this
.
_cusNameQuery
(
data
)
}
}
},
},
_customerMatch
(
data
)
{
_customerMatch
(
data
)
{
this
.
_getQueryList
(
data
)
this
.
_getQueryList
(
data
)
},
},
_cusNameQuery
(
query
)
{
_cusNameQuery
(
query
)
{
console
.
log
(
'query'
,
query
)
this
.
formObj
.
client
=
query
this
.
formObj
.
client
=
query
this
.
_getQueryList
(
query
)
},
_projectChange
(
msg
,
data
)
{
if
(
this
.
$string
(
this
.
id
).
isEmpty
())
{
// 添加的时候选择单位
switch
(
msg
)
{
case
'select'
:
this
.
_projectMatch
(
data
)
break
case
'query'
:
this
.
_projectQuery
(
data
)
break
}
}
else
if
(
this
.
projectData
.
indexOf
(
data
)
!==
-
1
)
{
this
.
_getProjectQueryList
(
data
)
}
else
{
this
.
_projectQuery
(
data
)
}
},
_projectMatch
(
data
)
{
this
.
_getQueryList
(
data
)
},
_projectQuery
(
query
)
{
this
.
formObj
.
projectName
=
query
this
.
_getProjectQueryList
(
query
)
},
},
_btnClick
(
msg
)
{
_btnClick
(
msg
)
{
this
.
$nextTick
(
function
()
{
this
.
$nextTick
(
function
()
{
switch
(
msg
)
{
switch
(
msg
)
{
...
@@ -690,6 +720,7 @@ export default {
...
@@ -690,6 +720,7 @@ export default {
this
.
_getList
()
this
.
_getList
()
this
.
_getTestType
()
this
.
_getTestType
()
this
.
_getPackList
()
this
.
_getPackList
()
this
.
_getProjectList
()
this
.
_getSoil
()
this
.
_getSoil
()
this
.
_getUser
()
this
.
_getUser
()
this
.
showBtn
=
true
this
.
showBtn
=
true
...
@@ -780,12 +811,41 @@ export default {
...
@@ -780,12 +811,41 @@ export default {
this
.
customerData
=
list
this
.
customerData
=
list
}
}
},
},
_getProjectList
:
async
function
()
{
const
result
=
await
soilEntrust
.
testType
(
'项目名称'
)
const
projectlist
=
[]
if
(
result
)
{
for
(
let
i
=
0
;
i
<
result
.
length
;
i
++
)
{
projectlist
.
push
(
result
[
i
].
name
)
}
this
.
projectData
=
projectlist
}
},
_getQueryList
:
async
function
(
data
)
{
_getQueryList
:
async
function
(
data
)
{
const
result
=
await
meterEntrust
.
pageQueryList
(
data
)
const
result
=
await
meterEntrust
.
pageQueryList
(
data
)
const
queryList
=
[]
if
(
result
)
{
if
(
result
)
{
for
(
let
i
=
0
;
i
<
result
.
length
;
i
++
)
{
queryList
.
push
(
result
[
i
].
cname
)
}
this
.
customerData
=
queryList
console
.
log
(
'委托商'
,
result
)
console
.
log
(
'委托商'
,
result
)
}
}
},
},
_getProjectQueryList
:
async
function
(
data
)
{
const
queryData
=
{}
queryData
.
type
=
'项目名称'
queryData
.
name
=
data
const
result
=
await
soilEntrust
.
projectQueryList
(
queryData
)
const
queryList
=
[]
if
(
result
)
{
for
(
let
i
=
0
;
i
<
result
.
length
;
i
++
)
{
queryList
.
push
(
result
[
i
].
name
)
}
this
.
projectData
=
queryList
console
.
log
(
'项目名称'
,
result
)
}
},
_save
:
async
function
(
data
)
{
_save
:
async
function
(
data
)
{
const
result
=
await
soilEntrust
.
save
(
data
)
const
result
=
await
soilEntrust
.
save
(
data
)
if
(
result
)
{
if
(
result
)
{
...
...
pages/soil-report-manage/report-make/tabs/ReportInfoMake.vue
View file @
c362682e
...
@@ -82,7 +82,8 @@
...
@@ -82,7 +82,8 @@
<
script
>
<
script
>
import
global
from
'../../../../api/config'
import
global
from
'../../../../api/config'
import
http
from
'../../../../api/http'
import
http
from
'../../../../api/http'
import
{
soilReport
}
from
'../../../../api'
import
{
soilReport
,
soilTest
}
from
'../../../../api'
import
Global
from
'../../../../api/config'
/**
/**
* 报告编制的-待办-报告台账
* 报告编制的-待办-报告台账
...
@@ -212,7 +213,8 @@ export default {
...
@@ -212,7 +213,8 @@ export default {
this
.
$refs
.
refModal
.
_open
(
data
)
this
.
$refs
.
refModal
.
_open
(
data
)
break
break
case
'预览/编辑报告'
:
case
'预览/编辑报告'
:
this
.
_viewReport
(
data
)
this
.
_reportView
(
data
)
// this._viewReport(data)
break
break
case
'操作记录'
:
case
'操作记录'
:
this
.
_record
(
data
.
id
)
this
.
_record
(
data
.
id
)
...
@@ -238,16 +240,57 @@ export default {
...
@@ -238,16 +240,57 @@ export default {
_upload
(
id
)
{
_upload
(
id
)
{
this
.
$refs
.
refModal
.
_open
(
id
)
this
.
$refs
.
refModal
.
_open
(
id
)
},
},
_reportView
(
data
)
{
if
(
data
.
objectKey
)
{
this
.
_reportMakeLook
(
data
)
}
else
{
this
.
_recordView
(
data
.
originalRecordId
)
}
},
_reportMakeLook
:
async
function
(
data
)
{
console
.
log
(
data
)
const
result
=
await
soilReport
.
expReportGetById
(
data
.
id
)
// this._viewReport(data)
// const result = await soilReport.getExcelOriginalRecord(data.id)
if
(
result
)
{
console
.
log
(
'result'
)
this
.
_viewReport
(
result
)
}
},
_viewReport
(
data
)
{
_viewReport
(
data
)
{
if
(
data
)
{
if
(
data
)
{
this
.
$openWindowModeless
({
this
.
$openWindowModeless
({
objectKey
:
data
.
objectKey
,
objectKey
:
data
.
objectKey
,
idType
:
1
0
,
idType
:
1
1
,
id
:
data
.
id
,
id
:
data
.
id
,
isReport
:
4
isReport
:
4
})
})
}
}
},
},
_recordView
(
originalRecordId
)
{
let
recordUrl
=
''
if
(
process
.
env
.
NODE_ENV
===
'production'
)
{
recordUrl
=
'http://record.patzn.com'
}
else
{
recordUrl
=
Global
.
recordURL
}
// eslint-disable-next-line no-undef
layx
.
iframe
(
'labRecordWriteOriView'
,
'原始记录预览'
,
recordUrl
+
'/print/v1/form/'
+
originalRecordId
+
'?type=ENVTESTMAKE'
,
{
event
:
{
onload
:
{
after
:
function
(
layxWindow
,
winform
)
{
// eslint-disable-next-line no-undef
layx
.
max
(
winform
.
id
)
}
}
}
}
)
},
_tableResultChange
(
msg
,
data
)
{
_tableResultChange
(
msg
,
data
)
{
switch
(
msg
)
{
switch
(
msg
)
{
case
'page'
:
case
'page'
:
...
@@ -283,7 +326,7 @@ export default {
...
@@ -283,7 +326,7 @@ export default {
},
},
_page
:
async
function
()
{
_page
:
async
function
()
{
Object
.
assign
(
this
.
formObj
,
this
.
$refs
.
pageTable
.
_searchParams
())
Object
.
assign
(
this
.
formObj
,
this
.
$refs
.
pageTable
.
_searchParams
())
const
result
=
await
soil
Report
.
r
eportPage
(
const
result
=
await
soil
Test
.
expR
eportPage
(
this
.
$serializeForm
(
this
.
formObj
)
this
.
$serializeForm
(
this
.
formObj
)
)
)
if
(
result
)
{
if
(
result
)
{
...
...
pages/soil-sample-manage/sample-preparation/IndexManage.vue
View file @
c362682e
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
</template>
</template>
<
script
>
<
script
>
import
{
soil
Aptitude
,
soil
Test
}
from
'../../../api'
import
{
soilTest
}
from
'../../../api'
import
IndexManageEdit
from
'./IndexManageEdit'
import
IndexManageEdit
from
'./IndexManageEdit'
export
default
{
export
default
{
...
@@ -151,9 +151,9 @@ export default {
...
@@ -151,9 +151,9 @@ export default {
}
}
},
},
_delOk
:
async
function
(
ids
)
{
_delOk
:
async
function
(
ids
)
{
const
result
=
await
soil
Aptitude
.
expItemDeleteByIds
(
ids
)
const
result
=
await
soil
Test
.
itemDelete
(
ids
)
if
(
result
)
{
if
(
result
)
{
this
.
$
m
essage
.
success
(
'删除成功'
)
this
.
$
M
essage
.
success
(
'删除成功'
)
this
.
_page
()
this
.
_page
()
}
}
}
}
...
...
pages/soil-sample-manage/sample-preparation/IndexManageEdit.vue
View file @
c362682e
...
@@ -159,7 +159,7 @@ export default {
...
@@ -159,7 +159,7 @@ export default {
this
.
$refs
.
footerModal
.
_hideLoading
()
this
.
$refs
.
footerModal
.
_hideLoading
()
},
},
_open
(
id
,
formObj
)
{
_open
(
id
,
formObj
)
{
this
.
formId
=
'edit-form'
this
.
formId
=
'edit-form
-prepare
'
this
.
_hideLoading
()
this
.
_hideLoading
()
this
.
$refs
.
formObj
.
resetFields
()
this
.
$refs
.
formObj
.
resetFields
()
if
(
this
.
$string
(
formObj
).
isEmpty
())
{
if
(
this
.
$string
(
formObj
).
isEmpty
())
{
...
@@ -318,7 +318,8 @@ export default {
...
@@ -318,7 +318,8 @@ export default {
_ok
()
{
_ok
()
{
this
.
$refs
.
formObj
.
validate
(
valid
=>
{
this
.
$refs
.
formObj
.
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
const
data
=
this
.
$serialize
(
'edit-form'
)
const
data
=
this
.
$serialize
(
'edit-form-prepare'
)
console
.
log
(
'data'
,
data
)
if
(
this
.
$string
(
this
.
id
).
isEmpty
())
{
if
(
this
.
$string
(
this
.
id
).
isEmpty
())
{
data
.
experimentId
=
this
.
expId
data
.
experimentId
=
this
.
expId
// 添加
// 添加
...
@@ -334,7 +335,7 @@ export default {
...
@@ -334,7 +335,7 @@ export default {
})
})
},
},
_save
:
async
function
(
data
)
{
_save
:
async
function
(
data
)
{
console
.
log
(
data
)
console
.
log
(
'data'
,
data
)
const
result
=
await
soilTest
.
itemSave
(
data
)
const
result
=
await
soilTest
.
itemSave
(
data
)
console
.
log
(
result
)
console
.
log
(
result
)
if
(
result
)
{
if
(
result
)
{
...
...
pages/soil-test-manage/test-input/item-tabs/ItemRightList.vue
View file @
c362682e
...
@@ -331,6 +331,7 @@ export default {
...
@@ -331,6 +331,7 @@ export default {
this
.
$refs
.
pageTable
.
_loadColumn
(
colList
)
this
.
$refs
.
pageTable
.
_loadColumn
(
colList
)
},
},
_equipResult
:
async
function
(
res
)
{
_equipResult
:
async
function
(
res
)
{
this
.
$refs
.
pageTable
.
_showLoading
()
const
tempData
=
{}
const
tempData
=
{}
tempData
.
equipList
=
[]
tempData
.
equipList
=
[]
res
.
map
((
item
,
index
)
=>
{
res
.
map
((
item
,
index
)
=>
{
...
@@ -351,6 +352,9 @@ export default {
...
@@ -351,6 +352,9 @@ export default {
const
result
=
await
soilTest
.
addExpEquip
(
tempData
)
const
result
=
await
soilTest
.
addExpEquip
(
tempData
)
if
(
result
)
{
if
(
result
)
{
this
.
$Message
.
success
(
'添加成功'
)
this
.
$Message
.
success
(
'添加成功'
)
this
.
$refs
.
pageTable
.
_hideLoading
()
}
else
{
this
.
$refs
.
pageTable
.
_hideLoading
()
}
}
},
},
// 从字典查预警期
// 从字典查预警期
...
...
pages/soil-test-manage/test-input/sample-tabs/SampleRightList.vue
View file @
c362682e
...
@@ -271,6 +271,7 @@ export default {
...
@@ -271,6 +271,7 @@ export default {
}
}
},
},
_equipResult
:
async
function
(
res
)
{
_equipResult
:
async
function
(
res
)
{
this
.
$refs
.
pageTable
.
_showLoading
()
console
.
log
(
res
)
console
.
log
(
res
)
const
tempData
=
{}
const
tempData
=
{}
tempData
.
equipList
=
[]
tempData
.
equipList
=
[]
...
@@ -292,6 +293,9 @@ export default {
...
@@ -292,6 +293,9 @@ export default {
const
result
=
await
soilTest
.
addExpEquip
(
tempData
)
const
result
=
await
soilTest
.
addExpEquip
(
tempData
)
if
(
result
)
{
if
(
result
)
{
this
.
$Message
.
success
(
'添加成功'
)
this
.
$Message
.
success
(
'添加成功'
)
this
.
$refs
.
pageTable
.
_hideLoading
()
}
else
{
this
.
$refs
.
pageTable
.
_hideLoading
()
}
}
},
},
// 调整分组
// 调整分组
...
...
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