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
8ad70ba0
Commit
8ad70ba0
authored
Nov 13, 2020
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了委托单登记的样品管理
parent
c110dddc
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
34 deletions
+18
-34
soil-sample.js
api/soil/soil-sample.js
+3
-1
SoilSampleManage.vue
pages/meter-entrust/SoilSampleManage.vue
+7
-20
SoilSampleManageHis.vue
pages/meter-entrust/SoilSampleManageHis.vue
+7
-9
EntrustRegisterEdit.vue
pages/meter-entrust/entrust-register/EntrustRegisterEdit.vue
+0
-1
EntrustRegisterHis.vue
pages/meter-entrust/entrust-register/EntrustRegisterHis.vue
+1
-3
No files found.
api/soil/soil-sample.js
View file @
8ad70ba0
...
@@ -177,5 +177,7 @@ export default {
...
@@ -177,5 +177,7 @@ export default {
pageSecondary
:
data
=>
pageSecondary
:
data
=>
http
.
post
(
'soil/v1/prepare/page_secondary'
,
data
).
then
(
res
=>
res
),
http
.
post
(
'soil/v1/prepare/page_secondary'
,
data
).
then
(
res
=>
res
),
pageSecondaryHis
:
data
=>
pageSecondaryHis
:
data
=>
http
.
post
(
'soil/v1/prepare/page_secondary_his'
,
data
).
then
(
res
=>
res
)
http
.
post
(
'soil/v1/prepare/page_secondary_his'
,
data
).
then
(
res
=>
res
),
sampleDeleteById
:
data
=>
http
.
delete
(
'soil/v1/sample/?ids='
+
data
).
then
(
res
=>
res
)
}
}
pages/meter-entrust/SoilSampleManage.vue
View file @
8ad70ba0
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
</template>
</template>
<
script
>
<
script
>
import
http
from
'../../api/http'
import
http
from
'../../api/http'
import
{
soilEntrust
}
from
'../../api'
import
{
soilEntrust
,
soilSample
}
from
'../../api'
import
{
getLodop
}
from
'../../plugins/clodop/LodopFuncs'
import
{
getLodop
}
from
'../../plugins/clodop/LodopFuncs'
import
SoilSampleItemManage
from
'./SoilSampleItemManage'
import
SoilSampleItemManage
from
'./SoilSampleItemManage'
let
LODOP
let
LODOP
...
@@ -162,15 +162,6 @@ export default {
...
@@ -162,15 +162,6 @@ export default {
}
}
this
.
_importItemOk
({
sampleIds
:
this
.
selectIds
,
drugItemList
:
data
})
this
.
_importItemOk
({
sampleIds
:
this
.
selectIds
,
drugItemList
:
data
})
},
},
// _importItemOk: async function(data) {
// const result = await drugSample.importSampleItemDTO(data)
// if (result) {
// this.$Message.success('导入成功!')
// await this._page()
// }
// },
_modalResult
(
data1
,
data2
)
{
_modalResult
(
data1
,
data2
)
{
switch
(
this
.
currentComponent
)
{
switch
(
this
.
currentComponent
)
{
case
'CopyModal'
:
case
'CopyModal'
:
...
@@ -346,20 +337,16 @@ export default {
...
@@ -346,20 +337,16 @@ export default {
title
:
'提示'
,
title
:
'提示'
,
content
:
content
||
'确定删除该记录?'
,
content
:
content
||
'确定删除该记录?'
,
onOk
:
()
=>
{
onOk
:
()
=>
{
// this.$store.dispatch('FoodSample/deleteByIds', ids).then(() => {
// this._resultChange('删除成功!')
// })
this
.
_deleteOk
(
ids
)
this
.
_deleteOk
(
ids
)
}
}
})
})
},
},
_deleteOk
:
async
function
(
ids
)
{
// _deleteOk: async function(ids) {
const
result
=
await
soilSample
.
sampleDeleteById
(
ids
)
// const result = await drugSample.deleteById(ids)
if
(
result
)
{
// if (result) {
this
.
_resultChange
(
'删除成功'
)
// this._resultChange('删除成功')
}
// }
},
// },
_deleteById
(
id
)
{
_deleteById
(
id
)
{
// 删除一条记录
// 删除一条记录
...
...
pages/meter-entrust/SoilSampleManageHis.vue
View file @
8ad70ba0
...
@@ -67,7 +67,7 @@
...
@@ -67,7 +67,7 @@
</template>
</template>
<
script
>
<
script
>
import
http
from
'../../api/http'
import
http
from
'../../api/http'
import
{
soilEntrust
}
from
'../../api'
import
{
soilEntrust
,
soilSample
}
from
'../../api'
import
{
getLodop
}
from
'../../plugins/clodop/LodopFuncs'
import
{
getLodop
}
from
'../../plugins/clodop/LodopFuncs'
import
SoilSampleItemManage
from
'./SoilSampleItemManageHis'
import
SoilSampleItemManage
from
'./SoilSampleItemManageHis'
let
LODOP
let
LODOP
...
@@ -256,7 +256,6 @@ export default {
...
@@ -256,7 +256,6 @@ export default {
this
.
_copy
(
data
)
this
.
_copy
(
data
)
break
break
case
'删除'
:
case
'删除'
:
console
.
log
(
index
)
this
.
_deleteById
(
data
.
id
)
this
.
_deleteById
(
data
.
id
)
break
break
case
'附件'
:
case
'附件'
:
...
@@ -347,13 +346,12 @@ export default {
...
@@ -347,13 +346,12 @@ export default {
}
}
})
})
},
},
_deleteOk
:
async
function
(
ids
)
{
// _deleteOk: async function(ids) {
const
result
=
await
soilSample
.
sampleDeleteById
(
ids
)
// const result = await drugSample.deleteById(ids)
if
(
result
)
{
// if (result) {
this
.
_resultChange
(
'删除成功'
)
// this._resultChange('删除成功')
}
// }
},
// },
_deleteById
(
id
)
{
_deleteById
(
id
)
{
// 删除一条记录
// 删除一条记录
...
...
pages/meter-entrust/entrust-register/EntrustRegisterEdit.vue
View file @
8ad70ba0
...
@@ -754,7 +754,6 @@ export default {
...
@@ -754,7 +754,6 @@ export default {
break
break
case
'删除'
:
case
'删除'
:
this
.
getPage
.
records
.
splice
(
index
,
1
)
this
.
getPage
.
records
.
splice
(
index
,
1
)
this
.
_deleteSample
(
data
)
break
break
case
'操作日志'
:
case
'操作日志'
:
// this._record(data.id)
// this._record(data.id)
...
...
pages/meter-entrust/entrust-register/EntrustRegisterHis.vue
View file @
8ad70ba0
...
@@ -49,10 +49,8 @@
...
@@ -49,10 +49,8 @@
</div>
</div>
<keep-alive>
<keep-alive>
<!-- eslint-disable-next-line vue/require-component-is -->
<!-- eslint-disable-next-line vue/require-component-is -->
<component
ref=
"refModal"
:is=
"currentComponent"
@
on-result-change=
"_componentResult"
></component>
<component
ref=
"refModal"
:is=
"currentComponent"
></component>
</keep-alive>
</keep-alive>
<!-- <MeterEntrustRecord ref="entrustRecordModal" @on-result-change="_page"></MeterEntrustRecord>-->
<!-- <SoilSampleManage ref="sampleManageModal" @on-result-change="_page"></SoilSampleManage>-->
</div>
</div>
</template>
</template>
<
script
>
<
script
>
...
...
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