2025-07-03

This commit is contained in:
lcc
2025-07-03 15:45:07 +08:00
parent 9a0c04113f
commit c1da128f07
13 changed files with 366 additions and 295 deletions
+2 -1
View File
@@ -194,6 +194,7 @@ api = {
appRadar: "app/score/radar", //雷达图数据
appPaic: "app/paic", //平安用户
appCusorderDestroy: 'app/cusorderDestroy', //核销优惠券
}
//远程图片存储地址
@@ -258,4 +259,4 @@ export default {
subscribeTmpId,
white401UrlList,
v2OrderId,
}
}
+6
View File
@@ -1112,4 +1112,10 @@ apiQuery.getBizAccountLogs = function (params) {
HttpRequest(false, Config.api.appBizAccountLogs, 2, params, "GET", resolve, reject)
})
}
//核销优惠券
apiQuery.postAppCusorderDestroy = function (params) {
return new Promise(function (resolve, reject) {
HttpRequest(false, Config.api.appCusorderDestroy, 2, params, "POST", resolve, reject)
})
}
export default apiQuery;
+3 -1
View File
@@ -1,3 +1,4 @@
<!--
<wxs module="tool">
var formatTime = function(time) {
// 总秒数
@@ -14,6 +15,7 @@
}
exports.formatTime = formatTime;
</wxs>
-->
<view class="container">
<view>
@@ -91,7 +93,7 @@
<text class="text-middle font-26 color-666">({{item.mobile}})</text>
</view>
<view class="absolute right-0 top-0">
<view class="font-26 mt10" style="color:#f63c51">{{'距转派还剩'+tool.formatTime(item.left_time)}}</view>
<view class="font-26 mt10" style="color:#f63c51">{{'距转派还剩'+item.left_time}}</view>
</view>
</view>
<view class="relative">
+9 -1
View File
@@ -73,7 +73,15 @@ Page({
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
this.setData({
pageNo: 1,
list: [],
noData: false,
end: false,
load: true,
loading: false
})
this.getBizAccountLog();
},
/**
+6
View File
@@ -1,3 +1,9 @@
{
"navigationBarTitleText": "积分明细",
"enablePullDownRefresh": true,
"navigationBarTextStyle": "white",
"navigationBarBackgroundColor": "#1a1c26",
"backgroundColor": "#ffffff",
"backgroundColorTop": "#1a1c26",
"usingComponents": {}
}
+1
View File
@@ -29,6 +29,7 @@ Page({
confirm_count_down: 3,
wxTimerList: {},
wxTimer: null,
group_id_4s: 5 //角色类型4店铺
},
onLoad: function (options) {
for (let key in options) {
+52 -50
View File
@@ -98,63 +98,64 @@
</view>
</view>
</block>
<!--订单合同-->
<view class="relative bbs-1-eb pl140 font-28" bindtap="pushLink" data-url="/pages/order/editImg/index?id={{id}}&type=contract_img&title=订单合同&multi=true&edit={{info.status>0?'0':'1'}}">
<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>{{info.status>0?'已审核':contract_img.length>0?'更新':'上传'}}<i class="iconfont ml10 icon-gengduo"></i></view>
</view>
</view>
<!--付款凭证-->
<view class="relative bbs-1-eb pl140 font-28" bindtap="pushLink" data-url="/pages/order/editImg/index?id={{id}}&type=pay_img&title=付款凭证&edit={{info.status>0?'0':'1'}}">
<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>{{info.status>0?'已审核':pay_img.value?'更新':'上传'}}<i class="iconfont ml10 icon-gengduo"></i></view>
</view>
</view>
<!--权益确认书-->
<view class="relative bbs-1-eb pl140 font-28" bindtap="pushLink" data-url="/pages/order/editImg/index?id={{id}}&type=equity_ck_img&title=权益确认书&multi=true&edit={{info.status>0?'0':'1'}}" wx:if="{{info.if_equity == 1}}">
<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>{{info.status>0?'已审核':equity_ck_img.length>0?'更新':'上传'}}<i class="iconfont ml10 icon-gengduo"></i></view>
</view>
</view>
<!--上传发票-->
<view class="relative bbs-1-eb pl140 font-28" bindtap="pushLink" data-url="/pages/order/editBillImg/index?id={{id}}&edit={{info.status>1?'0':'1'}}">
<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>{{info.status>1?'已审核':bill_img.value?'更新':'上传'}}<i class="iconfont ml10 icon-gengduo"></i></view>
</view>
</view>
<!--上传行驶证-->
<view class="relative bbs-1-eb pl140 font-28" bindtap="pushLink" data-url="/pages/order/editLicenseImg/index?id={{id}}&edit={{info.status>2?'0':'1'}}">
<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>{{info.status>2?'已审核':car_img.value?'更新':'上传'}}<i class="iconfont ml10 icon-gengduo"></i></view>
<!-- <button bindtap="pushLink" data-url="/pages/order/editLicenseImg/index?id={{id}}" class="inline-block text-middle font-22 color-fff ulib-r10 btn-36afa2" hover-class="btn-36afa2-hover"><i class="iconfont icon-dengji mr10"></i>{{register_img.value||car_img.value?'更新':'上传'}}</button> -->
</view>
</view>
<!--上传保险单-->
<view class="relative bbs-1-eb pl140 font-28" bindtap="pushLink" data-url="/pages/order/editInsImg/index?id={{id}}&edit={{info.status>2?'0':'1'}}">
<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>
<block wx:if="{{info.status>2}}">已审核</block>
<block wx:else>{{imgInfo.imgs.accident_img.value||imgInfo.imgs.insurance_img.value||imgInfo.imgs.business_img.value?'更新':'上传'}}</block>
<i class="iconfont ml10 icon-gengduo"></i>
<block wx:if="{{userInfo.group_id!=group_id_4s}}">
<!--订单合同-->
<view class="relative bbs-1-eb pl140 font-28" bindtap="pushLink" data-url="/pages/order/editImg/index?id={{id}}&type=contract_img&title=订单合同&multi=true&edit={{info.status>0?'0':'1'}}">
<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>{{info.status>0?'已审核':contract_img.length>0?'更新':'上传'}}<i class="iconfont ml10 icon-gengduo"></i></view>
</view>
<!-- <button bindtap="pushLink" data-url="/pages/order/editInsImg/index?id={{id}}" class="inline-block text-middle font-22 color-fff ulib-r10 btn-36afa2" hover-class="btn-36afa2-hover"><i class="iconfont icon-dengji mr10"></i>{{ins_img.length>0?'更新':'上传'}}</button> -->
</view>
</view>
<!--车机实名认证-->
<!--view class="relative bbs-1-eb pl140 font-28" bindtap="pushLink" data-url="/pages/order/editImg/index?id={{id}}&type=car_auth_img&title=车机实名认证&edit={{info.status>2?'0':'1'}}">
<!--付款凭证-->
<view class="relative bbs-1-eb pl140 font-28" bindtap="pushLink" data-url="/pages/order/editImg/index?id={{id}}&type=pay_img&title=付款凭证&edit={{info.status>0?'0':'1'}}">
<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>{{info.status>0?'已审核':pay_img.value?'更新':'上传'}}<i class="iconfont ml10 icon-gengduo"></i></view>
</view>
</view>
<!--权益确认书-->
<view class="relative bbs-1-eb pl140 font-28" bindtap="pushLink" data-url="/pages/order/editImg/index?id={{id}}&type=equity_ck_img&title=权益确认书&multi=true&edit={{info.status>0?'0':'1'}}" wx:if="{{info.if_equity == 1}}">
<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>{{info.status>0?'已审核':equity_ck_img.length>0?'更新':'上传'}}<i class="iconfont ml10 icon-gengduo"></i></view>
</view>
</view>
<!--上传发票-->
<view class="relative bbs-1-eb pl140 font-28" bindtap="pushLink" data-url="/pages/order/editBillImg/index?id={{id}}&edit={{info.status>1?'0':'1'}}">
<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>{{info.status>1?'已审核':bill_img.value?'更新':'上传'}}<i class="iconfont ml10 icon-gengduo"></i></view>
</view>
</view>
<!--上传行驶证-->
<view class="relative bbs-1-eb pl140 font-28" bindtap="pushLink" data-url="/pages/order/editLicenseImg/index?id={{id}}&edit={{info.status>2?'0':'1'}}">
<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>{{info.status>2?'已审核':car_img.value?'更新':'上传'}}<i class="iconfont ml10 icon-gengduo"></i></view>
<!-- <button bindtap="pushLink" data-url="/pages/order/editLicenseImg/index?id={{id}}" class="inline-block text-middle font-22 color-fff ulib-r10 btn-36afa2" hover-class="btn-36afa2-hover"><i class="iconfont icon-dengji mr10"></i>{{register_img.value||car_img.value?'更新':'上传'}}</button> -->
</view>
</view>
<!--上传保险单-->
<view class="relative bbs-1-eb pl140 font-28" bindtap="pushLink" data-url="/pages/order/editInsImg/index?id={{id}}&edit={{info.status>2?'0':'1'}}">
<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>
<block wx:if="{{info.status>2}}">已审核</block>
<block wx:else>{{imgInfo.imgs.accident_img.value||imgInfo.imgs.insurance_img.value||imgInfo.imgs.business_img.value?'更新':'上传'}}</block>
<i class="iconfont ml10 icon-gengduo"></i>
</view>
<!-- <button bindtap="pushLink" data-url="/pages/order/editInsImg/index?id={{id}}" class="inline-block text-middle font-22 color-fff ulib-r10 btn-36afa2" hover-class="btn-36afa2-hover"><i class="iconfont icon-dengji mr10"></i>{{ins_img.length>0?'更新':'上传'}}</button> -->
</view>
</view>
<!--车机实名认证-->
<!--view class="relative bbs-1-eb pl140 font-28" bindtap="pushLink" data-url="/pages/order/editImg/index?id={{id}}&type=car_auth_img&title=车机实名认证&edit={{info.status>2?'0':'1'}}">
<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>{{info.status>2?'已审核':car_auth_img.value?'更新':'上传'}}<i class="iconfont ml10 icon-gengduo"></i></view>
</view>
</view-->
<!--上传交车合照-->
<!--
<!--上传交车合照-->
<!--
<view class="relative bbs-1-eb pl140 font-28" bindtap="pushLink" data-url="/pages/order/editImg/index?id={{id}}&type=delivery_ck_img&title=交车合照">
<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">
@@ -162,6 +163,7 @@
</view>
</view>
-->
</block>
<!--图片展示-->
<block wx:if="{{imgInfo.img_status==2}}">
<!--身份证-->
+14 -4
View File
@@ -61,7 +61,8 @@ Page({
confirm_amount: '', //定⾦
discount_amount: '', //⻋身优惠
business_type: 0,
brand_page_show: false
brand_page_show: false,
group_id_4s: 5 //角色类型4店铺
},
//生命周期函数--监听页面加载
onLoad: function (options) {
@@ -307,6 +308,15 @@ Page({
this.setData({
userInfo: res,
})
if (res.group_id == this.data.group_id_4s) { //4s店铺
let tab = [{
title: '车辆信息',
step: 2,
}]
this.setData({
tab: tab
})
}
});
},
@@ -592,16 +602,16 @@ Page({
},
//显示选择品牌
bindShowBrand(){
bindShowBrand() {
this.setData({
brand_page_show: true
})
},
//获取品牌信息
getBrandData(e){
getBrandData(e) {
// console.log(e.detail)
if(e.detail.index>-1&&e.detail.item){
if (e.detail.index > -1 && e.detail.item) {
this.setData({
brand_id: e.detail.item.id,
brand_name: e.detail.item.name,
+11 -6
View File
@@ -20,9 +20,9 @@
<text wx:else>{{brandArray[brandIndex]}}</text>
<i class="iconfont ml5 icon-gengduo"></i>
</picker> -->
<text wx:if="{{brand_name}}">{{brand_name}}</text>
<text class="color-ccc" wx:else>请选择</text>
<i class="iconfont ml5 icon-gengduo"></i>
<text wx:if="{{brand_name}}">{{brand_name}}</text>
<text class="color-ccc" wx:else>请选择</text>
<i class="iconfont ml5 icon-gengduo"></i>
</view>
</view>
<view class="relative bbs-1-eb pl190 last-b-none" wx:if="{{brandIndex != -1}}">
@@ -148,9 +148,14 @@
</view>
<view class="fixed left-0 right-0 bottom-0 bg-fff-op90 inner40 fn-flex safe-pb">
<block wx:if="{{step==2}}">
<button class="wp100 btn-36afa2 pt10 pb10 text-center font-32 color-fff ulib-r750" hover-class="btn-36afa2-hover" bindtap="nextstep" wx:if="{{business_type==0||business_type==2}}">下一步</button>
<button class="wp100 btn-36afa2 pt10 pb10 text-center font-32 color-fff ulib-r750" hover-class="btn-36afa2-hover" wx:elif="{{business_type==1}}">下一步</button>
<button class="wp100 btn-36afa2 pt10 pb10 text-center font-32 color-fff ulib-r750" hover-class="btn-36afa2-hover" bindtap="getAppBusiness" wx:elif="{{business_type==3}}">下一步</button>
<block wx:if="{{userInfo.group_id==group_id_4s}}">
<button class="wp100 btn-36afa2 ml20 pt10 pb10 text-center font-32 color-fff ulib-r750" hover-class="btn-36afa2-hover" disabled="{{submitFlag}}" bindtap="putAppCusorderV2">确认</button>
</block>
<block wx:else>
<button class="wp100 btn-36afa2 pt10 pb10 text-center font-32 color-fff ulib-r750" hover-class="btn-36afa2-hover" bindtap="nextstep" wx:if="{{business_type==0||business_type==2}}">下一步</button>
<button class="wp100 btn-36afa2 pt10 pb10 text-center font-32 color-fff ulib-r750" hover-class="btn-36afa2-hover" wx:elif="{{business_type==1}}">下一步</button>
<button class="wp100 btn-36afa2 pt10 pb10 text-center font-32 color-fff ulib-r750" hover-class="btn-36afa2-hover" bindtap="getAppBusiness" wx:elif="{{business_type==3}}">下一步</button>
</block>
</block>
<block wx:elif="{{step==3}}">
<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="optstep" data-step="{{step-1}}">上一步</button>
+143 -148
View File
@@ -2,41 +2,41 @@ import _ from '../../commons/js/commons'
const app = getApp()
Page({
data: {
searchInp:{
searchInp: {
value: '',
focus: false,
},
key:'',//tab状态值
list: [],//客户列表
key: '', //tab状态值
list: [], //客户列表
pageNo: 1,
noData: false,
end: false,
load: true,
loading: false,
flag:1,
content:'',//短信内容
isRefresh:false,//判断返回是否需要刷新
flag: 1,
content: '', //短信内容
isRefresh: false, //判断返回是否需要刷新
isShowMobile: false,
v2OrderId:_.config.v2OrderId,//订单id临界切换版本
v2OrderId: _.config.v2OrderId, //订单id临界切换版本
isShowfilter:false,//是否显示筛查
type:'',
order_s_time:'',//开始时间
order_e_time:'',//结束时间
isShowfilter: false, //是否显示筛查
type: '',
order_s_time: '', //开始时间
order_e_time: '', //结束时间
staffArray: [],
staffobj: [],
employeeIndex:-1,//分配销售索引
employee_id:'',//分配销售ID
employeeIndex: -1, //分配销售索引
employee_id: '', //分配销售ID
brand_id:'',//品牌id
car_id:'',//车系id
v_id:'',//车辆版本id
brandIndex:-1,//车辆品牌索引
modelIndex:-1,//车系车型索引
levelIndex:-1,//车辆版本索引
brand_page_show:false,
brand_name:''
brand_id: '', //品牌id
car_id: '', //车系id
v_id: '', //车辆版本id
brandIndex: -1, //车辆品牌索引
modelIndex: -1, //车系车型索引
levelIndex: -1, //车辆版本索引
brand_page_show: false,
brand_name: ''
},
onLoad: function (options) {
for (let key in options) {
@@ -58,9 +58,9 @@ Page({
getAppCusorderTabs() {
_.apiQuery.getAppCusorderTabs().then(res => {
this.setData({
filters:res.data.filters,
tab:res.data.tabs,
key:this.data.key==''?res.data.tabs[0].key:this.data.key,
filters: res.data.filters,
tab: res.data.tabs,
key: this.data.key == '' ? res.data.tabs[0].key : this.data.key,
})
this.getAppCusorderList()
@@ -70,18 +70,18 @@ Page({
},
//切换tab
changeTab(e){
changeTab(e) {
this.setData({
key: this.data.tab[e.currentTarget.dataset.index].key,
type:'',
order_s_time:'',
order_e_time:'',
type: '',
order_s_time: '',
order_e_time: '',
})
this.searchSubmit()
},
// 显示弹框
showMobileMsg(){
showMobileMsg() {
this.setData({
isShowMobile: true
})
@@ -96,11 +96,11 @@ Page({
let admin_ids = ''
this.data.staffobj.forEach(item => {
if(item.checked){
if(admin_ids==''){
admin_ids=item.id
}else{
admin_ids=admin_ids+','+item.id
if (item.checked) {
if (admin_ids == '') {
admin_ids = item.id
} else {
admin_ids = admin_ids + ',' + item.id
}
}
})
@@ -109,26 +109,26 @@ Page({
params['page'] = this.data.pageNo;
params['size'] = 10;
params['status'] = this.data.key;
if(this.data.searchInp.value != ''){
if (this.data.searchInp.value != '') {
params['keyword'] = this.data.searchInp.value;
}
if(this.data.type != ''){
if (this.data.type != '') {
params['type'] = this.data.type;
}
if(this.data.order_s_time != ''&&this.data.order_e_time != ''){
if (this.data.order_s_time != '' && this.data.order_e_time != '') {
params['order_s_time'] = this.data.order_s_time;
params['order_e_time'] = this.data.order_e_time;
}
if(admin_ids!=''){
if (admin_ids != '') {
params['admin_ids'] = admin_ids;
}
if(this.data.brand_id!=''){
if (this.data.brand_id != '') {
params['brand_id'] = this.data.brand_id;
}
if(this.data.car_id!=''){
if (this.data.car_id != '') {
params['car_id'] = this.data.car_id;
}
if(this.data.v_id!=''){
if (this.data.v_id != '') {
params['v_id'] = this.data.v_id;
}
_.apiQuery.getAppCusorderList(params).then(res => {
@@ -157,12 +157,12 @@ Page({
},
// 输入
searchInput(e){
searchInput(e) {
this.setData({
'searchInp.value': e.detail.value
})
},
searchFocus(){
searchFocus() {
this.setData({
'searchInp.focus': true,
})
@@ -175,7 +175,7 @@ Page({
},
//提交搜索
searchSubmit(){
searchSubmit() {
this.setData({
list: [],
pageNo: 1,
@@ -197,14 +197,14 @@ Page({
},
//推送链接
pushLink(e){
if(e.currentTarget.dataset.url){
pushLink(e) {
if (e.currentTarget.dataset.url) {
_.$router.openUrlScheme(e.currentTarget.dataset.url)
}
},
//显示隐藏高级搜索
optfilter(){
optfilter() {
this.setData({
isShowfilter: !this.data.isShowfilter
})
@@ -212,16 +212,16 @@ Page({
},
//显示高级搜索
showfilter(){
showfilter() {
this.setData({
isShowfilter:true,
isShowfilter: true,
})
},
//确定高级搜索
submitFilter() {
this.setData({
isShowfilter:false,
isShowfilter: false,
})
this.searchSubmit()
},
@@ -234,45 +234,45 @@ Page({
})
this.setData({
brand_name:'',
brand_id:'',
car_id:'',
v_id:'',
brandIndex:-1,
modelIndex:-1,
levelIndex:-1,
brand_name: '',
brand_id: '',
car_id: '',
v_id: '',
brandIndex: -1,
modelIndex: -1,
levelIndex: -1,
staffobj,
type:'',
order_s_time:'',
order_e_time:'',
type: '',
order_s_time: '',
order_e_time: '',
})
},
//单选
radioPicker(e){
if(e.currentTarget.dataset.type == 'type'){
radioPicker(e) {
if (e.currentTarget.dataset.type == 'type') {
this.setData({
type:e.currentTarget.dataset.key,
type: e.currentTarget.dataset.key,
})
}
},
//开始时间
startDate(e){
startDate(e) {
this.setData({
order_s_time: e.detail.value,
})
},
//结束时间
endDate(e){
endDate(e) {
this.setData({
order_e_time: e.detail.value,
})
},
//获取销售顾问
getAppUserAdmins(){
getAppUserAdmins() {
let params = {};
params['page'] = 1;
params['size'] = 1000;
@@ -286,7 +286,7 @@ Page({
bizArray.push(item.name)
})
this.setData({
staffArray:staffArray,
staffArray: staffArray,
staffobj: res.data.list,
})
});
@@ -295,42 +295,41 @@ Page({
//显示分配订单
showTransfer(e) {
this.setData({
ids:[e.currentTarget.dataset.id],
isShowTransfer:true,
ids: [e.currentTarget.dataset.id],
isShowTransfer: true,
})
},
//显示隐藏分配订单
optTransfer(e) {
this.setData({
employee_id:'',
employeeIndex:-1,
isShowTransfer:!this.data.isShowTransfer,
employee_id: '',
employeeIndex: -1,
isShowTransfer: !this.data.isShowTransfer,
})
},
//选择店员
changeEmployee(e) {
let employee_id = ''
if(e.detail.value >= 0){
if (e.detail.value >= 0) {
employee_id = this.data.staffobj[e.detail.value].id
}
this.setData({
employee_id,
employeeIndex:e.detail.value,
employeeIndex: e.detail.value,
})
},
//分配订单
putAppCusorderV2Admins(){
putAppCusorderV2Admins() {
let that = this
if (that.data.employeeIndex == -1 ) {
if (that.data.employeeIndex == -1) {
wx.showToast({
title: '请选择车管家',
icon: 'none'
})
}
else{
} else {
that.setData({
submitFlag: true,
})
@@ -345,12 +344,12 @@ Page({
duration: 2000
})
that.setData({
isShowTransfer:false,
submitFlag:false,
isShowTransfer: false,
submitFlag: false,
})
that.onPullDownRefresh()
}).catch(res=>{
}).catch(res => {
that.setData({
submitFlag: false,
})
@@ -359,60 +358,60 @@ Page({
},
//多选
checkPicker(e){
checkPicker(e) {
this.setData({
['staffobj['+e.currentTarget.dataset.index+'].checked']:!this.data.staffobj[e.currentTarget.dataset.index].checked,
['staffobj[' + e.currentTarget.dataset.index + '].checked']: !this.data.staffobj[e.currentTarget.dataset.index].checked,
})
},
//获取车型品牌
getAppSeriesBrands(){
getAppSeriesBrands() {
_.apiQuery.getAppSeriesBrands().then(res => {
if(res.data.list.length>0){
if (res.data.list.length > 0) {
let brandArray = []
res.data.list.forEach(item => {
brandArray.push(item.name)
})
this.setData({
brandArray:brandArray,
brandList:res.data.list,
brandArray: brandArray,
brandList: res.data.list,
})
}
});
},
//获取车系车型
getAppSeries(){
getAppSeries() {
let params = {};
params['brand_id'] = this.data.brand_id;
_.apiQuery.getAppSeries(params).then(res => {
if(res.data.list.length>0){
if (res.data.list.length > 0) {
let modelArray = []
res.data.list.forEach(item => {
modelArray.push(item.name)
})
this.setData({
modelArray:modelArray,
modelList:res.data.list,
modelArray: modelArray,
modelList: res.data.list,
})
}
});
},
//获取车辆版本
getAppSeriesAttrslevel(){
getAppSeriesAttrslevel() {
let params = {};
params['id'] = this.data.car_id;
params['type'] = 0;
_.apiQuery.getAppSeriesAttrs(params).then(res => {
if(res.data.total>0){
if (res.data.total > 0) {
let levelArray = []
res.data.list.forEach(item => {
levelArray.push(item.title)
})
this.setData({
levelArray:levelArray,
levelList:res.data.list,
levelArray: levelArray,
levelList: res.data.list,
})
}
});
@@ -420,14 +419,14 @@ Page({
//选择品牌
changeBrand(e) {
if(this.data.brandIndex != e.detail.value && e.detail.value >= 0){
if (this.data.brandIndex != e.detail.value && e.detail.value >= 0) {
this.setData({
brand_id:this.data.brandList[e.detail.value].id,
brandIndex:e.detail.value,
car_id:'',//车系id
v_id:'',//车辆版本id
modelIndex:-1,
levelIndex:-1,
brand_id: this.data.brandList[e.detail.value].id,
brandIndex: e.detail.value,
car_id: '', //车系id
v_id: '', //车辆版本id
modelIndex: -1,
levelIndex: -1,
})
this.getAppSeries()
}
@@ -435,12 +434,12 @@ Page({
//选择车系
changeModel(e) {
if(this.data.modelIndex != e.detail.value && e.detail.value >= 0){
if (this.data.modelIndex != e.detail.value && e.detail.value >= 0) {
this.setData({
car_id:this.data.modelList[e.detail.value].id,
modelIndex:e.detail.value,
v_id:'',//车辆版本id
levelIndex:-1,
car_id: this.data.modelList[e.detail.value].id,
modelIndex: e.detail.value,
v_id: '', //车辆版本id
levelIndex: -1,
})
this.getAppSeriesAttrslevel()
}
@@ -448,16 +447,16 @@ Page({
//车辆版本
changeLevel(e) {
if(this.data.levelIndex != e.detail.value && e.detail.value >= 0){
if (this.data.levelIndex != e.detail.value && e.detail.value >= 0) {
this.setData({
v_id:this.data.levelList[e.detail.value].id,
levelIndex:e.detail.value,
v_id: this.data.levelList[e.detail.value].id,
levelIndex: e.detail.value,
})
}
},
//页面相关事件处理函数--监听用户下拉动作
onPullDownRefresh(){
onPullDownRefresh() {
this.setData({
list: [],
pageNo: 1,
@@ -469,24 +468,24 @@ Page({
})
this.getAppCusorderTabs()
this.getAppCusorderList()
// this.getAppCusorderList()
},
//页面上拉触底事件的处理函数
onReachBottom(){
if (this.data.noData || this.data.end||!this.data.load) return;
onReachBottom() {
if (this.data.noData || this.data.end || !this.data.load) return;
this.setData({
flag: this.data.flag + 1
})
this.getAppCusorderList()
},
bindShowBrand(){
bindShowBrand() {
this.setData({
brand_page_show:true
brand_page_show: true
})
},
//获取品牌信息
getBrandData(e) {
//获取品牌信息
getBrandData(e) {
console.log(e.detail)
if (e.detail.index > -1 && e.detail.item) {
this.setData({
@@ -504,38 +503,34 @@ Page({
}
},
// 同意核销
bindAgreeCheckCode(e){
bindAgreeCheckCode(e) {
let that = this
let index = e.currentTarget.dataset.index
let item = that.data.list[index]
let params = {}
console.log(1111)
// params['id'] = item.id
// params['code'] = item.other_data.o_data_4['购车券'].value
// _.apiQuery.putAppCusorderAgreeCheckCode(params).then(res => {
// if(res.data.code == 0){
// that.setData({
// ['list['+index+'].other_data.o_data_4.购车券.value']:'已核销',
// })
// wx.showToast({
// title: '核销成功',
// icon: 'success',
// duration: 2000
// })
// }
// else{
// wx.showToast({
// title: res.data.msg,
// icon: 'none',
// duration: 2000
// })
// }
// that.setData({
// ['list['+index+'].other_data.o_data_4.购车券.disabled']:true,
// })
// that.setData({
// ['list['+index+'].other_data.o_data_4.购车券.text']:'已核销',
// })
// })
let params = {
'id': item.id
}
wx.showModal({
content: '确定核销该订单',
success: function (res) {
if (res.confirm) {
_.apiQuery.postAppCusorderDestroy(params).then(res => {
if (res.code == 200) {
wx.showToast({
title: res.msg,
icon: 'success',
duration: 2000
})
that.onPullDownRefresh()
}else{
wx.showToast({
title: res.msg,
duration: 2000
})
}
});
}
}
});
},
})
+2 -2
View File
@@ -139,11 +139,11 @@
</view>
</view>
</block>
<view class="pt20 fn-clear font-28">
<view class="pt20 fn-clear font-28" wx:if="{{item.destroy.is_show}}">
<view class="fn-fl color-333">{{'购车券'}}</view>
<view class="fn-fr wp60 text-nowrap fn-flex">
<view class="fn-flex-item"></view>
<button class="btn bg-36afa2 font-28 color-fff ulib-r750 wp50" catch:tap="bindAgreeCheckCode">同意核销</button>
<button class="btn bg-36afa2 font-22 color-fff ulib-r750" catch:tap="{{item.destroy.status==0?'bindAgreeCheckCode':''}}" data-index="{{index}}">{{item.destroy.text}}</button>
</view>
</view>
</view>
+63 -37
View File
@@ -18,7 +18,7 @@ Page({
step: 1,
name: '', //姓名
mobile: '', //手机号
cardid: '', //身份证
cardid: '350822198911298152', //身份证
brand_id: '', //品牌
brand_name: '', //品牌名称
series_id: '', //车系id
@@ -67,7 +67,8 @@ Page({
register_amount: '', //上牌费
confirm_amount: '', //定⾦
discount_amount: '', //⻋身优惠
brand_page_show: false
brand_page_show: false,
group_id_4s: 5 //角色类型4店铺
},
//生命周期函数--监听页面加载
onLoad: function (options) {
@@ -144,9 +145,13 @@ Page({
icon: 'none'
})
} else {
this.setData({
step: 3,
})
if (this.data.userInfo.group_id == this.data.group_id_4s) {
this.showPreview();
} else {
this.setData({
step: 3,
})
}
}
break;
case 3:
@@ -156,46 +161,67 @@ Page({
icon: 'none'
})
} else {
let that = this
that.setData({
isPreview: true,
isFill: true,
})
wx.pageScrollTo({
scrollTop: 0
})
that.setData({
isShowcheck: true,
checkCount: 2,
checktext: 3 + 's'
})
let interval = setInterval(res => {
if (that.data.checkCount > 0) {
that.setData({
checkCount: that.data.checkCount - 1,
checktext: that.data.checkCount + 's'
})
} else {
clearInterval(interval)
that.setData({
checkCount: 5,
checktext: '我知道了'
})
}
}, 1000)
this.showPreview();
}
break;
}
},
showPreview() {
let that = this
that.setData({
isPreview: true,
isFill: true,
})
wx.pageScrollTo({
scrollTop: 0
})
that.setData({
isShowcheck: true,
checkCount: 2,
checktext: 3 + 's'
})
let interval = setInterval(res => {
if (that.data.checkCount > 0) {
that.setData({
checkCount: that.data.checkCount - 1,
checktext: that.data.checkCount + 's'
})
} else {
clearInterval(interval)
that.setData({
checkCount: 5,
checktext: '我知道了'
})
}
}, 1000)
},
//获取用户信息
getUserInfo() {
_.apiQuery.getUserInfo().then(res => {
this.setData({
userInfo: res,
})
if (res.group_id == this.data.group_id_4s) { //4s店铺
let main = [{
title: '个人',
value: 0
}]
let tab = [{
title: '客户信息',
step: 1,
},
{
title: '车辆信息',
step: 2,
}
]
this.setData({
main: main,
tab: tab
})
}
});
},
@@ -517,7 +543,7 @@ Page({
is_get_insure: e.detail.value ? 1 : 0
})
},
//20240926是否投保买贵必赔
//20240926是否投保买贵必赔
changeIfEquity(e) {
this.setData({
if_equity: e.detail.value ? 1 : 0
@@ -525,16 +551,16 @@ Page({
},
//显示选择品牌
bindShowBrand(){
bindShowBrand() {
this.setData({
brand_page_show: true
})
},
//获取品牌信息
getBrandData(e){
getBrandData(e) {
// console.log(e.detail)
if(e.detail.index>-1&&e.detail.item){
if (e.detail.index > -1 && e.detail.item) {
this.setData({
brand_id: e.detail.item.id,
brand_name: e.detail.item.name,
+54 -45
View File
@@ -206,7 +206,7 @@
<input class="wp100 height-100 text-right font-28" placeholder-class="color-ccc" type="digit" placeholder="请输入上牌费" model:value='{{register_amount}}' always-embed='{{true}}' />
</view>
</view>
</view>
</view>
<view class="fixed left-0 right-0 bottom-0 bg-fff-op90 inner40 fn-flex safe-pb">
@@ -215,9 +215,14 @@
</block>
<block wx:if="{{step==2}}">
<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="optstep" data-step="{{step-1}}">上一步</button>
<button class="wp100 btn-36afa2 pt10 pb10 text-center font-32 color-fff ulib-r750" hover-class="btn-36afa2-hover" bindtap="nextstep" wx:if="{{business_type==0||business_type==2}}">下一步</button>
<button class="wp100 btn-36afa2 pt10 pb10 text-center font-32 color-fff ulib-r750" hover-class="btn-36afa2-hover" wx:elif="{{business_type==1}}">下一步</button>
<button class="wp100 btn-36afa2 pt10 pb10 text-center font-32 color-fff ulib-r750" hover-class="btn-36afa2-hover" bindtap="getAppBusiness" wx:elif="{{business_type==3}}">下一步</button>
<block wx:if="{{userInfo.group_id==group_id_4s}}">
<button class="wp100 btn-36afa2 pt10 pb10 text-center font-32 color-fff ulib-r750" hover-class="btn-36afa2-hover" bindtap="nextstep">登记预览</button>
</block>
<block wx:else>
<button class="wp100 btn-36afa2 pt10 pb10 text-center font-32 color-fff ulib-r750" hover-class="btn-36afa2-hover" bindtap="nextstep" wx:if="{{business_type==0||business_type==2}}">下一步</button>
<button class="wp100 btn-36afa2 pt10 pb10 text-center font-32 color-fff ulib-r750" hover-class="btn-36afa2-hover" wx:elif="{{business_type==1}}">下一步</button>
<button class="wp100 btn-36afa2 pt10 pb10 text-center font-32 color-fff ulib-r750" hover-class="btn-36afa2-hover" bindtap="getAppBusiness" wx:elif="{{business_type==3}}">下一步</button>
</block>
</block>
<block wx:if="{{step==3}}">
<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="optstep" data-step="{{step-1}}">上一步</button>
@@ -266,16 +271,17 @@
<view class="absolute left-0 box-middle font-28 color-333">内饰颜色</view>
<view class="pt30 pb30 text-right font-28 color-666">{{in_color}}</view>
</view>
<view class="mt40 font-32">其他信息</view>
<view class="relative bbs-1-eb pl190 last-b-none">
<view class="absolute left-0 box-middle font-28 color-333">付款方式</view>
<view class="pt30 pb30 text-right font-28 color-666">{{payment[paymentIndex]}}</view>
</view>
<view class="relative bbs-1-eb pl190 last-b-none" wx:if="{{delry_time}}">
<view class="absolute left-0 box-middle font-28 color-333">期望交付时间</view>
<view class="pt30 pb30 text-right font-28 color-666">{{delry_time}}</view>
</view>
<!--
<block wx:if="{{userInfo.group_id!=group_id_4s}}">
<view class="mt40 font-32">其他信息</view>
<view class="relative bbs-1-eb pl190 last-b-none">
<view class="absolute left-0 box-middle font-28 color-333">付款方式</view>
<view class="pt30 pb30 text-right font-28 color-666">{{payment[paymentIndex]}}</view>
</view>
<view class="relative bbs-1-eb pl190 last-b-none" wx:if="{{delry_time}}">
<view class="absolute left-0 box-middle font-28 color-333">期望交付时间</view>
<view class="pt30 pb30 text-right font-28 color-666">{{delry_time}}</view>
</view>
<!--
<block wx:if="{{paymentIndex == 1}}">
<view class="relative bbs-1-eb last-b-none pl180 font-28">
<view class="absolute left-0 box-middle color-333">首付类型</view>
@@ -295,43 +301,44 @@
</view>
</block>
-->
<view class="relative bbs-1-eb last-b-none pl180 font-28" wx:if="{{confirm_amount}}">
<view class="absolute left-0 box-middle color-333">定金</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;"><text class="mr10 color-f9394d">{{confirm_amount}}</text>元</view>
</view>
<view class="relative bbs-1-eb last-b-none pl180 font-28" wx:if="{{discount_amount}}">
<view class="absolute left-0 box-middle color-333">车身优惠</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;"><text class="mr10 color-f9394d">{{discount_amount}}</text>元</view>
</view>
<view class="bbs-1-eb last-b-none">
<view class="relative pl190">
<view class="absolute left-0 box-middle font-28 color-333">投保买贵必赔</view>
<view class="pt30 pb30 text-right font-28 color-666"> {{if_equity?'是':'否'}} </view>
<view class="relative bbs-1-eb last-b-none pl180 font-28" wx:if="{{confirm_amount}}">
<view class="absolute left-0 box-middle color-333">定金</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;"><text class="mr10 color-f9394d">{{confirm_amount}}</text>元</view>
</view>
</view>
<view class="bbs-1-eb last-b-none">
<view class="relative pl190">
<view class="absolute left-0 box-middle font-28 color-333">是否店内投保</view>
<view class="pt30 pb30 text-right font-28 color-666"> {{is_get_insure?'是':'否'}} </view>
<view class="relative bbs-1-eb last-b-none pl180 font-28" wx:if="{{discount_amount}}">
<view class="absolute left-0 box-middle color-333">车身优惠</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;"><text class="mr10 color-f9394d">{{discount_amount}}</text>元</view>
</view>
</view>
<view class="bbs-1-eb last-b-none">
<view class="relative pl190">
<view class="absolute left-0 box-middle font-28 color-333">是否店内上牌</view>
<view class="pt30 pb30 text-right font-28 color-666"> {{is_get_brand?'是':'否'}} </view>
<view class="bbs-1-eb last-b-none">
<view class="relative pl190">
<view class="absolute left-0 box-middle font-28 color-333">投保买贵必赔</view>
<view class="pt30 pb30 text-right font-28 color-666"> {{if_equity?'是':'否'}} </view>
</view>
</view>
</view>
<view class="relative bbs-1-eb last-b-none pl180 font-28" wx:if="{{register_amount && is_get_brand}}">
<view class="absolute left-0 box-middle color-333">上牌费</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;"><text class="mr10 color-f9394d">{{register_amount}}</text>元</view>
</view>
<!--
<view class="bbs-1-eb last-b-none">
<view class="relative pl190">
<view class="absolute left-0 box-middle font-28 color-333">是否店内投保</view>
<view class="pt30 pb30 text-right font-28 color-666"> {{is_get_insure?'是':'否'}} </view>
</view>
</view>
<view class="bbs-1-eb last-b-none">
<view class="relative pl190">
<view class="absolute left-0 box-middle font-28 color-333">是否店内上牌</view>
<view class="pt30 pb30 text-right font-28 color-666"> {{is_get_brand?'是':'否'}} </view>
</view>
</view>
<view class="relative bbs-1-eb last-b-none pl180 font-28" wx:if="{{register_amount && is_get_brand}}">
<view class="absolute left-0 box-middle color-333">上牌费</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;"><text class="mr10 color-f9394d">{{register_amount}}</text>元</view>
</view>
<!--
<view class="relative ml40 bbs-1-eb pl140 font-22 color-666">
<view class="absolute left-0 box-middle"><i class="iconfont ml5 mr10 icon-gengduo"></i>优惠</view>
<view class="pt25 pb25 text-right" style="min-height:30rpx"><text class="mr10 color-f9394d">1515</text>元</view>
</view>
-->
</block>
<view class="fixed left-0 right-0 bottom-0 bg-fff-op90 inner40 fn-flex safe-pb">
<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="optPreview">重新编辑</button>
@@ -362,8 +369,10 @@
<view class="font-36 text-center">订单登记成功</view>
<view class="font-30 pt10 text-left">
<view class="pt10 text-center">--- 请及时上传 ---</view>
<view class="text-center">订单合同</view>
<view class="text-center">付款凭证</view>
<block wx:if="{{userInfo.group_id!=group_id_4s}}">
<view class="text-center">订单合同</view>
<view class="text-center">付款凭证</view>
</block>
<view class="text-center">客户身份证</view>
<!--view class="text-center">《买贵必赔权益确认书》</view-->
</view>