Commit cd3ea636 by wangzhihui

分润

1 parent cf52f6b9
......@@ -16,7 +16,7 @@
</block>
<view class="sub-title">{{subTitle}}
</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">
<block wx:for="{{selesList}}" wx:key="index">
<view class="seles text-center {{item.active?'active':''}}" bindtap="changeSelesMan" data-index="{{index}}" data-item="{{item}}">
......
......@@ -18,7 +18,7 @@ export const appId = "wx570d9331f9ace0bd";
* 4预发布
* 5cdptest
*/
let index = 2;
let index =0;
const accountInfo = wx.getAccountInfoSync();
const systemInfo = wx.getSystemInfoSync();
const envName = accountInfo.miniProgram.envVersion;
......
......@@ -110,7 +110,7 @@
</block>
</view>
<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-label">{{i.label}}</view>
<view class="order-value">
......
......@@ -269,4 +269,8 @@ module.exports = {
getStaffList(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;
let toastList = {
userId: "销售顾问不能为空",
subShopMerchantId: "二级流量方不能为空",
deliveryUserId:"交付专员不能为空",
customerName: "车主姓名不能为空",
customerPhone: "手机号不能为空",
sellerUserId: "转化人员不能为空",
......@@ -72,6 +73,8 @@ Page({
experienceFlag: "Y",
salesType: 0,
},
deliveryUserId:'',
deliveryEmployeeName:'',
// selectPayType: 0,
selectPayType: 2,
remark: "",
......@@ -940,7 +943,7 @@ Page({
*/
onLoad: function (options) {
// console.log(app.globalData.YQorderSetting, 'app.globalData.YQorderSetting?.yqPhoneConfig')
console.log(options);
console.log(options,'options');
if (options.scene) {
this.setData(options);
}
......@@ -1245,12 +1248,25 @@ Page({
// 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 () {
this.getConfig();
this.getShopMerchantPointConfig()
},
/**
* 生命周期函数--监听页面显示
......
......@@ -4,7 +4,7 @@
<view class="main {{ tipsProps.showTips?'fullSucreen-tips':'' }} {{showTips? 'showTips':'' }}">
<view class="box">
<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 }}">
<view class="between">
<view class="start text-hide">{{orderObj.merchantName}}</view>
......@@ -16,6 +16,19 @@
</block>
</gl-cell>
</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 }}">
<gl-cell border valueAlign="right" label="二级流量方" requiredAfter labelWidth="var(--fontSize180)" required haveArrow bindclick="showPopup" data-show-name="subShopMerchantBox" placeholder="点击选择">
<block wx:if="{{ orderObj.subShopMerchantName }}">
......@@ -416,7 +429,8 @@
</view>
<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="{{ 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 }}" />
<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 }}" />
......
......@@ -33,5 +33,7 @@ module.exports = {
/**修改员工日报填报门店配置 */
updateDailyReportConfig(data) {
return api.post("dj.api.smartcarlife.staff.dailyReportConfig.update", data);
}
},
};
......@@ -63,8 +63,8 @@ const domain_items = {
// dj: "http://192.168.1.169: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.227:8292',//陈希
dj: 'http://192.168.1.76:8292', //璐琦
// dj: 'http://192.168.1.227:8292',//陈希
// dj: 'http://192.168.1.60:8292',//周立明
// dj: 'http://192.168.148.235: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!