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 d40cbd1c
authored
Mar 21, 2023
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
超管/商户号类型 账号不可提单 只可查看数据
1 parent
8082bb3c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
14 deletions
packageEquity/pages/carEquity/components/EquityList/EquityList.js
packageEquity/pages/carEquity/components/EquityList/EquityList.wxml
packageEquity/pages/carQuotation/index/index.js
packageEquity/pages/carQuotation/index/index.wxml
packageEquity/pages/carEquity/components/EquityList/EquityList.js
View file @
d40cbd1
...
@@ -66,13 +66,15 @@ Component({
...
@@ -66,13 +66,15 @@ Component({
},
},
triggered
:
false
,
triggered
:
false
,
scrollTop
:
0
,
scrollTop
:
0
,
isShowTips
:
true
isShowTips
:
true
,
userInfo
:
{}
},
},
lifetimes
:
{
lifetimes
:
{
attached
()
{
attached
()
{
this
.
setData
({
this
.
setData
({
storeInfo
:
wx
.
$util
.
getUserInfo
()?.
default4SStoreInfo
||
{}
storeInfo
:
wx
.
$util
.
getUserInfo
()?.
default4SStoreInfo
||
{},
userInfo
:
wx
.
$util
.
getUserInfo
()
||
{}
})
})
this
.
onLoad
(
true
)
this
.
onLoad
(
true
)
}
}
...
...
packageEquity/pages/carEquity/components/EquityList/EquityList.wxml
View file @
d40cbd1
...
@@ -66,8 +66,11 @@
...
@@ -66,8 +66,11 @@
<!-- footer -->
<!-- footer -->
<view class="item-footer">
<view class="item-footer">
<view>{{item.createdDate}}</view>
<view>{{item.createdDate}}</view>
<view wx:if="{{item.orderStatus == '2'}}" class="order-btn default-btn" bindtap="handlePreviewContract" data-target="{{item}}">{{btnTxt[item.orderStatus]}}</view>
<!-- 超管isSuper/商户类型 userType 1账号不可操作 -->
<view wx:else class="order-btn" bindtap="handleRecordOrder" data-target="{{item}}">{{btnTxt[item.orderStatus]}}</view>
<block wx:if="{{!userInfo.isSuper && userInfo.userType == 2}}">
<view wx:if="{{item.orderStatus == '2'}}" class="order-btn default-btn" bindtap="handlePreviewContract" data-target="{{item}}">{{btnTxt[item.orderStatus]}}</view>
<view wx:else class="order-btn" bindtap="handleRecordOrder" data-target="{{item}}">{{btnTxt[item.orderStatus]}}</view>
</block>
</view>
</view>
</view>
</view>
<block wx:if="{{nothing}}">
<block wx:if="{{nothing}}">
...
...
packageEquity/pages/carQuotation/index/index.js
View file @
d40cbd1
...
@@ -61,14 +61,17 @@ Component({
...
@@ -61,14 +61,17 @@ Component({
total
:
0
,
total
:
0
,
storeInfo
:
{},
storeInfo
:
{},
triggered
:
false
,
triggered
:
false
,
scrollTop
:
0
scrollTop
:
0
,
userInfo
:
{}
},
},
lifetimes
:
{
lifetimes
:
{
attached
()
{
attached
()
{
this
.
setData
({
this
.
setData
({
storeInfo
:
wx
.
$util
.
getUserInfo
()?.
default4SStoreInfo
||
{}
storeInfo
:
wx
.
$util
.
getUserInfo
()?.
default4SStoreInfo
||
{},
userInfo
:
wx
.
$util
.
getUserInfo
()
||
{}
})
})
console
.
log
(
this
.
data
.
userInfo
)
this
.
onLoad
(
true
)
this
.
onLoad
(
true
)
}
}
},
},
...
...
packageEquity/pages/carQuotation/index/index.wxml
View file @
d40cbd1
...
@@ -125,14 +125,17 @@
...
@@ -125,14 +125,17 @@
</view>
</view>
<view wx:else>创建时间:{{item.createdTime}}</view>
<view wx:else>创建时间:{{item.createdTime}}</view>
</view>
</view>
<view wx:if="{{item.orderStatus != '4'}}">
<!-- 超管isSuper/商户类型 userType 1账号不可操作 -->
<view wx:if="{{item.orderStatus == '-1' || item.orderStatus == '0'}}" class="order-btn" bindtap="handleClickBtn" data-target="{{item}}">
<block wx:if="{{!userInfo.isSuper && userInfo.userType == 2}}">
{{btnTxt[item.orderStatus]}}
<view wx:if="{{item.orderStatus != '4'}}">
</view>
<view wx:if="{{item.orderStatus == '-1' || item.orderStatus == '0'}}" class="order-btn" bindtap="handleClickBtn" data-target="{{item}}">
<view wx:else class="order-btn default-btn" bindtap="handleClickBtn" data-target="{{item}}">
{{btnTxt[item.orderStatus]}}
{{btnTxt[item.orderStatus]}}
</view>
<view wx:else class="order-btn default-btn" bindtap="handleClickBtn" data-target="{{item}}">
{{btnTxt[item.orderStatus]}}
</view>
</view>
</view>
</
view
>
</
block
>
</view>
</view>
</view>
</view>
<block wx:if="{{nothing}}">
<block wx:if="{{nothing}}">
...
@@ -145,5 +148,6 @@
...
@@ -145,5 +148,6 @@
</view>
</view>
</scroll-view>
</scroll-view>
</view>
</view>
<image data-target="addOrder" bind:tap="handleClickOrderBtn" class="addOrder" src="/packageEquity/images/addOrder.png" mode="scaleToFill|aspectFit|aspectFill|widthFix" binderror="" bindload="" />
<!-- 超管isSuper/商户类型 userType 1账号不可操作 -->
<image data-target="addOrder" wx:if="{{!userInfo.isSuper && userInfo.userType == 2}}" bind:tap="handleClickOrderBtn" class="addOrder" src="/packageEquity/images/addOrder.png" mode="scaleToFill|aspectFit|aspectFill|widthFix" binderror="" bindload="" />
</view>
</view>
\ 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