Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-boutique-work-wechat
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit abd8d008
authored
Apr 23, 2025
by
wangzhihui
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
分润
1 parent
f8a59c2a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
142 additions
and
9 deletions
api/api.js
components/Merchant-Seles/Merchant-Seles.js
config.js
packageEquity/pages/carQuotation/components/FirstStep/FirstStep.js
packageEquity/pages/carQuotation/components/FirstStep/FirstStep.wxml
packageEquity/pages/carQuotation/components/storeReferrerPicker/storeReferrerPicker.js
packageEquity/pages/carQuotation/components/storeReferrerPicker/storeReferrerPicker.wxml
packageEquity/pages/carQuotation/index/index.js
packageEquity/pages/carQuotation/index/index.wxml
tabWorkOrder/api.js
api/api.js
View file @
abd8d00
...
@@ -348,5 +348,9 @@ module.exports = {
...
@@ -348,5 +348,9 @@ module.exports = {
// 查询员工是否是导师
// 查询员工是否是导师
getStaffMentorFlag
(
data
)
{
getStaffMentorFlag
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.employee.isMentor'
,
data
)
return
api
.
post
(
'dj.api.smartcarlife.employee.isMentor'
,
data
)
},
// 查询店铺配置
getShopMerchantPointConfig
(
data
)
{
return
api
.
post
(
"dj.api.smartcarlife.shopMerchantPointConfig.get"
,
data
);
}
}
}
}
components/Merchant-Seles/Merchant-Seles.js
View file @
abd8d00
...
@@ -34,7 +34,7 @@ Component({
...
@@ -34,7 +34,7 @@ Component({
orderObj
:
{
orderObj
:
{
type
:
Object
,
type
:
Object
,
},
},
type
:
Number
,
//1.销售顾问,2.转化人员
type
:
Number
,
//1.销售顾问,2.转化人员
3交付专员
// order:Object,
// order:Object,
isDefault
:
Boolean
,
//
isDefault
:
Boolean
,
//
singleSeller
:
{
singleSeller
:
{
...
...
config.js
View file @
abd8d00
...
@@ -18,7 +18,7 @@ export const appId = "wx570d9331f9ace0bd";
...
@@ -18,7 +18,7 @@ export const appId = "wx570d9331f9ace0bd";
* 4预发布
* 4预发布
* 5cdptest
* 5cdptest
*/
*/
let
index
=
0
;
let
index
=
1
;
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
;
...
...
packageEquity/pages/carQuotation/components/FirstStep/FirstStep.js
View file @
abd8d00
...
@@ -85,6 +85,7 @@ Component({
...
@@ -85,6 +85,7 @@ Component({
// first: data.firstObjSimple,
// first: data.firstObjSimple,
// formRule: data.formRuleSimple,
// formRule: data.formRuleSimple,
referrerPicker
:
false
,
referrerPicker
:
false
,
deliveryPicker
:
false
,
textNameObj
:
{
textNameObj
:
{
confirmName
:
'下一步(1/4)'
,
confirmName
:
'下一步(1/4)'
,
cancelName
:
'存草稿'
cancelName
:
'存草稿'
...
@@ -94,6 +95,7 @@ Component({
...
@@ -94,6 +95,7 @@ Component({
lifetimes
:
{
lifetimes
:
{
attached
()
{
attached
()
{
this
.
getEmployee
()
this
.
getEmployee
()
this
.
getShopMerchantPointConfig
()
// 没有才走获取档案接口逻辑修改配置,有是必填优先及更高
// 没有才走获取档案接口逻辑修改配置,有是必填优先及更高
// 在createOrderCarQuotationSimple 页面做逻辑判断
// 在createOrderCarQuotationSimple 页面做逻辑判断
// this.getYqStoreConfig()
// this.getYqStoreConfig()
...
@@ -105,6 +107,20 @@ Component({
...
@@ -105,6 +107,20 @@ Component({
* 组件的方法列表
* 组件的方法列表
*/
*/
methods
:
{
methods
:
{
getShopMerchantPointConfig
(){
console
.
log
(
1111111111
)
let
{
userInfo
}
=
this
.
data
;
let
oParams
=
{};
oParams
.
merchantId
=
userInfo
.
shopMerchantId
;
commonApi
.
getShopMerchantPointConfig
(
oParams
).
then
(
res
=>
{
// if(res.data.pointsMultiRole=='Y'){
// toastList.userId='销售顾问/录单员不能为空'
// }
this
.
setData
({
pointsMultiRole
:
res
.
data
.
pointsMultiRole
})
})
},
// 推荐人
// 推荐人
// handleSalesChange(e) {
// handleSalesChange(e) {
// let idx = e.detail.value || 0
// let idx = e.detail.value || 0
...
@@ -129,6 +145,12 @@ Component({
...
@@ -129,6 +145,12 @@ Component({
referrerPicker
:
true
referrerPicker
:
true
})
})
},
},
handleDeliveryPicker
()
{
this
.
setData
({
deliveryPicker
:
true
})
},
handleSalesChange
(
e
)
{
handleSalesChange
(
e
)
{
// let value = e.detail
// let value = e.detail
console
.
log
(
e
)
console
.
log
(
e
)
...
@@ -145,6 +167,21 @@ Component({
...
@@ -145,6 +167,21 @@ Component({
[
'orderInfo.referrer'
]:
employeeList
[
idx
].
staffName
[
'orderInfo.referrer'
]:
employeeList
[
idx
].
staffName
})
})
},
},
handleDeliveryChange
(
e
)
{
// let value = e.detail
let
idx
=
e
.
detail
.
value
||
0
let
{
employeeList
,
disable
}
=
this
.
data
if
(
disable
)
return
false
let
thisPage
=
wx
.
$router
.
getPageInstance
()
thisPage
.
setData
({
[
'orderInfo.deliveryId'
]:
employeeList
[
idx
].
uuid
,
[
'orderInfo.deliveryName'
]:
employeeList
[
idx
].
staffName
})
},
// 获取推荐人列表
// 获取推荐人列表
getEmployee
()
{
getEmployee
()
{
let
userInfo
=
wx
.
$util
.
getStorageSync
(
'dj_boutique_user_info'
)
let
userInfo
=
wx
.
$util
.
getStorageSync
(
'dj_boutique_user_info'
)
...
@@ -191,15 +228,27 @@ Component({
...
@@ -191,15 +228,27 @@ Component({
handleConfirm
()
{
handleConfirm
()
{
var
{
var
{
dataAttrName
,
dataAttrName
,
formRule
formRule
,
pointsMultiRole
}
=
this
.
data
}
=
this
.
data
// let thisPage = this.$router.getCurrentPage()
// let thisPage = this.$router.getCurrentPage()
let
thisPage
=
wx
.
$router
.
getPageInstance
()
let
thisPage
=
wx
.
$router
.
getPageInstance
()
// console.log(thisPage.data['orderInfo']['actualSalesPersonId'])
// console.log(thisPage.data['orderInfo']['actualSalesPersonId'])
if
(
!
thisPage
.
data
[
'orderInfo'
][
'referrerId'
])
{
if
(
!
thisPage
.
data
[
'orderInfo'
][
'referrerId'
])
{
wx
.
$util
.
showToast
(
'请选择推荐人'
)
wx
.
$util
.
showToast
(
pointsMultiRole
==
'Y'
?
'请选择销售顾问/录单员'
:
'请选择推荐人'
)
return
false
return
false
}
}
if
(
pointsMultiRole
==
'Y'
){
if
(
!
thisPage
.
data
[
'orderInfo'
][
'deliveryId'
])
{
wx
.
$util
.
showToast
(
'请选择交付专员'
)
return
false
}
if
(
thisPage
.
data
[
'orderInfo'
][
'deliveryId'
]
==
thisPage
.
data
[
'orderInfo'
][
'referrerId'
]){
wx
.
$util
.
showToast
(
'销售顾问/录单员与交付专员不能选取同一人'
)
return
false
}
}
let
validObj
=
fn
.
checkRequired
(
thisPage
.
data
[
dataAttrName
],
formRule
)
let
validObj
=
fn
.
checkRequired
(
thisPage
.
data
[
dataAttrName
],
formRule
)
if
(
validObj
)
{
if
(
validObj
)
{
wx
.
$util
.
showToast
(
validObj
.
message
)
wx
.
$util
.
showToast
(
validObj
.
message
)
...
...
packageEquity/pages/carQuotation/components/FirstStep/FirstStep.wxml
View file @
abd8d00
<!-- packageEquity/pages/carEquity/components/FirstStep/FirstStep.wxml -->
<!-- packageEquity/pages/carEquity/components/FirstStep/FirstStep.wxml -->
<view class="firstStep">
<view class="firstStep">
<view class="box employeeBox">
<view class="box employeeBox">
<gl-cell border valueAlign="right" label="
推荐人"
class="pickerCell" required="{{true}}" requiredAfter="{{true}}" labelWidth="{{defaultLabelWidth}}">
<gl-cell border valueAlign="right" label="
{{pointsMultiRole=='Y'?'销售顾问 /录单员':'推荐人'}}"
class="pickerCell" required="{{true}}" requiredAfter="{{true}}" labelWidth="{{defaultLabelWidth}}">
<!-- <picker
<!-- <picker
bindchange="handleSalesChange"
bindchange="handleSalesChange"
value="{{index}}"
value="{{index}}"
...
@@ -14,6 +14,17 @@
...
@@ -14,6 +14,17 @@
</view>
</view>
<!-- </picker> -->
<!-- </picker> -->
</gl-cell>
</gl-cell>
<block wx:if="{{pointsMultiRole=='Y'}}">
<gl-cell border valueAlign="right" label="交付专员" class="pickerCell" required="{{true}}" requiredAfter="{{true}}" labelWidth="{{defaultLabelWidth}}">
<view class="picker" bindtap="handleDeliveryPicker">
<image class="pickerArrow" src="/components/images/arrow-x.png" />
<view class="text-hide" wx:if="{{orderInfo.deliveryId }}">{{orderInfo.deliveryName }}</view>
<text class="placeholder" wx:else>请选择</text>
</view>
<!-- </picker> -->
</gl-cell>
</block>
</view>
</view>
<view class="box">
<view class="box">
<!-- <view class="title">客户信息</view> -->
<!-- <view class="title">客户信息</view> -->
...
@@ -57,8 +68,8 @@
...
@@ -57,8 +68,8 @@
</view>
</view>
<Gl-Button-Group wx:if="{{subBtnShow}}" bindbtnTap="btnTap" textNameObj="{{textNameObj}}" />
<Gl-Button-Group wx:if="{{subBtnShow}}" bindbtnTap="btnTap" textNameObj="{{textNameObj}}" />
</view>
</view>
<store-referrer-picker bindconfirm="handleSalesChange" show="{{referrerPicker}}"
referrerId="{{orderInfo.referrerId}}"
pickerListAll="{{employeeList}}" />
<store-referrer-picker bindconfirm="handleSalesChange" show="{{referrerPicker}}"
title="{{pointsMultiRole=='N'?'推荐人':'销售顾问/录单员'}}" type="1" orderObj="{{ orderObj }}"
pickerListAll="{{employeeList}}" />
<store-referrer-picker bindconfirm="handleDeliveryChange" show="{{deliveryPicker}}" title="交付专员" type="2" orderObj="{{ orderObj }}" pickerListAll="{{employeeList}}" />
<customerInfo show="{{ customerInfoBox }}" bindconfirm="chooseCustomerInfo" apiType="2" />
<customerInfo show="{{ customerInfoBox }}" bindconfirm="chooseCustomerInfo" apiType="2" />
<car-brands show="{{ carBrandBox }}" bindconfirm="chooseCar" carSeriesId="{{ serviceInfo.carSeriesId || '' }}" equityFlag="true" merchantId="{{ userInfo.default4SStoreInfo.merchantId || undefined }}" />
<car-brands show="{{ carBrandBox }}" bindconfirm="chooseCar" carSeriesId="{{ serviceInfo.carSeriesId || '' }}" equityFlag="true" merchantId="{{ userInfo.default4SStoreInfo.merchantId || undefined }}" />
\ No newline at end of file
\ No newline at end of file
packageEquity/pages/carQuotation/components/storeReferrerPicker/storeReferrerPicker.js
View file @
abd8d00
...
@@ -8,6 +8,7 @@ Component({
...
@@ -8,6 +8,7 @@ Component({
* 组件的属性列表
* 组件的属性列表
*/
*/
properties
:
{
properties
:
{
title
:
String
,
pickerListAll
:
{
pickerListAll
:
{
type
:
Array
,
type
:
Array
,
value
:
[],
value
:
[],
...
@@ -17,6 +18,20 @@ Component({
...
@@ -17,6 +18,20 @@ Component({
}
}
}
}
},
},
type
:
Number
,
//1.销售顾问/推荐人,2.交付专员
orderObj
:{
type
:
Object
,
observer
:
function
(
n
)
{
if
(
n
)
{
let
{
pickerList
,
type
}
=
this
.
data
,
value
;
value
=
type
==
1
?
n
.
referrerId
:
n
.
deliveryId
let
defaultSelectStoreIndex
=
pickerList
?.
findIndex
(
v
=>
{
return
v
.
uuid
==
n
})
this
.
setData
({
defaultSelectStoreIndex
:
[
defaultSelectStoreIndex
],
selectStoreIndex
:
defaultSelectStoreIndex
})
}
}
},
referrerId
:
{
referrerId
:
{
type
:
String
,
type
:
String
,
value
:
''
,
value
:
''
,
...
...
packageEquity/pages/carQuotation/components/storeReferrerPicker/storeReferrerPicker.wxml
View file @
abd8d00
<popup class="date-background" show="{{show}}" bindconfirm="confirm" title="
推荐人
" height="80%">
<popup class="date-background" show="{{show}}" bindconfirm="confirm" title="
{{title}}
" height="80%">
<view class='date-container'>
<view class='date-container'>
<view class='date-confirm'>
<view class='date-confirm'>
<view class="search-box">
<view class="search-box">
...
...
packageEquity/pages/carQuotation/index/index.js
View file @
abd8d00
...
@@ -42,6 +42,60 @@ Component({
...
@@ -42,6 +42,60 @@ Component({
IMG_URL
,
IMG_URL
,
IMG_URL2
,
IMG_URL2
,
showIcon1
:
true
,
// 初始显示图标
showIcon1
:
true
,
// 初始显示图标
pointsMultiObj
:[
{
label
:
"销售顾问 /录单员"
,
arr
:
[
"merchantName"
,
"referrerName"
],
},
{
label
:
"交付人员"
,
arr
:
[
"merchantName"
,
"deliveryName"
],
},
{
label
:
"转化人员"
,
arr
:
[
"parkMerchantName"
,
"transferName"
],
},
{
label
:
"车架号"
,
key
:
"carVin"
,
},
{
label
:
"购买商品"
,
key
:
"goodsNameAlias"
,
otherKey
:
"goodsName"
,
},
{
label
:
"工单编号"
,
key
:
"payId"
,
canCopy
:
true
},
{
label
:
"交易流水号"
,
key
:
"transactionNo"
,
canCopy
:
true
,
},
{
label
:
"拒升原因"
,
key
:
"remark"
,
},
{
label
:
"支付时间"
,
key
:
"payTime"
,
},
{
label
:
"创建时间"
,
key
:
"createdTime"
,
},
{
label
:
"支付方式"
,
key
:
"payType"
,
mapValue
:
{
1
:
"线上支付"
,
2
:
"门店收款"
,
5
:
"嘀加收款"
},
},
],
orderObj
:
[
orderObj
:
[
{
{
label
:
"销售顾问"
,
label
:
"销售顾问"
,
...
...
packageEquity/pages/carQuotation/index/index.wxml
View file @
abd8d00
...
@@ -68,7 +68,7 @@
...
@@ -68,7 +68,7 @@
</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="{{
item.deliveryId?pointsMultiObj:
orderObj }}" wx:key="sindex" wx:for-index="sindex" wx:for-item="i">
<block wx:if="{{ i.key == 'remark' || i.key == 'payTime' || i.key == 'createdTime' }}">
<block wx:if="{{ i.key == 'remark' || i.key == 'payTime' || i.key == 'createdTime' }}">
<view class="order" wx:if="{{ i.key == 'remark' && item.orderStatus == '-1' }}">
<view class="order" wx:if="{{ i.key == 'remark' && item.orderStatus == '-1' }}">
<view class="order-label">{{i.label}}</view>
<view class="order-label">{{i.label}}</view>
...
...
tabWorkOrder/api.js
View file @
abd8d00
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment