|
@@ -941,12 +941,14 @@ const moduleList = {
|
|
|
'XXXL': '',
|
|
|
'4XL': '',
|
|
|
'5XL': '',
|
|
|
+ '6XL': '',
|
|
|
'女M': '',
|
|
|
'女L': '',
|
|
|
'女XL': '',
|
|
|
'女XXL': '',
|
|
|
'女XXXL': '',
|
|
|
'女4XL': '',
|
|
|
+ '女5XL': '',
|
|
|
'数据求和': '',
|
|
|
'所属': '',
|
|
|
'备注': '',
|
|
@@ -2721,6 +2723,8 @@ export default {
|
|
|
let c = 0
|
|
|
let d = 0
|
|
|
let e = 0
|
|
|
+ let f = 0
|
|
|
+ let g = 0
|
|
|
while (a < item['精装'].length) {
|
|
|
const obj = Object.assign({}, moduleList)
|
|
|
obj['订单编号'] = i
|
|
@@ -2921,6 +2925,106 @@ export default {
|
|
|
out.push(obj)
|
|
|
d++
|
|
|
}
|
|
|
+ while (f < item['红色'].length) {
|
|
|
+ const obj = Object.assign({}, moduleList)
|
|
|
+ obj['订单编号'] = i
|
|
|
+ obj['下单时间'] = info.created_at
|
|
|
+ obj['所属客服'] = info.admin_name
|
|
|
+ obj['备注昵称'] = info.u_nickname
|
|
|
+ obj['下单人姓名'] = info.u_name
|
|
|
+ obj['下单人手机号'] = info.u_mobile
|
|
|
+ obj['收件人'] = info.username
|
|
|
+ obj['电话'] = info.mobile
|
|
|
+ obj['收件人省'] = info.province
|
|
|
+ obj['收件人市'] = info.city
|
|
|
+ obj['收件人区'] = info.town
|
|
|
+ obj['收件人街道地址'] = info.address
|
|
|
+ obj['备注'] = info.remark
|
|
|
+ obj['所属'] = info.belong
|
|
|
+ obj['订单状态'] = info.status
|
|
|
+ obj['支付状态'] = info.pay_status
|
|
|
+ obj['体验店或专车'] = info.store
|
|
|
+ obj['是否满箱'] = '红色满箱'
|
|
|
+ // obj['赠品'] = info.gift.map(item => `${item.name}${item.num}`).join(';')
|
|
|
+ let num_all = 0
|
|
|
+ if (item['红色'][f].sec_attr === '男女款') {
|
|
|
+ const sex = item['红色'][f].size.split('-')[0]
|
|
|
+ let size = item['红色'][f].size.split('-')[1]
|
|
|
+ size = size === '3XL' ? 'XXXL' : size
|
|
|
+ if (sex === '男款') {
|
|
|
+ obj[size] = `${item['红色'][f].num}${item['红色'][f].main_attr}`
|
|
|
+ num_all += item['红色'][f].num
|
|
|
+ } else {
|
|
|
+ obj['女' + size] = `${item['红色'][f].num}${item['红色'][f].main_attr}`
|
|
|
+ num_all += item['红色'][f].num
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ if (item['红色'][f].size === '3XL') {
|
|
|
+ item['红色'][f].size = 'XXXL'
|
|
|
+ }
|
|
|
+ if (item['红色'][f].sec_attr === '男款') {
|
|
|
+ obj[item['红色'][f].size] = `${item['红色'][f].num}${item['红色'][f].main_attr}`
|
|
|
+ num_all += item['红色'][f].num
|
|
|
+ }
|
|
|
+ if (item['红色'][f].sec_attr === '女款') {
|
|
|
+ obj['女' + item['红色'][f].size] = `${item['红色'][f].num}${item['红色'][f].main_attr}`
|
|
|
+ num_all += item['红色'][f].num
|
|
|
+ }
|
|
|
+ }
|
|
|
+ obj['数据求和'] = num_all
|
|
|
+ out.push(obj)
|
|
|
+ f++
|
|
|
+ }
|
|
|
+ while (g < item['红色混合'].length) {
|
|
|
+ const obj = Object.assign({}, moduleList)
|
|
|
+ obj['订单编号'] = i
|
|
|
+ obj['下单时间'] = info.created_at
|
|
|
+ obj['所属客服'] = info.admin_name
|
|
|
+ obj['备注昵称'] = info.u_nickname
|
|
|
+ obj['下单人姓名'] = info.u_name
|
|
|
+ obj['下单人手机号'] = info.u_mobile
|
|
|
+ obj['收件人'] = info.username
|
|
|
+ obj['电话'] = info.mobile
|
|
|
+ obj['收件人省'] = info.province
|
|
|
+ obj['收件人市'] = info.city
|
|
|
+ obj['收件人区'] = info.town
|
|
|
+ obj['收件人街道地址'] = info.address
|
|
|
+ obj['备注'] = info.remark
|
|
|
+ obj['所属'] = info.belong
|
|
|
+ obj['订单状态'] = info.status
|
|
|
+ obj['支付状态'] = info.pay_status
|
|
|
+ obj['体验店或专车'] = info.store
|
|
|
+ obj['是否满箱'] = ''
|
|
|
+ // obj['赠品'] = info.gift.map(item => `${item.name}${item.num}`).join(';')
|
|
|
+ let num_all = 0
|
|
|
+ if (item['红色混合'][g].sec_attr === '男女款') {
|
|
|
+ const sex = item['红色混合'][g].size.split('-')[0]
|
|
|
+ let size = item['红色混合'][g].size.split('-')[1]
|
|
|
+ size = size === '3XL' ? 'XXXL' : size
|
|
|
+ if (sex === '男款') {
|
|
|
+ obj[size] = `${item['红色混合'][g].num}${item['红色混合'][g].main_attr}`
|
|
|
+ num_all += item['红色混合'][g].num
|
|
|
+ } else {
|
|
|
+ obj['女' + size] = `${item['红色混合'][g].num}${item['红色混合'][g].main_attr}`
|
|
|
+ num_all += item['红色混合'][g].num
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ if (item['红色混合'][g].size === '3XL') {
|
|
|
+ item['红色混合'][g].size = 'XXXL'
|
|
|
+ }
|
|
|
+ if (item['红色混合'][g].sec_attr === '男款') {
|
|
|
+ obj[item['红色混合'][g].size] = `${item['红色混合'][g].num}${item['红色混合'][g].main_attr}`
|
|
|
+ num_all += item['红色混合'][g].num
|
|
|
+ }
|
|
|
+ if (item['红色混合'][g].sec_attr === '女款') {
|
|
|
+ obj['女' + item['红色混合'][g].size] = `${item['红色混合'][g].num}${item['红色混合'][g].main_attr}`
|
|
|
+ num_all += item['红色混合'][g].num
|
|
|
+ }
|
|
|
+ }
|
|
|
+ obj['数据求和'] = num_all
|
|
|
+ out.push(obj)
|
|
|
+ g++
|
|
|
+ }
|
|
|
while (e < item.data.peijian.length) {
|
|
|
const obj = Object.assign({}, moduleList)
|
|
|
obj['订单编号'] = i
|