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 56cf94ad
authored
Feb 18, 2025
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'develop' into 'master'
上线合并 See merge request
!362
2 parents
9e571bff
f8851b1a
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
260 additions
and
72 deletions
packageEquity/api.js
packageEquity/pages/carQuotation/components/zyPayPopup/zyPayPopup.js
packageEquity/pages/carQuotation/components/zyPayPopup/zyPayPopup.sass
packageEquity/pages/carQuotation/components/zyPayPopup/zyPayPopup.wxml
packageEquity/pages/carQuotation/createOrderCarQuotationSimple/createOrderCarQuotationSimple.js
packageEquity/pages/carQuotation/index/index.js
packageEquity/pages/carQuotation/index/index.wxml
packageEquity/pages/carQuotation/index/index.wxss
pages/webView/webView.js
pages/webView/webView.wxml
tabWorkOrder/pages/staffDaily/staffDaily.js
tabWorkOrder/pages/upgradeStaffDaily/upgradeStaffDaily.js
utils/request/request.js
packageEquity/api.js
View file @
56cf94a
...
@@ -219,5 +219,9 @@ module.exports = {
...
@@ -219,5 +219,9 @@ module.exports = {
// 更新客户签名
// 更新客户签名
updateCustomerNameUrlAPI
(
data
)
{
updateCustomerNameUrlAPI
(
data
)
{
return
api
.
post
(
"dj.api.smartcarlife.vehicle.damage.upgrade.equityOrder.updateCustomerNameUrl"
,
data
)
return
api
.
post
(
"dj.api.smartcarlife.vehicle.damage.upgrade.equityOrder.updateCustomerNameUrl"
,
data
)
},
// 校验流水号
checkRecord
(
data
)
{
return
api
.
post
(
"dj.api.smartcarlife.vehicle.damage.upgrade.quotation.record.check"
,
data
)
}
}
}
}
packageEquity/pages/carQuotation/components/zyPayPopup/zyPayPopup.js
View file @
56cf94a
...
@@ -15,8 +15,10 @@ Component({
...
@@ -15,8 +15,10 @@ Component({
if
(
n
)
{
if
(
n
)
{
let
sysInfo
=
wx
.
getSystemInfoSync
()
let
sysInfo
=
wx
.
getSystemInfoSync
()
// sysInfo.environment 1 企业微信打开 0微信打开
// sysInfo.environment 1 企业微信打开 0微信打开
// sysInfo.platform === 'windows' || sysInfo.platform === 'mac' || sysInfo.platform === 'linux' 是否pc端打开
this
.
setData
({
this
.
setData
({
envName
:
sysInfo
.
environment
?
1
:
0
envName
:
sysInfo
.
environment
?
1
:
0
,
envPlat
:
sysInfo
.
platform
===
'windows'
||
sysInfo
.
platform
===
'mac'
||
sysInfo
.
platform
===
'linux'
?
1
:
0
})
})
}
}
}
}
...
@@ -53,27 +55,30 @@ Component({
...
@@ -53,27 +55,30 @@ Component({
let
_this
=
this
let
_this
=
this
let
{
fileList
}
=
_this
.
data
let
{
fileList
}
=
_this
.
data
wx
.
chooseImage
({
wx
.
chooseImage
({
count
:
1
,
count
:
9
-
fileList
?.
length
,
success
(
res
)
{
success
(
res
)
{
let
[
tempFiles
]
=
res
.
tempFilePaths
let
imgType
=
tempFiles
.
split
(
'.'
)[
1
]
let
type
=
imgType
==
'unknown'
?
'jpg'
:
imgType
_this
.
setData
({
_this
.
setData
({
loadingFlag
:
true
loadingFlag
:
true
})
})
const
uploadImages
=
async
(
tempFilePaths
)
=>
{
try
{
for
(
const
val
of
tempFilePaths
)
{
const
imgType
=
val
.
split
(
'.'
)[
1
]
const
type
=
imgType
===
'unknown'
?
'jpg'
:
imgType
const
_res
=
await
new
Promise
((
resolve
,
reject
)
=>
{
wx
.
getFileSystemManager
().
readFile
({
wx
.
getFileSystemManager
().
readFile
({
filePath
:
tempFiles
,
//选择图片返回的相对路径
filePath
:
val
,
// 选择图片返回的相对路径
encoding
:
'base64'
,
//编码格式
encoding
:
'base64'
,
// 编码格式
success
(
_res
)
{
success
:
resolve
,
api
.
uploadImg
({
fail
:
reject
})
})
const
img
=
await
api
.
uploadImg
({
file
:
`
${
type
}
@
${
_res
.
data
}
`
file
:
`
${
type
}
@
${
_res
.
data
}
`
}).
then
(
img
=>
{
_this
.
setData
({
loadingFlag
:
false
})
})
le
t
{
code
,
data
,
message
}
=
img
cons
t
{
code
,
data
,
message
}
=
img
if
(
code
==
0
)
{
if
(
code
==
0
)
{
fileList
.
push
({
url
:
data
})
fileList
.
push
({
url
:
data
})
_this
.
setData
({
_this
.
setData
({
fileList
,
fileList
,
showChangeFileType
:
false
,
showChangeFileType
:
false
,
...
@@ -82,14 +87,16 @@ Component({
...
@@ -82,14 +87,16 @@ Component({
}
else
{
}
else
{
wx
.
$util
.
showToast
(
message
)
wx
.
$util
.
showToast
(
message
)
}
}
})
}
},
}
catch
(
error
)
{
fail
()
{
wx
.
$util
.
showToast
(
"上传失败,请重试"
)
}
finally
{
_this
.
setData
({
_this
.
setData
({
loadingFlag
:
false
loadingFlag
:
false
})
})
}
}
})
}
uploadImages
(
res
?.
tempFilePaths
)
}
}
})
})
},
},
...
@@ -97,13 +104,38 @@ Component({
...
@@ -97,13 +104,38 @@ Component({
// 图片预览
// 图片预览
previewImage
(
e
)
{
previewImage
(
e
)
{
let
{
url
,
index
}
=
e
.
currentTarget
.
dataset
let
{
url
,
index
}
=
e
.
currentTarget
.
dataset
let
imageUrl
=
url
?.
map
(
v
=>
{
return
v
.
url
})
wx
.
previewImage
({
wx
.
previewImage
({
urls
:
u
rl
,
urls
:
imageU
rl
,
current
:
u
rl
[
index
]
current
:
imageU
rl
[
index
]
})
})
},
},
uploadPDFs
()
{
async
uploadPDFs
()
{
let
{
envPlat
,
envName
}
=
this
.
data
if
(
envPlat
==
1
||
envName
==
1
)
{
// 企微或在pc端打开登录小程序使用跳转h5上传方式
this
.
setData
({
showChangeFileType
:
false
,
show
:
false
})
const
{
zyWebViewUrl
}
=
await
wx
.
$util
.
getMockData
()
let
path
=
`
${
zyWebViewUrl
}
/#/zyUpload`
return
wx
.
navigateTo
({
url
:
`/pages/webView/webView?url=
${
encodeURIComponent
(
path
)}
`
,
events
:
{
webViewMessage
:
(
data
)
=>
{
if
(
data
==
'cancel'
)
{
// 稍后补录
return
this
.
close
(
''
,
2
)
}
else
{
// 确认上传
this
.
setData
({
fileList
:
[
data
]
})
this
.
confirm
(
''
,
2
)
}
}
}
})
}
else
{
// 移动端微信打开使用打开微信会话选择文件方式
let
_this
=
this
let
_this
=
this
let
{
fileList
}
=
_this
.
data
let
{
fileList
}
=
_this
.
data
wx
.
chooseMessageFile
({
wx
.
chooseMessageFile
({
...
@@ -157,34 +189,38 @@ Component({
...
@@ -157,34 +189,38 @@ Component({
console
.
error
(
'选择文件失败'
,
err
);
console
.
error
(
'选择文件失败'
,
err
);
}
}
})
})
}
},
},
deleteFile
(
e
)
{
deleteFile
(
e
)
{
this
.
setData
({
let
{
index
}
=
e
.
currentTarget
.
dataset
fileList
:
[]
let
{
fileList
}
=
this
.
data
})
fileList
.
splice
(
index
,
1
)
this
.
setData
({
fileList
})
},
},
closeChangeUploadType
()
{
closeChangeUploadType
()
{
this
.
setData
({
showChangeFileType
:
false
})
this
.
setData
({
showChangeFileType
:
false
})
},
},
close
()
{
close
(
e
,
pageBackNum
)
{
// pageBackNum 从h5返回页面层级数
let
{
isListShow
}
=
this
.
data
let
{
isListShow
}
=
this
.
data
if
(
isListShow
)
return
this
.
setData
({
show
:
false
,
fileList
:
[]})
if
(
isListShow
)
return
this
.
setData
({
show
:
false
,
fileList
:
[]})
let
thisPage
=
wx
.
$router
.
getPageInstance
()
let
thisPage
=
wx
.
$router
.
getPageInstance
(
pageBackNum
||
1
)
thisPage
.
setData
({
thisPage
.
setData
({
[
'orderInfo.zyPayUrl'
]:
''
,
[
'orderInfo.zyPayUrl'
]:
''
,
confirmStatus
:
false
confirmStatus
:
false
})
})
thisPage
.
handleSecondConfirm
(
'cancel'
)
thisPage
.
handleSecondConfirm
(
'cancel'
)
},
},
confirm
(
e
)
{
confirm
(
e
,
pageBackNum
)
{
// pageBackNum 从h5返回页面层级数
let
{
fileList
,
isListShow
}
=
this
.
data
let
{
fileList
,
isListShow
}
=
this
.
data
let
thisPage
=
wx
.
$router
.
getPageInstance
()
let
thisPage
=
wx
.
$router
.
getPageInstance
(
pageBackNum
||
1
)
if
(
fileList
.
length
)
{
if
(
fileList
.
length
)
{
if
(
isListShow
)
{
if
(
isListShow
)
{
this
.
triggerEvent
(
'confirm'
,
{
zyPayUrl
:
fileList
.
map
(
item
=>
item
.
url
)
[
0
]
})
this
.
triggerEvent
(
'confirm'
,
{
zyPayUrl
:
fileList
.
map
(
item
=>
item
.
url
)})
}
else
{
}
else
{
thisPage
.
setData
({
thisPage
.
setData
({
[
'orderInfo.zyPayUrl'
]:
fileList
.
map
(
item
=>
item
.
url
)
[
0
]
,
[
'orderInfo.zyPayUrl'
]:
fileList
.
map
(
item
=>
item
.
url
)
?.
join
(
','
)
,
confirmStatus
:
false
confirmStatus
:
false
})
})
thisPage
.
handleSecondConfirm
()
thisPage
.
handleSecondConfirm
()
...
...
packageEquity/pages/carQuotation/components/zyPayPopup/zyPayPopup.sass
View file @
56cf94a
...
@@ -15,8 +15,8 @@
...
@@ -15,8 +15,8 @@
}
}
}
}
.upload_content
{
.upload_content
{
width
:
var
(
--
fontSize
192
)
;
width
:
var
(
--
fontSize
200
)
;
height
:
var
(
--
fontSize
192
)
;
height
:
var
(
--
fontSize
200
)
;
background
:
#F5F5F7
;
background
:
#F5F5F7
;
border-radius
:
var
(
--
fontSize8
)
;
border-radius
:
var
(
--
fontSize8
)
;
display
:
flex
;
display
:
flex
;
...
@@ -33,12 +33,17 @@
...
@@ -33,12 +33,17 @@
margin-top
:
var
(
--
fontSize20
)
;
margin-top
:
var
(
--
fontSize20
)
;
}
}
}
}
.content_box
{
display
:
flex
;
flex-wrap
:
wrap
;
gap
:
var
(
--
fontSize20
)
;
}
.image_content
{
.image_content
{
display
:
inline-block
;
display
:
inline-block
;
position
:
relative
;
position
:
relative
;
.image_box
{
.image_box
{
width
:
var
(
--
fontSize
192
)
;
width
:
var
(
--
fontSize
200
)
;
height
:
var
(
--
fontSize
192
)
;
height
:
var
(
--
fontSize
200
)
;
}
}
.del_icon
{
.del_icon
{
width
:
var
(
--
fontSize36
)
;
width
:
var
(
--
fontSize36
)
;
...
...
packageEquity/pages/carQuotation/components/zyPayPopup/zyPayPopup.wxml
View file @
56cf94a
...
@@ -21,9 +21,15 @@
...
@@ -21,9 +21,15 @@
<block wx:else>
<block wx:else>
<view class="tips-text">已上传</view>
<view class="tips-text">已上传</view>
<block wx:if="{{fileType == 'image'}}">
<block wx:if="{{fileType == 'image'}}">
<view class="content_box">
<view class="image_content" wx:for="{{fileList}}" wx:key="index">
<view class="image_content" wx:for="{{fileList}}" wx:key="index">
<image bindtap="previewImage" class="image_box" data-url="{{[item.url]}}" data-index="{{index}}" src="{{item.url}}"/>
<image bindtap="previewImage" class="image_box" data-url="{{fileList}}" data-index="{{index}}" src="{{item.url}}"/>
<image class="del_icon" src="{{IMG_URL}}zy_del_icon.png" mode="" bindtap="deleteFile"/>
<image class="del_icon" src="{{IMG_URL}}zy_del_icon.png" mode="" bindtap="deleteFile" data-index="{{index}}" />
</view>
<view class="upload_content" bindtap="uploadImages" wx:if="{{fileList.length < 9}}">
<image src="{{IMG_URL}}zy-upload_icon.png"></image>
<text class="text">最多9张</text>
</view>
</view>
</view>
</block>
</block>
<block wx:else>
<block wx:else>
...
@@ -50,7 +56,7 @@
...
@@ -50,7 +56,7 @@
<view class="popup-content">
<view class="popup-content">
<view class="title">请选择</view>
<view class="title">请选择</view>
<view class="popup-item" bindtap="uploadImages">上传图片</view>
<view class="popup-item" bindtap="uploadImages">上传图片</view>
<view class="popup-item"
wx:if="{{envName != 1}}"
bindtap="uploadPDFs">上传PDF</view>
<view class="popup-item" bindtap="uploadPDFs">上传PDF</view>
</view>
</view>
</van-popup>
</van-popup>
</block>
</block>
...
...
packageEquity/pages/carQuotation/createOrderCarQuotationSimple/createOrderCarQuotationSimple.js
View file @
56cf94a
...
@@ -10,7 +10,8 @@ import {
...
@@ -10,7 +10,8 @@ import {
errorOrderById
,
errorOrderById
,
staffDailyReportMerchantValid
,
staffDailyReportMerchantValid
,
updateOrderStatus
,
updateOrderStatus
,
orderSettingList
orderSettingList
,
checkRecord
}
from
"../../../api"
;
}
from
"../../../api"
;
import
{
quotedImgUrl
}
from
"~/config"
;
import
{
quotedImgUrl
}
from
"~/config"
;
import
dataForm
from
'../components/constant/stepData'
import
dataForm
from
'../components/constant/stepData'
...
@@ -494,14 +495,25 @@ Page({
...
@@ -494,14 +495,25 @@ Page({
// 门店收款且是智界/享界车型 弹出上传延保协议
// 门店收款且是智界/享界车型 弹出上传延保协议
try
{
try
{
return
new
Promise
(
async
(
resolve
,
reject
)
=>
{
return
new
Promise
(
async
(
resolve
,
reject
)
=>
{
// 当延保协议弹窗点击稍后补录会传值detail:cancel, 提交表单时不会重复弹出延保协议弹出
// 当延保协议弹窗点击稍后补录会传值detail:cancel, 提交表单时不会重复弹出延保协议弹出 标记错误订单的补录时无需上传延保协议
if
(
check
&&
orderInfo
.
payType
==
2
&&
carBrandList
?.
includes
(
orderInfo
?.
owner
?.
carChildsBrandId
)
&&
detail
!=
'cancel'
&&
!
orderInfo
?.
zyPayUrl
)
{
if
(
check
&&
orderInfo
.
payType
==
2
&&
carBrandList
?.
includes
(
orderInfo
?.
owner
?.
carChildsBrandId
)
&&
detail
!=
'cancel'
&&
!
orderInfo
?.
zyPayUrl
&&
!
orderInfo
.
resetOrder
)
{
// 添加流水号校验
wx
.
hideLoading
()
wx
.
hideLoading
()
let
result
=
await
checkRecord
({
transactionNo
:
orderInfo
.
transactionNo
})
let
{
code
,
message
}
=
result
if
(
code
==
0
)
{
this
.
setData
({
this
.
setData
({
showPopup
:
false
showPopup
:
false
})
})
reject
()
reject
()
return
this
.
setData
({
showZyPopup
:
true
})
return
this
.
setData
({
showZyPopup
:
true
})
}
else
{
reject
()
this
.
setData
({
confirmStatus
:
false
})
return
wx
.
$util
.
showToast
(
message
)
}
}
}
// let { orderInfo } = this.data
// let { orderInfo } = this.data
console
.
log
(
"调接口---"
);
console
.
log
(
"调接口---"
);
...
...
packageEquity/pages/carQuotation/index/index.js
View file @
56cf94a
...
@@ -7,7 +7,8 @@ import {
...
@@ -7,7 +7,8 @@ import {
orderStatistics
,
orderStatistics
,
cancelOrderById
,
cancelOrderById
,
getQuotationInfoById
,
getQuotationInfoById
,
updateCustomerInfo
updateCustomerInfo
,
errorOrderById
}
from
"../../../api"
;
}
from
"../../../api"
;
import
{
checkDailyReport
}
from
"~/store/ModalToQueueControl"
;
import
{
checkDailyReport
}
from
"~/store/ModalToQueueControl"
;
import
data
from
"../constant/data"
;
import
data
from
"../constant/data"
;
...
@@ -147,7 +148,8 @@ Component({
...
@@ -147,7 +148,8 @@ Component({
repealVisible
:
false
,
repealVisible
:
false
,
repealReason
:
''
,
repealReason
:
''
,
repealId
:
''
,
repealId
:
''
,
zyPayStatus
:
''
// 延保协议状态
zyPayStatus
:
''
,
// 延保协议状态
selectType
:
1
},
},
observers
:
{
observers
:
{
mode
:
function
(
value
)
{
mode
:
function
(
value
)
{
...
@@ -353,8 +355,9 @@ Component({
...
@@ -353,8 +355,9 @@ Component({
item
.
isTouchMove
=
false
;
item
.
isTouchMove
=
false
;
// onlyRepeal 战败且为超管,或者是待报价、待支付的非融合都可撤销
// onlyRepeal 战败且为超管,或者是待报价、待支付的非融合都可撤销
item
.
onlyRepeal
=
((
item
.
orderStatus
==
2
||
item
.
orderStatus
==
0
)
||
(
item
.
orderStatus
==
-
1
&&
this
.
data
.
userInfo
.
isSuper
))
&&
item
.
mode
!=
0
;
item
.
onlyRepeal
=
((
item
.
orderStatus
==
2
||
item
.
orderStatus
==
0
)
||
(
item
.
orderStatus
==
-
1
&&
this
.
data
.
userInfo
.
isSuper
))
&&
item
.
mode
!=
0
;
// 待上传的支持可撤销
item
.
repeal
=
item
.
repeal
=
((
item
.
orderStatus
==
3
||
item
.
orderStatus
==
5
)
&&
((
item
.
orderStatus
==
3
||
item
.
orderStatus
==
5
||
item
.
orderStatus
==
7
)
&&
item
.
mode
!=
0
)
||
item
.
onlyRepeal
;
item
.
mode
!=
0
)
||
item
.
onlyRepeal
;
return
item
;
return
item
;
});
});
...
@@ -457,6 +460,11 @@ Component({
...
@@ -457,6 +460,11 @@ Component({
zyPayStatus
:
e
.
detail
==
(
tabList
?.
length
-
1
)
&&
!
e
.
zyPayStatus
?
1
:
e
.
zyPayStatus
?
e
.
zyPayStatus
:
''
,
// 当tab选中最后一项或筛选页面存在值
zyPayStatus
:
e
.
detail
==
(
tabList
?.
length
-
1
)
&&
!
e
.
zyPayStatus
?
1
:
e
.
zyPayStatus
?
e
.
zyPayStatus
:
''
,
// 当tab选中最后一项或筛选页面存在值
list
:
[]
list
:
[]
});
});
const
thisPage
=
wx
.
$router
.
getPageInstance
();
thisPage
.
setData
({
orderStatus
,
zyPayStatus
:
e
.
detail
==
(
tabList
?.
length
-
1
)
&&
!
e
.
zyPayStatus
?
1
:
e
.
zyPayStatus
?
e
.
zyPayStatus
:
''
})
this
.
search
();
this
.
search
();
this
.
getOrderStatistics
();
this
.
getOrderStatistics
();
},
},
...
@@ -466,6 +474,9 @@ Component({
...
@@ -466,6 +474,9 @@ Component({
console
.
log
(
target
);
console
.
log
(
target
);
// 上传延保协议
// 上传延保协议
if
(
target
?.
zyPayStatus
==
'1'
&&
type
==
'upload'
)
{
if
(
target
?.
zyPayStatus
==
'1'
&&
type
==
'upload'
)
{
// 校验是否填写昨日日报
let
staffCheck
=
await
checkDailyReport
(
true
);
if
(
staffCheck
)
return
false
;
return
this
.
setData
({
showZyPayPopup
:
true
,
showZyTarget
:
target
})
return
this
.
setData
({
showZyPayPopup
:
true
,
showZyTarget
:
target
})
}
}
// wx.$router.go('createOrderCarQuotation', {
// wx.$router.go('createOrderCarQuotation', {
...
@@ -576,15 +587,20 @@ Component({
...
@@ -576,15 +587,20 @@ Component({
getQuotationInfoById
({
getQuotationInfoById
({
id
:
showZyTarget
?.
id
id
:
showZyTarget
?.
id
}).
then
(
res
=>
{
}).
then
(
res
=>
{
let
orderInfo
=
this
.
getInsurance
(
res
.
data
)
let
{
code
,
message
,
data
}
=
res
if
(
code
==
0
)
{
let
orderInfo
=
this
.
getInsurance
(
data
)
// 更新客户信息
// 更新客户信息
updateCustomerInfo
({...
orderInfo
,
zyPayUrl
:
e
.
detail
?.
zyPayUrl
}).
then
(
result
=>
{
updateCustomerInfo
({...
orderInfo
,
zyPayUrl
:
e
.
detail
?.
zyPayUrl
?.
join
(
','
)
}).
then
(
result
=>
{
this
.
setData
({
this
.
setData
({
showZyPayPopup
:
false
showZyPayPopup
:
false
},
()
=>
{
},
()
=>
{
this
.
search
()
this
.
search
()
})
})
})
})
}
else
{
wx
.
$util
.
showToast
(
message
)
}
})
})
},
},
remarkCancel
()
{
remarkCancel
()
{
...
@@ -896,6 +912,31 @@ Component({
...
@@ -896,6 +912,31 @@ Component({
title
:
"工单标记"
,
title
:
"工单标记"
,
tabTitleShow
:
false
,
tabTitleShow
:
false
,
success
:
(
res
)
=>
{
success
:
(
res
)
=>
{
this
.
showErrorType
(
item
);
},
error
:
()
=>
{
},
});
}
);
},
selectType
(
e
)
{
let
{
type
}
=
e
.
currentTarget
.
dataset
;
this
.
setData
({
selectType
:
type
,
});
},
// 确定是否要显示
showErrorType
(
item
)
{
wx
.
$modal
(
this
,
{
show
:
true
,
title
:
"请选择录单入口"
,
tabTitleShow
:
false
,
success
:
(
res
)
=>
{
// 跳转新增订单页面 并带特定参数
let
{
selectType
}
=
this
.
data
;
if
(
selectType
==
1
)
{
wx
.
$router
.
go
(
wx
.
$router
.
go
(
item
.
mode
!=
0
item
.
mode
!=
0
?
"createOrderCarQuotationSimple"
?
"createOrderCarQuotationSimple"
...
@@ -905,10 +946,23 @@ Component({
...
@@ -905,10 +946,23 @@ Component({
resetOrder
:
true
,
resetOrder
:
true
,
}
}
);
);
}
else
{
// 无需补录
errorOrderById
({
oldQuotationId
:
item
.
id
,
needCreateNewOrder
:
false
}).
then
(
res
=>
{
let
{
code
,
message
}
=
res
if
(
code
==
0
)
{
this
.
search
()
}
else
{
wx
.
$util
.
showToast
(
message
)
}
}).
catch
(()
=>
{
})
}
},
},
error
:
()
=>
{
},
error
:
()
=>
{
},
});
},
}
"#modal2"
);
);
},
},
jumpReception
(
e
)
{
jumpReception
(
e
)
{
...
@@ -942,7 +996,7 @@ Component({
...
@@ -942,7 +996,7 @@ Component({
let
name
=
constantData
.
orderStatusList
.
find
(
let
name
=
constantData
.
orderStatusList
.
find
(
(
item
)
=>
item
.
confId
==
e
.
detail
.
orderStatus
(
item
)
=>
item
.
confId
==
e
.
detail
.
orderStatus
)?.
confName
;
)?.
confName
;
tabIndex
=
tabList
.
findIndex
((
item
)
=>
item
.
text
==
name
);
tabIndex
=
tabList
.
findIndex
((
item
)
=>
item
.
text
&&
item
.
text
==
name
);
if
(
tabIndex
==
-
1
)
tabIndex
=
0
;
if
(
tabIndex
==
-
1
)
tabIndex
=
0
;
}
}
if
(
e
.
detail
.
zyPayStatus
&&
e
.
detail
.
zyPayStatus
[
0
]
==
1
)
{
if
(
e
.
detail
.
zyPayStatus
&&
e
.
detail
.
zyPayStatus
[
0
]
==
1
)
{
...
...
packageEquity/pages/carQuotation/index/index.wxml
View file @
56cf94a
...
@@ -90,7 +90,7 @@
...
@@ -90,7 +90,7 @@
</block>
</block>
<view class="header-status">
<view class="header-status">
<!-- 待上传延保协议且是已支付的订单 -->
<!-- 待上传延保协议且是已支付的订单 -->
<block wx:if="{{item.zyPayStatus == 1 && (item.orderStatus == 3 || item.orderStatus == 4)}}">
<block wx:if="{{item.zyPayStatus == 1 && (item.orderStatus == 3 || item.orderStatus == 4
|| item.orderStatus == 7
)}}">
<view class="default-txt">待上传</view>
<view class="default-txt">待上传</view>
</block>
</block>
<block wx:else>
<block wx:else>
...
@@ -193,7 +193,7 @@
...
@@ -193,7 +193,7 @@
<view class="item-footer">
<view class="item-footer">
<!-- 超管isSuper/商户类型 userType 1账号不可操作 -->
<!-- 超管isSuper/商户类型 userType 1账号不可操作 -->
<block wx:if="{{ !userInfo.isSuper && userInfo.userType == 2||staffUuid }}">
<block wx:if="{{ !userInfo.isSuper && userInfo.userType == 2||staffUuid }}">
<block wx:if="{{ item.zyPayStatus == 1 && (item.orderStatus == 3 || item.orderStatus == 4) }}">
<block wx:if="{{ item.zyPayStatus == 1 && (item.orderStatus == 3 || item.orderStatus == 4
|| item.orderStatus == 7
) }}">
<view class="btn_class">
<view class="btn_class">
<block wx:if="{{ item.orderStatus != '0' }}">
<block wx:if="{{ item.orderStatus != '0' }}">
<view class="order-btn default-btn padding_20" bindtap="jumpReception" data-item="{{ item }}">接待记录</view>
<view class="order-btn default-btn padding_20" bindtap="jumpReception" data-item="{{ item }}">接待记录</view>
...
@@ -297,6 +297,18 @@
...
@@ -297,6 +297,18 @@
</view>
</view>
</view>
</view>
</modal>
</modal>
<modal id="modal2" class="modal" custom="true" btns="{{ ['取消','确定'] }}">
<view class="modatcontent">
<view class="modalbox {{ selectType == 1?'act': '' }} com" bindtap="selectType" data-type="1">
<gl-image class="icon" src="/miniProgram/order1.png"></gl-image>
新增工单
</view>
<view class="modalbox cancle {{ selectType == 2?'act': '' }}" bindtap="selectType" data-type="2">
<gl-image class="icon" src="/miniProgram/order2.png"></gl-image>
无需补单
</view>
</view>
</modal>
<view class="repeal-modal" wx:if="{{ repealVisible }}">
<view class="repeal-modal" wx:if="{{ repealVisible }}">
<view class="repeal-wrap">
<view class="repeal-wrap">
<view class="title">撤销原因</view>
<view class="title">撤销原因</view>
...
...
packageEquity/pages/carQuotation/index/index.wxss
View file @
56cf94a
...
@@ -778,7 +778,7 @@
...
@@ -778,7 +778,7 @@
.modatcontent {
.modatcontent {
box-sizing: border-box;
box-sizing: border-box;
padding: var(--fontSize48)
0
;
padding: var(--fontSize48);
}
}
.modal text,
.modal text,
...
@@ -799,6 +799,41 @@
...
@@ -799,6 +799,41 @@
color: #347BFF;
color: #347BFF;
}
}
.modal .icon {
width: var(--fontSize96);
height: var(--fontSize96);
margin-right: var(--fontSize30);
}
.modalbox {
display: flex;
align-items: center;
box-sizing: border-box;
width: var(--fontSize522);
height: var(--fontSize136);
background: #F7F8FA;
border-radius: var(--fontSize8);
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: var(--fontSize28);
color: #292D33;
padding-left: var(--fontSize24);
margin: 0 auto;
}
.modalbox:last-child {
margin-top: var(--fontSize16);
}
.act {
background: #347bff1a;
border: var(--fontSize2) solid #347BFF;
color: #3582EE;
}
.modatcontent {
padding: var(--fontSize50) var(--fontSize48) var(--fontSize32);
}
.copy_icon {
.copy_icon {
width: var(--fontSize28);
width: var(--fontSize28);
height: var(--fontSize28);
height: var(--fontSize28);
...
...
pages/webView/webView.js
View file @
56cf94a
...
@@ -4,7 +4,8 @@ Page({
...
@@ -4,7 +4,8 @@ Page({
* 页面的初始数据
* 页面的初始数据
*/
*/
data
:
{
data
:
{
flag
:
true
flag
:
true
,
isH5Bind
:
false
},
},
getParams
(
str
)
{
getParams
(
str
)
{
let
params
=
str
.
split
(
'?'
)
let
params
=
str
.
split
(
'?'
)
...
@@ -72,15 +73,35 @@ Page({
...
@@ -72,15 +73,35 @@ Page({
}
}
},
},
handleMessage
(
e
)
{
const
{
data
}
=
e
.
detail
;
// 将数据返回给跳转来源
if
(
data
)
{
const
eventChannel
=
this
.
getOpenerEventChannel
();
eventChannel
.
emit
(
'webViewMessage'
,
data
[
0
]);
// 发送数据
this
.
setData
({
isH5Bind
:
true
})
}
},
/**
/**
* 生命周期函数--监听页面卸载
* 生命周期函数--监听页面卸载
*/
*/
onUnload
:
function
()
{
onUnload
:
function
()
{
let
{
url
}
=
this
.
data
if
(
this
.
refresh
)
{
if
(
this
.
refresh
)
{
this
.
setData
({
this
.
setData
({
flag
:
false
flag
:
false
})
})
}
}
// 中邮上传延保协议页面
if
(
url
.
includes
(
'zyUpload'
))
{
const
eventChannel
=
this
.
getOpenerEventChannel
();
if
(
!
this
.
data
.
isH5Bind
)
{
eventChannel
.
emit
(
'webViewMessage'
,
'cancel'
);
// 发送数据
}
}
},
},
/**
/**
...
...
pages/webView/webView.wxml
View file @
56cf94a
<!-- <web-view src="{{url}}"></web-view> -->
<!-- <web-view src="{{url}}"></web-view> -->
<block wx:if="{{flag}}">
<block wx:if="{{flag}}">
<web-view src="{{url}}"></web-view>
<web-view src="{{url}}"
bindmessage="handleMessage"
></web-view>
</block>
</block>
\ No newline at end of file
\ No newline at end of file
tabWorkOrder/pages/staffDaily/staffDaily.js
View file @
56cf94a
...
@@ -75,7 +75,7 @@ Page({
...
@@ -75,7 +75,7 @@ Page({
},
},
showStorePicker
()
{
showStorePicker
()
{
let
{
userInfo
}
=
this
.
data
let
{
userInfo
}
=
this
.
data
;
(
userInfo
?.
isSuper
||
userInfo
?.
loginRole
==
3
||
userInfo
.
loginRole
==
5
)
&&
;
(
userInfo
?.
isSuper
||
userInfo
?.
loginRole
==
3
||
userInfo
?
.
loginRole
==
5
)
&&
this
.
setData
({
this
.
setData
({
showPicker
:
true
,
showPicker
:
true
,
pickerType
:
'merchant'
pickerType
:
'merchant'
...
@@ -83,7 +83,7 @@ Page({
...
@@ -83,7 +83,7 @@ Page({
},
},
showStaffPicker
()
{
showStaffPicker
()
{
let
{
userInfo
}
=
this
.
data
let
{
userInfo
}
=
this
.
data
;
(
userInfo
?.
isSuper
||
userInfo
?.
loginRole
==
3
||
userInfo
.
loginRole
==
5
)
&&
;
(
userInfo
?.
isSuper
||
userInfo
?.
loginRole
==
3
||
userInfo
?
.
loginRole
==
5
)
&&
this
.
setData
({
this
.
setData
({
showPicker
:
true
,
showPicker
:
true
,
pickerType
:
'staff'
pickerType
:
'staff'
...
@@ -201,7 +201,7 @@ Page({
...
@@ -201,7 +201,7 @@ Page({
.
staffDailyReportApprove
(
params
)
.
staffDailyReportApprove
(
params
)
.
then
(
res
=>
{
.
then
(
res
=>
{
wx
.
$util
.
hideLoading
()
wx
.
$util
.
hideLoading
()
//
console.log(res)
console
.
log
(
res
)
let
{
code
,
data
,
message
}
=
res
let
{
code
,
data
,
message
}
=
res
if
(
code
==
0
)
{
if
(
code
==
0
)
{
this
.
setData
({
this
.
setData
({
...
@@ -338,7 +338,7 @@ Page({
...
@@ -338,7 +338,7 @@ Page({
}
=
this
.
data
}
=
this
.
data
// 在超管/区域督导未拿到门店或员工信息
// 在超管/区域督导未拿到门店或员工信息
if
(
if
(
(
userInfo
?.
isSuper
||
userInfo
?.
loginRole
==
3
||
userInfo
.
loginRole
==
5
)
&&
(
userInfo
?.
isSuper
||
userInfo
?.
loginRole
==
3
||
userInfo
?
.
loginRole
==
5
)
&&
(
!
yqMerchantId
||
!
merchantId
||
!
staffUuid
)
(
!
yqMerchantId
||
!
merchantId
||
!
staffUuid
)
)
)
return
return
...
@@ -385,7 +385,7 @@ Page({
...
@@ -385,7 +385,7 @@ Page({
}
=
this
.
data
}
=
this
.
data
// 在超管/区域督导未拿到门店或员工信息
// 在超管/区域督导未拿到门店或员工信息
if
(
if
(
(
userInfo
?.
isSuper
||
userInfo
?.
loginRole
==
3
||
userInfo
.
loginRole
==
5
)
&&
(
userInfo
?.
isSuper
||
userInfo
?.
loginRole
==
3
||
userInfo
?
.
loginRole
==
5
)
&&
(
!
yqMerchantId
||
!
merchantId
||
!
staffUuid
)
(
!
yqMerchantId
||
!
merchantId
||
!
staffUuid
)
)
)
return
return
...
@@ -419,7 +419,7 @@ Page({
...
@@ -419,7 +419,7 @@ Page({
}
=
this
.
data
}
=
this
.
data
// 在超管/区域督导未拿到门店或员工信息
// 在超管/区域督导未拿到门店或员工信息
if
(
if
(
(
userInfo
?.
isSuper
||
userInfo
?.
loginRole
==
3
||
userInfo
.
loginRole
==
5
)
&&
(
userInfo
?.
isSuper
||
userInfo
?.
loginRole
==
3
||
userInfo
?
.
loginRole
==
5
)
&&
(
!
yqMerchantId
||
!
merchantId
||
!
staffUuid
)
(
!
yqMerchantId
||
!
merchantId
||
!
staffUuid
)
)
)
return
return
...
@@ -444,10 +444,12 @@ Page({
...
@@ -444,10 +444,12 @@ Page({
},
},
async
getMerchantCarBandList
()
{
async
getMerchantCarBandList
()
{
let
{
orderObj
}
=
this
.
data
let
{
orderObj
}
=
this
.
data
if
(
!
orderObj
.
merchantId
)
return
false
;
// 请求对应的4s店车型
// 请求对应的4s店车型
let
result
=
await
api
.
staffDailyReportMerchantCarBand
({
let
result
=
await
api
.
staffDailyReportMerchantCarBand
({
merchantId
:
orderObj
.
merchantId
merchantId
:
orderObj
.
merchantId
})
})
console
.
log
(
result
,
'result'
);
let
{
code
,
data
}
=
result
let
{
code
,
data
}
=
result
let
reportType
=
0
let
reportType
=
0
let
carBandList
=
[]
let
carBandList
=
[]
...
@@ -913,7 +915,7 @@ Page({
...
@@ -913,7 +915,7 @@ Page({
this
.
setReportDate
()
this
.
setReportDate
()
setTimeout
(()
=>
{
setTimeout
(()
=>
{
// console.log(this.data.role, this.data
, 'roleOther');
console
.
log
(
this
.
data
.
role
,
'roleOther'
);
if
(
this
.
data
.
role
==
'other'
||
approvedSource
==
'3'
)
{
if
(
this
.
data
.
role
==
'other'
||
approvedSource
==
'3'
)
{
this
.
getMerchantCarBandList
()
this
.
getMerchantCarBandList
()
// this.getStaffReport();
// this.getStaffReport();
...
@@ -953,7 +955,7 @@ Page({
...
@@ -953,7 +955,7 @@ Page({
// this.getStaffDailyReportDetailWeeklyList();
// this.getStaffDailyReportDetailWeeklyList();
}
}
// console.log(userInfo.isSuper, 'userInfo.isSuper')
// console.log(userInfo.isSuper, 'userInfo.isSuper')
if
(
userInfo
?.
isSuper
||
userInfo
?.
loginRole
==
3
||
userInfo
.
loginRole
==
5
)
{
if
(
userInfo
?.
isSuper
||
userInfo
?.
loginRole
==
3
||
userInfo
?
.
loginRole
==
5
)
{
this
.
setData
({
this
.
setData
({
role
:
'super'
role
:
'super'
})
})
...
@@ -1059,7 +1061,7 @@ Page({
...
@@ -1059,7 +1061,7 @@ Page({
if
(
options
.
approvedSource
==
'3'
)
{
if
(
options
.
approvedSource
==
'3'
)
{
role
=
'staff'
role
=
'staff'
}
else
{
}
else
{
//
role = "other";
role
=
"other"
;
}
}
this
.
setData
(
this
.
setData
(
...
@@ -1118,7 +1120,7 @@ Page({
...
@@ -1118,7 +1120,7 @@ Page({
if
(
options
.
approvedSource
==
'3'
)
{
if
(
options
.
approvedSource
==
'3'
)
{
role
=
'staff'
role
=
'staff'
}
else
{
}
else
{
//
role = "other";
role
=
"other"
;
}
}
this
.
setData
(
this
.
setData
(
...
...
tabWorkOrder/pages/upgradeStaffDaily/upgradeStaffDaily.js
View file @
56cf94a
...
@@ -65,7 +65,7 @@ Page({
...
@@ -65,7 +65,7 @@ Page({
},
},
showStorePicker
()
{
showStorePicker
()
{
let
{
userInfo
}
=
this
.
data
;
let
{
userInfo
}
=
this
.
data
;
(
userInfo
?.
isSuper
||
userInfo
?.
loginRole
==
3
||
userInfo
.
loginRole
==
5
)
&&
(
userInfo
?.
isSuper
||
userInfo
?.
loginRole
==
3
||
userInfo
?
.
loginRole
==
5
)
&&
this
.
setData
({
this
.
setData
({
showPicker
:
true
,
showPicker
:
true
,
pickerType
:
"merchant"
,
pickerType
:
"merchant"
,
...
@@ -73,7 +73,7 @@ Page({
...
@@ -73,7 +73,7 @@ Page({
},
},
showStaffPicker
()
{
showStaffPicker
()
{
let
{
userInfo
}
=
this
.
data
;
let
{
userInfo
}
=
this
.
data
;
(
userInfo
?.
isSuper
||
userInfo
?.
loginRole
==
3
||
userInfo
.
loginRole
==
5
)
&&
(
userInfo
?.
isSuper
||
userInfo
?.
loginRole
==
3
||
userInfo
?
.
loginRole
==
5
)
&&
this
.
setData
({
this
.
setData
({
showPicker
:
true
,
showPicker
:
true
,
pickerType
:
"staff"
,
pickerType
:
"staff"
,
...
@@ -297,7 +297,7 @@ Page({
...
@@ -297,7 +297,7 @@ Page({
orderObj
:
{
yqMerchantId
,
merchantId
,
staffUuid
}
orderObj
:
{
yqMerchantId
,
merchantId
,
staffUuid
}
}
=
this
.
data
;
}
=
this
.
data
;
// 在超管/区域运营未拿到门店或员工信息
// 在超管/区域运营未拿到门店或员工信息
if
((
userInfo
?.
isSuper
||
userInfo
?.
loginRole
==
3
||
userInfo
.
loginRole
==
5
)
&&
(
!
yqMerchantId
||
!
merchantId
||
!
staffUuid
))
return
if
((
userInfo
?.
isSuper
||
userInfo
?.
loginRole
==
3
||
userInfo
?
.
loginRole
==
5
)
&&
(
!
yqMerchantId
||
!
merchantId
||
!
staffUuid
))
return
var
selectWeek
=
--
this
.
data
.
selectWeek
var
selectWeek
=
--
this
.
data
.
selectWeek
var
timeBean
=
this
.
data
.
timeBean
var
timeBean
=
this
.
data
.
timeBean
timeBean
=
util
.
getWeekDayList
(
selectWeek
)
timeBean
=
util
.
getWeekDayList
(
selectWeek
)
...
@@ -342,7 +342,7 @@ Page({
...
@@ -342,7 +342,7 @@ Page({
orderObj
:
{
yqMerchantId
,
merchantId
,
staffUuid
}
orderObj
:
{
yqMerchantId
,
merchantId
,
staffUuid
}
}
=
this
.
data
;
}
=
this
.
data
;
// 在超管/区域运营未拿到门店或员工信息
// 在超管/区域运营未拿到门店或员工信息
if
((
userInfo
?.
isSuper
||
userInfo
?.
loginRole
==
3
||
userInfo
.
loginRole
==
5
)
&&
(
!
yqMerchantId
||
!
merchantId
||
!
staffUuid
))
return
if
((
userInfo
?.
isSuper
||
userInfo
?.
loginRole
==
3
||
userInfo
?
.
loginRole
==
5
)
&&
(
!
yqMerchantId
||
!
merchantId
||
!
staffUuid
))
return
var
selectWeek
=
++
this
.
data
.
selectWeek
var
selectWeek
=
++
this
.
data
.
selectWeek
var
timeBean
=
this
.
data
.
timeBean
var
timeBean
=
this
.
data
.
timeBean
timeBean
=
util
.
getWeekDayList
(
selectWeek
)
timeBean
=
util
.
getWeekDayList
(
selectWeek
)
...
@@ -368,7 +368,7 @@ Page({
...
@@ -368,7 +368,7 @@ Page({
orderObj
:
{
yqMerchantId
,
merchantId
,
staffUuid
}
orderObj
:
{
yqMerchantId
,
merchantId
,
staffUuid
}
}
=
this
.
data
;
}
=
this
.
data
;
// 在超管/区域运营未拿到门店或员工信息
// 在超管/区域运营未拿到门店或员工信息
if
((
userInfo
?.
isSuper
||
userInfo
?.
loginRole
==
3
||
userInfo
.
loginRole
==
5
)
&&
(
!
yqMerchantId
||
!
merchantId
||
!
staffUuid
))
return
if
((
userInfo
?.
isSuper
||
userInfo
?.
loginRole
==
3
||
userInfo
?
.
loginRole
==
5
)
&&
(
!
yqMerchantId
||
!
merchantId
||
!
staffUuid
))
return
this
.
setData
({
this
.
setData
({
[
'timeBean.selectDay'
]:
e
.
detail
[
'timeBean.selectDay'
]:
e
.
detail
})
})
...
@@ -390,6 +390,7 @@ Page({
...
@@ -390,6 +390,7 @@ Page({
},
},
async
getMerchantCarBandList
()
{
async
getMerchantCarBandList
()
{
let
{
orderObj
}
=
this
.
data
let
{
orderObj
}
=
this
.
data
if
(
!
orderObj
.
merchantId
)
return
false
;
// 请求对应的4s店车型
// 请求对应的4s店车型
let
result
=
await
api
.
staffDailyReportMerchantCarBand
({
merchantId
:
orderObj
.
merchantId
})
let
result
=
await
api
.
staffDailyReportMerchantCarBand
({
merchantId
:
orderObj
.
merchantId
})
let
{
code
,
data
}
=
result
let
{
code
,
data
}
=
result
...
@@ -774,7 +775,7 @@ Page({
...
@@ -774,7 +775,7 @@ Page({
this
.
getMerchantCarBandList
()
this
.
getMerchantCarBandList
()
}
}
if
(
userInfo
?.
isSuper
||
userInfo
?.
loginRole
==
3
||
userInfo
.
loginRole
==
5
)
{
if
(
userInfo
?.
isSuper
||
userInfo
?.
loginRole
==
3
||
userInfo
?
.
loginRole
==
5
)
{
this
.
setData
({
this
.
setData
({
role
:
'super'
role
:
'super'
})
})
...
@@ -853,7 +854,7 @@ Page({
...
@@ -853,7 +854,7 @@ Page({
if
(
options
.
approvedSource
==
'3'
)
{
if
(
options
.
approvedSource
==
'3'
)
{
role
=
'staff'
role
=
'staff'
}
else
{
}
else
{
//
role = 'other'
role
=
'other'
}
}
this
.
setData
({
this
.
setData
({
...
@@ -894,7 +895,7 @@ Page({
...
@@ -894,7 +895,7 @@ Page({
if
(
options
.
approvedSource
==
'3'
)
{
if
(
options
.
approvedSource
==
'3'
)
{
role
=
'staff'
role
=
'staff'
}
else
{
}
else
{
//
role = 'other'
role
=
'other'
}
}
this
.
setData
({
this
.
setData
({
...
...
utils/request/request.js
View file @
56cf94a
...
@@ -131,7 +131,7 @@ class Request {
...
@@ -131,7 +131,7 @@ class Request {
'2'
:
'test'
,
'2'
:
'test'
,
'3'
:
'production'
,
'3'
:
'production'
,
'4'
:
'beta'
'4'
:
'beta'
}
[
envIndex
],
}[
envIndex
],
configUrl
=
`https://config-center-backend.glsx.com.cn/glsxAdmin/config?moduleUrl=
${
configModule
}
&env=
${
env
}
`
configUrl
=
`https://config-center-backend.glsx.com.cn/glsxAdmin/config?moduleUrl=
${
configModule
}
&env=
${
env
}
`
return
new
Promise
(
resolve
=>
{
return
new
Promise
(
resolve
=>
{
...
...
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