|
@@ -1,5 +1,5 @@
|
|
<script setup>
|
|
<script setup>
|
|
- import {getSellerList} from '@/api/crm'
|
|
|
|
|
|
+ import {getSellerTeamList} from '@/api/crm'
|
|
import {getWaitInvoiceList} from '@/api/financialStatistics'
|
|
import {getWaitInvoiceList} from '@/api/financialStatistics'
|
|
|
|
|
|
import currencyAmountBox from './components/currencyAmountBox.vue';
|
|
import currencyAmountBox from './components/currencyAmountBox.vue';
|
|
@@ -31,7 +31,7 @@
|
|
}
|
|
}
|
|
// 获取销售列表
|
|
// 获取销售列表
|
|
const getSellerListFun=()=>{
|
|
const getSellerListFun=()=>{
|
|
- getSellerList().then(res=>{
|
|
|
|
|
|
+ getSellerTeamList().then(res=>{
|
|
sellerArray.value = res.data?.all_list || []
|
|
sellerArray.value = res.data?.all_list || []
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -56,16 +56,24 @@
|
|
tableData.rowMergeArray=[]
|
|
tableData.rowMergeArray=[]
|
|
tableData.list=[]
|
|
tableData.list=[]
|
|
dataTemp.map((item,index) =>{
|
|
dataTemp.map((item,index) =>{
|
|
- tableData.rowMergeArray.push(item.invoice_payment_list.length)
|
|
|
|
- item.invoice_payment_list.map((it,ind) =>{
|
|
|
|
- if(ind>0){
|
|
|
|
- tableData.rowMergeArray.push(0)
|
|
|
|
- }
|
|
|
|
|
|
+ if(!item.invoice_payment_list?.length>0){
|
|
|
|
+ tableData.rowMergeArray.push(1)
|
|
tableData.list.push({
|
|
tableData.list.push({
|
|
serial_number:searchParams.page_size*(searchParams.current-1)+index+1,
|
|
serial_number:searchParams.page_size*(searchParams.current-1)+index+1,
|
|
- ...item,...it
|
|
|
|
|
|
+ ...item
|
|
})
|
|
})
|
|
- })
|
|
|
|
|
|
+ }else{
|
|
|
|
+ tableData.rowMergeArray.push(item.invoice_payment_list.length)
|
|
|
|
+ item.invoice_payment_list.map((it,ind) =>{
|
|
|
|
+ if(ind>0){
|
|
|
|
+ tableData.rowMergeArray.push(0)
|
|
|
|
+ }
|
|
|
|
+ tableData.list.push({
|
|
|
|
+ serial_number:searchParams.page_size*(searchParams.current-1)+index+1,
|
|
|
|
+ ...item,...it
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ }
|
|
})
|
|
})
|
|
|
|
|
|
tableData.currencyList = res.data?.list?.not_invoice_currency_total || []
|
|
tableData.currencyList = res.data?.list?.not_invoice_currency_total || []
|
|
@@ -83,7 +91,7 @@
|
|
}
|
|
}
|
|
// 合并单元格
|
|
// 合并单元格
|
|
const cellMerge=({ row,column,rowIndex,columnIndex})=>{
|
|
const cellMerge=({ row,column,rowIndex,columnIndex})=>{
|
|
- if([0,1,2,3,4,5,6,7,8].includes(columnIndex)){
|
|
|
|
|
|
+ if([0,1,2,3,4,5,6].includes(columnIndex)){
|
|
const _row = tableData.rowMergeArray[rowIndex];
|
|
const _row = tableData.rowMergeArray[rowIndex];
|
|
return {
|
|
return {
|
|
rowspan: _row,
|
|
rowspan: _row,
|