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
b9f45f95
authored
Aug 26, 2024
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
小程序--收货登记、异常收货登记--照片数量限制
parent
e2d8a210
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
16 deletions
assets/css/goods/addExectionReceiving.scss
pages/goods/addExectionReceiving.vue
pages/tally/record.vue
util/api.js
assets/css/goods/addExectionReceiving.scss
View file @
b9f45f95
...
...
@@ -96,6 +96,7 @@
}
}
.upload-list
{
flex-wrap
:
wrap
;
padding-bottom
:
48rpx
;
border-bottom
:
1px
solid
#e6edf0
;
.default
{
...
...
@@ -110,8 +111,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/addExectionReceiving.vue
View file @
b9f45f95
...
...
@@ -68,7 +68,7 @@
<view
class=
"upload-box"
>
<view
class=
"title row bothSide verCenter"
>
<text
class=
"tt-l"
>
收货图片上传(必填)
</text>
<text
class=
"tt-r"
>
{{
form
.
info_pic
.
length
}}
/
4
</text>
<text
class=
"tt-r"
>
{{
form
.
info_pic
.
length
}}
/
10
</text>
</view>
<view
class=
"upload-list row verCenter"
>
<template
v-if=
"form.info_pic.length > 0"
>
...
...
@@ -77,7 +77,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.info_pic.length <
4
"
><text
class=
"iconfont icon-xingzhuangjiehe"
></text></view>
<view
class=
"default row rowCenter verCenter"
@
click=
"chooseImageChange()"
v-if=
"form.info_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>
...
...
@@ -192,7 +192,7 @@
var
self
=
this
;
var
time
=
parseInt
(
new
Date
().
getTime
()
/
1000
);
uni
.
chooseMedia
({
count
:
4
,
count
:
10
,
mediaType
:
[
'image'
],
sizeType
:
[
'original'
,
'compressed'
],
sourceType
:
[
'album'
,
'camera'
],
...
...
@@ -202,10 +202,10 @@
});
const
tempFilePaths
=
chooseImageRes
.
tempFiles
;
let
maxNum
=
tempFilePaths
.
length
*
1
+
self
.
form
.
info_pic
.
length
*
1
;
if
(
maxNum
>
4
)
{
if
(
maxNum
>
10
)
{
uni
.
hideLoading
();
uni
.
showToast
({
title
:
'图片不超过
4
张'
title
:
'图片不超过
10
张'
});
return
false
;
}
...
...
pages/tally/record.vue
View file @
b9f45f95
...
...
@@ -95,7 +95,7 @@
</
template
>
<
template
v-else
>
<text
class=
"text"
>
{{
item
.
net_weight
}}
kg
</text>
<text
class=
"text"
style=
"color: #1969f9;margin-left: 30rpx;"
@
click=
"filterEditChange(index)"
v-if=
"
item.tally_status == 1
"
>
修改
</text>
<text
class=
"text"
style=
"color: #1969f9;margin-left: 30rpx;"
@
click=
"filterEditChange(index)"
v-if=
"
(item.box_sn && item.tally_status == 1) || !item.box_sn
"
>
修改
</text>
</
template
>
</view>
<view
class=
"input-box row verCenter"
style=
"flex: 0 0 100%;"
>
...
...
util/api.js
View file @
b9f45f95
//
const API_BASE = 'https://api.ichunt.com';
//
const API_BASE_OSS = 'https://image.ichunt.net'; //oss系统
//
const API_BASE_OSS_HK = 'http://hk.image.semour.com'; //oss系统 HK
//
const API_BASE_WMS = 'https://wms.ichunt.net'; //WMS系统
const
API_BASE
=
'https://api.ichunt.com'
;
const
API_BASE_OSS
=
'https://image.ichunt.net'
;
//oss系统
const
API_BASE_OSS_HK
=
'http://hk.image.semour.com'
;
//oss系统 HK
const
API_BASE_WMS
=
'https://wms.ichunt.net'
;
//WMS系统
const
API_BASE
=
'http://api.liexin.com'
;
const
API_BASE_OSS
=
'http://image.liexindev.net'
;
const
API_BASE_OSS_HK
=
'http://image.liexindev.net'
;
//oss系统 HK
const
API_BASE_WMS
=
'http://wms.liexindev.net'
;
//WMS系统
//
const API_BASE = 'http://api.liexin.com';
//
const API_BASE_OSS = 'http://image.liexindev.net';
//
const API_BASE_OSS_HK = 'http://image.liexindev.net'; //oss系统 HK
//
const API_BASE_WMS = 'http://wms.liexindev.net'; //WMS系统
const
API
=
{
...
...
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