Commit 2515d196 by LJM

出库单--签收图片,支持移动端上传,以及提供接口供销售发货通知单查看

parent 752ac4b8
Showing with 43 additions and 13 deletions
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
<!-- 时间筛选 --> <!-- 时间筛选 -->
<view class="radio-search-box row verCenter bothSide"> <view class="radio-search-box row verCenter bothSide">
<view class="row verCente"> <view class="row verCente">
<radio-group @change="radioChange" class="row verCenter"> <radio-group @change="radioChange('date', $event)" class="row verCenter">
<label class="radio row verCenter"> <label class="radio row verCenter">
<radio value="7" checked="true" style="transform:scale(0.7)" color="#1969F9" /> <radio value="7" checked="true" style="transform:scale(0.7)" color="#1969F9" />
<text class="tt">近7天</text> <text class="tt">近7天</text>
...@@ -120,7 +120,7 @@ ...@@ -120,7 +120,7 @@
<template v-if="item.sign_pic_ids.length > 0"> <template v-if="item.sign_pic_ids.length > 0">
<view class="img_list" v-for="(v, i) in item.sign_pic_ids" :key="i"> <view class="img_list" v-for="(v, i) in item.sign_pic_ids" :key="i">
<image :src="v.small_image_url" mode="aspectFill" @click="previewChange(item.sign_pic_ids, i)"></image> <image :src="v.small_image_url" mode="aspectFill" @click="previewChange(item.sign_pic_ids, i)"></image>
<text class="iconfont icon-a-juxing11" @click="deletePic(index,i)"></text> <text class="iconfont icon-a-juxing11" @click="deletePic(index,i)" v-if="v.id_del"></text>
</view> </view>
</template> </template>
<view class="default row rowCenter verCenter" @click="chooseImageChange(index)" v-if="item.sign_pic_ids.length < maxNum"><text class="iconfont icon-a-juxing3"></text></view> <view class="default row rowCenter verCenter" @click="chooseImageChange(index)" v-if="item.sign_pic_ids.length < maxNum"><text class="iconfont icon-a-juxing3"></text></view>
...@@ -172,10 +172,6 @@ ...@@ -172,10 +172,6 @@
<view class="bor"></view> <view class="bor"></view>
<view class="item-tit row verCenter bothSide" style="margin-bottom: 0;"> <view class="item-tit row verCenter bothSide" style="margin-bottom: 0;">
<text>交货信息</text> <text>交货信息</text>
<view class="text">
<text class="label">包 裹 数:</text>
<text class="tt">{{ detail.stock_out_info.box_num }}</text>
</view>
</view> </view>
<!-- 交货信息start --> <!-- 交货信息start -->
<view class="row bothSide verCenter"> <view class="row bothSide verCenter">
...@@ -251,6 +247,26 @@ ...@@ -251,6 +247,26 @@
</view> </view>
</view> </view>
</view> </view>
<view class="row" style="align-items: flex-end;">
<view class="form-input" style="width: 39%;">
<view class="input-title">
<text class="input-title-t2">包裹数:</text>
</view>
<view class="input-box"><input type="text" class="uni-input" placeholder-style="color:#919399" placeholder="请输入" v-model="formParams.box_num" :disabled="formParams.select_box_type == 1" :style="formParams.select_box_type == 1 ? 'background-color: #f6f6f6;border: 1px solid #eee;' : ''" /></view>
</view>
<view class="row">
<radio-group @change="radioChange('box', $event)" class="row verCenter">
<label class="radio row verCenter">
<radio value="1" :checked="formParams.select_box_type == 1" style="transform:scale(0.7)" color="#1969F9" />
<text class="tt" style="font-size: 18rpx;color: #292b33">按复核包裹数</text>
</label>
<label class="radio">
<radio value="2" :checked="formParams.select_box_type == 2" style="transform:scale(0.7)" color="#1969F9" />
<text class="tt" style="font-size: 18rpx;color: #292b33">手动填写包裹数</text>
</label>
</radio-group>
</view>
</view>
<view class="print row verCenter" v-if="detail.stock_out_info"> <view class="print row verCenter" v-if="detail.stock_out_info">
<text class="check-box-icon" :class="{ curr: detail.stock_out_info.is_receipt == 1 }"></text> <text class="check-box-icon" :class="{ curr: detail.stock_out_info.is_receipt == 1 }"></text>
<text class="tt">签回单</text> <text class="tt">签回单</text>
...@@ -386,7 +402,9 @@ ...@@ -386,7 +402,9 @@
province: '', province: '',
city: '', city: '',
district: '', district: '',
address: '' address: '',
box_num: '', //包裹数
select_box_type: '' //箱信息类型
}, },
signUserPicParams: { signUserPicParams: {
type: 1, //1上传 2删除 type: 1, //1上传 2删除
...@@ -482,12 +500,22 @@ ...@@ -482,12 +500,22 @@
}, },
/** /**
* 修改单选按钮变化处理函数 * 修改单选按钮变化处理函数
* @param {String} type - 单选框类型:date-日期筛选 box-包裹数选择
* @param {Object} e - 事件对象
*/ */
radioChange(e) { radioChange(type, e) {
this.resetChange();
const value = e.detail.value; const value = e.detail.value;
if (type === 'box') {
// 包裹数单选框的处理
this.formParams.select_box_type = parseInt(value);
} else if (type === 'date') {
// 时间筛选单选框的处理
this.resetChange();
this.setDateRange(value); this.setDateRange(value);
this.getData(); this.getData();
}
}, },
/** /**
* 根据所选的交货方式,显示对应的物流公司 * 根据所选的交货方式,显示对应的物流公司
...@@ -744,6 +772,8 @@ ...@@ -744,6 +772,8 @@
this.formParams.city = res.data.stock_out_address.city; this.formParams.city = res.data.stock_out_address.city;
this.formParams.district = res.data.stock_out_address.district; this.formParams.district = res.data.stock_out_address.district;
this.formParams.address = res.data.stock_out_address.address; this.formParams.address = res.data.stock_out_address.address;
this.formParams.box_num = res.data.stock_out_info.box_num; //包裹数
this.formParams.select_box_type = res.data.stock_out_address.select_box_type; //箱信息类型
}, 500) }, 500)
} else { } else {
uni.showToast({ uni.showToast({
...@@ -781,9 +811,7 @@ ...@@ -781,9 +811,7 @@
} }
} }
this.request( this.request(API.updateDeliveryInfo, 'POST', {
API.updateDeliveryInfo,
'POST', {
stock_out_id: stock_out_id, stock_out_id: stock_out_id,
real_shipping_type: this.formParams.real_shipping_type, real_shipping_type: this.formParams.real_shipping_type,
real_shipping_id: this.formParams.real_shipping_id, real_shipping_id: this.formParams.real_shipping_id,
...@@ -795,7 +823,9 @@ ...@@ -795,7 +823,9 @@
province: this.formParams.province, province: this.formParams.province,
city: this.formParams.city, city: this.formParams.city,
district: this.formParams.district, district: this.formParams.district,
address: this.formParams.address address: this.formParams.address,
box_num: this.formParams.box_num,
select_box_type: this.formParams.select_box_type
}, },
true true
).then(res => { ).then(res => {
......
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