|
@@ -332,7 +332,7 @@ export default {
|
|
|
width: 150,
|
|
|
search: true,
|
|
|
}, {
|
|
|
- label: '业务员',
|
|
|
+ label: '分管员',
|
|
|
prop: 'salesmanName',
|
|
|
index: 3,
|
|
|
width: 140,
|
|
@@ -384,7 +384,7 @@ export default {
|
|
|
search: true,
|
|
|
index: 9,
|
|
|
overHidden: true,
|
|
|
- prop: 'fleetId'
|
|
|
+ prop: 'fleetShortName'
|
|
|
}, {
|
|
|
label: '车号',
|
|
|
width: 150,
|
|
@@ -393,25 +393,10 @@ export default {
|
|
|
index: 10,
|
|
|
search: true
|
|
|
}, {
|
|
|
- label: '应收运费',
|
|
|
- overHidden: true,
|
|
|
- index: 11,
|
|
|
- prop: 'landAmountD'
|
|
|
- }, {
|
|
|
- label: '应收杂费',
|
|
|
- overHidden: true,
|
|
|
- index: 12,
|
|
|
- prop: 'extraAmountD'
|
|
|
- }, {
|
|
|
label: '备注',
|
|
|
overHidden: true,
|
|
|
index: 13,
|
|
|
prop: 'remarks'
|
|
|
- }, {
|
|
|
- label: '应收杂费明细',
|
|
|
- width: 100,
|
|
|
- index: 17,
|
|
|
- prop: 'extraAmountItemD'
|
|
|
}]
|
|
|
},
|
|
|
totalData: {}
|
|
@@ -422,7 +407,26 @@ export default {
|
|
|
this.collectionOption = await this.getColumnData(this.getColumnName(88.2), this.collectionOptionBackup);
|
|
|
this.roleName.forEach(item =>{
|
|
|
if (item == '客户'){
|
|
|
- return this.goodsOptionCrud.menu = true
|
|
|
+ this.goodsOptionCrud.menu = true
|
|
|
+ for (let item of this.goodsOptionCrud.column){
|
|
|
+ if (item.prop === 'landAmountD') return
|
|
|
+ }
|
|
|
+ return this.goodsOptionCrud.column.push({
|
|
|
+ label: '应收运费',
|
|
|
+ overHidden: true,
|
|
|
+ index: 11,
|
|
|
+ prop: 'landAmountD'
|
|
|
+ }, {
|
|
|
+ label: '应收杂费',
|
|
|
+ overHidden: true,
|
|
|
+ index: 12,
|
|
|
+ prop: 'extraAmountD'
|
|
|
+ }, {
|
|
|
+ label: '应收杂费明细',
|
|
|
+ width: 100,
|
|
|
+ index: 17,
|
|
|
+ prop: 'extraAmountItemD'
|
|
|
+ })
|
|
|
}else if (item == '平台') {
|
|
|
this.goodsOptionCrud.menu = false
|
|
|
for (let item of this.goodsOptionCrud.column){
|
|
@@ -450,9 +454,88 @@ export default {
|
|
|
width: 100,
|
|
|
index: 18,
|
|
|
prop: 'extraAmountItemC'
|
|
|
+ },{
|
|
|
+ label: '应收运费',
|
|
|
+ overHidden: true,
|
|
|
+ index: 11,
|
|
|
+ prop: 'landAmountD'
|
|
|
+ }, {
|
|
|
+ label: '应收杂费',
|
|
|
+ overHidden: true,
|
|
|
+ index: 12,
|
|
|
+ prop: 'extraAmountD'
|
|
|
+ }, {
|
|
|
+ label: '应收杂费明细',
|
|
|
+ width: 100,
|
|
|
+ index: 17,
|
|
|
+ prop: 'extraAmountItemD'
|
|
|
+ })
|
|
|
+ } else if (item == '调度'){
|
|
|
+ this.goodsOptionCrud.menu = false
|
|
|
+ for (let item of this.goodsOptionCrud.column){
|
|
|
+ if (item.prop === 'landAmountC') return
|
|
|
+ }
|
|
|
+ return this.goodsOptionCrud.column.push( {
|
|
|
+ label: '应付运费',
|
|
|
+ overHidden: true,
|
|
|
+ index: 14,
|
|
|
+ prop: 'landAmountC'
|
|
|
+ }, {
|
|
|
+ label: '应付杂费',
|
|
|
+ overHidden: true,
|
|
|
+ index: 15,
|
|
|
+ prop: 'extraAmountC'
|
|
|
+ }, {
|
|
|
+ label: '利润',
|
|
|
+ width: 100,
|
|
|
+ precision: 2,
|
|
|
+ index: 16,
|
|
|
+ type: 'number',
|
|
|
+ prop: 'profit'
|
|
|
+ }, {
|
|
|
+ label: '应付杂费明细',
|
|
|
+ width: 100,
|
|
|
+ index: 18,
|
|
|
+ prop: 'extraAmountItemC'
|
|
|
})
|
|
|
}else {
|
|
|
- return this.goodsOptionCrud.menu = false;
|
|
|
+ this.goodsOptionCrud.menu = false;
|
|
|
+ this.goodsOptionCrud.column.forEach((item,index)=>{
|
|
|
+ if (item.prop === 'corpShortName'){
|
|
|
+ this.goodsOptionCrud.column.splice(index, 1)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ for (let item of this.goodsOptionCrud.column){
|
|
|
+ if (item.prop === 'dispatchDeptName') return false
|
|
|
+ }
|
|
|
+ return this.goodsOptionCrud.column.push({
|
|
|
+ label: '调度公司',
|
|
|
+ prop: 'dispatchDeptName',
|
|
|
+ overHidden: true,
|
|
|
+ index: 1,
|
|
|
+ width: 140
|
|
|
+ }, {
|
|
|
+ label: '调度员',
|
|
|
+ prop: 'dispatcherName',
|
|
|
+ overHidden: true,
|
|
|
+ index: 1,
|
|
|
+ width: 140,
|
|
|
+ },{
|
|
|
+ label: '应收运费',
|
|
|
+ overHidden: true,
|
|
|
+ index: 11,
|
|
|
+ prop: 'landAmountD'
|
|
|
+ }, {
|
|
|
+ label: '应收杂费',
|
|
|
+ overHidden: true,
|
|
|
+ index: 12,
|
|
|
+ prop: 'extraAmountD'
|
|
|
+ }, {
|
|
|
+ label: '应收杂费明细',
|
|
|
+ width: 100,
|
|
|
+ index: 17,
|
|
|
+ prop: 'extraAmountItemD'
|
|
|
+ })
|
|
|
}
|
|
|
})
|
|
|
this.key++
|
|
@@ -542,11 +625,73 @@ export default {
|
|
|
}
|
|
|
this.roleName.forEach(item =>{
|
|
|
if (item == '客户'){
|
|
|
- return this.goodsOptionCrud.menu = true
|
|
|
+ this.goodsOptionCrud.menu = true
|
|
|
+ for (let item of this.goodsOptionCrud.column){
|
|
|
+ if (item.prop === 'landAmountD') return
|
|
|
+ }
|
|
|
+ return this.goodsOptionCrud.column.push({
|
|
|
+ label: '应收运费',
|
|
|
+ overHidden: true,
|
|
|
+ index: 11,
|
|
|
+ prop: 'landAmountD'
|
|
|
+ }, {
|
|
|
+ label: '应收杂费',
|
|
|
+ overHidden: true,
|
|
|
+ index: 12,
|
|
|
+ prop: 'extraAmountD'
|
|
|
+ }, {
|
|
|
+ label: '应收杂费明细',
|
|
|
+ width: 100,
|
|
|
+ index: 17,
|
|
|
+ prop: 'extraAmountItemD'
|
|
|
+ })
|
|
|
}else if (item == '平台') {
|
|
|
this.goodsOptionCrud.menu = false
|
|
|
for (let item of this.goodsOptionCrud.column){
|
|
|
- if (item.prop === 'landAmountC') return false
|
|
|
+ if (item.prop === 'landAmountC') return
|
|
|
+ }
|
|
|
+ return this.goodsOptionCrud.column.push( {
|
|
|
+ label: '应付运费',
|
|
|
+ overHidden: true,
|
|
|
+ index: 14,
|
|
|
+ prop: 'landAmountC'
|
|
|
+ }, {
|
|
|
+ label: '应付杂费',
|
|
|
+ overHidden: true,
|
|
|
+ index: 15,
|
|
|
+ prop: 'extraAmountC'
|
|
|
+ }, {
|
|
|
+ label: '利润',
|
|
|
+ width: 100,
|
|
|
+ precision: 2,
|
|
|
+ index: 16,
|
|
|
+ type: 'number',
|
|
|
+ prop: 'profit'
|
|
|
+ }, {
|
|
|
+ label: '应付杂费明细',
|
|
|
+ width: 100,
|
|
|
+ index: 18,
|
|
|
+ prop: 'extraAmountItemC'
|
|
|
+ },{
|
|
|
+ label: '应收运费',
|
|
|
+ overHidden: true,
|
|
|
+ index: 11,
|
|
|
+ prop: 'landAmountD'
|
|
|
+ }, {
|
|
|
+ label: '应收杂费',
|
|
|
+ overHidden: true,
|
|
|
+ index: 12,
|
|
|
+ prop: 'extraAmountD'
|
|
|
+ }, {
|
|
|
+ label: '应收杂费明细',
|
|
|
+ width: 100,
|
|
|
+ index: 17,
|
|
|
+ prop: 'extraAmountItemD'
|
|
|
+ })
|
|
|
+ } else if (item == '调度'){
|
|
|
+ this.goodsOptionCrud.menu = false
|
|
|
+ for (let item of this.goodsOptionCrud.column){
|
|
|
+ if (item.prop === 'landAmountC') return
|
|
|
}
|
|
|
return this.goodsOptionCrud.column.push( {
|
|
|
label: '应付运费',
|
|
@@ -572,7 +717,43 @@ export default {
|
|
|
prop: 'extraAmountItemC'
|
|
|
})
|
|
|
}else {
|
|
|
- return this.goodsOptionCrud.menu = false
|
|
|
+ this.goodsOptionCrud.menu = false;
|
|
|
+ this.goodsOptionCrud.column.forEach((item,index)=>{
|
|
|
+ if (item.prop === 'corpShortName'){
|
|
|
+ this.goodsOptionCrud.column.splice(index, 1)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ for (let item of this.goodsOptionCrud.column){
|
|
|
+ if (item.prop === 'dispatchDeptName') return false
|
|
|
+ }
|
|
|
+ return this.goodsOptionCrud.column.push({
|
|
|
+ label: '调度公司',
|
|
|
+ prop: 'dispatchDeptName',
|
|
|
+ overHidden: true,
|
|
|
+ index: 1,
|
|
|
+ width: 140
|
|
|
+ }, {
|
|
|
+ label: '调度员',
|
|
|
+ prop: 'dispatcherName',
|
|
|
+ overHidden: true,
|
|
|
+ index: 1,
|
|
|
+ width: 140,
|
|
|
+ },{
|
|
|
+ label: '应收运费',
|
|
|
+ overHidden: true,
|
|
|
+ index: 11,
|
|
|
+ prop: 'landAmountD'
|
|
|
+ }, {
|
|
|
+ label: '应收杂费',
|
|
|
+ overHidden: true,
|
|
|
+ index: 12,
|
|
|
+ prop: 'extraAmountD'
|
|
|
+ }, {
|
|
|
+ label: '应收杂费明细',
|
|
|
+ width: 100,
|
|
|
+ index: 17,
|
|
|
+ prop: 'extraAmountItemD'
|
|
|
+ })
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -622,15 +803,13 @@ export default {
|
|
|
tag: '0',
|
|
|
...params?params:this.query
|
|
|
}
|
|
|
- console.log(queryParams)
|
|
|
if (queryParams.arrivalTime) {
|
|
|
queryParams.beginArrivalTime = queryParams.arrivalTime[0]
|
|
|
queryParams.endArrivalTime = queryParams.arrivalTime[1]
|
|
|
delete queryParams.arrivalTime
|
|
|
- }else {
|
|
|
-
|
|
|
}
|
|
|
this.loading = true;
|
|
|
+ if (this.loading) this.dialogVisibleTwo = false
|
|
|
standingBookCollection(queryParams).then(res => {
|
|
|
this.goodsList = res.data.data.records
|
|
|
this.page.total = res.data.data.total
|