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
e3ae33cd
authored
Jun 04, 2024
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
add
parent
a6e57d97
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
pages/goods/addReceiving.vue
util/util.js
pages/goods/addReceiving.vue
View file @
e3ae33cd
...
...
@@ -88,7 +88,7 @@
<view
class=
"list"
>
<scroll-view
scroll-y=
"true"
class=
"scroll-Y"
>
<view
class=
"box row bothSide verCenter"
v-for=
"(item,index) in erpOrderSn"
:key=
"index"
>
<text
class=
"t1"
>
{{index+1}}:{{item}}
</text>
<text
class=
"t1"
>
{{index+1}}:{{item
.erp_order_sn
}}
</text>
<text
class=
"select"
@
click=
"selecttErpOrderSn(index)"
>
选中
</text>
</view>
</scroll-view>
...
...
@@ -346,7 +346,11 @@
* 选中对应的入仓号
*/
selecttErpOrderSn
(
index
)
{
this
.
form
.
erp_order_sn
=
this
.
erpOrderSn
[
index
];
this
.
form
.
erp_order_sn
=
this
.
erpOrderSn
[
index
].
erp_order_sn
;
this
.
index
=
this
.
array
.
indexOf
(
this
.
erpOrderSn
[
index
].
carrier
);
if
(
this
.
index
!=
-
1
)
{
this
.
form
.
logistics_company
=
this
.
erpOrderSn
[
index
].
carrier
;
}
this
.
$refs
.
popup
.
close
();
},
inputChange
()
{
...
...
util/util.js
View file @
e3ae33cd
...
...
@@ -61,8 +61,11 @@ const getPlatform = () => {
* 首字母转成大写
*/
const
titleCase
=
(
str
)
=>
{
str
=
str
.
toLowerCase
().
split
(
" "
).
map
(
function
(
val
)
{
return
val
.
replace
(
/
(
|^
)[
a-z
]
/g
,
function
(
L
)
{
return
L
.
toUpperCase
();
});
}).
join
(
" "
);
return
str
;
// 如果字符串为空,则返回空字符串
if
(
!
str
)
return
''
;
// 将字符串的第一个字母转成大写,其余字母保持不变
return
str
.
charAt
(
0
).
toUpperCase
()
+
str
.
slice
(
1
);
}
/**
...
...
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