Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
wmsMin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
56c7996c
authored
May 14, 2024
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
优化
parent
58e159d2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
64 additions
and
8 deletions
assets/css/tally/index.scss
pages/tally/index.vue
assets/css/tally/index.scss
View file @
56c7996c
...
...
@@ -29,6 +29,11 @@
font-size
:
24rpx
;
color
:
#197adb
;
}
.icon-jinggao2
{
font-size
:
30rpx
;
color
:
#c6c7cc
;
margin-right
:
30rpx
;
}
}
.select-box
{
width
:
129rpx
;
...
...
@@ -54,6 +59,10 @@
opacity
:
0
.8
;
}
}
.icon-jinggao2
{
font-size
:
30rpx
;
color
:
#c6c7cc
;
}
}
}
.info
{
...
...
@@ -116,7 +125,12 @@
}
.t4
{
font-size
:
26rpx
;
color
:
404547
;
color
:
#404547
;
}
.t5
{
font-size
:
24rpx
;
color
:
#197adb
;
margin-left
:
16rpx
;
}
.input-text
{
.uni-input
{
...
...
pages/tally/index.vue
View file @
56c7996c
...
...
@@ -3,9 +3,10 @@
<view
class=
"fix-box"
>
<view
class=
"column-box row bothSide verCenter"
>
<view
class=
"input-box row verCenter"
>
<input
class=
"uni-input"
@
input=
"handleInput($event,1)"
:focus=
"is_focus"
placeholder=
"当前箱号"
placeholder-style=
"color:#000;font-weight: bold;"
v-model=
"box_sn"
/>
<input
class=
"uni-input"
@
input=
"handleInput($event,1)"
:focus=
"is_focus
_1
"
placeholder=
"当前箱号"
placeholder-style=
"color:#000;font-weight: bold;"
v-model=
"box_sn"
/>
</view>
<view
class=
"action-bar row verCenter"
>
<text
class=
"iconfont icon-jinggao2"
@
click=
"clearInput(1)"
v-if=
"box_sn"
></text>
<template
v-if=
"wsty_id"
>
<view
class=
"btn1 row rowCenter verCenter"
@
click=
"print()"
style=
"margin-right: 8rpx;"
>
打印箱号
</view>
<view
class=
"btn row rowCenter verCenter"
@
click=
"getBoxSn()"
>
取箱号
</view>
...
...
@@ -17,9 +18,10 @@
</view>
<view
class=
"column-box row bothSide verCenter"
>
<view
class=
"input-box row verCenter"
>
<input
class=
"uni-input"
:disabled=
"tallyData.detail && tallyData.detail.length > 0 && step == 1 && erp_order_sn !=''"
:class=
"{ 'disabled': tallyData.detail && tallyData.detail.length > 0 && step == 1 && erp_order_sn !='' }"
placeholder=
"输入或扫描入仓号"
placeholder-style=
"color:#000;font-weight: bold;"
v-model=
"erp_order_sn"
/>
<input
class=
"uni-input"
:
focus=
"is_focus_2"
:
disabled=
"tallyData.detail && tallyData.detail.length > 0 && step == 1 && erp_order_sn !=''"
:class=
"{ 'disabled': tallyData.detail && tallyData.detail.length > 0 && step == 1 && erp_order_sn !='' }"
placeholder=
"输入或扫描入仓号"
placeholder-style=
"color:#000;font-weight: bold;"
v-model=
"erp_order_sn"
/>
</view>
<view
class=
"action-bar row verCenter"
>
<text
class=
"iconfont icon-jinggao2"
@
click=
"clearInput(2)"
v-if=
"erp_order_sn && form.length == 0"
></text>
<
template
v-if=
"tallyData.detail && tallyData.detail.length > 0 && step == 1 && erp_order_sn != ''"
>
<view
class=
"btn1 row rowCenter verCenter"
style=
"margin-right: 8rpx;"
@
click=
"cancelRelease()"
>
取消释放
</view>
<view
class=
"btn row rowCenter verCenter"
@
click=
"closeBox()"
>
关单封箱
</view>
...
...
@@ -42,15 +44,16 @@
<view
class=
"input-box row verCenter"
>
<!-- 其他 -->
<
template
v-if=
"index == 0"
>
<input
class=
"uni-input"
placeholder=
"输入或扫描"
placeholder-style=
"color:#000;font-weight: bold;"
v-model=
"goods_type"
@
input=
"handleInput($event,2)"
/>
<input
class=
"uni-input"
:focus=
"is_focus_3"
placeholder=
"输入或扫描"
placeholder-style=
"color:#000;font-weight: bold;"
v-model=
"goods_type"
@
input=
"handleInput($event,2)"
/>
</
template
>
<!-- digikey等供应商-->
<
template
v-else
>
<input
class=
"uni-input"
placeholder=
"输入或扫描"
placeholder-style=
"color:#000;font-weight: bold;"
v-model=
"keyword"
@
input=
"handleInput($event,2)"
/>
<input
class=
"uni-input"
:focus=
"is_focus_3"
placeholder=
"输入或扫描"
placeholder-style=
"color:#000;font-weight: bold;"
v-model=
"keyword"
@
input=
"handleInput($event,2)"
/>
</
template
>
</view>
</view>
<view
class=
"action-bar"
>
<view
class=
"action-bar row verCenter"
>
<text
class=
"iconfont icon-jinggao2"
@
click=
"clearInput(3)"
v-if=
"goods_type || keyword"
></text>
<view
class=
"btn1 row rowCenter verCenter"
@
click=
"identifyQrCodeNumAndSn()"
>
扫 描
</view>
</view>
</view>
...
...
@@ -230,7 +233,9 @@
data
()
{
return
{
email
:
uni
.
getStorageSync
(
'email'
)
||
''
,
//操作人邮箱
is_focus
:
true
,
//获取焦点动态化
is_focus_1
:
true
,
//获取焦点动态化
is_focus_2
:
false
,
//获取焦点动态化
is_focus_3
:
false
,
//获取焦点动态化
title
:
''
,
step
:
0
,
keyword
:
''
,
...
...
@@ -248,7 +253,7 @@
filter_status
:
[],
//控制状态
origin_list
:
[],
//产地
origin
:
''
,
//搜索国家携带的参数
form
:
{}
,
form
:
[]
,
isRequestSent
:
false
,
isStopRequest
:
false
,
gross_weight
:
''
,
...
...
@@ -274,6 +279,31 @@
this
.
$refs
.
inputDialog
.
close
();
},
/**
* 清空数据
*/
clearInput
(
type
)
{
if
(
type
==
1
)
{
this
.
box_sn
=
''
;
this
.
is_focus_1
=
false
;
setTimeout
(()
=>
{
this
.
is_focus_1
=
true
;
},
200
);
}
else
if
(
type
==
2
)
{
this
.
erp_order_sn
=
''
;
this
.
is_focus_2
=
false
;
setTimeout
(()
=>
{
this
.
is_focus_2
=
true
;
},
200
);
}
else
if
(
type
==
3
)
{
this
.
goods_type
=
''
;
this
.
keyword
=
''
;
this
.
is_focus_3
=
false
;
setTimeout
(()
=>
{
this
.
is_focus_3
=
true
;
},
200
);
}
},
/**
* 找出false对应的下标
* @param {Object} arr
* @param {Object} target
...
...
@@ -773,6 +803,7 @@
this
.
erp_order_sn
=
''
;
this
.
goods_type
=
''
;
this
.
keyword
=
''
;
this
.
form
=
[];
}
else
{
uni
.
showToast
({
title
:
res
.
err_msg
,
...
...
@@ -836,6 +867,7 @@
this
.
wsty_id
=
''
;
this
.
tallyData
=
[];
this
.
erp_order_sn
=
''
;
this
.
form
=
[];
this
.
$refs
.
inputDialog
.
close
();
},
2000
);
}
else
{
...
...
@@ -853,6 +885,7 @@
this
.
$refs
.
inputDialog
.
close
();
this
.
tallyData
=
[];
this
.
erp_order_sn
=
''
;
this
.
form
=
[];
},
/**
* 打印箱号
...
...
@@ -885,6 +918,15 @@
});
}
});
},
/**
* 再次获取焦点
*/
clearInputAndFocus
()
{
this
.
is_focus
=
false
;
setTimeout
(()
=>
{
this
.
is_focus
=
true
;
},
200
);
}
}
};
...
...
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