Commit fe89d74a by 张立顺

fix bug

1 parent 597a063a
...@@ -193,6 +193,21 @@ Component({ ...@@ -193,6 +193,21 @@ Component({
value: '2' value: '2'
} }
], ],
abnormalList: [
{
name: '全部',
active: true,
value: ''
},
{
name: '无异常',
value: 'N'
},
{
name: '异常',
value: 'Y'
}
],
storeType: 1, // 门店数据类型 默认园区店 storeType: 1, // 门店数据类型 默认园区店
showStoreSelectPopup: false showStoreSelectPopup: false
}, },
...@@ -258,7 +273,7 @@ Component({ ...@@ -258,7 +273,7 @@ Component({
this.getsellerUserIdList(userInfo?.shopMerchantId, 1) this.getsellerUserIdList(userInfo?.shopMerchantId, 1)
}, },
init() { init() {
let { orderTimeList, payTimeList } = this.data let { orderTimeList, payTimeList, abnormalList } = this.data
let payArr = [ let payArr = [
{ {
name: '全部', name: '全部',
...@@ -270,7 +285,8 @@ Component({ ...@@ -270,7 +285,8 @@ Component({
this.setData({ this.setData({
['form.payType']: payArr, ['form.payType']: payArr,
['form.orderTimeList']: wx.$util.deepClone(orderTimeList), ['form.orderTimeList']: wx.$util.deepClone(orderTimeList),
['form.payTimeList']: wx.$util.deepClone(payTimeList) ['form.payTimeList']: wx.$util.deepClone(payTimeList),
['form.abnormalFlag']: wx.$util.deepClone(abnormalList)
}) })
}, },
showMore(e) { showMore(e) {
...@@ -498,6 +514,10 @@ Component({ ...@@ -498,6 +514,10 @@ Component({
val.active = false val.active = false
if (index == 0) val.active = true if (index == 0) val.active = true
}) })
abnormalFlag?.map((val, index) => {
val.active = false
if (index == 0) val.active = true
})
this.setData({ this.setData({
'form.selectedYqMerchantList': [], 'form.selectedYqMerchantList': [],
'form.selectedMerchantList': [], 'form.selectedMerchantList': [],
...@@ -505,6 +525,7 @@ Component({ ...@@ -505,6 +525,7 @@ Component({
'form.referrerIds': referrerIds || [], 'form.referrerIds': referrerIds || [],
'form.orderStatus': orderStatus, 'form.orderStatus': orderStatus,
'form.zyPayStatus': zyPayStatus, 'form.zyPayStatus': zyPayStatus,
'form.abnormalFlag': abnormalFlag,
isReset: true isReset: true
}) })
this.init() this.init()
......
...@@ -281,6 +281,19 @@ ...@@ -281,6 +281,19 @@
</block> </block>
</view> </view>
</view> </view>
<view class="box">
<view class="title">异常标记</view>
<view class="list-box">
<block wx:for="{{ form.abnormalFlag }}" wx:key="index">
<view
class="item text-center {{ item.active?'active':''}} {{item.disabled ?'disabled':'' }}"
bindtap="choose"
data-list-name="abnormalFlag"
data-index="{{ index }}"
>{{item.name}}</view>
</block>
</view>
</view>
</view> </view>
<view class="btn-box {{ isFullSucreen?'isFullSucreen-btn':'' }}"> <view class="btn-box {{ isFullSucreen?'isFullSucreen-btn':'' }}">
<view class="btn clear text-center" bindtap="reset">清除</view> <view class="btn clear text-center" bindtap="reset">清除</view>
......
...@@ -135,6 +135,21 @@ Component({ ...@@ -135,6 +135,21 @@ Component({
value: 'Z' value: 'Z'
} }
], ],
abnormalList: [
{
name: '全部',
active: true,
value: ''
},
{
name: '无异常',
value: 'N'
},
{
name: '异常',
value: 'Y'
}
],
maxDate: new Date().format('yyyy-MM-dd'), maxDate: new Date().format('yyyy-MM-dd'),
orderTimeList: [ orderTimeList: [
{ {
...@@ -255,8 +270,13 @@ Component({ ...@@ -255,8 +270,13 @@ Component({
this.getsellerUserIdList(userInfo?.shopMerchantId, 1) this.getsellerUserIdList(userInfo?.shopMerchantId, 1)
}, },
init() { init() {
let { orderTimeList, payTimeList, userInfo, constructionStatusList } = let {
this.data orderTimeList,
payTimeList,
userInfo,
constructionStatusList,
abnormalList
} = this.data
// 非超管 // 非超管
if ( if (
!( !(
...@@ -326,7 +346,8 @@ Component({ ...@@ -326,7 +346,8 @@ Component({
this.setData({ this.setData({
['form.orderTimeList']: wx.$util.deepClone(orderTimeList), ['form.orderTimeList']: wx.$util.deepClone(orderTimeList),
['form.payTimeList']: wx.$util.deepClone(payTimeList), ['form.payTimeList']: wx.$util.deepClone(payTimeList),
['form.constructionFlag']: wx.$util.deepClone(constructionStatusList) ['form.constructionFlag']: wx.$util.deepClone(constructionStatusList),
['form.abnormalFlag']: wx.$util.deepClone(abnormalList)
}) })
}, },
showMore(e) { showMore(e) {
......
...@@ -256,6 +256,19 @@ ...@@ -256,6 +256,19 @@
</view> </view>
</view> </view>
<view class="box"> <view class="box">
<view class="title">异常标记</view>
<view class="list-box">
<block wx:for="{{ form.abnormalFlag }}" wx:key="index">
<view
class="item text-center {{ item.active?'active':''}} {{item.disabled ?'disabled':'' }}"
bindtap="choose"
data-list-name="abnormalFlag"
data-index="{{ index }}"
>{{item.name}}</view>
</block>
</view>
</view>
<view class="box">
<view class="title">施工状态</view> <view class="title">施工状态</view>
<view class="list-box"> <view class="list-box">
<block wx:for="{{ form.constructionFlag }}" wx:key="index"> <block wx:for="{{ form.constructionFlag }}" wx:key="index">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!