订单详情添加企微信息
This commit is contained in:
@@ -57,7 +57,9 @@
|
||||
"pages/storeData/customerData/index",
|
||||
"pages/storeData/wechatData/index",
|
||||
"pages/storeData/orderData/index",
|
||||
"pages/order/editDeliveryckimg/index"
|
||||
"pages/order/editDeliveryckimg/index",
|
||||
"pages/order/editQVImg/index",
|
||||
"pages/order/editVoucherImg/index"
|
||||
],
|
||||
"echarts": [
|
||||
{
|
||||
|
||||
@@ -30,11 +30,11 @@ Page({
|
||||
|
||||
this.getAppCusorderV2()
|
||||
this.getUserInfo()
|
||||
this.getAppCusorderdata()
|
||||
|
||||
|
||||
},
|
||||
onShow: function () {
|
||||
|
||||
this.getAppCusorderdata()
|
||||
},
|
||||
|
||||
//获取用户信息
|
||||
@@ -775,6 +775,24 @@ Page({
|
||||
urls:[this.data.imgInfo.imgs.delivery_ck_img.img],
|
||||
})
|
||||
}
|
||||
else if(e.currentTarget.dataset.type=='wx_img'){
|
||||
wx.previewImage({
|
||||
current:this.data.imgInfo.imgs.insurance_img.img,
|
||||
urls:[this.data.imgInfo.imgs.insurance_img.img],
|
||||
})
|
||||
}
|
||||
else if(e.currentTarget.dataset.type=='mut_wx_img'){
|
||||
wx.previewImage({
|
||||
current:this.data.imgInfo.imgs.mut_wx_img.img,
|
||||
urls:[this.data.imgInfo.imgs.mut_wx_img.img],
|
||||
})
|
||||
}
|
||||
else if(e.currentTarget.dataset.type=='destory_img'){
|
||||
wx.previewImage({
|
||||
current:this.data.imgInfo.imgs.destory_img.img,
|
||||
urls:[this.data.imgInfo.imgs.destory_img.img],
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
//推送链接
|
||||
|
||||
@@ -328,6 +328,22 @@
|
||||
</scroll-view>
|
||||
</view> -->
|
||||
<!--上传交车合照-->
|
||||
<!--添加企微-->
|
||||
<view class="relative bbs-1-eb pl140 font-28" bindtap="{{!info.refund_status?'pushLink':''}}" data-url="/pages/order/editQVImg/index?id={{id}}">
|
||||
<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>{{imgInfo.imgs.wx_img.value||imgInfo.imgs.mut_wx_img.value?'更新':'上传'}}<i class="iconfont ml10 icon-gengduo"></i></view>
|
||||
</view>
|
||||
</view>
|
||||
<!--end添加企微-->
|
||||
<!--实销凭证-->
|
||||
<view class="relative bbs-1-eb pl140 font-28" bindtap="{{!info.refund_status?'pushLink':''}}" data-url="/pages/order/editVoucherImg/index?id={{id}}">
|
||||
<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>{{imgInfo.imgs.destory_img.value?'更新':'上传'}}<i class="iconfont ml10 icon-gengduo"></i></view>
|
||||
</view>
|
||||
</view>
|
||||
<!--end实销凭证-->
|
||||
<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">
|
||||
@@ -399,6 +415,31 @@
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
<!--添加企微-->
|
||||
<block wx:if="{{imgInfo.imgs.wx_img.img||imgInfo.imgs.mut_wx_img.img}}">
|
||||
<view class="mt40 font-32">添加企微</view>
|
||||
<view class="fn-flex mt30 text-center">
|
||||
<view class="fn-flex-item relative mr10">
|
||||
<view class="inline-block bg-f8 img-300x200 relative ulib-r10 overflowhidden" wx:if="{{imgInfo.imgs.wx_img.img}}" bindtap="previewImage" data-type="wx_img">
|
||||
<image class='block wp100 img-h-200 ulib-r10' src='{{imgInfo.imgs.wx_img.img}}' lazy-load="{{true}}" mode="aspectFit"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fn-flex-item relative ml10">
|
||||
<view class="inline-block bg-f8 img-300x200 relative ulib-r10 overflowhidden" wx:if="{{imgInfo.imgs.mut_wx_img.img}}" bindtap="previewImage" data-type="mut_wx_img">
|
||||
<image class='block wp100 img-h-200 ulib-r10' src='{{imgInfo.imgs.mut_wx_img.img}}' lazy-load="{{true}}" mode="aspectFit"></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
<!--实销凭证-->
|
||||
<block wx:if="{{imgInfo.imgs.destory_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="destory_img">
|
||||
<image class='block wp100 img-h-200 ulib-r10' src='{{imgInfo.imgs.destory_img.img}}' mode='aspectFit'></image>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
<!--交付确认单-->
|
||||
<block wx:if="{{imgInfo.imgs.delivery_ck_img.img}}">
|
||||
<view class="mt40 font-32">交付确认单</view>
|
||||
|
||||
@@ -0,0 +1,150 @@
|
||||
import _ from '../../../commons/js/commons'
|
||||
const app = getApp()
|
||||
Page({
|
||||
data: {
|
||||
wx_img:{},
|
||||
mut_wx_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({
|
||||
wx_img:res.data.imgs.insurance_img.length==0?{}:res.data.imgs.wx_img,
|
||||
mut_wx_img:res.data.imgs.insurance_img.length==0?{}:res.data.imgs.mut_wx_img,
|
||||
})
|
||||
}
|
||||
wx.stopPullDownRefresh()
|
||||
})
|
||||
},
|
||||
|
||||
//选择图片
|
||||
chooseImg(e) {
|
||||
let that = this
|
||||
|
||||
//上传交强险
|
||||
if(e.currentTarget.dataset.type=='wx_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);
|
||||
|
||||
if (resp.data.code == 200) {
|
||||
let params = {};
|
||||
params['id'] = that.data.id;
|
||||
params['wx_img'] = resp.data.data.url;
|
||||
_.apiQuery.putAppCusorderdata(params).then(res2 => {
|
||||
|
||||
wx.hideLoading();
|
||||
that.getAppCusorderdata()
|
||||
|
||||
})
|
||||
}
|
||||
},
|
||||
})
|
||||
},
|
||||
fail: res => {
|
||||
wx.showToast({
|
||||
title: '文件选择失败',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
//上传商业险
|
||||
if(e.currentTarget.dataset.type=='mut_wx_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);
|
||||
|
||||
if (resp.data.code == 200) {
|
||||
let params = {};
|
||||
params['id'] = that.data.id;
|
||||
params['mut_wx_img'] = resp.data.data.url;
|
||||
_.apiQuery.putAppCusorderdata(params).then(res2 => {
|
||||
|
||||
wx.hideLoading();
|
||||
that.getAppCusorderdata()
|
||||
|
||||
})
|
||||
}
|
||||
},
|
||||
})
|
||||
},
|
||||
fail: res => {
|
||||
wx.showToast({
|
||||
title: '文件选择失败',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
//查看图片
|
||||
previewImage: function (e) {
|
||||
if(e.currentTarget.dataset.type=='wx_img'){
|
||||
wx.previewImage({
|
||||
current:this.data.imgInfo.imgs.insurance_img.img,
|
||||
urls:[this.data.imgInfo.imgs.insurance_img.img],
|
||||
})
|
||||
}
|
||||
else if(e.currentTarget.dataset.type=='mut_wx_img'){
|
||||
wx.previewImage({
|
||||
current:this.data.imgInfo.imgs.mut_wx_img.img,
|
||||
urls:[this.data.imgInfo.imgs.mut_wx_img.img],
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
})
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "企微信息",
|
||||
"usingComponents": {}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
<view class="container">
|
||||
<view class="inner30">
|
||||
|
||||
<view class="pl40 pr40 pt40 relative ulib-r10 box-shadow-000-10-10 overflowhidden">
|
||||
|
||||
<view class="font-28 text-center text-bold">企业微信</view>
|
||||
<view class="mt30 pb30 text-center">
|
||||
<view class="inline-block img-300x200 relative ulib-r10 overflowhidden">
|
||||
<block wx:if="{{wx_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-1" bindtap="chooseImg" data-type="wx_img"></i>
|
||||
<image class='block wp100 img-h-200 ulib-r10' src='{{wx_img.img}}' mode='aspectFit' bindtap="previewImage" data-type="wx_img"></image>
|
||||
</view>
|
||||
</block>
|
||||
<block wx:else>
|
||||
<view class="inline-block bg-f8 img-300x200 relative ulib-r10 overflowhidden" bindtap="chooseImg" data-type="wx_img">
|
||||
<view class="absolute left-0 right-0 box-middle color-ccc">
|
||||
<i class="iconfont icon-paizhao font-48"></i>
|
||||
<view class="mt10 font-22">上传企业微信</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
<view class="mt50 pl40 pr40 pt40 relative ulib-r10 box-shadow-000-10-10 overflowhidden">
|
||||
<view class="font-28 text-center text-bold">多对一群</view>
|
||||
<view class="mt30 pb30 text-center">
|
||||
<view class="inline-block img-300x200 relative ulib-r10 overflowhidden">
|
||||
<block wx:if="{{mut_wx_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-1" bindtap="chooseImg" data-type="mut_wx_img"></i>
|
||||
<image class='block wp100 img-h-200 ulib-r10' src='{{mut_wx_img.img}}' mode='aspectFit' bindtap="previewImage" data-type="mut_wx_img"></image>
|
||||
</view>
|
||||
</block>
|
||||
<block wx:else>
|
||||
<view class="inline-block bg-f8 img-300x200 relative ulib-r10 overflowhidden" bindtap="chooseImg" data-type="mut_wx_img">
|
||||
<view class="absolute left-0 right-0 box-middle color-ccc">
|
||||
<i class="iconfont icon-paizhao font-48"></i>
|
||||
<view class="mt10 font-22">上传多对一群</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
@@ -0,0 +1 @@
|
||||
/* pages/order/editQVImg/index.wxss */
|
||||
@@ -0,0 +1,97 @@
|
||||
import _ from '../../../commons/js/commons'
|
||||
const app = getApp()
|
||||
Page({
|
||||
data: {
|
||||
destory_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({
|
||||
destory_img:res.data.imgs.destory_img.length==0?{}:res.data.imgs.destory_img,
|
||||
})
|
||||
}
|
||||
wx.stopPullDownRefresh()
|
||||
})
|
||||
},
|
||||
|
||||
//选择图片
|
||||
chooseImg(e) {
|
||||
let that = this
|
||||
|
||||
//上传交强险
|
||||
if(e.currentTarget.dataset.type=='destory_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);
|
||||
|
||||
if (resp.data.code == 200) {
|
||||
let params = {};
|
||||
params['id'] = that.data.id;
|
||||
params['destory_img'] = resp.data.data.url;
|
||||
_.apiQuery.putAppCusorderdata(params).then(res2 => {
|
||||
|
||||
wx.hideLoading();
|
||||
that.getAppCusorderdata()
|
||||
|
||||
})
|
||||
}
|
||||
},
|
||||
})
|
||||
},
|
||||
fail: res => {
|
||||
wx.showToast({
|
||||
title: '文件选择失败',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
//查看图片
|
||||
previewImage: function (e) {
|
||||
if(e.currentTarget.dataset.type=='destory_img'){
|
||||
wx.previewImage({
|
||||
current:this.data.imgInfo.imgs.destory_img.img,
|
||||
urls:[this.data.imgInfo.imgs.destory_img.img],
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
})
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "实销凭证信息",
|
||||
"usingComponents": {}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
<view class="container">
|
||||
<view class="inner30">
|
||||
|
||||
<view class="mt30 pb20 text-center">
|
||||
<view class="inline-block img-300x200 relative ulib-r10 overflowhidden">
|
||||
<block wx:if="{{destory_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-1" bindtap="chooseImg" data-type="destory_img"></i>
|
||||
<image class='block wp100 img-h-200 ulib-r10' src='{{destory_img.img}}' mode='aspectFit' bindtap="previewImage" data-type="destory_img"></image>
|
||||
</view>
|
||||
</block>
|
||||
<block wx:else>
|
||||
<view class="inline-block bg-f8 img-300x200 relative ulib-r10 overflowhidden" bindtap="chooseImg" data-type="destory_img">
|
||||
<view class="absolute left-0 right-0 box-middle color-ccc">
|
||||
<i class="iconfont icon-paizhao font-48"></i>
|
||||
<view class="mt10 font-22">上传多对一群</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
@@ -0,0 +1 @@
|
||||
/* pages/order/editVoucherImg/index.wxss */
|
||||
Reference in New Issue
Block a user