Commit 5476eb33 authored by youjie's avatar youjie

no message

parent 70c7e103
...@@ -362,41 +362,54 @@ export default { ...@@ -362,41 +362,54 @@ export default {
let url let url
// 销售 OP // 销售 OP
if (this.pagesTitle == '销售') { if (this.pagesTitle == '销售') {
url = "JapanCar_get_GetJapanOrderPageList" url = "JapanCar_get_GetJapanOrderMainPageList"
} else { } else {
url = "JapanCar_get_GetJapanOrderPageList" url = "JapanCar_get_GetJapanOrderMainPageList"
} }
this.apipost(url, this.msg, this.apipost(url, this.msg,
res => { res => {
this.loading = false this.loading = false
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
let data = res.data.data.pageData let data = res.data.data.pageData
let addLists = function(arr){
arr.forEach(x=>{
x.typeInfo = ''
})
}
let addList = function(arr){ let addList = function(arr){
arr.forEach(x=>{ arr.forEach(x=>{
x.typeInfo = ''
x.paymentInfo = {}
x.list = [] x.list = []
x.isMore = false x.isMore = false
x.upIcon = false x.upIcon = false
x.NewOrderDetailList = [] x.NewOrderDetailList = []
}) })
} }
addList(data) // addLists(data)
data.forEach(item => { data.forEach(k => {
item.typeInfo = this.OrderStatusType.find(y => y.ID == item.OrderState) ?? this.OrderStatusType[1] addList(k.OrderList)
item.paymentInfo = this.PaymentMethods.find(y => y.Id == item.PayWay) ?? this.PaymentMethods[1] // k.typeInfo = this.OrderStatusType.find(y => y.ID == k.OrderState) ?? this.OrderStatusType[1]
if(item.OrderDetailList.length>2){ k.OrderList.forEach(item=>{
item.isMore = true // item.typeInfo = this.OrderStatusType.find(y => y.ID == item.OrderState) ?? this.OrderStatusType[1]
} // item.paymentInfo = this.PaymentMethods.find(y => y.Id == k.PayWay) ?? this.PaymentMethods[1]
let dataLists = [] if(item.OrderDetailList.length>2){
item.OrderDetailList.forEach((x,index)=>{ item.isMore = true
x.useTypeInfo = this.useTypes.find(z => z.StatusId == x.UseType) ?? this.useTypes[1]
if(index<2){
dataLists.push(x)
} }
let dataLists = []
item.OrderDetailList.forEach((x,index)=>{
x.useTypeInfo = this.useTypes.find(z => z.StatusId == x.UseType) ?? this.useTypes[1]
if(index<2){
dataLists.push(x)
}
})
item.NewOrderDetailList = JSON.parse(JSON.stringify(dataLists))
}) })
item.NewOrderDetailList = JSON.parse(JSON.stringify(dataLists))
}) })
this.OrderList = data; this.OrderList = data;
console.log(data,'--------------')
this.total = res.data.data.count; this.total = res.data.data.count;
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
......
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