Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
X
xgdlapp
Project
Project
Details
Activity
Releases
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
李苏
xgdlapp
Commits
dd482bcc
Commit
dd482bcc
authored
Mar 28, 2023
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dlapp新增接口
parent
ce29fb10
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
5 deletions
+19
-5
dlapi.js
api/dlapi.js
+12
-1
Station.vue
components/Station/Station.vue
+1
-1
index.vue
pages/dl_cmaterial/index.vue
+6
-3
No files found.
api/dlapi.js
View file @
dd482bcc
...
@@ -247,4 +247,15 @@ export function apiEmptyGw(params){
...
@@ -247,4 +247,15 @@ export function apiEmptyGw(params){
return
filter
(
e
)
return
filter
(
e
)
})
})
}
}
/* 锁定 */
export
function
apiGwLock
(
params
){
return
http
.
post
(
"/xgwcs/gw/lock"
,
params
||
{}).
then
(
e
=>
{
return
filter
(
e
)
})
}
/* 解锁 */
export
function
apiGwUnlock
(
params
){
return
http
.
post
(
"/xgwcs/gw/unlock"
,
params
||
{}).
then
(
e
=>
{
return
filter
(
e
)
})
}
\ No newline at end of file
components/Station/Station.vue
View file @
dd482bcc
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<view
class=
"stationBody"
:class=
"
{status1:itemInfo.status=='E',status2:itemInfo.status=='U',status3:itemInfo.status=='L',status4:itemInfo.status==4}">
<view
class=
"stationBody"
:class=
"
{status1:itemInfo.status=='E',status2:itemInfo.status=='U',status3:itemInfo.status=='L',status4:itemInfo.status==4}">
<view
class=
"item"
>
{{
itemInfo
.
ckName
}}
</view>
<view
class=
"item"
>
{{
itemInfo
.
ckName
}}
</view>
<view
class=
"item"
>
{{
itemInfo
.
name
}}
</view>
<view
class=
"item"
>
{{
itemInfo
.
name
}}
</view>
<view
class=
"item"
>
{{
itemInfo
.
ppdName
}}
</view>
<view
class=
"item"
>
{{
itemInfo
.
ppdName
||
itemInfo
.
name
}}
</view>
<view
class=
"item"
>
{{
itemInfo
.
status
|
getstatus
}}
</view>
<view
class=
"item"
>
{{
itemInfo
.
status
|
getstatus
}}
</view>
</view>
</view>
<view
class=
"stationSelect"
>
<view
class=
"stationSelect"
>
...
...
pages/dl_cmaterial/index.vue
View file @
dd482bcc
...
@@ -58,7 +58,10 @@
...
@@ -58,7 +58,10 @@
backWarehouse
,
backWarehouse
,
deactivate
,
deactivate
,
apiSearchTpByGwid
,
apiSearchTpByGwid
,
apiEmptyTpByGwid
apiEmptyTpByGwid
,
/*, 锁定 */
apiGwLock
,
apiGwUnlock
}
from
'@/api/dlapi.js'
;
}
from
'@/api/dlapi.js'
;
import
eventBus
from
'@/common/util/eventBus.js'
import
eventBus
from
'@/common/util/eventBus.js'
import
Station
from
'@/components/Station/Station.vue'
import
Station
from
'@/components/Station/Station.vue'
...
@@ -272,7 +275,7 @@
...
@@ -272,7 +275,7 @@
confirmText
:
"是"
,
// 确认按钮的文字
confirmText
:
"是"
,
// 确认按钮的文字
success
:
function
(
res
)
{
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
if
(
res
.
confirm
)
{
lockMaterials
({
}).
then
(
e
=>
{
apiGwLock
({
id
:
that
.
gwinfor
[
that
.
gwSelcetdIndex
].
id
}).
then
(
e
=>
{
if
(
e
){
if
(
e
){
that
.
$tip
.
toast
(
"锁定成功"
)
that
.
$tip
.
toast
(
"锁定成功"
)
that
.
gwinfor
[
that
.
gwSelcetdIndex
].
status
=
"L"
that
.
gwinfor
[
that
.
gwSelcetdIndex
].
status
=
"L"
...
@@ -322,7 +325,7 @@
...
@@ -322,7 +325,7 @@
confirmText
:
"是"
,
// 确认按钮的文字
confirmText
:
"是"
,
// 确认按钮的文字
success
:
function
(
res
)
{
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
if
(
res
.
confirm
)
{
unlockMaterials
({
}).
then
(
e
=>
{
apiGwUnlock
({
id
:
that
.
gwinfor
[
that
.
gwSelcetdIndex
].
id
}).
then
(
e
=>
{
if
(
e
){
if
(
e
){
that
.
$tip
.
toast
(
"解锁成功"
)
that
.
$tip
.
toast
(
"解锁成功"
)
that
.
gwinfor
[
that
.
gwSelcetdIndex
].
status
=
"E"
that
.
gwinfor
[
that
.
gwSelcetdIndex
].
status
=
"E"
...
...
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