Commit cd3ea636 by wangzhihui

分润

1 parent cf52f6b9
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
</block> </block>
<view class="sub-title">{{subTitle}} <view class="sub-title">{{subTitle}}
</view> </view>
<search-input styleValue=" border-bottom:none" wx:if="{{type == 1 }}" value="{{keyWord}}" bindsearch="search" placeholder="请输入" /> <search-input styleValue=" border-bottom:none" wx:if="{{type == 1 ||type==3}}" value="{{keyWord}}" bindsearch="search" placeholder="请输入" />
<view class="seles-list"> <view class="seles-list">
<block wx:for="{{selesList}}" wx:key="index"> <block wx:for="{{selesList}}" wx:key="index">
<view class="seles text-center {{item.active?'active':''}}" bindtap="changeSelesMan" data-index="{{index}}" data-item="{{item}}"> <view class="seles text-center {{item.active?'active':''}}" bindtap="changeSelesMan" data-index="{{index}}" data-item="{{item}}">
......
...@@ -18,7 +18,7 @@ export const appId = "wx570d9331f9ace0bd"; ...@@ -18,7 +18,7 @@ export const appId = "wx570d9331f9ace0bd";
* 4预发布 * 4预发布
* 5cdptest * 5cdptest
*/ */
let index = 2; let index =0;
const accountInfo = wx.getAccountInfoSync(); const accountInfo = wx.getAccountInfoSync();
const systemInfo = wx.getSystemInfoSync(); const systemInfo = wx.getSystemInfoSync();
const envName = accountInfo.miniProgram.envVersion; const envName = accountInfo.miniProgram.envVersion;
......
...@@ -110,7 +110,7 @@ ...@@ -110,7 +110,7 @@
</block> </block>
</view> </view>
<view class="order-list"> <view class="order-list">
<block wx:for="{{ orderObj }}" wx:key="sindex" wx:for-index="sindex" wx:for-item="i"> <block wx:for="{{li.deliveryUserId? pointsMultiObj:orderObj }}" wx:key="sindex" wx:for-index="sindex" wx:for-item="i">
<view class="order"> <view class="order">
<view class="order-label">{{i.label}}</view> <view class="order-label">{{i.label}}</view>
<view class="order-value"> <view class="order-value">
......
...@@ -269,4 +269,8 @@ module.exports = { ...@@ -269,4 +269,8 @@ module.exports = {
getStaffList(data) { getStaffList(data) {
return api.post("dj.api.mindworkplate.app.daily.report.staffBaseInfo.pageList", data); return api.post("dj.api.mindworkplate.app.daily.report.staffBaseInfo.pageList", data);
}, },
// 查询店铺配置
getShopMerchantPointConfig(data) {
return api.post("dj.api.smartcarlife.shopMerchantPointConfig.get", data);
}
}; };
...@@ -7,6 +7,7 @@ let time = null; ...@@ -7,6 +7,7 @@ let time = null;
let toastList = { let toastList = {
userId: "销售顾问不能为空", userId: "销售顾问不能为空",
subShopMerchantId: "二级流量方不能为空", subShopMerchantId: "二级流量方不能为空",
deliveryUserId:"交付专员不能为空",
customerName: "车主姓名不能为空", customerName: "车主姓名不能为空",
customerPhone: "手机号不能为空", customerPhone: "手机号不能为空",
sellerUserId: "转化人员不能为空", sellerUserId: "转化人员不能为空",
...@@ -72,6 +73,8 @@ Page({ ...@@ -72,6 +73,8 @@ Page({
experienceFlag: "Y", experienceFlag: "Y",
salesType: 0, salesType: 0,
}, },
deliveryUserId:'',
deliveryEmployeeName:'',
// selectPayType: 0, // selectPayType: 0,
selectPayType: 2, selectPayType: 2,
remark: "", remark: "",
...@@ -940,7 +943,7 @@ Page({ ...@@ -940,7 +943,7 @@ Page({
*/ */
onLoad: function (options) { onLoad: function (options) {
// console.log(app.globalData.YQorderSetting, 'app.globalData.YQorderSetting?.yqPhoneConfig') // console.log(app.globalData.YQorderSetting, 'app.globalData.YQorderSetting?.yqPhoneConfig')
console.log(options); console.log(options,'options');
if (options.scene) { if (options.scene) {
this.setData(options); this.setData(options);
} }
...@@ -1245,12 +1248,25 @@ Page({ ...@@ -1245,12 +1248,25 @@ Page({
// console.log(list) // console.log(list)
}); });
}, },
getShopMerchantPointConfig(){
let { userInfo } = this.data;
let oParams = {};
oParams.merchantId = userInfo.shopMerchantId;
api.getShopMerchantPointConfig(oParams).then(res=>{
if(res.data.pointsMultiRole=='Y'){
toastList.userId='销售顾问/录单员不能为空'
}
this.setData({
pointsMultiRole:res.data.pointsMultiRole
})
})
},
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
onReady: function () { onReady: function () {
this.getConfig(); this.getConfig();
this.getShopMerchantPointConfig()
}, },
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<view class="main {{ tipsProps.showTips?'fullSucreen-tips':'' }} {{showTips? 'showTips':'' }}"> <view class="main {{ tipsProps.showTips?'fullSucreen-tips':'' }} {{showTips? 'showTips':'' }}">
<view class="box"> <view class="box">
<view class="userId"> <view class="userId">
<gl-cell border valueAlign="right" label="销售顾问" requiredAfter labelWidth="var(--fontSize140)" required haveArrow bindclick="showPopup" data-show-name="selesBox" placeholder="点击选择" disabled="{{ orderObj.orderSource == 5 }}"> <gl-cell border valueAlign="right" label="{{pointsMultiRole=='Y'?'销售顾问 /录单员':'销售顾问'}}" requiredAfter labelWidth="var(--fontSize140)" required haveArrow bindclick="showPopup" data-show-name="selesBox" placeholder="点击选择" disabled="{{ orderObj.orderSource == 5 }}">
<block wx:if="{{ orderObj.merchantName && orderObj.employeeName }}"> <block wx:if="{{ orderObj.merchantName && orderObj.employeeName }}">
<view class="between"> <view class="between">
<view class="start text-hide">{{orderObj.merchantName}}</view> <view class="start text-hide">{{orderObj.merchantName}}</view>
...@@ -16,6 +16,19 @@ ...@@ -16,6 +16,19 @@
</block> </block>
</gl-cell> </gl-cell>
</view> </view>
<view class="deliveryUserId">
<gl-cell border valueAlign="right" label="交付专员" requiredAfter labelWidth="var(--fontSize140)" required haveArrow bindclick="showPopup" data-show-name="selesDeliveryBox" placeholder="点击选择" disabled="{{ orderObj.orderSource == 5 }}">
<block wx:if="{{ orderObj.merchantName && orderObj.deliveryEmployeeName }}">
<view class="between">
<view class="start text-hide">{{orderObj.merchantName}}</view>
<view class="end text-hide">
<text>|</text>
{{orderObj.deliveryEmployeeName}}
</view>
</view>
</block>
</gl-cell>
</view>
<view class="subShopMerchantId" wx:if="{{ isShowSubShopMerchant }}"> <view class="subShopMerchantId" wx:if="{{ isShowSubShopMerchant }}">
<gl-cell border valueAlign="right" label="二级流量方" requiredAfter labelWidth="var(--fontSize180)" required haveArrow bindclick="showPopup" data-show-name="subShopMerchantBox" placeholder="点击选择"> <gl-cell border valueAlign="right" label="二级流量方" requiredAfter labelWidth="var(--fontSize180)" required haveArrow bindclick="showPopup" data-show-name="subShopMerchantBox" placeholder="点击选择">
<block wx:if="{{ orderObj.subShopMerchantName }}"> <block wx:if="{{ orderObj.subShopMerchantName }}">
...@@ -416,7 +429,8 @@ ...@@ -416,7 +429,8 @@
</view> </view>
<recording-order-popup wx:if="{{ showOrderpop && !(isErrorOrder) }}" outTradeNo="{{ outTradeNo }}" show="{{ showOrderpop }}" bind:success="navigator" title="请选择交易参考号" /> <recording-order-popup wx:if="{{ showOrderpop && !(isErrorOrder) }}" outTradeNo="{{ outTradeNo }}" show="{{ showOrderpop }}" bind:success="navigator" title="请选择交易参考号" />
<merchant-seles show="{{ salesmanBox }}" isDefault="{{ isDefault }}" title="选择园区店" sub-title="选择转化人员" userInfo="{{ userInfo }}" type="2" scene="1" /> <merchant-seles show="{{ salesmanBox }}" isDefault="{{ isDefault }}" title="选择园区店" sub-title="选择转化人员" userInfo="{{ userInfo }}" type="2" scene="1" />
<merchant-seles show="{{ selesBox }}" title="选择合作门店" orderObj="{{ orderObj }}" sub-title="选择销售顾问" userInfo="{{ userInfo }}" singleSeller="{{ true }}" type="1" scene="1" /> <merchant-seles show="{{ selesBox }}" title="选择合作门店" orderObj="{{ orderObj }}" sub-title="{{pointsMultiRole=='N'?'选择销售顾问':'选择销售顾问/录单员'}}" userInfo="{{ userInfo }}" singleSeller="{{ true }}" type="1" scene="1" />
<merchant-seles show="{{ selesDeliveryBox }}" title="选择合作门店" orderObj="{{ orderObj }}" sub-title="选择交付专员" userInfo="{{ userInfo }}" singleSeller="{{ true }}" type="3" scene="1" />
<sub-shop-merchant show="{{ subShopMerchantBox }}" title="选择二级流量方" selectedSelesMerchantId="{{ orderObj.merchantId }}" selectedCustomerInfo="{{ orderObj.customer.customerId }}" selectedSubShopMerchantId="{{ orderObj.subShopMerchantId }}" /> <sub-shop-merchant show="{{ subShopMerchantBox }}" title="选择二级流量方" selectedSelesMerchantId="{{ orderObj.merchantId }}" selectedCustomerInfo="{{ orderObj.customer.customerId }}" selectedSubShopMerchantId="{{ orderObj.subShopMerchantId }}" />
<car-brands show="{{ carBrandBox }}" bindconfirm="chooseCar" carSeriesId="{{ orderObj.customer.carSeriesId || '' }}" merchantId="{{ orderObj.merchantId || undefined }}" /> <car-brands show="{{ carBrandBox }}" bindconfirm="chooseCar" carSeriesId="{{ orderObj.customer.carSeriesId || '' }}" merchantId="{{ orderObj.merchantId || undefined }}" />
<remark-popup wx:if="{{ showRemark }}" show="{{ showRemark }}" bindconfirm="remarkConfirm" placeholder="请填写内容,最多30个字" maxlength="30" value="{{ orderObj.remark }}" /> <remark-popup wx:if="{{ showRemark }}" show="{{ showRemark }}" bindconfirm="remarkConfirm" placeholder="请填写内容,最多30个字" maxlength="30" value="{{ orderObj.remark }}" />
......
...@@ -33,5 +33,7 @@ module.exports = { ...@@ -33,5 +33,7 @@ module.exports = {
/**修改员工日报填报门店配置 */ /**修改员工日报填报门店配置 */
updateDailyReportConfig(data) { updateDailyReportConfig(data) {
return api.post("dj.api.smartcarlife.staff.dailyReportConfig.update", data); return api.post("dj.api.smartcarlife.staff.dailyReportConfig.update", data);
} },
}; };
...@@ -63,8 +63,8 @@ const domain_items = { ...@@ -63,8 +63,8 @@ const domain_items = {
// dj: "http://192.168.1.169:8292", //蔡远明 // dj: "http://192.168.1.169:8292", //蔡远明
// dj: 'http://192.168.1.174:8292',//范富荣 // dj: 'http://192.168.1.174:8292',//范富荣
// dj: 'http://192.168.1.89:8292', //周杭 // dj: 'http://192.168.1.89:8292', //周杭
// dj: 'http://192.168.1.89:8292', //璐琦 dj: 'http://192.168.1.76:8292', //璐琦
dj: 'http://192.168.1.227:8292',//陈希 // dj: 'http://192.168.1.227:8292',//陈希
// dj: 'http://192.168.1.60:8292',//周立明 // dj: 'http://192.168.1.60:8292',//周立明
// dj: 'http://192.168.148.235:8292',// 熊正顺 // dj: 'http://192.168.148.235:8292',// 熊正顺
// dj: 'http://192.168.148.221:8292', // dj: 'http://192.168.148.221:8292',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!