Commit fe89d74a by 张立顺

fix bug

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