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
3d6d88f7
Commit
3d6d88f7
authored
Mar 23, 2023
by
zhoumaotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面调整
parent
141fa4d2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
20 deletions
+20
-20
index.vue
pages/dl_cmaterial/index.vue
+20
-20
No files found.
pages/dl_cmaterial/index.vue
View file @
3d6d88f7
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
<button
class=
"cu-btn bg-gradual-orange wid22"
@
tap=
"lockingbt()"
>
锁定
</button>
<button
class=
"cu-btn bg-gradual-orange wid22"
@
tap=
"lockingbt()"
>
锁定
</button>
<button
class=
"cu-btn bg-gradual-black wid22"
style=
"background-color: #666;color: #fff;"
@
tap=
"deactivate('停用')"
>
停用
</button>
<button
class=
"cu-btn bg-gradual-black wid22"
style=
"background-color: #666;color: #fff;"
@
tap=
"deactivate('停用')"
>
停用
</button>
</view>
</view>
<view
class=
"padding flex align-center bg-white justify-around"
v-if=
"gwObj.status==
4
"
>
<view
class=
"padding flex align-center bg-white justify-around"
v-if=
"gwObj.status==
'4'
"
>
<button
class=
"cu-btn bg-gradual-orange "
@
tap=
"deactivate('启用')"
>
启用
</button>
<button
class=
"cu-btn bg-gradual-orange "
@
tap=
"deactivate('启用')"
>
启用
</button>
</view>
</view>
<view
class=
"padding flex align-center bg-white justify-around"
v-if=
"gwObj.status=='L'"
>
<view
class=
"padding flex align-center bg-white justify-around"
v-if=
"gwObj.status=='L'"
>
...
@@ -120,18 +120,18 @@
...
@@ -120,18 +120,18 @@
},
},
getstatus
:
function
(
e
)
{
getstatus
:
function
(
e
)
{
let
ztList
=
{
let
ztList
=
{
"
1
"
:
"正常"
,
"
E
"
:
"正常"
,
"
2
"
:
"已占用"
,
"
U
"
:
"已占用"
,
"
3
"
:
"锁定"
,
"
L
"
:
"锁定"
,
"4"
:
"停用"
"4"
:
"停用"
};
};
return
ztList
[
e
]
return
ztList
[
e
]
},
},
getColor
:
function
(
e
)
{
getColor
:
function
(
e
)
{
let
ztList
=
{
let
ztList
=
{
"
1
"
:
"bg-green"
,
"
E
"
:
"bg-green"
,
"
2
"
:
"bg-red"
,
"
U
"
:
"bg-red"
,
"
3
"
:
"bg-orange"
,
"
L
"
:
"bg-orange"
,
"4"
:
"bg-red"
"4"
:
"bg-red"
};
};
return
ztList
[
e
]
return
ztList
[
e
]
...
@@ -146,9 +146,9 @@
...
@@ -146,9 +146,9 @@
},
},
ztTrans
:
function
(
a
)
{
ztTrans
:
function
(
a
)
{
const
ztList
=
{
const
ztList
=
{
"
1
"
:
"空闲"
,
"
E
"
:
"空闲"
,
"
2
"
:
"已占用"
,
"
U
"
:
"已占用"
,
"
3
"
:
"锁定"
,
"
L
"
:
"锁定"
,
"4"
:
"停用"
"4"
:
"停用"
};
};
return
ztList
[
a
]
return
ztList
[
a
]
...
@@ -177,8 +177,8 @@
...
@@ -177,8 +177,8 @@
this
.
formData
.
gwid
=
this
.
gwObj
.
id
;
this
.
formData
.
gwid
=
this
.
gwObj
.
id
;
}
}
if
(
this
.
gwinfor
[
this
.
gwSelcetdIndex
].
status
!=
1
){
if
(
this
.
gwinfor
[
this
.
gwSelcetdIndex
].
status
!=
"E"
){
queryAgvInfo
({
gwid
:
this
.
gwinfor
[
this
.
gwSelcetdIndex
].
id
}).
then
(
e
=>
{
queryAgvInfo
({
gwid
:
this
.
gwinfor
[
this
.
gwSelcetdIndex
].
mapdatacode
}).
then
(
e
=>
{
this
.
agvinfo
=
e
.
records
this
.
agvinfo
=
e
.
records
})
})
}
}
...
@@ -273,7 +273,7 @@
...
@@ -273,7 +273,7 @@
lockMaterials
({}).
then
(
e
=>
{
lockMaterials
({}).
then
(
e
=>
{
if
(
e
){
if
(
e
){
that
.
$tip
.
toast
(
"锁定成功"
)
that
.
$tip
.
toast
(
"锁定成功"
)
that
.
gwinfor
[
that
.
gwSelcetdIndex
].
status
=
3
that
.
gwinfor
[
that
.
gwSelcetdIndex
].
status
=
"L"
that
.
wlinfor
=
{}
that
.
wlinfor
=
{}
}
}
})
})
...
@@ -295,7 +295,7 @@
...
@@ -295,7 +295,7 @@
if
(
res
.
confirm
)
{
if
(
res
.
confirm
)
{
deactivate
({
id
:
that
.
gwinfor
[
that
.
gwSelcetdIndex
].
id
}).
then
(
e
=>
{
deactivate
({
id
:
that
.
gwinfor
[
that
.
gwSelcetdIndex
].
id
}).
then
(
e
=>
{
if
(
e
){
if
(
e
){
if
(
that
.
gwinfor
[
that
.
gwSelcetdIndex
].
status
!=
4
){
if
(
that
.
gwinfor
[
that
.
gwSelcetdIndex
].
status
!=
"4"
){
that
.
$tip
.
toast
(
"停用成功"
)
that
.
$tip
.
toast
(
"停用成功"
)
}
else
{
}
else
{
that
.
$tip
.
toast
(
"启用成功"
)
that
.
$tip
.
toast
(
"启用成功"
)
...
@@ -323,7 +323,7 @@
...
@@ -323,7 +323,7 @@
unlockMaterials
({}).
then
(
e
=>
{
unlockMaterials
({}).
then
(
e
=>
{
if
(
e
){
if
(
e
){
that
.
$tip
.
toast
(
"解锁成功"
)
that
.
$tip
.
toast
(
"解锁成功"
)
that
.
gwinfor
[
that
.
gwSelcetdIndex
].
status
=
1
that
.
gwinfor
[
that
.
gwSelcetdIndex
].
status
=
"E"
that
.
wlinfor
=
{}
that
.
wlinfor
=
{}
}
}
})
})
...
@@ -337,7 +337,7 @@
...
@@ -337,7 +337,7 @@
this
.
$Router
.
push
({
this
.
$Router
.
push
({
path
:
'/pages/dl_tray_adjust/index'
,
path
:
'/pages/dl_tray_adjust/index'
,
query
:
{
query
:
{
tp
code
:
this
.
gwinfor
[
this
.
gwSelcetdIndex
].
id
code
:
this
.
gwinfor
[
this
.
gwSelcetdIndex
].
id
},
},
})
})
},
},
...
@@ -364,7 +364,7 @@
...
@@ -364,7 +364,7 @@
},
},
// 选择生产订单跳转
// 选择生产订单跳转
nextTo
()
{
nextTo
()
{
if
(
this
.
gwinfor
[
this
.
gwSelcetdIndex
].
status
!=
1
){
if
(
this
.
gwinfor
[
this
.
gwSelcetdIndex
].
status
!=
"E"
){
this
.
$tip
.
toast
(
"当前工位非正常状态"
)
this
.
$tip
.
toast
(
"当前工位非正常状态"
)
return
return
}
}
...
@@ -385,12 +385,12 @@
...
@@ -385,12 +385,12 @@
_self
.
gwSelcetdIndex
=
e
;
_self
.
gwSelcetdIndex
=
e
;
_self
.
gwObj
=
_self
.
gwinfor
[
e
];
_self
.
gwObj
=
_self
.
gwinfor
[
e
];
_self
.
formData
.
gwid
=
_self
.
gwObj
.
id
;
_self
.
formData
.
gwid
=
_self
.
gwObj
.
id
;
if
(
this
.
status
!=
1
)
{
if
(
this
.
status
!=
"E"
)
{
queryAgvInfo
({
gwid
:
this
.
gwinfor
[
this
.
gwSelcetdIndex
].
id
}).
then
(
e
=>
{
queryAgvInfo
({
gwid
:
this
.
gwinfor
[
this
.
gwSelcetdIndex
].
mapdatacode
}).
then
(
e
=>
{
this
.
agvinfo
=
e
.
records
this
.
agvinfo
=
e
.
records
})
})
}
else
if
(
}
else
if
(
this
.
status
==
1
this
.
status
==
"E"
)
{
)
{
this
.
agvinfo
=
{}
this
.
agvinfo
=
{}
...
...
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