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 3d32a027
authored
May 06, 2023
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bugfix
1 parent
58053c6e
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
15 additions
and
11 deletions
config.js
tabWorkOrder/components/orderRatingPopup/orderRatingPopup.wxml
tabWorkOrder/pages/constructionOrderDetail/constructionOrderDetail.js
tabWorkOrder/pages/constructionOrderDetail/constructionOrderDetail.wxml
tabWorkOrder/pages/createOrder/createOrder.js
tabWorkOrder/pages/orderDetail/orderDetail.js
tabWorkOrder/pages/orderDetail/orderDetail.wxml
utils/request/environment.js
config.js
View file @
3d32a02
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
* 2测试
* 2测试
* 3生产环境
* 3生产环境
*/
*/
let
index
=
2
let
index
=
0
const
accountInfo
=
wx
.
getAccountInfoSync
()
const
accountInfo
=
wx
.
getAccountInfoSync
()
const
systemInfo
=
wx
.
getSystemInfoSync
()
const
systemInfo
=
wx
.
getSystemInfoSync
()
...
...
tabWorkOrder/components/orderRatingPopup/orderRatingPopup.wxml
View file @
3d32a02
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
class="customerPhotosItem"
class="customerPhotosItem"
wx:for="{{orderInfo.customerPhotos}}"
wx:for="{{orderInfo.customerPhotos}}"
src="{{item.customerPhoto}}"
src="{{item.customerPhoto}}"
:key="{{index}}
"
wx:key="index
"
binderror=""
binderror=""
bindload="" />
bindload="" />
</view>
</view>
...
...
tabWorkOrder/pages/constructionOrderDetail/constructionOrderDetail.js
View file @
3d32a02
...
@@ -195,7 +195,9 @@ Page({
...
@@ -195,7 +195,9 @@ Page({
// data.failureFlag != 'Y'
// data.failureFlag != 'Y'
data
.
canOperate
=
[
1
,
3
].
includes
(
data
.
selectPayType
)
&&
[
4
,
6
].
includes
(
data
.
status
)
data
.
canOperate
=
[
1
,
3
].
includes
(
data
.
selectPayType
)
&&
[
4
,
6
].
includes
(
data
.
status
)
const
orderInfo
=
data
const
orderInfo
=
data
const
clientSignatureDTOList
=
orderInfo
.
clientSignatureDTOList
[
0
]
||
[]
console
.
log
(
orderInfo
);
const
clientSignatureDTOList
=
orderInfo
.
clientSignatureDTOList
?.[
0
]
||
[]
console
.
log
(
clientSignatureDTOList
);
const
showRatingCard
=
[
6
,
4
,
2
].
includes
(
orderInfo
.
status
)
&&
orderInfo
.
selectPayType
!=
0
&&
!
clientSignatureDTOList
.
electronicSignature
const
showRatingCard
=
[
6
,
4
,
2
].
includes
(
orderInfo
.
status
)
&&
orderInfo
.
selectPayType
!=
0
&&
!
clientSignatureDTOList
.
electronicSignature
this
.
setData
({
this
.
setData
({
orderInfo
:
{
...
clientSignatureDTOList
,
...
data
},
orderInfo
:
{
...
clientSignatureDTOList
,
...
data
},
...
@@ -349,7 +351,7 @@ Page({
...
@@ -349,7 +351,7 @@ Page({
// delete orderInfo.orderCode
// delete orderInfo.orderCode
// 去除掉错误订单对应的关联码
// 去除掉错误订单对应的关联码
// delete orderInfo.associateOrderCode
// delete orderInfo.associateOrderCode
let
deleteList
=
[
'orderCode'
,
'associateOrderCode'
,
'merchantDistributionList'
,
'expenseCategoryList'
,
'profitAllocatinList'
]
let
deleteList
=
[
'orderCode'
,
'associateOrderCode'
,
'merchantDistributionList'
,
'expenseCategoryList'
,
'profitAllocatinList'
,
'clientSignatureDTOList'
,
'customerPhotos'
,
'rating'
]
for
(
var
i
=
0
;
i
<
deleteList
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
deleteList
.
length
;
i
++
)
{
// console.log(arr[i])
// console.log(arr[i])
delete
orderInfo
[
deleteList
[
i
]]
delete
orderInfo
[
deleteList
[
i
]]
...
...
tabWorkOrder/pages/constructionOrderDetail/constructionOrderDetail.wxml
View file @
3d32a02
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
</view>
</view>
<view class="orderContainer">
<view class="orderContainer">
<!-- 已微信通知客户前往取车, -->
<!-- 已微信通知客户前往取车, -->
<view class="tips">完成施工,如客户有新需求,可点击再次下单。</view>
<view class="tips">
已
完成施工,如客户有新需求,可点击再次下单。</view>
<view class="againBtn">
<view class="againBtn">
<block wx:if="{{!userInfo.isSuper && userInfo.userType == 2}}">
<block wx:if="{{!userInfo.isSuper && userInfo.userType == 2}}">
<view class="btn text-center" bindtap="againOrder">再次下单</view>
<view class="btn text-center" bindtap="againOrder">再次下单</view>
...
...
tabWorkOrder/pages/createOrder/createOrder.js
View file @
3d32a02
...
@@ -578,14 +578,15 @@ Page({
...
@@ -578,14 +578,15 @@ Page({
item
.
upgradeGoodsList
&&
list
.
push
(...
item
.
upgradeGoodsList
)
item
.
upgradeGoodsList
&&
list
.
push
(...
item
.
upgradeGoodsList
)
return
list
return
list
},
[])
},
[])
console
.
log
(
filterList
,
'filterList'
);
if
(
subOrderList
?.
length
>
0
)
{
if
(
subOrderList
?.
length
>
0
)
{
subOrderList
=
subOrderList
.
filter
(
item
=>
{
subOrderList
=
subOrderList
.
filter
(
item
=>
{
return
filterList
.
find
(
goods
=>
{
return
filterList
.
find
(
goods
=>
{
return
goods
.
merchantGoodsId
==
item
.
merchantGoodsId
return
(
goods
.
merchantGoodsId
||
goods
.
id
)
==
item
.
merchantGoodsId
})
})
})
})
}
}
console
.
log
(
subOrderList
,
'subOrderList'
);
if
(
selectPayType
)
{
if
(
selectPayType
)
{
//战败特殊处理
//战败特殊处理
// console.log(data[0], 'upgradeGoodsList')
// console.log(data[0], 'upgradeGoodsList')
...
@@ -608,6 +609,7 @@ Page({
...
@@ -608,6 +609,7 @@ Page({
}
}
this
.
setData
({
this
.
setData
({
goodsData
,
goodsData
,
goodsList
:
subOrderList
,
// orderObj
// orderObj
[
'orderObj.subOrderList'
]:
subOrderList
[
'orderObj.subOrderList'
]:
subOrderList
})
})
...
...
tabWorkOrder/pages/orderDetail/orderDetail.js
View file @
3d32a02
...
@@ -270,7 +270,7 @@ Page({
...
@@ -270,7 +270,7 @@ Page({
console
.
log
(
result
,
'result'
)
console
.
log
(
result
,
'result'
)
let
{
data
,
code
}
=
result
let
{
data
,
code
}
=
result
// const warrantyCardVisible = data.cardCodeFlag && data.cardCodeFlag == 1
// const warrantyCardVisible = data.cardCodeFlag && data.cardCodeFlag == 1
const
signatureSwitchValue
=
data
.
signatureSwitch
&&
data
.
signatureSwitch
==
1
const
signatureSwitchValue
=
data
?.
signatureSwitch
&&
data
?
.
signatureSwitch
==
1
this
.
setData
({
this
.
setData
({
// warrantyCardVisible: !warrantyCardVisible,
// warrantyCardVisible: !warrantyCardVisible,
signatureSwitch
:
signatureSwitchValue
signatureSwitch
:
signatureSwitchValue
...
...
tabWorkOrder/pages/orderDetail/orderDetail.wxml
View file @
3d32a02
...
@@ -200,7 +200,7 @@
...
@@ -200,7 +200,7 @@
</view>
</view>
</block> -->
</block> -->
</view>
</view>
<block wx:if="{{!userInfo.isSuper && userInfo.userType == 2&&orderInfo.status!=10}}">
<block wx:if="{{!userInfo.isSuper && userInfo.userType == 2&&orderInfo.status!=10
&&orderInfo.status!=9
}}">
<!-- 不需要走签名逻辑 -->
<!-- 不需要走签名逻辑 -->
<view wx:if="{{signatureSwitch&&orderInfo.selectPayType!=0}}" class="btn-box {{isFullSucreen?'isFullSucreen-btn':''}}">
<view wx:if="{{signatureSwitch&&orderInfo.selectPayType!=0}}" class="btn-box {{isFullSucreen?'isFullSucreen-btn':''}}">
<view class="btn text-center" bindtap="navOrderSignature">客户签名确认</view>
<view class="btn text-center" bindtap="navOrderSignature">客户签名确认</view>
...
...
utils/request/environment.js
View file @
3d32a02
...
@@ -48,10 +48,10 @@ const scrmSecretKey_items = {
...
@@ -48,10 +48,10 @@ const scrmSecretKey_items = {
}
}
const
domain_items
=
{
const
domain_items
=
{
ip
:
{
ip
:
{
//
dj: 'http://192.168.1.165:8292',
dj
:
'http://192.168.1.165:8292'
,
// dj: 'http://192.168.1.170:8292',
// dj: 'http://192.168.1.170:8292',
// dj: 'http://192.168.1.169:8292',//蔡远明
// dj: 'http://192.168.1.169:8292',//蔡远明
dj
:
'http://192.168.1.129:8292'
,
//周杭
//
dj: 'http://192.168.1.129:8292',//周杭
// dj:'http://192.168.2.59:8292/',//周立明
// dj:'http://192.168.2.59:8292/',//周立明
scrm
:
'http://192.168.1.165:8292'
scrm
:
'http://192.168.1.165:8292'
},
},
...
...
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