调拨记录
This commit is contained in:
@@ -28,7 +28,9 @@
|
||||
"pages/customer/optDefeat/index",
|
||||
"pages/order/edit/index",
|
||||
"pages/distribute/storePoster/index",
|
||||
"pages/distribute/storePoster/modelList/index"
|
||||
"pages/distribute/storePoster/modelList/index",
|
||||
"pages/allot/detail/index",
|
||||
"pages/allot/list/index"
|
||||
],
|
||||
"echarts": [
|
||||
{
|
||||
|
||||
@@ -32,4 +32,5 @@
|
||||
.bg-fff6f8{background-color:#fff6f8;}
|
||||
|
||||
.bg-e3f5f3{background-color:#e3f5f3;}
|
||||
.bg-2e3246{background-color:#2e3246;}
|
||||
.bg-2e3246{background-color:#2e3246;}
|
||||
.bg-ffedeb{background-color:#ffedeb;}
|
||||
@@ -15,6 +15,7 @@
|
||||
.img-135x135{width:135rpx;height:135rpx;box-sizing:border-box;}
|
||||
.img-140x140{width:140rpx;height:140rpx;box-sizing:border-box;}
|
||||
.img-160x160{width:160rpx;height:160rpx;box-sizing:border-box;}
|
||||
.img-200x180{width:200rpx;height:180rpx;box-sizing:border-box;}
|
||||
.img-208x170{width:208rpx;height:170rpx;box-sizing:border-box;}
|
||||
.img-250x150{width:250rpx;height:150rpx;box-sizing:border-box;}
|
||||
.img-250x250{width:250rpx;height:250rpx;box-sizing:border-box;}
|
||||
|
||||
Vendored
+11
-3
File diff suppressed because one or more lines are too long
@@ -91,6 +91,10 @@ api = {
|
||||
|
||||
materialHomeBiz_posters:'material/home/biz_posters', //店铺海报模版
|
||||
|
||||
appTransferLists:'app/transfer/lists', //调拨记录
|
||||
appTransfer:'app/transfer', //调拨详情 /确认发车/接车 /报备异常
|
||||
appTransferRemind:'app/transfer/remind', //调拨提醒
|
||||
|
||||
}
|
||||
|
||||
//远程图片存储地址
|
||||
|
||||
@@ -572,4 +572,39 @@ apiQuery.getMaterialHomeBiz_posters = function (params) {
|
||||
})
|
||||
}
|
||||
|
||||
//调拨记录
|
||||
apiQuery.getAppTransferLists = function (params) {
|
||||
return new Promise(function (resolve, reject) {
|
||||
HttpRequest(false, Config.api.appTransferLists, 2, params, "GET", resolve, reject)
|
||||
})
|
||||
}
|
||||
|
||||
//调拨详情
|
||||
apiQuery.getAppTransfer = function (params) {
|
||||
return new Promise(function (resolve, reject) {
|
||||
HttpRequest(true, Config.api.appTransfer, 2, params, "GET", resolve, reject)
|
||||
})
|
||||
}
|
||||
|
||||
//确认发车/接车
|
||||
apiQuery.putAppTransfer = function (params) {
|
||||
return new Promise(function (resolve, reject) {
|
||||
HttpRequest(true, Config.api.appTransfer, 2, params, "PUT", resolve, reject)
|
||||
})
|
||||
}
|
||||
|
||||
//报备异常
|
||||
apiQuery.postAppTransfer = function (params) {
|
||||
return new Promise(function (resolve, reject) {
|
||||
HttpRequest(true, Config.api.appTransfer, 2, params, "POST", resolve, reject)
|
||||
})
|
||||
}
|
||||
|
||||
//调拨提醒
|
||||
apiQuery.getAppTransferRemind = function (params) {
|
||||
return new Promise(function (resolve, reject) {
|
||||
HttpRequest(false, Config.api.appTransferRemind, 2, params, "GET", resolve, reject)
|
||||
})
|
||||
}
|
||||
|
||||
export default apiQuery;
|
||||
@@ -0,0 +1,234 @@
|
||||
import _ from '../../../commons/js/commons'
|
||||
const app = getApp()
|
||||
Page({
|
||||
data: {
|
||||
imgUrl:_.config.imgUrl,
|
||||
photos:[],
|
||||
note:'',
|
||||
isShowReport:false,
|
||||
},
|
||||
onLoad: function (options) {
|
||||
for (let key in options) {
|
||||
this.setData({
|
||||
[key]: options[key]
|
||||
})
|
||||
}
|
||||
|
||||
this.getAppTransfer()
|
||||
|
||||
},
|
||||
onShow: function () {
|
||||
|
||||
},
|
||||
|
||||
//获取订单详情
|
||||
getAppTransfer(){
|
||||
let params = {};
|
||||
params['id'] = this.data.id;
|
||||
_.apiQuery.getAppTransfer(params).then(res=>{
|
||||
this.setData({
|
||||
info:res.data,
|
||||
})
|
||||
|
||||
wx.stopPullDownRefresh()
|
||||
|
||||
})
|
||||
},
|
||||
|
||||
//选择图片
|
||||
chooseImg() {
|
||||
let that = this
|
||||
wx.chooseImage({
|
||||
count: 10 - this.data.photos.length, // 默认10
|
||||
sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有
|
||||
sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有
|
||||
success(res1) {
|
||||
for (let i = 0; i < res1.tempFilePaths.length; i++) {
|
||||
//上传图片
|
||||
that.uploadImg(res1.tempFilePaths[i])
|
||||
}
|
||||
},
|
||||
fail: res => {
|
||||
wx.showToast({
|
||||
title: '文件选择失败',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
//上传图片
|
||||
uploadImg(img){
|
||||
let that = this
|
||||
setTimeout(function () {
|
||||
wx.showLoading({
|
||||
title: '图片上传中',
|
||||
})
|
||||
}, 500);
|
||||
wx.uploadFile({
|
||||
url: _.config.api.upImg,
|
||||
filePath: img,
|
||||
name: 'img',
|
||||
formData: {
|
||||
'app': 'liche'
|
||||
},
|
||||
success(res) {
|
||||
setTimeout(function () {
|
||||
wx.hideLoading()
|
||||
}, 500);
|
||||
let imgdata = JSON.parse(res.data)
|
||||
let list = []
|
||||
list.push({
|
||||
img:imgdata.data.url,
|
||||
img_url:imgdata.data.full_url,
|
||||
})
|
||||
that.setData({
|
||||
photos: that.data.photos.concat(list),
|
||||
})
|
||||
},
|
||||
fail(res) {
|
||||
wx.hideLoading()
|
||||
wx.showToast({
|
||||
title: res.data.msg,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
// 编辑页面删除图片
|
||||
delPic(e){
|
||||
let photos = this.data.photos
|
||||
photos.splice(e.currentTarget.dataset.index, 1)
|
||||
this.setData({
|
||||
photos: photos,
|
||||
})
|
||||
},
|
||||
|
||||
//显示短信弹框
|
||||
optShowReport(e){
|
||||
this.setData({
|
||||
isShowReport:!this.data.isShowReport,
|
||||
photos:[],
|
||||
note:'',
|
||||
optid:e.currentTarget.dataset.id?e.currentTarget.dataset.id:'',
|
||||
})
|
||||
},
|
||||
|
||||
//拨打电话
|
||||
call(e) {
|
||||
wx.makePhoneCall({
|
||||
phoneNumber:this.data.info.transport.mobile,
|
||||
})
|
||||
},
|
||||
|
||||
//推送链接
|
||||
pushLink(e){
|
||||
if(e.currentTarget.dataset.url){
|
||||
_.$router.openUrlScheme(e.currentTarget.dataset.url)
|
||||
}
|
||||
},
|
||||
|
||||
//确认发车/接车
|
||||
putAppTransfer(e) {
|
||||
let that = this
|
||||
let params = {};
|
||||
params['id'] = e.currentTarget.dataset.id;
|
||||
_.apiQuery.putAppTransfer(params).then(res => {
|
||||
that.setData({
|
||||
submitFlag: false,
|
||||
})
|
||||
|
||||
//刷新列表页
|
||||
let pages = getCurrentPages();
|
||||
let prevPage = null; //上一个页面
|
||||
if (pages.length >= 2) {
|
||||
prevPage = pages[pages.length - 2]; //上一个页面
|
||||
if(prevPage.route == 'pages/allot/list/index'){
|
||||
prevPage.onPullDownRefresh()
|
||||
}
|
||||
}
|
||||
|
||||
wx.showModal({
|
||||
title: '操作成功',
|
||||
content: '',
|
||||
confirmText: "返回",
|
||||
confirmColor: "#36afa2",
|
||||
showCancel:false,
|
||||
success(res) {
|
||||
if (res.confirm) {
|
||||
wx.navigateBack({
|
||||
delta: 1
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
}).catch(res=>{
|
||||
that.setData({
|
||||
submitFlag: false,
|
||||
})
|
||||
});
|
||||
},
|
||||
|
||||
//报备异常
|
||||
postAppTransfer() {
|
||||
let that = this
|
||||
if (that.data.note == ''&& that.data.photos.length==0) {
|
||||
wx.showToast({
|
||||
title: '请拍照或填定备注信息',
|
||||
icon: 'none'
|
||||
})
|
||||
}else{
|
||||
that.setData({
|
||||
submitFlag: true,
|
||||
})
|
||||
let params = {};
|
||||
params['id'] = that.data.optid;
|
||||
if(that.data.note != ''){
|
||||
params['note'] = that.data.note;
|
||||
}
|
||||
if(that.data.photos.length > 0){
|
||||
let imgs = []
|
||||
that.data.photos.forEach(item => {
|
||||
imgs.push(item.img)
|
||||
})
|
||||
params['imgs'] = imgs;
|
||||
}
|
||||
_.apiQuery.postAppTransfer(params).then(res => {
|
||||
that.setData({
|
||||
submitFlag: false,
|
||||
isShowReport: false,
|
||||
})
|
||||
wx.showModal({
|
||||
title: '异常报备成功',
|
||||
content: '',
|
||||
confirmText: "知道了",
|
||||
confirmColor: "#36afa2",
|
||||
cancelText: "返回",
|
||||
cancelColor: "#666",
|
||||
success(res) {
|
||||
if (res.confirm) {
|
||||
that.getAppTransfer()
|
||||
} else if (res.cancel) {
|
||||
wx.navigateBack({
|
||||
delta: 1
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
}).catch(res=>{
|
||||
that.setData({
|
||||
submitFlag: false,
|
||||
})
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
//页面相关事件处理函数--监听用户下拉动作
|
||||
onPullDownRefresh(){
|
||||
this.getAppTransfer()
|
||||
},
|
||||
|
||||
})
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
||||
@@ -0,0 +1,94 @@
|
||||
<view class="container">
|
||||
<view class="inner30">
|
||||
<view class="relative bg-fff ulib-r10 box-shadow-000-10-10">
|
||||
<view class="relative inner40 pr180 bbs-1-eb">
|
||||
<view class="font-28">
|
||||
<text class="font-32">{{info.transport.name}}</text>
|
||||
<text class="font-28 color-666">({{info.transport.mobile}})</text>
|
||||
</view>
|
||||
<view class="mt10 font-22 color-999">{{info.transport.title}}</view>
|
||||
<view class="absolute right-0 box-middle">
|
||||
<view class="inline-block relative img-55x55 mr40 bg-333 font-28 color-fff ulib-r750" catchtap="call">
|
||||
<i class="absolute box-center-middle iconfont icon-dianhua"></i>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="inner40">
|
||||
<view class="font-32">车辆信息</view>
|
||||
<block wx:for="{{info.other_data}}" wx:key='i'>
|
||||
<view class="mt25 fn-clear font-28">
|
||||
<view class="fn-fl color-333">{{item.title}}</view>
|
||||
<view class="fn-fr wp60 text-right" wx:if="{{item.list}}">
|
||||
<block wx:for="{{item.list}}" wx:for-item="it" wx:key='i'>
|
||||
<text class="inline-block ml5 mr5 pl10 pr10 bg-999 font-22 color-fff ulib-r750">{{it}}</text>
|
||||
</block>
|
||||
</view>
|
||||
<view class="fn-fr wp60 text-nowrap text-right color-666" wx:elif="{{item.value}}">{{item.value}}</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
<view class="mt30 font-24 color-999"><i class="mr5 iconfont icon-tishi"></i>请仔细检查车辆外观与随车物品是否正常,如有异常点击下方报备异常。</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="fixed left-0 right-0 bottom-0 bg-fff-op90 inner40 fn-flex safe-pb">
|
||||
<block wx:for="{{info.btn}}" wx:key='index'>
|
||||
<block wx:if="{{item.type==1}}">
|
||||
<button class="wp100 bds-2-36afa2 bg-fff mr20 pt10 pb10 text-center font-32 color-36afa2 ulib-r750" hover-class="btn-36afa2-hover" bindtap="optShowReport" data-id="{{item.id}}">{{item.title}}</button>
|
||||
</block>
|
||||
<block wx:elif="{{item.type==2}}">
|
||||
<button class="wp100 btn-36afa2 ml20 pt10 pb10 text-center font-32 color-fff ulib-r750" hover-class="btn-36afa2-hover" disabled="{{submitFlag}}" bindtap="putAppTransfer" data-id="{{item.id}}">{{item.title}}</button>
|
||||
</block>
|
||||
</block>
|
||||
</view>
|
||||
|
||||
<lcb-msg isShow="{{isShowReport}}">
|
||||
<view slot="content">
|
||||
<view class="pt40 pl40 pr40">
|
||||
<view class="font-36 text-center">报备异常</view>
|
||||
</view>
|
||||
<view class="mt30 pl30 pr40">
|
||||
<scroll-view class="space-nowrap" style="width:540rpx;" scroll-x="true">
|
||||
<block wx:for='{{photos}}' wx:for-item='photos' wx:for-index="index" wx:key='photo'>
|
||||
<view class="inline-block img-200x180 ml10 mr10 relative">
|
||||
<i class="absolute top-0 right-0 bg-f9394d iconfont icon-shanchu inner10 font-26 color-fff ulib-rtr10 ulib-rbl10 z-index-1" bindtap="delPic" data-index="{{index}}" ></i>
|
||||
<image class='img-200x180 ulib-r10' src='{{photos.img_url}}' mode='aspectFill'></image>
|
||||
</view>
|
||||
</block>
|
||||
<block wx:if="{{photos.length==0}}">
|
||||
<view class="inline-block img-200x180 ml10 mr10 relative" bindtap="chooseImg">
|
||||
<image class='img-200x180 ulib-r10' src='{{imgUrl}}allot/add-pic.jpg' mode='aspectFill'></image>
|
||||
</view>
|
||||
<view class="inline-block img-200x180 ml10 mr10 relative" bindtap="chooseImg">
|
||||
<image class='img-200x180 ulib-r10' src='{{imgUrl}}allot/add-pic.jpg' mode='aspectFill'></image>
|
||||
</view>
|
||||
<view class="inline-block img-200x180 ml10 mr10 relative" bindtap="chooseImg">
|
||||
<image class='img-200x180 ulib-r10' src='{{imgUrl}}allot/add-pic.jpg' mode='aspectFill'></image>
|
||||
</view>
|
||||
</block>
|
||||
<block wx:elif="{{photos.length==1}}">
|
||||
<view class="inline-block img-200x180 ml10 mr10 relative" bindtap="chooseImg">
|
||||
<image class='img-200x180 ulib-r10' src='{{imgUrl}}allot/add-pic.jpg' mode='aspectFill'></image>
|
||||
</view>
|
||||
<view class="inline-block img-200x180 ml10 mr10 relative" bindtap="chooseImg">
|
||||
<image class='img-200x180 ulib-r10' src='{{imgUrl}}allot/add-pic.jpg' mode='aspectFill'></image>
|
||||
</view>
|
||||
</block>
|
||||
<block wx:elif="{{photos.length<10}}">
|
||||
<view class="inline-block img-200x180 ml10 mr10 relative" bindtap="chooseImg">
|
||||
<image class='img-200x180 ulib-r10' src='{{imgUrl}}allot/add-pic.jpg' mode='aspectFill'></image>
|
||||
</view>
|
||||
</block>
|
||||
</scroll-view>
|
||||
</view>
|
||||
<view class="pl40 pr40 pb40">
|
||||
<view class="mt15 font-32">备注信息</view>
|
||||
<textarea class="mt15 wp100 inner20 bds-1-eb font-28 ulib-r10" placeholder-class="color-ccc" placeholder="请填写备注信息" style="height:150rpx;" model:value='{{note}}' />
|
||||
</view>
|
||||
<view class="fn-flex pl60 pr60 pb50 text-center font-32 color-666">
|
||||
<button bindtap="optShowReport" class="fn-flex-item mr20 bds-2-36afa2 btn-no-bg wp100 font-28 color-36afa2 ulib-r750">取消</button>
|
||||
<button disabled="{{submitFlag}}" bindtap="postAppTransfer" class="fn-flex-item ml20 btn-36afa2 wp100 font-28 color-fff ulib-r750" hover-class="btn-36afa2-hover">确定</button>
|
||||
</view>
|
||||
</view>
|
||||
</lcb-msg>
|
||||
@@ -0,0 +1 @@
|
||||
/* pages/allot/detail/index.wxss */
|
||||
@@ -0,0 +1,122 @@
|
||||
import _ from '../../../commons/js/commons'
|
||||
const app = getApp()
|
||||
Page({
|
||||
data: {
|
||||
list: [],//客户列表
|
||||
pageNo: 1,
|
||||
noData: false,
|
||||
end: false,
|
||||
load: true,
|
||||
loading: false,
|
||||
flag:1,
|
||||
s_date:'',
|
||||
e_date:'',
|
||||
},
|
||||
onLoad: function (options) {
|
||||
for (let key in options) {
|
||||
this.setData({
|
||||
[key]: options[key]
|
||||
})
|
||||
}
|
||||
this.getAppTransferLists()
|
||||
},
|
||||
|
||||
//获取客户列表
|
||||
getAppTransferLists() {
|
||||
this.setData({
|
||||
load: false,
|
||||
loading: true,
|
||||
})
|
||||
let params = {};
|
||||
params['page'] = this.data.pageNo;
|
||||
params['size'] = 10;
|
||||
if(this.data.s_date != ''){
|
||||
params['s_date'] = this.data.s_date;
|
||||
}
|
||||
if(this.data.e_date != ''){
|
||||
params['e_date'] = this.data.e_date;
|
||||
}
|
||||
_.apiQuery.getAppTransferLists(params).then(res => {
|
||||
this.setData({
|
||||
flag: this.data.flag - 1
|
||||
})
|
||||
if (!this.data.flag) {
|
||||
this.setData({
|
||||
pageNo: this.data.pageNo + 1,
|
||||
list: this.data.list.concat(res.data.list),
|
||||
load: true,
|
||||
loading: false,
|
||||
})
|
||||
if (res.data.total == 0) {
|
||||
this.setData({
|
||||
noData: true
|
||||
})
|
||||
} else if (this.data.list.length == res.data.total) {
|
||||
this.setData({
|
||||
end: true
|
||||
})
|
||||
}
|
||||
}
|
||||
wx.stopPullDownRefresh()
|
||||
});
|
||||
},
|
||||
|
||||
//提交搜索
|
||||
searchSubmit(){
|
||||
this.setData({
|
||||
list: [],
|
||||
pageNo: 1,
|
||||
noData: false,
|
||||
end: false,
|
||||
load: true,
|
||||
loading: false,
|
||||
flag: this.data.flag + 1
|
||||
})
|
||||
this.getAppTransferLists()
|
||||
},
|
||||
|
||||
//建卡时间
|
||||
startDate(e){
|
||||
this.setData({
|
||||
s_date: e.detail.value,
|
||||
})
|
||||
},
|
||||
|
||||
//建卡时间
|
||||
endDate(e){
|
||||
this.setData({
|
||||
e_date: e.detail.value,
|
||||
})
|
||||
},
|
||||
|
||||
//推送链接
|
||||
pushLink(e){
|
||||
if(e.currentTarget.dataset.url){
|
||||
_.$router.openUrlScheme(e.currentTarget.dataset.url)
|
||||
}
|
||||
},
|
||||
|
||||
//页面相关事件处理函数--监听用户下拉动作
|
||||
onPullDownRefresh(){
|
||||
this.setData({
|
||||
list: [],
|
||||
pageNo: 1,
|
||||
noData: false,
|
||||
end: false,
|
||||
load: true,
|
||||
loading: false,
|
||||
flag: this.data.flag + 1
|
||||
})
|
||||
this.getAppTransferLists()
|
||||
},
|
||||
|
||||
//页面上拉触底事件的处理函数
|
||||
onReachBottom(){
|
||||
if (this.data.noData || this.data.end||!this.data.load) return;
|
||||
this.setData({
|
||||
flag: this.data.flag + 1
|
||||
})
|
||||
this.getAppTransferLists()
|
||||
},
|
||||
|
||||
})
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
<view class="container">
|
||||
<view class="pt30 pl30 relative text-center font-22">
|
||||
<view class="inline-block text-middle pt10 pb10 bg-f6 ulib-r750" style="width:240rpx;">
|
||||
<picker mode="date" value="{{s_date}}" bindchange="startDate">
|
||||
<text class="color-ccc" wx:if="{{s_date == ''}}">请选择</text>
|
||||
<text wx:else>{{s_date}}</text>
|
||||
</picker>
|
||||
</view>
|
||||
<view class="inline-block text-middle pt10 pb10 pl10 pr10">-</view>
|
||||
<view class="wp33 inline-block text-middle pt10 pb10 bg-f6 ulib-r750" style="width:240rpx;">
|
||||
<picker mode="date" value="{{e_date}}" bindchange="endDate">
|
||||
<text class="color-ccc" wx:if="{{e_date == ''}}">请选择</text>
|
||||
<text wx:else>{{e_date}}</text>
|
||||
</picker>
|
||||
</view>
|
||||
<view bindtap="searchSubmit" class="inline-block text-middle ml10 pt10 pb10 bg-333 color-fff ulib-r750" style="width:140rpx;">搜索</view>
|
||||
</view>
|
||||
|
||||
<view class="mt30 pl30 pr30">
|
||||
|
||||
<block wx:for='{{list}}' wx:key='index'>
|
||||
<view class="inner40 relative ulib-r10 box-shadow-000-10-10 mb30 overflowhidden" bindtap="pushLink" data-url="{{item.url}}">
|
||||
<view class="font-40" wx:if="{{item.biz_name}}">{{item.biz_name}}</view>
|
||||
<block wx:for="{{item.other_data}}" wx:for-index='key' wx:for-item='it' wx:key='i'>
|
||||
<view class="mt25 fn-clear font-28">
|
||||
<view class="fn-fl color-333">{{it.title}}</view>
|
||||
<view class="fn-fr wp60 text-nowrap text-right color-666">{{it.value}}</view>
|
||||
</view>
|
||||
</block>
|
||||
<view class="mt20 pt5 pb5 pl20 pr20 bg-f6 font-22 color-666 ulib-rlb750 ulib-rr750" wx:if="{{item.c_time}}">{{item.c_time}}</view>
|
||||
</view>
|
||||
</block>
|
||||
<lcb-listmore isLoading='{{loading}}' isEnd='{{end}}' isNoData='{{noData}}'></lcb-listmore>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
@@ -0,0 +1 @@
|
||||
/* pages/allot/list/index.wxss */
|
||||
@@ -11,6 +11,7 @@
|
||||
<!-- <text class="inline-block ml10 pl10 pr10 bg-fff text-middle font-18 ulib-r750">{{userInfo.biz_name}}</text> -->
|
||||
</view>
|
||||
</view>
|
||||
<view class="absolute allot-tip pt8 pb8 pl15 pr10 bg-f9394d font-22 color-fff ulib-rt10" bindtap="pushLink" data-url="/pages/allot/list/index">车辆调拨记录<i class="iconfont icon-gengduo"></i></view>
|
||||
</view>
|
||||
<!-- 管辖门店 -->
|
||||
<view class="mt40 inner30 pt40 bg-fff box-shadow-000-10-10 ulib-r10">
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
.bg-2e3246-8058fe{background-image:linear-gradient(45deg, #2e3246, #1a1c26);}
|
||||
.bg-2e3246-8058fe{background-image:linear-gradient(45deg, #2e3246, #1a1c26);}
|
||||
.allot-tip{right:30rpx;bottom:-40rpx;}
|
||||
@@ -39,6 +39,7 @@ Page({
|
||||
ecPie:{},
|
||||
isShowNotice:false,//是否显示通知
|
||||
stopNotice:false,//是否不再显示通知
|
||||
isShowReport:false,
|
||||
},
|
||||
|
||||
onLoad(options) {
|
||||
@@ -56,6 +57,7 @@ Page({
|
||||
|
||||
this.getAppStatisticsHcust()
|
||||
this.getAppStatisticsHorder()
|
||||
this.getAppTransferRemind()
|
||||
|
||||
},
|
||||
|
||||
@@ -90,6 +92,15 @@ Page({
|
||||
});
|
||||
},
|
||||
|
||||
//更新用户店铺id
|
||||
getAppTransferRemind(){
|
||||
_.apiQuery.getAppTransferRemind().then(res => {
|
||||
this.setData({
|
||||
allotNum: res.data.total,
|
||||
})
|
||||
});
|
||||
},
|
||||
|
||||
//获取用户信息
|
||||
getUserInfo(){
|
||||
_.apiQuery.getUserInfo().then(res => {
|
||||
@@ -241,6 +252,13 @@ Page({
|
||||
}
|
||||
},
|
||||
|
||||
//显示短信弹框
|
||||
optShowReport(e){
|
||||
this.setData({
|
||||
isShowReport:!this.data.isShowReport,
|
||||
})
|
||||
},
|
||||
|
||||
//页面相关事件处理函数--监听用户下拉动作
|
||||
onPullDownRefresh: function () {
|
||||
this.getAppUserCal()
|
||||
|
||||
+78
-45
@@ -1,62 +1,80 @@
|
||||
<view class="container">
|
||||
<view class="inner30 img-top-cover" style="background-image:url({{imgUrl}}index/theme.png);">
|
||||
<view class="relative pt20 pb20 pl110 pr10">
|
||||
<view class="absolute left-0 box-middle mr10 img-90x90 ulib-r750 overflowhidden">
|
||||
<open-data type="userAvatarUrl"></open-data>
|
||||
</view>
|
||||
<view>
|
||||
<view class="font-22 color-fff">Hi~ {{hoursTip}}欢迎回到狸车宝!</view>
|
||||
<view style="height:200rpx;">
|
||||
<view class="relative pt30 pb30 pl110 pr10">
|
||||
<view class="absolute left-0 box-middle mr10 img-90x90 ulib-r750 overflowhidden">
|
||||
<open-data type="userAvatarUrl"></open-data>
|
||||
</view>
|
||||
<view>
|
||||
<text class="text-middle text-bold font-48 color-fff">{{userInfo.uname}}</text>
|
||||
<text class="inline-block ml10 pl10 pr10 bg-fff text-middle font-18 ulib-r750">{{userInfo.biz_name}}</text>
|
||||
<view class="font-22 color-fff">Hi~ {{hoursTip}}欢迎回到狸车宝!</view>
|
||||
<view>
|
||||
<text class="text-middle text-bold font-48 color-fff">{{userInfo.uname}}</text>
|
||||
<text class="inline-block ml10 pl10 pr10 bg-fff text-middle font-18 ulib-r750">{{userInfo.biz_name}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!--客户代办事项 订单代办事项 -->
|
||||
<view class="mt40 inner30 pt40 bg-fff box-shadow-000-10-10 ulib-r10">
|
||||
<view class="font-36">客户代办事项</view>
|
||||
<view class="fn-flex pt20 pb20 color-fff">
|
||||
<view class="fn-flex-item relative mr15 pt25 pb25 pl110 bg-1c89fd-8058fe ulib-r10" bindtap="pushLink" data-url="/pages/customer/filterList/index?iscall=0&title=未联系潜客" >
|
||||
<i class="absolute left-0 box-middle ml35 iconfont icon-qianke font-60"></i>
|
||||
<view>
|
||||
<view class="font-40">{{userCal.wl_count}}</view>
|
||||
<view class="font-22">未联系潜客(人)</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fn-flex-item relative ml15 pt25 pb25 pl110 bg-fe606c-ff9026 ulib-r10" bindtap="pushLink" data-url="/pages/customer/filterList/index?istop=1&title=特别关注客户">
|
||||
<i class="absolute left-0 box-middle ml35 iconfont icon-guanzhu font-60"></i>
|
||||
<view>
|
||||
<view class="font-40">{{userCal.gz_count}}</view>
|
||||
<view class="font-22">特别关注客户(人)</view>
|
||||
<view class="bg-fff box-shadow-000-10-10 ulib-r10">
|
||||
<view class="bg-ffedeb ulib-rt10" style="height:140rpx;" bindtap="pushLink" data-url="/pages/allot/list/index" wx:if="{{allotNum>0}}">
|
||||
<view class="pt30 pl30 pr30">
|
||||
<view class="relative pl110 pr110">
|
||||
<image class='block absolute left-0 box-middle img-90x90 ulib-r750 z-index-1' mode="aspectFill" src='{{imgUrl}}index/diaobo-icon.png' lazy-load="{{true}}"></image>
|
||||
<view class="color-f9394d">
|
||||
<view class="font-32">车辆调拨</view>
|
||||
<view class="mt10 font-20">您有新的车辆调拨,需要您进行确认操作</view>
|
||||
</view>
|
||||
<view class="absolute right-0 box-middle">
|
||||
<text class="inline-block text-middle pt5 pb5 pl10 pr10 bg-f9394d font-22 color-fff ulib-r10">{{allotNum}}</text>
|
||||
<text class="ml5 text-middle iconfont icon-gengduo font-32 color-f9394d"></text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="relative mt10 mb40 bg-2f3346-1a1c26 color-fff ulib-r10" wx:if="{{userCal.customer_op_list.length>0}}" >
|
||||
<block wx:for="{{userCal.customer_op_list}}" wx:key='index'>
|
||||
<view class="relative pt20 pb30 pl30 pr30 bbs-1-474a65 last-b-none" bindtap="pushLink" data-url="{{item.page}}">
|
||||
<view class="inner30 pt40">
|
||||
<view class="font-36">客户代办事项</view>
|
||||
<view class="fn-flex pt20 pb20 color-fff">
|
||||
<view class="fn-flex-item relative mr15 pt25 pb25 pl110 bg-1c89fd-8058fe ulib-r10" bindtap="pushLink" data-url="/pages/customer/filterList/index?iscall=0&title=未联系潜客" >
|
||||
<i class="absolute left-0 box-middle ml35 iconfont icon-qianke font-60"></i>
|
||||
<view>
|
||||
<i class="iconfont {{item.icon}} text-middle font-30"></i>
|
||||
<text class="ml10 font-22 text-middle">{{item.title}}</text>
|
||||
</view>
|
||||
<view class="absolute right-0 box-middle mr25 mb10 font-40">
|
||||
<text class="text-middle">{{item.total}}</text>
|
||||
<i class="iconfont icon-gengduo ml5 text-middle font-26"></i>
|
||||
<view class="font-40">{{userCal.wl_count}}</view>
|
||||
<view class="font-22">未联系潜客(人)</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
<view class="mt20 font-36">订单代办事项</view>
|
||||
<view class="fn-flex fn-flex-wrap pt30 pb10">
|
||||
<block wx:for="{{deallist}}" wx:key='index'>
|
||||
<view class="wp33 relative pl80 pt20 pb20 {{index>2?'bts-1-eb':''}} {{index%3==2?'':'brs-1-eb'}}" bindtap="pushLink" data-url="{{item.page}}">
|
||||
<i class="absolute left-0 box-middle ml20 iconfont font-50 {{item.icon}}"></i>
|
||||
<view class="fn-flex-item relative ml15 pt25 pb25 pl110 bg-fe606c-ff9026 ulib-r10" bindtap="pushLink" data-url="/pages/customer/filterList/index?istop=1&title=特别关注客户">
|
||||
<i class="absolute left-0 box-middle ml35 iconfont icon-guanzhu font-60"></i>
|
||||
<view>
|
||||
<view class="font-40">{{item.total}}</view>
|
||||
<view class="font-22 color-666">{{item.title}}</view>
|
||||
<view class="font-40">{{userCal.gz_count}}</view>
|
||||
<view class="font-22">特别关注客户(人)</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
<view class="relative mt10 mb40 bg-2f3346-1a1c26 color-fff ulib-r10" wx:if="{{userCal.customer_op_list.length>0}}" >
|
||||
<block wx:for="{{userCal.customer_op_list}}" wx:key='index'>
|
||||
<view class="relative pt20 pb30 pl30 pr30 bbs-1-474a65 last-b-none" bindtap="pushLink" data-url="{{item.page}}">
|
||||
<view>
|
||||
<i class="iconfont {{item.icon}} text-middle font-30"></i>
|
||||
<text class="ml10 font-22 text-middle">{{item.title}}</text>
|
||||
</view>
|
||||
<view class="absolute right-0 box-middle mr25 mb10 font-40">
|
||||
<text class="text-middle">{{item.total}}</text>
|
||||
<i class="iconfont icon-gengduo ml5 text-middle font-26"></i>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
<view class="mt20 font-36">订单代办事项</view>
|
||||
<view class="fn-flex fn-flex-wrap pt30 pb10">
|
||||
<block wx:for="{{deallist}}" wx:key='index'>
|
||||
<view class="wp33 relative pl80 pt20 pb20 {{index>2?'bts-1-eb':''}} {{index%3==2?'':'brs-1-eb'}}" bindtap="pushLink" data-url="{{item.page}}">
|
||||
<i class="absolute left-0 box-middle ml20 iconfont font-50 {{item.icon}}"></i>
|
||||
<view>
|
||||
<view class="font-40">{{item.total}}</view>
|
||||
<view class="font-22 color-666">{{item.title}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -108,8 +126,6 @@
|
||||
<lcb-backChannel></lcb-backChannel>
|
||||
<lcb-shopTabBarNav currentIndex='0'></lcb-shopTabBarNav>
|
||||
|
||||
|
||||
|
||||
<!-- 客服提示 -->
|
||||
<lcb-msg isShow="{{isShowNotice}}">
|
||||
<view slot="content">
|
||||
@@ -127,4 +143,21 @@
|
||||
</view>
|
||||
<view class="bts-1-eb pt30 pb30 text-center font-32 color-666" bindtap="closeNotice">知道了</view>
|
||||
</view>
|
||||
</lcb-msg>
|
||||
|
||||
<!-- 调拨提醒 -->
|
||||
<lcb-msg isShow="{{isShowReport}}">
|
||||
<view slot="content">
|
||||
<view class="pt40 pl40 pr40">
|
||||
<view class="font-36 text-center">报备异常</view>
|
||||
<view class="mt10 font-22 text-center color-999">您有新的车辆调拨,需要您进行确认操作。</view>
|
||||
</view>
|
||||
<view class="mt20 pl40 pr40 pb40">
|
||||
<image class='wp100 ulib-r10' src='{{imgUrl}}allot/car.gif' mode='widthFix'></image>
|
||||
</view>
|
||||
<view class="fn-flex pl60 pr60 pb50 text-center font-32 color-666">
|
||||
<button bindtap="optShowReport" class="fn-flex-item mr20 bds-2-36afa2 btn-no-bg wp100 font-28 color-36afa2 ulib-r750">取消</button>
|
||||
<button bindtap="pushLink" data-url="/pages/allot/list/index" class="fn-flex-item ml20 btn-36afa2 wp100 font-28 color-fff ulib-r750" hover-class="btn-36afa2-hover">前往操作</button>
|
||||
</view>
|
||||
</view>
|
||||
</lcb-msg>
|
||||
Reference in New Issue
Block a user