Commit 60c0f8b1 by zhangxw

Merge branch 'SAAS+V4.51.1-0415' of http://192.168.3.233:8090/saas_plus/dj-car-b…

…outique-work-wechat into SAAS+V4.51.1-0415
2 parents c8c148dd 393780ac
......@@ -34,18 +34,11 @@ Page({
{
label: '已驳回',
checkStatus: 3,
allStatus: [3,4],
status: 4,
show: true,
style:
'border:2rpx solod #3582ee80;background-color:#fdece9;color: #F24724'
},
{
label: '二次驳回',
checkStatus: 4,
type: 2,
show: true,
style:
'border:2rpx solod #3582ee80;background-color:#fdece9;color: #F24724'
}
],
businessTypeList: [
......@@ -94,7 +87,7 @@ Page({
},
matchStatus(checkStatus) {
const barItem = this.data.barList.find(
item => item.checkStatus === checkStatus
item => item.checkStatus === checkStatus || item.allStatus?.includes(checkStatus)
)
return barItem || {}
},
......@@ -136,9 +129,10 @@ Page({
const {businessType,type,activeTab,pageNum,pageSize,barList} = this.data
const checkStatusList = barList.filter(i=>{
return i.checkStatus>=0
}).map(l=>{
return l.checkStatus
})
}).reduce((prev,cur)=>{
let res = prev.concat(cur.allStatus||cur.checkStatus)
return res
},[])
const params = {
businessType,
type,
......@@ -146,6 +140,9 @@ Page({
pageSize,
checkStatusList:activeTab == -1?checkStatusList:[activeTab]
}
if(activeTab == 3) {
params.checkStatusList = [3,4]
}
aiApi.extractPage(params).then(res=>{
const resList = res.data.list ||[]
this.updateListWithStatus(resList,res.data.total)
......@@ -166,7 +163,7 @@ Page({
const { barList } = this.data;
const list = barList.map((i) => {
i.count = 0
const v = resList.find((k) => k.checkStatus == i.checkStatus);
const v = resList.find((k) => k.checkStatus == i.checkStatus || i.allStatus?.includes(k.checkStatus));
return { ...i, ...v };
});
this.setData({ barList: list });
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!