|
@@ -542,6 +542,7 @@ export default {
|
|
|
{
|
|
|
...amountData,
|
|
|
companyNo: 'selfSupportOrderAmount',
|
|
|
+ order_type: '自营订单',
|
|
|
companyName: '合计'
|
|
|
},
|
|
|
...(children.length === 0? [] : [{
|
|
@@ -578,16 +579,23 @@ export default {
|
|
|
}
|
|
|
|
|
|
|
|
|
+ this.selfSupport.companyArr = this.selfSupport.companyArr.map((item) => ({
|
|
|
+ ...item,
|
|
|
+ order_type: undefined
|
|
|
+ }))
|
|
|
|
|
|
- console.log(this.selfSupport.companyArr)
|
|
|
|
|
|
- if(this.selfSupport.companyArr.length === 1){
|
|
|
- this.selfSupport.companyArr[0].order_type = '自营订单'
|
|
|
- }else{
|
|
|
- this.lastSupportCompany = this.selfSupport.companyArr[this.selfSupport.companyArr.length -1].companyName
|
|
|
- const middle = Math.floor(this.selfSupport.companyArr.length / 2)
|
|
|
- this.selfSupport.companyArr[middle].order_type = '自营订单'
|
|
|
- }
|
|
|
+ if(this.selfSupport.companyArr.length === 2 && this.selfSupport.companyArr[0].companyName === '合计'){
|
|
|
+ this.selfSupport.companyArr.splice(0, 1)
|
|
|
+ }
|
|
|
+
|
|
|
+ // if(this.selfSupport.companyArr.length === 1){
|
|
|
+ // this.selfSupport.companyArr[0].order_type = '自营订单'
|
|
|
+ // }else{
|
|
|
+ this.lastSupportCompany = this.selfSupport.companyArr[this.selfSupport.companyArr.length -1].companyName
|
|
|
+ const middle = Math.floor(this.selfSupport.companyArr.length / 2)
|
|
|
+ this.selfSupport.companyArr[0].order_type = '自营订单'
|
|
|
+ // }
|
|
|
|
|
|
|
|
|
// this.otherCompanise = sourceData.filter(({is_sup}) => is_sup === 1)
|