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
49c0b93e
Commit
49c0b93e
authored
Nov 04, 2020
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了开土制备试验项目列表
parent
810ffa2a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
9 deletions
+20
-9
soil-entrust.js
api/soil/soil-entrust.js
+2
-0
SoilSampleItemManageEdit.vue
...le-manage/sample-preparation/SoilSampleItemManageEdit.vue
+18
-9
No files found.
api/soil/soil-entrust.js
View file @
49c0b93e
...
...
@@ -29,6 +29,8 @@ export default {
getVOById
:
data
=>
http
.
get
(
'soil/v1/entrust/vo/'
+
data
).
then
(
res
=>
res
),
deleteById
:
data
=>
http
.
delete
(
'soil/v1/entrust/?ids='
+
data
).
then
(
res
=>
res
),
experimentDeleteById
:
data
=>
http
.
delete
(
'soil/v1/experiment/?ids='
+
data
).
then
(
res
=>
res
),
// 保存
save
:
data
=>
https
...
...
pages/soil-sample-manage/sample-preparation/SoilSampleItemManageEdit.vue
View file @
49c0b93e
...
...
@@ -17,6 +17,9 @@
<Form-item
label=
"试验科室:"
class=
"search-item"
>
<Input
v-model=
"formObj.groupName"
@
on-enter=
"_formSearch"
placeholder=
"请输入试验科室"
clearable
/>
</Form-item>
<Form-item
label=
"试验编号:"
class=
"search-item"
>
<Input
v-model=
"formObj.sampleCode"
@
on-enter=
"_formSearch"
placeholder=
"请输入试样编号"
clearable
/>
</Form-item>
<Form-item
class=
"search-btn"
>
<Button
@
click=
"_formSearch"
type=
"primary"
>
搜索
...
...
@@ -129,6 +132,11 @@ export default {
type
:
'success'
,
id
:
''
,
name
:
'批量填写试验项目信息'
},
{
type
:
'error'
,
id
:
''
,
name
:
'删除'
}
],
iconMsg
:
[{
type
:
'pt-a-end'
,
id
:
''
,
name
:
'删除'
}],
...
...
@@ -182,6 +190,7 @@ export default {
name
:
undefined
,
sampleId
:
undefined
,
groupName
:
undefined
,
sampleCode
:
undefined
,
entrustId
:
undefined
}
}
...
...
@@ -372,7 +381,7 @@ export default {
const
result
=
await
soilEntrust
.
pageItemEdit
(
data
)
if
(
result
)
{
this
.
$message
.
success
(
'保存成功'
)
this
.
_page
()
this
.
_page
ByEntrustId
()
}
else
{
this
.
$message
.
warning
(
'保存失败'
)
}
...
...
@@ -381,7 +390,7 @@ export default {
const
result
=
await
soilEntrust
.
pageItemEdit
(
data
)
if
(
result
)
{
this
.
$message
.
success
(
'保存成功'
)
this
.
_page
()
this
.
_page
ByEntrustId
()
}
else
{
this
.
$message
.
warning
(
'保存失败'
)
}
...
...
@@ -390,7 +399,7 @@ export default {
const
result
=
await
soilEntrust
.
pageItemEdit
(
data
)
if
(
result
)
{
this
.
$message
.
success
(
'保存成功'
)
this
.
_page
()
this
.
_page
ByEntrustId
()
}
else
{
this
.
$message
.
warning
(
'保存失败'
)
}
...
...
@@ -399,7 +408,7 @@ export default {
const
result
=
await
soilEntrust
.
pageItemEdit
(
data
)
if
(
result
)
{
this
.
$message
.
success
(
'保存成功'
)
this
.
_page
()
this
.
_page
ByEntrustId
()
}
else
{
this
.
$message
.
warning
(
'保存失败'
)
}
...
...
@@ -541,7 +550,7 @@ export default {
this
.
showModal
=
true
this
.
sampleId
=
id
// 委托id
this
.
$refs
.
pageTable
.
_hideLoading
()
this
.
_page
()
this
.
_page
ByEntrustId
()
},
_openByEntrustId
(
id
)
{
this
.
formObj
=
this
.
$resetFields
(
this
.
formObj
)
...
...
@@ -560,7 +569,7 @@ export default {
this
.
sampleId
=
id
// 委托id
this
.
$refs
.
pageTable
.
_hideLoading
()
this
.
showOption
=
false
this
.
_page
()
this
.
_page
ByEntrustId
()
},
_formSearch
()
{
this
.
$refs
.
pageTable
.
_pageChange
(
1
)
...
...
@@ -602,7 +611,7 @@ export default {
},
_deleteOk
:
async
function
(
ids
)
{
const
result
=
await
soilEntrust
.
d
eleteById
(
ids
)
const
result
=
await
soilEntrust
.
experimentD
eleteById
(
ids
)
if
(
result
)
{
this
.
_resultChange
(
'删除成功! '
)
}
...
...
@@ -654,10 +663,10 @@ export default {
}
},
_search
()
{
this
.
_page
()
this
.
_page
ByEntrustId
()
},
_resultChange
(
msg
)
{
this
.
_page
()
this
.
_page
ByEntrustId
()
this
.
$Message
.
success
(
msg
)
this
.
$emit
(
'on-result-change'
)
},
...
...
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