Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
patzn-cloud-web-h5app-drs
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
zhuxiaomei
patzn-cloud-web-h5app-drs
Commits
11456cb3
Commit
11456cb3
authored
Nov 06, 2020
by
zhuxiaomei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改
parent
651e7a25
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
4 deletions
+37
-4
sampling-shelf.js
src/api/drs/sampling-shelf.js
+1
-0
sampling-summary.js
src/api/drs/sampling-summary.js
+1
-0
GoodsShelves.vue
src/page/sampling-task/GoodsShelves.vue
+17
-2
SamplingLocation.vue
src/page/sampling-task/SamplingLocation.vue
+18
-2
No files found.
src/api/drs/sampling-shelf.js
View file @
11456cb3
...
...
@@ -9,4 +9,5 @@ export default {
edit
:
data
=>
http
.
put
(
'/drs/v1/sampling_shelf/'
+
data
.
id
,
data
.
obj
).
then
(
res
=>
res
),
deleteByIds
:
ids
=>
http
.
delete
(
'/drs/v1/sampling_shelf/?ids='
+
ids
).
then
(
res
=>
res
),
getById
:
id
=>
http
.
get
(
'/drs/v1/sampling_shelf/'
+
id
).
then
(
res
=>
res
),
checkPlaceDelete
:
data
=>
http
.
post
(
'/drs/v1/sampling_shelf/check_place_delete'
,
data
).
then
(
res
=>
res
),
}
src/api/drs/sampling-summary.js
View file @
11456cb3
...
...
@@ -13,4 +13,5 @@ export default {
lastTester
:
()
=>
http
.
post
(
'/drs/v1/sampling_summary/last_tester'
).
then
(
res
=>
res
),
getTester
:
data
=>
http
.
post
(
'/drs/v1/sampling_summary/get_tester_by_name'
,
data
).
then
(
res
=>
res
),
getProducter
:
data
=>
http
.
post
(
'/drs/v1/sampling_summary/get_producter_by_name'
,
data
).
then
(
res
=>
res
),
checkShelfDelete
:
data
=>
http
.
post
(
'/drs/v1/sampling_summary/check_shelf_delete'
,
data
).
then
(
res
=>
res
),
}
src/page/sampling-task/GoodsShelves.vue
View file @
11456cb3
...
...
@@ -13,7 +13,7 @@
</div>
<template
#
right
>
<van-button
square
type=
"danger"
text=
"删除"
class=
"swipe-cell-btn"
@
click=
"_del(item.id)"
></van-button>
@
click=
"_del
Check
(item.id)"
></van-button>
</
template
>
</van-swipe-cell>
</van-list>
...
...
@@ -33,7 +33,7 @@
</template>
<
script
>
import
{
samplingShelf
}
from
'../../api'
import
{
samplingShelf
,
samplingSummary
}
from
'../../api'
export
default
{
name
:
"GoodsShelves"
,
...
...
@@ -79,6 +79,21 @@
this
.
page
=
this
.
page
+
1
;
this
.
_getData
()
},
_delCheck
:
async
function
(
id
){
let
result
=
await
samplingSummary
.
checkShelfDelete
({
shelfId
:
id
})
if
(
result
){
let
that
=
this
;
this
.
$dialog
.
confirm
({
title
:
'提示'
,
message
:
result
,
}).
then
(()
=>
{
that
.
_del
(
id
)
}).
catch
(()
=>
{
});
}
else
{
this
.
_del
(
id
)
}
},
_del
:
async
function
(
id
)
{
let
result
=
await
samplingShelf
.
deleteByIds
([
id
])
if
(
result
)
{
...
...
src/page/sampling-task/SamplingLocation.vue
View file @
11456cb3
...
...
@@ -18,7 +18,7 @@
<van-button
square
type=
"info"
text=
"打卡"
class=
"swipe-cell-btn"
@
click=
"_getWebLoc(item.id)"
></van-button>
<van-button
square
type=
"danger"
text=
"删除"
class=
"swipe-cell-btn"
@
click=
"_del
Loc
(item.id)"
></van-button>
@
click=
"_del
Check
(item.id)"
></van-button>
</
template
>
</van-swipe-cell>
</van-list>
...
...
@@ -38,7 +38,7 @@
<
script
>
import
BaiduMap
from
'../../lib/map'
import
{
samplingPlace
,
attendanceRecord
}
from
'../../api'
import
{
samplingPlace
,
attendanceRecord
,
samplingShelf
}
from
'../../api'
import
SelectLocation
from
'./components/SelectLocation'
export
default
{
...
...
@@ -129,6 +129,22 @@
_goto
(
data
)
{
this
.
$router
.
push
({
path
:
'/sampling_task/goods_shelves'
,
query
:
{
placeId
:
data
.
id
}})
},
_delCheck
:
async
function
(
id
)
{
let
result
=
await
samplingShelf
.
checkPlaceDelete
({
placeId
:
id
})
if
(
result
)
{
let
that
=
this
;
this
.
$dialog
.
confirm
({
title
:
'提示'
,
message
:
result
,
}).
then
(()
=>
{
that
.
_delLoc
(
id
)
}).
catch
(()
=>
{
// on cancel
});
}
else
{
this
.
_delLoc
(
id
)
}
},
_delLoc
:
async
function
(
id
)
{
let
result
=
await
samplingPlace
.
edit
({
id
:
id
,
obj
:
{
planId
:
this
.
planId
,
selected
:
0
}})
if
(
result
)
{
...
...
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