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
07c68452
authored
Aug 28, 2024
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
小程序--收货登记、异常收货登记--照片数量限制
parent
b9f45f95
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
10 deletions
assets/css/goods/addReceiving.scss
pages/goods/addReceiving.vue
assets/css/goods/addReceiving.scss
View file @
07c68452
...
...
@@ -166,6 +166,7 @@
.upload-list
{
padding-bottom
:
48rpx
;
border-bottom
:
1px
solid
#e6edf0
;
flex-wrap
:
wrap
;
.default
{
width
:
144rpx
;
height
:
144rpx
;
...
...
@@ -178,8 +179,8 @@
}
.pic-box
{
position
:
relative
;
flex
:
0
0
25%
;
margin-
right
:
1
0rpx
;
margin-right
:
24rpx
;
margin-
bottom
:
2
0rpx
;
&
:nth-of-type
(
4n
)
{
margin-right
:
0
;
}
...
...
pages/goods/addReceiving.vue
View file @
07c68452
...
...
@@ -65,7 +65,7 @@
<view
class=
"upload-box"
>
<view
class=
"title row bothSide verCenter"
>
<text
class=
"tt-l"
>
收货图片上传(选填)
</text>
<text
class=
"tt-r"
>
{{
form
.
check_in_pic
.
length
}}
/
4
</text>
<text
class=
"tt-r"
>
{{
form
.
check_in_pic
.
length
}}
/
10
</text>
</view>
<view
class=
"upload-list row verCenter"
>
<template
v-if=
"form.check_in_pic.length > 0"
>
...
...
@@ -74,7 +74,7 @@
<view
class=
"delete row rowCenter verCenter"
@
click=
"deletePic(index)"
><text
class=
"iconfont icon-shanchu"
></text></view>
</view>
</
template
>
<view
class=
"default row rowCenter verCenter"
@
click=
"chooseImageChange()"
v-if=
"form.check_in_pic.length <
4
"
><text
class=
"iconfont icon-xingzhuangjiehe"
></text></view>
<view
class=
"default row rowCenter verCenter"
@
click=
"chooseImageChange()"
v-if=
"form.check_in_pic.length <
10
"
><text
class=
"iconfont icon-xingzhuangjiehe"
></text></view>
</view>
<view
class=
"textarea-box"
>
<textarea
@
input=
"inputChange()"
maxlength=
"200"
placeholder=
"请输入收货备注"
placeholder-style=
"color:#6E767A;"
v-model=
"form.check_in_remark"
></textarea>
...
...
@@ -218,7 +218,7 @@
// #ifdef MP-WEIXIN
uni
.
chooseMedia
({
count
:
4
,
count
:
10
,
mediaType
:
[
'image'
],
sizeType
:
[
'original'
,
'compressed'
],
sourceType
:
[
'album'
,
'camera'
],
...
...
@@ -228,10 +228,10 @@
});
const
tempFilePaths
=
chooseImageRes
.
tempFiles
;
let
maxNum
=
tempFilePaths
.
length
*
1
+
self
.
form
.
check_in_pic
.
length
*
1
;
if
(
maxNum
>
4
)
{
if
(
maxNum
>
10
)
{
uni
.
hideLoading
();
uni
.
showToast
({
title
:
'图片不超过
4
张'
title
:
'图片不超过
10
张'
});
return
false
;
}
...
...
@@ -268,7 +268,7 @@
// #ifdef APP-PLUS
uni
.
chooseImage
({
count
:
4
,
count
:
10
,
sizeType
:
[
'original'
,
'compressed'
],
sourceType
:
[
'album'
,
'camera'
],
success
:
chooseImageRes
=>
{
...
...
@@ -277,10 +277,10 @@
});
const
tempFilePaths
=
chooseImageRes
.
tempFilePaths
;
let
maxNum
=
tempFilePaths
.
length
*
1
+
self
.
form
.
check_in_pic
.
length
*
1
;
if
(
maxNum
>
4
)
{
if
(
maxNum
>
10
)
{
uni
.
hideLoading
();
uni
.
showToast
({
title
:
'图片不超过
4
张'
title
:
'图片不超过
10
张'
});
return
false
;
}
...
...
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