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
01440e80
authored
May 16, 2024
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
优化体验
parent
187fb2c4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
3 deletions
assets/css/tally/fixBox.scss
pages/tally/fixBox.vue
pages/tally/printBox.vue
assets/css/tally/fixBox.scss
View file @
01440e80
...
@@ -32,6 +32,13 @@
...
@@ -32,6 +32,13 @@
font-size
:
24rpx
;
font-size
:
24rpx
;
color
:
#ffffff
;
color
:
#ffffff
;
}
}
.icon-jinggao2
{
position
:
relative
;
font-size
:
30rpx
;
color
:
#c6c7cc
;
margin-right
:
30rpx
;
z-index
:
22
;
}
}
}
.list
{
.list
{
height
:
calc
(
100%
-
350rpx
);
height
:
calc
(
100%
-
350rpx
);
...
...
pages/tally/fixBox.vue
View file @
01440e80
...
@@ -2,7 +2,9 @@
...
@@ -2,7 +2,9 @@
<view
class=
"tally-fixBox"
>
<view
class=
"tally-fixBox"
>
<view
class=
"input-box row bothSide verCenter"
>
<view
class=
"input-box row bothSide verCenter"
>
<input
class=
"uni-input"
placeholder=
"输入或扫描箱号"
placeholder-style=
"color:#000;font-weight: bold;"
v-model=
"keyword"
@
input=
"handleInput($event)"
:focus=
"is_focus"
/>
<input
class=
"uni-input"
placeholder=
"输入或扫描箱号"
placeholder-style=
"color:#000;font-weight: bold;"
v-model=
"keyword"
@
input=
"handleInput($event)"
:focus=
"is_focus"
/>
<view
class=
"btn row rowCenter verCenter"
@
click=
"add()"
>
添 加
</view>
<view
class=
"row verCenter"
>
<view
class=
"btn row rowCenter verCenter"
@
click=
"add()"
>
添 加
</view>
</view>
</view>
</view>
<view
class=
"list"
v-if=
"list.length > 0"
>
<view
class=
"list"
v-if=
"list.length > 0"
>
<scroll-view
scroll-y=
"true"
class=
"scroll-Y"
>
<scroll-view
scroll-y=
"true"
class=
"scroll-Y"
>
...
@@ -69,7 +71,6 @@
...
@@ -69,7 +71,6 @@
showCancel
:
false
showCancel
:
false
});
});
return
false
;
return
false
;
return
false
;
}
}
// 检查输入的箱号是否已经存在于列表中
// 检查输入的箱号是否已经存在于列表中
...
...
pages/tally/printBox.vue
View file @
01440e80
...
@@ -2,7 +2,10 @@
...
@@ -2,7 +2,10 @@
<view
class=
"printBox"
>
<view
class=
"printBox"
>
<view
class=
"input-box row bothSide verCenter"
>
<view
class=
"input-box row bothSide verCenter"
>
<input
class=
"uni-input"
placeholder=
"输入或扫描入箱号"
placeholder-style=
"color:#000;font-weight: bold;"
v-model=
"box_sn"
:focus=
"is_focus"
/>
<input
class=
"uni-input"
placeholder=
"输入或扫描入箱号"
placeholder-style=
"color:#000;font-weight: bold;"
v-model=
"box_sn"
:focus=
"is_focus"
/>
<view
class=
"btn row rowCenter verCenter"
@
click=
"print()"
>
打印箱号
</view>
<view
class=
"row verCenter"
>
<text
class=
"iconfont icon-jinggao2"
@
click=
"clearInput()"
v-if=
"box_sn"
></text>
<view
class=
"btn row rowCenter verCenter"
@
click=
"print()"
>
打印箱号
</view>
</view>
</view>
</view>
</view>
</view>
</
template
>
</
template
>
...
@@ -47,6 +50,25 @@
...
@@ -47,6 +50,25 @@
});
});
}
}
});
});
},
/**
* 清空数据
*/
clearInput
()
{
this
.
box_sn
=
''
;
this
.
is_focus
=
false
;
setTimeout
(()
=>
{
this
.
is_focus
=
true
;
},
200
);
},
/**
* 再次获取焦点
*/
clearInputAndFocus
()
{
this
.
is_focus
=
false
;
setTimeout
(()
=>
{
this
.
is_focus
=
true
;
},
200
);
}
}
}
}
};
};
...
@@ -79,6 +101,14 @@
...
@@ -79,6 +101,14 @@
font-size
:
24
rpx
;
font-size
:
24
rpx
;
color
:
#ffffff
;
color
:
#ffffff
;
}
}
.icon-jinggao2
{
position
:
relative
;
font-size
:
30
rpx
;
color
:
#c6c7cc
;
margin-right
:
30
rpx
;
z-index
:
22
;
}
}
}
}
}
</
style
>
</
style
>
\ No newline at end of file
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