添加交付确认单
This commit is contained in:
@@ -56,7 +56,8 @@
|
||||
"pages/storeData/index",
|
||||
"pages/storeData/customerData/index",
|
||||
"pages/storeData/wechatData/index",
|
||||
"pages/storeData/orderData/index"
|
||||
"pages/storeData/orderData/index",
|
||||
"pages/order/editDeliveryckimg/index"
|
||||
],
|
||||
"echarts": [
|
||||
{
|
||||
|
||||
@@ -102,6 +102,12 @@ Page({
|
||||
ins_img:res.data.imgs.ins_img.length==0?[]:res.data.imgs.ins_img,
|
||||
other_img:res.data.imgs.other_img.length==0?[]:res.data.imgs.other_img,
|
||||
})
|
||||
|
||||
if('delivery_ck_img' in res.data.imgs){
|
||||
this.setData({
|
||||
delivery_ck_img:res.data.imgs.delivery_ck_img.length==0?{}:res.data.imgs.delivery_ck_img,
|
||||
})
|
||||
}
|
||||
}
|
||||
wx.stopPullDownRefresh()
|
||||
})
|
||||
@@ -763,6 +769,12 @@ Page({
|
||||
urls:img,
|
||||
})
|
||||
}
|
||||
else if(e.currentTarget.dataset.type=='delivery_ck_img'){
|
||||
wx.previewImage({
|
||||
current:this.data.imgInfo.imgs.delivery_ck_img.img,
|
||||
urls:[this.data.imgInfo.imgs.delivery_ck_img.img],
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
//推送链接
|
||||
|
||||
@@ -327,6 +327,13 @@
|
||||
</block>
|
||||
</scroll-view>
|
||||
</view> -->
|
||||
<!--上传交车合照-->
|
||||
<view class="relative bbs-1-eb pl140 font-28" bindtap="{{!info.refund_status?'pushLink':''}}" data-url="/pages/order/editDeliveryckimg/index?id={{id}}" wx:if="{{!!imgInfo.imgs.delivery_ck_img}}">
|
||||
<view class="absolute left-0 box-middle font-32 color-333">交付确认单</view>
|
||||
<view class="pt30 pb30 text-right font-26 color-999" style="min-height:38rpx">
|
||||
<view>{{delivery_ck_img.value?'更新':'上传'}}<i class="iconfont ml10 icon-gengduo"></i></view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</block>
|
||||
<!--图片展示-->
|
||||
@@ -392,6 +399,15 @@
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
<!--交付确认单-->
|
||||
<block wx:if="{{imgInfo.imgs.delivery_ck_img.img}}">
|
||||
<view class="mt40 font-32">交付确认单</view>
|
||||
<view class="mt30 pb20 text-center">
|
||||
<view class="inline-block bg-f8 img-300x200 ml15 mr15 relative ulib-r10 overflowhidden" bindtap="previewImage" data-type="delivery_ck_img">
|
||||
<image class='block wp100 img-h-200 ulib-r10' src='{{imgInfo.imgs.delivery_ck_img.img}}' mode='aspectFit'></image>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</block>
|
||||
<!--end 图片预览-->
|
||||
</view>
|
||||
|
||||
@@ -0,0 +1,87 @@
|
||||
import _ from '../../../commons/js/commons'
|
||||
const app = getApp()
|
||||
Page({
|
||||
data: {
|
||||
delivery_ck_img:{},//交付确认单
|
||||
},
|
||||
onLoad: function (options) {
|
||||
for (let key in options) {
|
||||
this.setData({
|
||||
[key]: options[key]
|
||||
})
|
||||
}
|
||||
|
||||
this.getAppCusorderdata()
|
||||
|
||||
},
|
||||
onShow: function () {
|
||||
|
||||
},
|
||||
|
||||
//获取订单图片
|
||||
getAppCusorderdata(){
|
||||
let params = {};
|
||||
params['id'] = this.data.id;
|
||||
_.apiQuery.getAppCusorderdata(params).then(res=>{
|
||||
this.setData({
|
||||
imgInfo:res.data,
|
||||
})
|
||||
if(res.data.img_status == 1){
|
||||
this.setData({
|
||||
delivery_ck_img:res.data.imgs.delivery_ck_img.length==0?{}:res.data.imgs.delivery_ck_img,
|
||||
})
|
||||
}
|
||||
wx.stopPullDownRefresh()
|
||||
})
|
||||
},
|
||||
|
||||
//选择图片
|
||||
chooseImg(e) {
|
||||
let that = this
|
||||
|
||||
//上传登记证
|
||||
if(e.currentTarget.dataset.type=='delivery_ck_img'){
|
||||
wx.chooseImage({
|
||||
count: 1, // 默认9
|
||||
sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有
|
||||
sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有
|
||||
success(res) {
|
||||
wx.showLoading({
|
||||
title: '上传中',
|
||||
})
|
||||
wx.uploadFile({
|
||||
url:_.config.api.upImg,
|
||||
filePath:res.tempFilePaths[0],
|
||||
name: 'img',
|
||||
formData: {
|
||||
'app': 'liche'
|
||||
},
|
||||
success: (resp) => {
|
||||
resp.data = JSON.parse(resp.data);
|
||||
wx.hideLoading();
|
||||
if (resp.data.code == 200) {
|
||||
let params = {};
|
||||
params['id'] = that.data.id;
|
||||
params['delivery_ck_img'] = resp.data.data.url;
|
||||
_.apiQuery.putAppCusorderdata(params).then(res2 => {
|
||||
that.setData({
|
||||
'delivery_ck_img.value':resp.data.data.url,
|
||||
'delivery_ck_img.img':resp.data.data.full_url,
|
||||
})
|
||||
})
|
||||
}
|
||||
},
|
||||
})
|
||||
},
|
||||
fail: res => {
|
||||
wx.showToast({
|
||||
title: '文件选择失败',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
})
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "交付确认单信息",
|
||||
"usingComponents": {}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
<view class="container">
|
||||
<view class="inner30">
|
||||
|
||||
<!-- <view class="mt40 font-32">营业执照</view> -->
|
||||
<view class="mt30 text-center">
|
||||
<view class="inline-block img-300x200 relative ulib-r10 overflowhidden" bindtap="chooseImg" data-type="delivery_ck_img">
|
||||
<block wx:if="{{delivery_ck_img.value}}">
|
||||
<view class="inline-block bg-f8 img-300x200 relative ulib-r10 overflowhidden">
|
||||
<i class="absolute top-0 right-0 bg-000-op50 iconfont icon-shuaxin inner10 font-26 color-fff ulib-rtr10 ulib-rbl10 z-index-4"></i>
|
||||
<image class='block wp100 img-h-200 ulib-r10' src='{{delivery_ck_img.img}}' mode='aspectFit'></image>
|
||||
</view>
|
||||
</block>
|
||||
<block wx:else>
|
||||
<view class="inline-block bg-f8 img-300x200 relative ulib-r10 overflowhidden">
|
||||
<view class="absolute left-0 right-0 box-middle color-ccc">
|
||||
<i class="iconfont icon-fanmian font-60"></i>
|
||||
<view class="mt10 font-22">上传交付确认单</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
@@ -0,0 +1 @@
|
||||
/* pages/order/editDeliveryckimg/index.wxss */
|
||||
@@ -37,6 +37,8 @@ Page({
|
||||
ecLine:{},
|
||||
daysIndex:0,
|
||||
daysArray:['近一周','近30日'],
|
||||
isShowTip:false,
|
||||
tipIndex:0,
|
||||
},
|
||||
|
||||
onLoad: function (options) {
|
||||
@@ -265,6 +267,19 @@ Page({
|
||||
this.getAppBizStats_days()
|
||||
},
|
||||
|
||||
//显示隐藏提示
|
||||
optShowTip(e) {
|
||||
this.setData({
|
||||
isShowTip:!this.data.isShowTip,
|
||||
})
|
||||
if(e.currentTarget.dataset.index){
|
||||
this.setData({
|
||||
tipIndex:e.currentTarget.dataset.index
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
//推送链接
|
||||
pushLink(e) {
|
||||
if(e.currentTarget.dataset.url){
|
||||
|
||||
@@ -17,15 +17,18 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="mb40 pl30 pr30 fn-flex text-center color-fff">
|
||||
<view class="mt10 mb40 pl30 pr30 fn-flex text-center color-fff">
|
||||
<block wx:for='{{tabs}}' wx:key='index'>
|
||||
<view class="fn-flex-item" bindtap="pushLink" data-url="{{item.url}}?s_date={{s_date}}&e_date={{e_date}}¤t_date={{current_date}}">
|
||||
<view class="fn-flex-item">
|
||||
<view class="inline-block text-left">
|
||||
<view>
|
||||
<text class="font-40">{{item.value_1}}</text>
|
||||
<text class="font-28">{{item.value_2}}</text>
|
||||
<view bindtap="optShowTip" data-index="{{index}}">
|
||||
<view class="inline-block relative">
|
||||
<text class="font-40">{{item.value_1}}</text>
|
||||
<text class="font-28">{{item.value_2}}</text>
|
||||
<i class="absolute font-24 iconfont icon-ziyuan" style="top:-10rpx;right:-20rpx;"></i>
|
||||
</view>
|
||||
</view>
|
||||
<view class="font-22">
|
||||
<view class="pt10 font-22" bindtap="pushLink" data-url="{{item.url}}?s_date={{s_date}}&e_date={{e_date}}¤t_date={{current_date}}">
|
||||
<text>{{item.title}}</text>
|
||||
<i class="iconfont ml5 icon-gengduo"></i>
|
||||
</view>
|
||||
@@ -75,4 +78,19 @@
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<lcb-footer></lcb-footer>
|
||||
<lcb-footer></lcb-footer>
|
||||
|
||||
<lcb-msg isShow="{{isShowTip}}">
|
||||
<view slot="content">
|
||||
<view class="inner40 pt50 pb50 line-height-18 font-26 color-666" style="width:520rpx;">
|
||||
<view class="text-center">
|
||||
<text wx:if="{{tipIndex==0}}">发生在时间周期内的\n [客户建档] / [进店客户]</text>
|
||||
<text wx:elif="{{tipIndex==1}}">发生在时间周期内的\n [企微添加好友] / [企微好友完善手机号码]</text>
|
||||
<text wx:elif="{{tipIndex==2}}">发生在时间周期内的\n [下定订单] / [退款订单]</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="bts-1-eb text-center font-32 color-666">
|
||||
<view class="pt25 pb25 color-36afa2" bindtap="optShowTip">知道了</view>
|
||||
</view>
|
||||
</view>
|
||||
</lcb-msg>
|
||||
Reference in New Issue
Block a user