Commit 28f0fa10 authored by Smile's avatar Smile Committed by wux

bug216 (app/h5)我的订单各个tab查询订单接口status字段返回0时,前端状态应该显示:待入仓。请看截图

parent 87e2dc73
......@@ -605,8 +605,13 @@
methods: {
formatMsg(item){
let val=this.getRealStatus(item)
console.log("val",val)
const index=this.config.status.value.findIndex(item=>{
return item.split(',').map(Number).includes(val);
if (item !== undefined && item !== null && item !== ''){
return item.split(',').map(Number).includes(val);
}else {
return 0;
}
})
return this.config.status.label[index];
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment