Commit 5476eb33 authored by youjie's avatar youjie

no message

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