|
|
@ -22,6 +22,7 @@ |
|
|
|
<script> |
|
|
|
<script> |
|
|
|
import detailsCard from './components/detailsCard.vue' |
|
|
|
import detailsCard from './components/detailsCard.vue' |
|
|
|
import oilOrderApi from '@/api/oil-order.js' |
|
|
|
import oilOrderApi from '@/api/oil-order.js' |
|
|
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
export default { |
|
|
|
components: { |
|
|
|
components: { |
|
|
|
detailsCard |
|
|
|
detailsCard |
|
|
@ -100,19 +101,30 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
cardListFn() { |
|
|
|
cardListFn() { |
|
|
|
let a = this.orderData.companyAccounts |
|
|
|
let networkId = this.$pinia.state.value.user.user?.networkId |
|
|
|
? this.orderData.companyAccounts.map(item => { |
|
|
|
// console.log('this.$pinia.value', networkId) |
|
|
|
|
|
|
|
let company = this.orderData.companyAccounts |
|
|
|
|
|
|
|
? this.orderData.companyAccounts |
|
|
|
|
|
|
|
.filter(item => { |
|
|
|
|
|
|
|
return item.companyId == networkId |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
.map(item => { |
|
|
|
item['cardType'] = 0 |
|
|
|
item['cardType'] = 0 |
|
|
|
return item |
|
|
|
return item |
|
|
|
}) |
|
|
|
}) |
|
|
|
: [] |
|
|
|
: [] |
|
|
|
let b = this.orderData.otherAccounts |
|
|
|
let other = this.orderData.otherAccounts |
|
|
|
? this.orderData.otherAccounts.map(item => { |
|
|
|
? this.orderData.otherAccounts |
|
|
|
|
|
|
|
.filter(item => { |
|
|
|
|
|
|
|
return item.companyId == networkId |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
.map(item => { |
|
|
|
item['cardType'] = 1 |
|
|
|
item['cardType'] = 1 |
|
|
|
return item |
|
|
|
return item |
|
|
|
}) |
|
|
|
}) |
|
|
|
: [] |
|
|
|
: [] |
|
|
|
this.cardList = [...a, ...b] |
|
|
|
console.log('other', other) |
|
|
|
|
|
|
|
this.cardList = [...company, ...other] |
|
|
|
}, |
|
|
|
}, |
|
|
|
updateDetails() { |
|
|
|
updateDetails() { |
|
|
|
this.detailsList[0][0].value = this.orderData.orderSerialNumber || '暂无数据' |
|
|
|
this.detailsList[0][0].value = this.orderData.orderSerialNumber || '暂无数据' |
|
|
|