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 2a34dcf1
authored
Nov 23, 2023
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug修复
1 parent
c1250cf0
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
121 additions
and
139 deletions
config.js
packageEquity/pages/carQuotation/index/index.wxss
packageEquity/pages/carQuotation/updateOrderInfo/updateOrderInfo.js
packageEquity/pages/carQuotation/updateOrderInfo/updateOrderInfo.wxml
project.private.config.json
tabMine/pages/completeBuild/completeBuild.js
tabMine/pages/technicianSetup/technicianSetup.js
tabMine/pages/technicianSetup/technicianSetup.sass
tabMine/pages/technicianSetup/technicianSetup.wxml
tabWorkOrder/pages/defeatOrder/defeatOrder.js
tabWorkOrder/pages/defeatOrder/defeatOrder.wxml
tabWorkOrder/pages/orderDetail/orderDetail.js
tabWorkOrder/pages/orderDetail/orderDetail.wxml
config.js
View file @
2a34dcf
...
@@ -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
=
1
const
accountInfo
=
wx
.
getAccountInfoSync
()
const
accountInfo
=
wx
.
getAccountInfoSync
()
const
systemInfo
=
wx
.
getSystemInfoSync
()
const
systemInfo
=
wx
.
getSystemInfoSync
()
...
...
packageEquity/pages/carQuotation/index/index.wxss
View file @
2a34dcf
...
@@ -230,6 +230,7 @@
...
@@ -230,6 +230,7 @@
display: flex;
display: flex;
align-items: center;
align-items: center;
font-size: 32rpx;
font-size: 32rpx;
font-weight: 600;
color: #333333;
color: #333333;
}
}
...
@@ -240,7 +241,7 @@
...
@@ -240,7 +241,7 @@
}
}
.list .header-status {
.list .header-status {
font-weight:
5
00;
font-weight:
6
00;
font-size: 28rpx;
font-size: 28rpx;
}
}
...
@@ -439,7 +440,7 @@
...
@@ -439,7 +440,7 @@
.pricePay .header-price {
.pricePay .header-price {
font-family: 'numberBold';
font-family: 'numberBold';
font-weight: 700;
/* font-weight: 700; */
font-size: 36rpx;
font-size: 36rpx;
color: #347BFF;
color: #347BFF;
}
}
...
...
packageEquity/pages/carQuotation/updateOrderInfo/updateOrderInfo.js
View file @
2a34dcf
// tabWorkOrder/pages/createOrder/createOrder.js
// tabWorkOrder/pages/createOrder/createOrder.js
// import deepClone from '~/utils/deepClone'
// import deepClone from '~/utils/deepClone'
import
{
getQuotationInfoById
,
updateCustomerInfo
}
from
'../../../api'
import
{
getQuotationInfoById
,
updateCustomerInfo
}
from
'../../../api'
// import { getYQorderInfo } from '~/store/index'
// import { getYQorderInfo } from '~/store/index'
let
toastList
=
{
let
toastList
=
{
userId
:
'销售顾问不能为空'
,
userId
:
'销售顾问不能为空'
,
customerName
:
'车主姓名不能为空'
,
owner
:
'车主姓名不能为空'
,
customerPhone
:
'手机号不能为空'
,
customerPhone
:
'手机号不能为空'
,
sellerUserId
:
'转化人员不能为空'
,
sellerUserId
:
'转化人员不能为空'
,
customerCouponCode
:
'精品礼券不能为空'
customerCouponCode
:
'精品礼券不能为空'
...
@@ -17,8 +20,7 @@ Page({
...
@@ -17,8 +20,7 @@ Page({
*/
*/
data
:
{
data
:
{
phoneShow
:
false
,
phoneShow
:
false
,
payTypeList
:
[
payTypeList
:
[{
{
name
:
'门店收款'
,
name
:
'门店收款'
,
value
:
2
value
:
2
},
},
...
@@ -61,9 +63,13 @@ Page({
...
@@ -61,9 +63,13 @@ Page({
showPopup
(
e
)
{
showPopup
(
e
)
{
let
{
let
{
goodsData
,
goodsData
,
orderObj
:
{
selectPayType
}
orderObj
:
{
selectPayType
}
}
=
this
.
data
}
=
this
.
data
let
{
showName
}
=
e
.
currentTarget
.
dataset
let
{
showName
}
=
e
.
currentTarget
.
dataset
if
(
showName
==
'goodsBox'
)
{
if
(
showName
==
'goodsBox'
)
{
if
(
selectPayType
==
0
)
return
if
(
selectPayType
==
0
)
return
if
(
goodsData
.
length
<
1
)
{
if
(
goodsData
.
length
<
1
)
{
...
@@ -76,7 +82,9 @@ Page({
...
@@ -76,7 +82,9 @@ Page({
})
})
},
},
changeExperience
(
e
)
{
changeExperience
(
e
)
{
let
{
experience
}
=
e
.
currentTarget
.
dataset
let
{
experience
}
=
e
.
currentTarget
.
dataset
console
.
log
(
experience
)
console
.
log
(
experience
)
wx
.
vibrateShort
()
wx
.
vibrateShort
()
this
.
setData
({
this
.
setData
({
...
@@ -85,9 +93,15 @@ Page({
...
@@ -85,9 +93,15 @@ Page({
},
},
input
(
e
)
{
input
(
e
)
{
// userInfo
// userInfo
let
{
orderObj
}
=
this
.
data
let
{
let
{
value
}
=
e
.
detail
orderObj
let
{
name
}
=
e
.
currentTarget
.
dataset
}
=
this
.
data
let
{
value
}
=
e
.
detail
let
{
name
}
=
e
.
currentTarget
.
dataset
// let flag = (name == 'customer.customerPhone' && phoneRex.test(value)) || name != 'customer.customerPhone'
// let flag = (name == 'customer.customerPhone' && phoneRex.test(value)) || name != 'customer.customerPhone'
// if (!flag) return
// if (!flag) return
this
.
setData
({
this
.
setData
({
...
@@ -135,13 +149,20 @@ Page({
...
@@ -135,13 +149,20 @@ Page({
})
})
},
},
submit
(
i
)
{
submit
(
i
)
{
let
{
giveup
}
=
i
.
currentTarget
.
dataset
let
{
giveup
}
=
i
.
currentTarget
.
dataset
// console.log(giveUp)
// console.log(giveUp)
// console.log(i.currentTarget)
// console.log(i.currentTarget)
if
(
giveup
)
{
if
(
giveup
)
{
return
this
.
back
()
return
this
.
back
()
}
}
let
{
orderObj
,
orderObj
:{
owner
}}
=
this
.
data
let
{
orderObj
,
orderObj
:
{
owner
}
}
=
this
.
data
let
key
=
this
.
checkRequired
(
orderObj
)
let
key
=
this
.
checkRequired
(
orderObj
)
console
.
log
(
key
)
console
.
log
(
key
)
...
@@ -165,17 +186,17 @@ Page({
...
@@ -165,17 +186,17 @@ Page({
}
}
}
}
let
params
=
{
let
params
=
{
id
:
orderObj
.
id
,
id
:
orderObj
.
id
,
notes
:
orderObj
.
notes
||
''
,
notes
:
orderObj
.
notes
||
''
,
owner
:{
owner
:
{
id
:
orderObj
.
owner
.
id
,
id
:
orderObj
.
owner
.
id
,
owner
:
owner
.
owner
,
owner
:
owner
.
owner
,
phone
:
owner
.
phone
,
phone
:
owner
.
phone
,
carVin
:
owner
.
carVin
||
''
,
carVin
:
owner
.
carVin
||
''
,
certificateNo
:
owner
.
certificateNo
||
''
certificateNo
:
owner
.
certificateNo
||
''
}
}
}
}
console
.
log
(
params
,
'params'
);
console
.
log
(
params
,
'params'
);
// if (!scene) {
// if (!scene) {
// if (!orderObj.orderCode) delete orderObj.orderCode
// if (!orderObj.orderCode) delete orderObj.orderCode
// }
// }
...
@@ -234,7 +255,10 @@ Page({
...
@@ -234,7 +255,10 @@ Page({
},
},
setOrderObj
(
options
)
{
setOrderObj
(
options
)
{
// console.log(options)
// console.log(options)
let
{
scene
,
userInfo
}
=
this
.
data
let
{
scene
,
userInfo
}
=
this
.
data
console
.
log
(
'setOrderObj'
,
options
)
console
.
log
(
'setOrderObj'
,
options
)
// wx.$util.showLoading('加载中...')
// wx.$util.showLoading('加载中...')
let
orderObj
=
{}
let
orderObj
=
{}
...
@@ -261,11 +285,15 @@ Page({
...
@@ -261,11 +285,15 @@ Page({
})
})
},
},
getQuotationInfoById
(
id
)
{
getQuotationInfoById
(
id
)
{
getQuotationInfoById
({
id
}).
then
(
res
=>
{
getQuotationInfoById
({
id
}).
then
(
res
=>
{
console
.
log
(
res
);
console
.
log
(
res
);
let
{
data
,}
=
res
let
{
data
,
}
=
res
this
.
setData
({
this
.
setData
({
orderObj
:
data
orderObj
:
data
})
})
})
})
},
},
...
...
packageEquity/pages/carQuotation/updateOrderInfo/updateOrderInfo.wxml
View file @
2a34dcf
<!-- 订单修改 -->
<!-- 订单修改 -->
<!-- <block wx:if="{{flag}}"> -->
<!-- <block wx:if="{{flag}}"> -->
<view class="main {{isFullSucreen?'isFullSucreen':''}}">
<view class="main {{isFullSucreen?'isFullSucreen':''}}">
<view class="box">
<view class="box">
<view class="customerName owner">
<view class="customerName owner">
<gl-cell border valueAlign="right" label="车主姓名" requiredAfter labelWidth="140rpx" required>
<gl-cell border valueAlign="right" label="车主姓名" requiredAfter labelWidth="140rpx" required>
...
@@ -18,9 +18,9 @@
...
@@ -18,9 +18,9 @@
</view>
</view>
</view>
</view>
</gl-cell> -->
</gl-cell> -->
<view class="customerPhone phone"
>
<view class="customerPhone phone"
>
<gl-cell border valueAlign="right" label="手机号" requiredAfter labelWidth="140rpx" required>
<gl-cell border valueAlign="right" label="手机号" requiredAfter labelWidth="140rpx" required>
<input placeholder="点击输入" class="input" type="number" maxlength="11" placeholder-class="placeholder-class" value="{{orderObj.owner.phone}}" bindinput="input" data-name="custom
er.phone" disabled="{{orderObj.orderSource == 5||orderObj.orderSource == 6}}" always-embed></input>
<input placeholder="点击输入" class="input" type="number" maxlength="11" placeholder-class="placeholder-class" value="{{orderObj.owner.phone}}" bindinput="input" data-name="own
er.phone" disabled="{{orderObj.orderSource == 5||orderObj.orderSource == 6}}" always-embed></input>
</gl-cell>
</gl-cell>
</view>
</view>
<gl-cell border valueAlign="right" label="车架号( VIN码 )" labelWidth="240rpx">
<gl-cell border valueAlign="right" label="车架号( VIN码 )" labelWidth="240rpx">
...
@@ -48,22 +48,13 @@
...
@@ -48,22 +48,13 @@
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view class="btns {{isFullSucreen?'isFullSucreen-btn':''}}">
<view class="btns {{isFullSucreen?'isFullSucreen-btn':''}}">
<!-- <text class="tips x-center">客户信息仅支持修改以上部分。</text> -->
<!-- <text class="tips x-center">客户信息仅支持修改以上部分。</text> -->
<tips-bottom style="width: 100%;box-sizing: border-box;" tipsProps="{{ tipsProps }}" />
<tips-bottom style="width: 100%;box-sizing: border-box;" tipsProps="{{ tipsProps }}" />
<view class="btns-con">
<view class="btns-con">
<view class="save text-center"
<view class="save text-center" data-giveUp="{{true}}" bindtap="submit" data-save data-save>放弃</view>
data-giveUp="{{true}}"
bindtap="submit"
data-save data-save>放弃</view>
<view class="confirm text-center" bindtap="submit">提交修改</view>
<view class="confirm text-center" bindtap="submit">提交修改</view>
</view>
</view>
</view>
</view>
<remark-popup
<remark-popup wx:if="{{showRemark}}" show="{{showRemark}}" bindconfirm="remarkConfirm" placeholder="请填写内容,最多30个字" maxlength="30" value="{{orderObj.remark}}" />
wx:if="{{showRemark}}"
show="{{showRemark}}"
bindconfirm="remarkConfirm"
placeholder="请填写内容,最多30个字"
maxlength="30"
value="{{orderObj.remark}}" />
\ No newline at end of file
\ No newline at end of file
project.private.config.json
View file @
2a34dcf
...
@@ -4,78 +4,27 @@
...
@@ -4,78 +4,27 @@
"miniprogram"
:
{
"miniprogram"
:
{
"list"
:
[
"list"
:
[
{
{
<<<<<<<
HEAD
"name"
:
"个人中心"
,
"name"
:
"个人中心"
,
"pathName"
:
"pages/tabMine/pages/index/index"
,
"pathName"
:
"pages/tabMine/pages/index/index"
,
=======
"name"
:
"技师设置"
,
"pathName"
:
"tabMine/pages/technicianSetup/technicianSetup"
,
>>>>>>>
a
6
d
09
dbf
096
e
7
ca
9
edfd
223
c
82
da
4
a
502
f
034061
"query"
:
""
,
"query"
:
""
,
"launchMode"
:
"default"
,
"launchMode"
:
"default"
,
"scene"
:
null
"scene"
:
null
},
},
{
{
"name"
:
"权益修改客户信息"
,
"name"
:
"技师设置"
,
"pathName"
:
"packageEquity/pages/carQuotation/updateOrderInfo/updateOrderInfo"
,
"pathName"
:
"tabMine/pages/technicianSetup/technicianSetup"
,
"query"
:
"id=1912"
,
"launchMode"
:
"default"
,
"scene"
:
null
},
{
"name"
:
"2.1订单下单"
,
"pathName"
:
"packageEquity/pages/carQuotation/createOrderCarQuotationSimple/createOrderCarQuotationSimple"
,
"query"
:
""
,
"launchMode"
:
"default"
,
"scene"
:
null
},
{
"name"
:
"2.1 订单支付"
,
"pathName"
:
"packageEquity/pages/carQuotation/CarQuotationPay/CarQuotationPay"
,
"query"
:
""
,
"launchMode"
:
"default"
,
"scene"
:
null
},
{
"name"
:
"2.1 列表"
,
"pathName"
:
"packageEquity/pages/TabBar/equityPage"
,
"query"
:
""
,
"launchMode"
:
"default"
,
"scene"
:
null
},
{
"name"
:
"2.1 支付"
,
"pathName"
:
"packageEquity/pages/carQuotation/CarQuotationPay/CarQuotationPay"
,
"query"
:
""
,
"launchMode"
:
"default"
,
"scene"
:
null
},
{
"name"
:
"选择账号"
,
"pathName"
:
"pages/accountItems/accountItems"
,
"query"
:
""
,
"query"
:
""
,
"launchMode"
:
"default"
,
"launchMode"
:
"default"
,
"scene"
:
null
"scene"
:
null
},
},
{
{
"name"
:
"
login
"
,
"name"
:
"
1.1 列表
"
,
"pathName"
:
"pages/
wxLogin/wxLogin
"
,
"pathName"
:
"pages/
tabWorkOrder/pages/index/index
"
,
"query"
:
""
,
"query"
:
""
,
"launchMode"
:
"default"
,
"launchMode"
:
"default"
,
"scene"
:
null
"scene"
:
null
},
{
"name"
:
"订单详情"
,
"pathName"
:
"tabWorkOrder/pages/constructionOrderDetail/constructionOrderDetail"
,
"query"
:
"orderCode=2206221654033208"
,
"launchMode"
:
"default"
,
"scene"
:
null
}
}
]
]
}
}
},
"libVersion"
:
"3.0.0"
,
"setting"
:
{
"urlCheck"
:
false
}
}
}
}
\ No newline at end of file
\ No newline at end of file
tabMine/pages/completeBuild/completeBuild.js
View file @
2a34dcf
...
@@ -70,7 +70,7 @@ Page({
...
@@ -70,7 +70,7 @@ Page({
saturdayFlag
saturdayFlag
}
=
this
.
data
}
=
this
.
data
let
{
let
{
merchantId
shopMerchantId
:
merchantId
}
=
wx
.
$util
.
getUserInfo
()
}
=
wx
.
$util
.
getUserInfo
()
api
.
getMerchantConfiguration
({
api
.
getMerchantConfiguration
({
merchantId
,
merchantId
,
...
@@ -118,7 +118,7 @@ Page({
...
@@ -118,7 +118,7 @@ Page({
saturdayFlag
saturdayFlag
}
=
this
.
data
}
=
this
.
data
let
{
let
{
merchantId
shopMerchantId
:
merchantId
}
=
wx
.
$util
.
getUserInfo
()
}
=
wx
.
$util
.
getUserInfo
()
let
signatureSwitch
=
saturdayFlag
?
1
:
0
let
signatureSwitch
=
saturdayFlag
?
1
:
0
api
.
updateSignatureConfiguration
({
api
.
updateSignatureConfiguration
({
...
...
tabMine/pages/technicianSetup/technicianSetup.js
View file @
2a34dcf
...
@@ -28,11 +28,24 @@ Page({
...
@@ -28,11 +28,24 @@ Page({
this
.
getList
(
true
)
this
.
getList
(
true
)
},
},
addTechnicalItem
()
{
addTechnicalItem
()
{
let
{
let
{
technicianList
,
technicianList
,
userInfo
userInfo
}
=
this
.
data
}
=
this
.
data
if
(
userInfo
.
userType
==
2
)
return
if
(
userInfo
.
userType
==
2
)
return
// 默认添加离开弹框 提交成功后取消
wx
.
enableAlertBeforeUnload
&&
wx
.
enableAlertBeforeUnload
({
title
:
'温馨提示'
,
message
:
'技师信息未提交,请提交后返回'
,
success
:
function
(
res
)
{
console
.
log
(
'成功:'
,
res
)
},
fail
:
function
(
err
)
{
console
.
log
(
'失败:'
,
err
)
}
})
technicianList
.
unshift
({
technicianList
.
unshift
({
staffName
:
''
,
staffName
:
''
,
staffPhone
:
''
,
staffPhone
:
''
,
...
@@ -65,11 +78,11 @@ Page({
...
@@ -65,11 +78,11 @@ Page({
}
=
this
.
data
}
=
this
.
data
let
params
=
wx
.
$util
.
deepClone
(
technicianList
[
index
])
let
params
=
wx
.
$util
.
deepClone
(
technicianList
[
index
])
if
(
!
params
.
staffName
)
{
if
(
!
params
.
staffName
)
{
wx
.
$util
.
showToast
(
'请输入姓名'
)
return
wx
.
$util
.
showToast
(
'请输入姓名'
)
}
}
const
phoneRex
=
/^
[
1
]([
3-9
])[
0-9
]{9}
$/
const
phoneRex
=
/^
[
1
]([
3-9
])[
0-9
]{9}
$/
if
(
!
params
.
staffPhone
||
!
phoneRex
.
test
(
params
.
staffPhone
))
{
if
(
!
params
.
staffPhone
||
!
phoneRex
.
test
(
params
.
staffPhone
))
{
wx
.
$util
.
showToast
(
'请输入正确手机号'
)
return
wx
.
$util
.
showToast
(
'请输入正确手机号'
)
}
}
params
.
technicianName
=
params
.
staffName
params
.
technicianName
=
params
.
staffName
params
.
technicianPhone
=
params
.
staffPhone
params
.
technicianPhone
=
params
.
staffPhone
...
@@ -92,9 +105,15 @@ Page({
...
@@ -92,9 +105,15 @@ Page({
}
=
res
}
=
res
if
(
code
==
0
)
{
if
(
code
==
0
)
{
wx
.
$util
.
showToast
(
params
.
id
?
'修改成功'
:
'新增成功'
)
wx
.
$util
.
showToast
(
params
.
id
?
'修改成功'
:
'新增成功'
)
technicianList
[
index
].
isEdit
=
false
this
.
setData
({
this
.
setData
({
[
`technicianList[
${
index
}
].isEdit`
]:
false
[
`technicianList[
${
index
}
].isEdit`
]:
false
})
})
// let {}
debugger
let
isAllEdit
=
technicianList
.
every
(
item
=>
!
item
.
isEdit
)
isAllEdit
&&
wx
.
disableAlertBeforeUnload
()
}
else
{
}
else
{
wx
.
$util
.
showToast
(
message
)
wx
.
$util
.
showToast
(
message
)
}
}
...
@@ -249,14 +268,14 @@ Page({
...
@@ -249,14 +268,14 @@ Page({
* 生命周期函数--监听页面隐藏
* 生命周期函数--监听页面隐藏
*/
*/
onHide
()
{
onHide
()
{
// wx.disableAlertBeforeUnload()
},
},
/**
/**
* 生命周期函数--监听页面卸载
* 生命周期函数--监听页面卸载
*/
*/
onUnload
()
{
onUnload
()
{
// console.log(onUnload);
},
},
/**
/**
...
...
tabMine/pages/technicianSetup/technicianSetup.sass
View file @
2a34dcf
...
@@ -79,6 +79,8 @@ page {
...
@@ -79,6 +79,8 @@ page {
background
:
#FFFFFF
;
background
:
#FFFFFF
;
border
:
2rpx
solid
#DEE0E3
;
border
:
2rpx
solid
#DEE0E3
;
border-radius
:
12rpx
;
border-radius
:
12rpx
;
margin-left
:
12rpx
;
margin-right
:
auto
;
}
}
.btn
{
.btn
{
...
@@ -113,11 +115,12 @@ page {
...
@@ -113,11 +115,12 @@ page {
font-size
:
20rpx
;
font-size
:
20rpx
;
background
:
#EAF1FF
;
background
:
#EAF1FF
;
border
:
1rpx
solid
#347bff
80
;
border
:
1rpx
solid
#347bff
80
;
padding
:
4rpx
1
6
rpx
;
padding
:
4rpx
1
4
rpx
;
font-family
:
PingFangSC-SNaNrpxibold
;
font-family
:
PingFangSC-SNaNrpxibold
;
font-weight
:
600
;
font-weight
:
600
;
font-size
:
20rpx
;
font-size
:
20rpx
;
color
:
#347BFF
;
color
:
#347BFF
;
border-radius
:
4rpx
;
}
}
}
}
...
@@ -147,6 +150,6 @@ page {
...
@@ -147,6 +150,6 @@ page {
color
:
#BEC1C7
;
color
:
#BEC1C7
;
}
}
.disabled
{
.disabled
{
opacity
:
.5
;
opacity
:
.5
;
}
}
\ No newline at end of file
\ No newline at end of file
tabMine/pages/technicianSetup/technicianSetup.wxml
View file @
2a34dcf
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<view class="merchantNameCon">
<view class="merchantNameCon">
<view class="name">{{userInfo.merchantName}}</view>
<view class="name">{{userInfo.merchantName}}</view>
<view class="addIcon {{userInfo.userType == 2 ?'disabled':''}}" bind:tap="addTechnicalItem">
<view class="addIcon {{userInfo.userType == 2 ?'disabled':''}}" bind:tap="addTechnicalItem">
<image class="icon-plus" src="{{IMG_URL}}/miniProgram/icon
-p
lus.png" />
<image class="icon-plus" src="{{IMG_URL}}/miniProgram/icon
BoldP
lus.png" />
技师
技师
</view>
</view>
</view>
</view>
...
...
tabWorkOrder/pages/defeatOrder/defeatOrder.js
View file @
2a34dcf
This diff is collapsed.
Click to expand it.
tabWorkOrder/pages/defeatOrder/defeatOrder.wxml
View file @
2a34dcf
...
@@ -476,7 +476,8 @@
...
@@ -476,7 +476,8 @@
</view>
</view>
</block>
</block>
<view class="addBtn" bindtap="addUserItem" id="addBtn" wx:if="{{ notUpgradeOrderList.length < 10 }}">
<view class="addBtn" bindtap="addUserItem" id="addBtn" wx:if="{{ notUpgradeOrderList.length < 10 }}">
<image class="addIcon" src="../../images/addIcon.png" mode="scaleToFill|aspectFit|aspectFill|widthFix" />
<!-- <image class="addIcon" src="../../images/addIcon.png" mode="scaleToFill|aspectFit|aspectFill|widthFix" /> -->
<image class="addIcon" src="{{IMG_URL}}/miniProgram/iconBoldPlus.png" />
<text class="text">新增客户<text class="customerNum">(已有{{notUpgradeOrderList.length?notUpgradeOrderList.length:''}}个)</text></text>
<text class="text">新增客户<text class="customerNum">(已有{{notUpgradeOrderList.length?notUpgradeOrderList.length:''}}个)</text></text>
</view>
</view>
</scroll-view>
</scroll-view>
...
...
tabWorkOrder/pages/orderDetail/orderDetail.js
View file @
2a34dcf
This diff is collapsed.
Click to expand it.
tabWorkOrder/pages/orderDetail/orderDetail.wxml
View file @
2a34dcf
<!-- 确认施工 -->
<!-- 确认施工 -->
<wxs src="../../index.wxs" module="filter" />
<wxs src="../../index.wxs" module="filter" />
<glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<block wx:if="{{flag}}">
<!-- wx:if="{{flag}}" -->
<block>
<view class="main {{isFullSucreen?'isFullSucreen':''}}">
<view class="main {{isFullSucreen?'isFullSucreen':''}}">
<view class="status-box" wx:if="{{orderInfo.status!=10&&orderInfo.status!=9}}">
<view class="status-box" wx:if="{{orderInfo.status!=10&&orderInfo.status!=9}}">
<view class="content">客户已付款</view>
<view class="content">客户已付款</view>
...
@@ -45,18 +46,22 @@
...
@@ -45,18 +46,22 @@
</view>
</view>
<!-- 设置膜卷号(不需走签名 战败订单) -->
<!-- 设置膜卷号(不需走签名 战败订单) -->
<view wx:if="{{(!signatureSwitch || orderInfo.selectPayType == 0) && isUseFilmRoll && item.filmNumberData.length}}" class="film-roll disabled" bindtap="selectfilmRollNo" data-item="{{item}}" data-index="{{index}}">
<view wx:if="{{(!signatureSwitch || orderInfo.selectPayType == 0) && isUseFilmRoll && item.filmNumberData.length}}" class="film-roll disabled" bindtap="selectfilmRollNo" data-item="{{item}}" data-index="{{index}}">
<text class="{{!item.filmRollNo ? 'grey_text' : ''}} 'text-hide'">{{item.filmRollNo || '选择膜卷号'}}</text><image src="/components/images/arrow-x.png" mode=""/>
<text class="{{!item.filmRollNo ? 'grey_text' : ''}} 'text-hide'">{{item.filmRollNo || '选择膜卷号'}}</text>
<image src="/components/images/arrow-x.png" mode="" />
</view>
</view>
<!-- 太阳膜类且配置技师 -->
<!-- 太阳膜类且配置技师 -->
<view wx:if="{{orderInfo.isOpenArtificer && item.upgradeGoodsPosition}}" class="artificer" bindtap="selectArtificer" data-item="{{item}}">
<view wx:if="{{orderInfo.isOpenArtificer && item.upgradeGoodsPosition}}" class="artificer" bindtap="selectArtificer" data-item="{{item}}">
<text class="{{!item.technicianName ? 'grey_text' : ''}} 'text-hide'">{{item.technicianName || '选择技师'}}</text><image src="/components/images/arrow-x.png" mode=""/>
<text class="{{!item.technicianName ? 'grey_text' : ''}} 'text-hide'">{{item.technicianName || '选择技师'}}</text>
<image src="/components/images/arrow-x.png" mode="" />
</view>
</view>
</view>
</view>
</view>
</view>
</block>
</block>
</view>
</view>
<view class="cell">
<view class="cell">
<view class="label icon"><image src="../../images/voucher_icon.png" mode=""/></view>
<view class="label icon">
<image src="../../images/voucher_icon.png" mode="" />
</view>
<view class="value">
<view class="value">
{{orderInfo.couponName || ''}}{{orderInfo.customerCoupon.customerCouponCode ||''}}({{orderInfo.customerCoupon.employeeName || ''}})
{{orderInfo.couponName || ''}}{{orderInfo.customerCoupon.customerCouponCode ||''}}({{orderInfo.customerCoupon.employeeName || ''}})
</view>
</view>
...
@@ -114,24 +119,20 @@
...
@@ -114,24 +119,20 @@
<view class="box customer">
<view class="box customer">
<view class="title userTitle">
<view class="title userTitle">
<text>客户信息</text>
<text>客户信息</text>
<view bindtap="jumpUserPortrait" class="updateInfo icon"><image src="{{IMG_URL}}miniProgram/custom_portrait_icon.png" class="iconImage" ></image>画像</view>
<view bindtap="jumpUserPortrait" class="updateInfo icon">
<view wx:if="{{isYqdSuper||isStaff}}" bindtap="jumpUpdate" class="updateInfo "><image src="{{IMG_URL}}miniProgram/edit_icon.png" class="iconImage" ></image>客户信息</view>
<image src="{{IMG_URL}}miniProgram/custom_portrait_icon.png" class="iconImage"></image>画像
</view>
<view wx:if="{{isYqdSuper||isStaff}}" bindtap="jumpUpdate" class="updateInfo ">
<image src="{{IMG_URL}}miniProgram/edit_icon.png" class="iconImage"></image>客户信息
</view>
</view>
</view>
<block wx:for="{{customerObj}}" wx:key="index">
<block wx:for="{{customerObj}}" wx:key="index">
<view class="cell">
<view class="cell">
<view class="label">{{item.label}}</view>
<view class="label">{{item.label}}</view>
<view
<view class="value" style="color:{{item.color|| '#333'}};" catchtap="{{item.callBack}}" data-data="{{orderInfo[item.key]}}">
class="value"
style="color:{{item.color|| '#333'}};"
catchtap="{{item.callBack}}"
data-data="{{orderInfo[item.key]}}">
<block wx:if="{{item.arr}}">
<block wx:if="{{item.arr}}">
<block wx:if="{{orderInfo[item.arr[1]]}}">
<block wx:if="{{orderInfo[item.arr[1]]}}">
<block
<block wx:for="{{item.arr}}" wx:key="ind" wx:for-index="ind" wx:for-item="i">
wx:for="{{item.arr}}"
wx:key="ind"
wx:for-index="ind"
wx:for-item="i">
<view class="value-item text-hide">
<view class="value-item text-hide">
<text wx:if="{{ind == 1}}">|</text>
<text wx:if="{{ind == 1}}">|</text>
{{orderInfo[i]}}
{{orderInfo[i]}}
...
@@ -238,17 +239,6 @@
...
@@ -238,17 +239,6 @@
</block>
</block>
</block>
</block>
<order-popup orderType="4" show="{{showPopup}}" />
<order-popup orderType="4" show="{{showPopup}}" />
<artificer-select-popup
<artificer-select-popup show="{{artificerSelectPopup}}" title="选择技师" copyArtificerList="{{artificerList}}" orderInfo="{{orderInfo}}" artificerSelectObj="{{artificerSelectObj}}" bindconfirm="changeArtificer" />
show="{{artificerSelectPopup}}"
title="选择技师"
copyArtificerList="{{artificerList}}"
orderInfo="{{orderInfo}}"
artificerSelectObj="{{artificerSelectObj}}"
bindconfirm="changeArtificer" />
<!-- <wxs src="/utils/index.wxs" module="common" /> -->
<!-- <wxs src="/utils/index.wxs" module="common" /> -->
<film-roll-no-popup
<film-roll-no-popup show="{{filmRollNoPopup}}" title="选择膜卷号" copyfilmRollNoList="{{filmRollNoList}}" filmSelectedItem="{{filmSelectedItem}}" bindconfirm="changefilmRollNo" />
show="{{filmRollNoPopup}}"
title="选择膜卷号"
copyfilmRollNoList="{{filmRollNoList}}"
filmSelectedItem="{{filmSelectedItem}}"
bindconfirm="changefilmRollNo" />
\ No newline at end of file
\ No newline at end of file
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