Commit b9f45f95 by LJM

小程序--收货登记、异常收货登记--照片数量限制

parent e2d8a210
......@@ -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: 10rpx;
margin-right: 24rpx;
margin-bottom: 20rpx;
&:nth-of-type(4n) {
margin-right: 0;
}
......
......@@ -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;
}
......
......@@ -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%;">
......
// 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 = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment