店长,掌柜,渠道经理开发创建订单权限

This commit is contained in:
老叶
2023-03-30 15:44:45 +08:00
parent ddc84a9551
commit 0c259d0119
6 changed files with 23 additions and 10 deletions
+13
View File
@@ -58,6 +58,8 @@ Page({
isShowCall:false,//是否显示拨打电话确认弹框
phoneNumber:'',//拨打的电话号码
userInfo:'',
},
onLoad(options) {
for (let key in options) {
@@ -85,6 +87,8 @@ Page({
this.getTimePicker()
this.getUserInfo()
},
onshow() {
@@ -100,6 +104,15 @@ Page({
this.offaudio()
},
//获取用户信息
getUserInfo(){
_.apiQuery.getUserInfo().then(res => {
this.setData({
userInfo: res,
})
});
},
//候取当前月日历
getTimePicker(){
let date = new Date();
+1 -1
View File
@@ -211,7 +211,7 @@
<view class="fn-flex-item flexsize4 pt20 pb20 bts-2-36afa2 bls-2-36afa2 bbs-2-36afa2 bg-fff font-32 color-36afa2 ulib-rl750" bindtap="optShowNote">
客户跟进
</view>
<view class="fn-flex-item flexsize4 pt20 pb20 btn-36afa2 font-32 color-fff ulib-rr750 {{detailinfo.generate_order?'':'opacity-50'}}" bindtap="{{detailinfo.generate_order?'pushLink':''}}" data-url="/pages/order/register/index?cus_id={{detailinfo.id}}&name={{detailinfo.name}}&mobile={{detailinfo.mobile}}&complete_mobile={{detailinfo.complete_mobile}}">
<view class="fn-flex-item flexsize4 pt20 pb20 btn-36afa2 font-32 color-fff ulib-rr750 {{detailinfo.generate_order||userInfo.group_id==2||userInfo.group_id==3||userInfo.group_id==4?'':'opacity-50'}}" bindtap="{{detailinfo.generate_order||userInfo.group_id==2||userInfo.group_id==3||userInfo.group_id==4?'pushLink':''}}" data-url="/pages/order/register/index?cus_id={{detailinfo.id}}&name={{detailinfo.name}}&mobile={{detailinfo.mobile}}&complete_mobile={{detailinfo.complete_mobile}}">
生成订单
</view>
</block>
+2 -2
View File
@@ -77,7 +77,7 @@ Page({
packageList:[],//车辆选装包
options_ids:[],//选装包id数组
options_total:0,//选装包费用
if_zero_firstpay:0,//是否0首付
if_zero_firstpay:0,//是否首付
},
//生命周期函数--监听页面加载
onLoad: function (options) {
@@ -1373,7 +1373,7 @@ Page({
})
},
//是否0首付
//是否首付
switchZeroFirstpay:function(e){
this.setData({
if_zero_firstpay:e.detail.value ? 1 :0,
+3 -3
View File
@@ -119,7 +119,7 @@
</view>
<block wx:if="{{info.price_book_status}}">
<view class="relative bbs-1-eb last-b-none pl180 font-28" wx:if="{{paymentIndex == 1}}">
<view class="absolute left-0 box-middle color-333">0首付</view>
<view class="absolute left-0 box-middle color-333">首付</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;">{{if_zero_firstpay==1?'是':'否'}}</view>
</view>
<view class="relative bbs-1-eb last-b-none pl180 font-28" wx:if="{{priceinfo.sdeposit&&if_zero_firstpay!=1}}">
@@ -133,7 +133,7 @@
</block>
<block wx:else>
<view class="relative bbs-1-eb last-b-none pl180 font-28" wx:if="{{paymentIndex == 1}}">
<view class="absolute left-0 box-middle">0首付</view>
<view class="absolute left-0 box-middle">首付</view>
<view class="relative pt30 pb30 text-right">
<switch checked="{{if_zero_firstpay==1}}" bindchange="switchZeroFirstpay" type="switch" color='#36afa2' style="zoom:0.8" />
</view>
@@ -374,7 +374,7 @@
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;"><text class="mr10 color-f9394d">{{priceinfo.price_coplus}}</text>元</view>
</view>
<view class="relative bbs-1-eb last-b-none pl180 font-28" wx:if="{{paymentIndex == 1}}">
<view class="absolute left-0 box-middle color-333">0首付</view>
<view class="absolute left-0 box-middle color-333">首付</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;">{{if_zero_firstpay==1?'是':'否'}}</view>
</view>
<view class="relative bbs-1-eb last-b-none pl180 font-28" wx:if="{{priceinfo.sdeposit&&if_zero_firstpay!=1}}">
+2 -2
View File
@@ -101,7 +101,7 @@ Page({
packageList:[],//车辆选装包
options_ids:[],//选装包id数组
options_total:0,//选装包费用
if_zero_firstpay:0,//是否0首付
if_zero_firstpay:0,//是否首付
},
//生命周期函数--监听页面加载
onLoad: function (options) {
@@ -1477,7 +1477,7 @@ Page({
})
},
//是否0首付
//是否首付
switchZeroFirstpay:function(e){
this.setData({
if_zero_firstpay:e.detail.value ? 1 :0,
+2 -2
View File
@@ -236,7 +236,7 @@
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;"><text class="mr10 color-f9394d">{{priceinfo.price_coplus}}</text>元</view>
</view>
<view class="relative bbs-1-eb last-b-none pl180 font-28" wx:if="{{paymentIndex == 1}}">
<view class="absolute left-0 box-middle">0首付</view>
<view class="absolute left-0 box-middle">首付</view>
<view class="relative pt30 pb30 text-right">
<switch checked="{{if_zero_firstpay==1}}" bindchange="switchZeroFirstpay" type="switch" color='#36afa2' style="zoom:0.8" />
</view>
@@ -504,7 +504,7 @@
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;"><text class="mr10 color-f9394d">{{priceinfo.price_coplus}}</text>元</view>
</view>
<view class="relative bbs-1-eb last-b-none pl180 font-28" wx:if="{{paymentIndex == 1}}">
<view class="absolute left-0 box-middle color-333">0首付</view>
<view class="absolute left-0 box-middle color-333">首付</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;">{{if_zero_firstpay==1?'是':'否'}}</view>
</view>
<view class="relative bbs-1-eb last-b-none pl180 font-28" wx:if="{{priceinfo.sdeposit&&if_zero_firstpay!=1}}">