|
@@ -26,7 +26,8 @@
|
|
|
<span>{{ row.fleetName }}</span>
|
|
|
</template>
|
|
|
<template slot="billNo" slot-scope="{row,index}">
|
|
|
- <span class="el-button--text" style="cursor: pointer" @click.stop="celJump(row,index)">{{ row.billNo }}</span>
|
|
|
+ <span v-if="roleName.indexOf('车队') !== -1" style="cursor: pointer">{{ row.billNo }}</span>
|
|
|
+ <span class="el-button--text" v-else style="cursor: pointer" @click.stop="celJump(row,index)">{{ row.billNo }}</span>
|
|
|
</template>
|
|
|
<template slot="corpName" slot-scope="{row,index}">
|
|
|
<span class="el-button--text" style="cursor: pointer"
|
|
@@ -313,13 +314,6 @@ export default {
|
|
|
decimals: 2
|
|
|
}],
|
|
|
column: [{
|
|
|
- label: '客户名称',
|
|
|
- prop: 'corpShortName',
|
|
|
- overHidden: true,
|
|
|
- index: 1,
|
|
|
- width: 140,
|
|
|
- search: true,
|
|
|
- }, {
|
|
|
label: '货运日期',
|
|
|
prop: 'arrivalTime',
|
|
|
overHidden: true,
|
|
@@ -403,80 +397,142 @@ export default {
|
|
|
this.goodsOptionCrud.searchMenuSpan = num * 8;
|
|
|
this.goodsOptionCrud.searchMenuPosition = "right";
|
|
|
}
|
|
|
- if(this.roleName.indexOf('总调度') !== -1||this.roleName.indexOf('分管调度') !== -1){
|
|
|
+ if(this.roleName.indexOf('总调度') !== -1||this.roleName.indexOf('分管调度') !== -1||this.roleName.indexOf('车队') !== -1){
|
|
|
this.goodsOptionCrud.menu = false;
|
|
|
- this.goodsOptionCrud.column.forEach((item,index)=>{
|
|
|
- if (item.prop === 'corpShortName'){
|
|
|
- this.goodsOptionCrud.column.splice(index, 1)
|
|
|
+ // this.goodsOptionCrud.column.forEach((item,index)=>{
|
|
|
+ // if (item.prop === 'corpShortName'){
|
|
|
+ // this.goodsOptionCrud.column.splice(index, 1)
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ if (this.roleName.indexOf('车队') !== -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: 3,
|
|
|
+ width: 140
|
|
|
+ },{
|
|
|
+ label: '运输调度',
|
|
|
+ prop: 'dispatcherName',
|
|
|
+ overHidden: true,
|
|
|
+ index: 3,
|
|
|
+ width: 140,
|
|
|
+ },{
|
|
|
+ label: '车队',
|
|
|
+ width: 200,
|
|
|
+ search: true,
|
|
|
+ index: 9,
|
|
|
+ overHidden: true,
|
|
|
+ prop: 'fleetShortName'
|
|
|
+ },{
|
|
|
+ label: '应付运费',
|
|
|
+ overHidden: true,
|
|
|
+ index: 14,
|
|
|
+ prop: 'landAmountC'
|
|
|
+ }, {
|
|
|
+ label: '应付杂费',
|
|
|
+ overHidden: true,
|
|
|
+ index: 15,
|
|
|
+ prop: 'extraAmountC'
|
|
|
+ }, {
|
|
|
+ label: '应付杂费明细',
|
|
|
+ width: 100,
|
|
|
+ index: 18,
|
|
|
+ prop: 'extraAmountItemC'
|
|
|
+ })
|
|
|
+ }else {
|
|
|
+ for (let item of this.goodsOptionCrud.column){
|
|
|
+ if (item.prop === 'dispatchDeptName') return false
|
|
|
+ }
|
|
|
+ return this.goodsOptionCrud.column.push(
|
|
|
+ {
|
|
|
+ label: '客户名称',
|
|
|
+ prop: 'corpShortName',
|
|
|
+ overHidden: true,
|
|
|
+ index: 1,
|
|
|
+ width: 140,
|
|
|
+ search: true,
|
|
|
+ },{
|
|
|
+ label: '运输调度',
|
|
|
+ prop: 'dispatcherName',
|
|
|
+ overHidden: true,
|
|
|
+ index: 3,
|
|
|
+ width: 140,
|
|
|
+ }, {
|
|
|
+ label: '业务员',
|
|
|
+ prop: 'salesmanName',
|
|
|
+ index: 2,
|
|
|
+ width: 140,
|
|
|
+ },{
|
|
|
+ label: '应收运费',
|
|
|
+ overHidden: true,
|
|
|
+ index: 11,
|
|
|
+ prop: 'landAmountD'
|
|
|
+ }, {
|
|
|
+ label: '应收杂费',
|
|
|
+ overHidden: true,
|
|
|
+ index: 12,
|
|
|
+ prop: 'extraAmountD'
|
|
|
+ }, {
|
|
|
+ label: '应收杂费明细',
|
|
|
+ width: 100,
|
|
|
+ index: 17,
|
|
|
+ prop: 'extraAmountItemD'
|
|
|
+ },{
|
|
|
+ label: '车队',
|
|
|
+ width: 200,
|
|
|
+ search: true,
|
|
|
+ index: 9,
|
|
|
+ overHidden: true,
|
|
|
+ prop: 'fleetShortName'
|
|
|
+ },{
|
|
|
+ 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'
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(this.roleName.indexOf('客户') !== -1){
|
|
|
+ this.goodsOptionCrud.menu = true
|
|
|
for (let item of this.goodsOptionCrud.column){
|
|
|
- if (item.prop === 'dispatchDeptName') return false
|
|
|
+ if (item.prop === 'landAmountD') return
|
|
|
}
|
|
|
return this.goodsOptionCrud.column.push({
|
|
|
- label: '物流运输',
|
|
|
- prop: 'dispatchDeptName',
|
|
|
- overHidden: true,
|
|
|
- index: 1,
|
|
|
- width: 140
|
|
|
- }, {
|
|
|
- label: '运输调度',
|
|
|
- prop: 'dispatcherName',
|
|
|
+ label: '客户名称',
|
|
|
+ prop: 'corpShortName',
|
|
|
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'
|
|
|
- },{
|
|
|
- label: '车队',
|
|
|
- width: 200,
|
|
|
search: true,
|
|
|
- index: 9,
|
|
|
- overHidden: true,
|
|
|
- prop: 'fleetShortName'
|
|
|
},{
|
|
|
- label: '应付运费',
|
|
|
- overHidden: true,
|
|
|
- index: 14,
|
|
|
- prop: 'landAmountC'
|
|
|
- }, {
|
|
|
- label: '应付杂费',
|
|
|
+ label: '物流运输',
|
|
|
+ prop: 'dispatchDeptName',
|
|
|
overHidden: true,
|
|
|
- index: 15,
|
|
|
- prop: 'extraAmountC'
|
|
|
- }, {
|
|
|
- label: '利润',
|
|
|
- width: 100,
|
|
|
- precision: 2,
|
|
|
- index: 16,
|
|
|
- type: 'number',
|
|
|
- prop: 'profit'
|
|
|
- }, {
|
|
|
- label: '应付杂费明细',
|
|
|
- width: 100,
|
|
|
- index: 18,
|
|
|
- prop: 'extraAmountItemC'
|
|
|
- })
|
|
|
- }
|
|
|
- if(this.roleName.indexOf('客户') !== -1){
|
|
|
- this.goodsOptionCrud.menu = true
|
|
|
- for (let item of this.goodsOptionCrud.column){
|
|
|
- if (item.prop === 'landAmountD') return
|
|
|
- }
|
|
|
- return this.goodsOptionCrud.column.push({
|
|
|
+ index: 3,
|
|
|
+ width: 140
|
|
|
+ },{
|
|
|
label: '应收运费',
|
|
|
overHidden: true,
|
|
|
index: 11,
|
|
@@ -484,7 +540,7 @@ export default {
|
|
|
}, {
|
|
|
label: '业务员',
|
|
|
prop: 'salesmanName',
|
|
|
- index: 3,
|
|
|
+ index: 2,
|
|
|
width: 140,
|
|
|
}, {
|
|
|
label: '应收杂费',
|
|
@@ -505,20 +561,39 @@ export default {
|
|
|
prop: 'fleetShortName'
|
|
|
})
|
|
|
}
|
|
|
- if(this.roleName.indexOf('平台') !== -1){
|
|
|
+ if(this.roleName.indexOf('平台') !== -1 || this.roleName.indexOf('admin') !== -1 || this.roleName.indexOf('管理员') !== -1){
|
|
|
this.goodsOptionCrud.menu = false
|
|
|
for (let item of this.goodsOptionCrud.column){
|
|
|
if (item.prop === 'landAmountC') return
|
|
|
}
|
|
|
return this.goodsOptionCrud.column.push( {
|
|
|
+ label: '客户名称',
|
|
|
+ prop: 'corpShortName',
|
|
|
+ overHidden: true,
|
|
|
+ index: 1,
|
|
|
+ width: 140,
|
|
|
+ search: true,
|
|
|
+ },{
|
|
|
+ label: '运输调度',
|
|
|
+ prop: 'dispatcherName',
|
|
|
+ overHidden: true,
|
|
|
+ index: 3,
|
|
|
+ width: 140,
|
|
|
+ },{
|
|
|
label: '应付运费',
|
|
|
overHidden: true,
|
|
|
index: 14,
|
|
|
prop: 'landAmountC'
|
|
|
+ },{
|
|
|
+ label: '物流运输',
|
|
|
+ prop: 'dispatchDeptName',
|
|
|
+ overHidden: true,
|
|
|
+ index: 3,
|
|
|
+ width: 140
|
|
|
}, {
|
|
|
label: '业务员',
|
|
|
prop: 'salesmanName',
|
|
|
- index: 3,
|
|
|
+ index: 2,
|
|
|
width: 140,
|
|
|
}, {
|
|
|
label: '应付杂费',
|
|
@@ -638,27 +713,53 @@ export default {
|
|
|
}
|
|
|
if(this.roleName.indexOf('总调度') !== -1||this.roleName.indexOf('分管调度') !== -1){
|
|
|
this.goodsOptionCrud.menu = false;
|
|
|
- this.goodsOptionCrud.column.forEach((item,index)=>{
|
|
|
- if (item.prop === 'corpShortName'){
|
|
|
- this.goodsOptionCrud.column.splice(index, 1)
|
|
|
- }
|
|
|
- })
|
|
|
+ // 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: 'dispatcherName',
|
|
|
+ overHidden: true,
|
|
|
+ index: 3,
|
|
|
+ width: 140,
|
|
|
+ },{
|
|
|
+ label: '运输调度',
|
|
|
+ prop: 'dispatcherName',
|
|
|
+ overHidden: true,
|
|
|
+ index: 3,
|
|
|
+ width: 140,
|
|
|
+ },{
|
|
|
label: '物流运输',
|
|
|
prop: 'dispatchDeptName',
|
|
|
overHidden: true,
|
|
|
- index: 1,
|
|
|
+ index: 3,
|
|
|
width: 140
|
|
|
}, {
|
|
|
- label: '运输调度',
|
|
|
- prop: 'dispatcherName',
|
|
|
- overHidden: true,
|
|
|
- index: 1,
|
|
|
+ label: '业务员',
|
|
|
+ prop: 'salesmanName',
|
|
|
+ index: 2,
|
|
|
width: 140,
|
|
|
},{
|
|
|
+ label: '应收运费',
|
|
|
+ overHidden: true,
|
|
|
+ index: 11,
|
|
|
+ prop: 'landAmountD'
|
|
|
+ }, {
|
|
|
+ label: '应收杂费',
|
|
|
+ overHidden: true,
|
|
|
+ index: 12,
|
|
|
+ prop: 'extraAmountD'
|
|
|
+ }, {
|
|
|
+ label: '应收杂费明细',
|
|
|
+ width: 100,
|
|
|
+ index: 17,
|
|
|
+ prop: 'extraAmountItemD'
|
|
|
+ },{
|
|
|
label: '车队',
|
|
|
width: 200,
|
|
|
search: true,
|
|
@@ -695,11 +796,29 @@ export default {
|
|
|
if (item.prop === 'landAmountD') return
|
|
|
}
|
|
|
return this.goodsOptionCrud.column.push({
|
|
|
+ label: '客户名称',
|
|
|
+ prop: 'corpShortName',
|
|
|
+ overHidden: true,
|
|
|
+ index: 1,
|
|
|
+ width: 140,
|
|
|
+ search: true,
|
|
|
+ },{
|
|
|
+ label: '物流运输',
|
|
|
+ prop: 'dispatchDeptName',
|
|
|
+ overHidden: true,
|
|
|
+ index: 3,
|
|
|
+ width: 140
|
|
|
+ },{
|
|
|
label: '应收运费',
|
|
|
overHidden: true,
|
|
|
index: 11,
|
|
|
prop: 'landAmountD'
|
|
|
}, {
|
|
|
+ label: '业务员',
|
|
|
+ prop: 'salesmanName',
|
|
|
+ index: 2,
|
|
|
+ width: 140,
|
|
|
+ }, {
|
|
|
label: '应收杂费',
|
|
|
overHidden: true,
|
|
|
index: 12,
|
|
@@ -718,17 +837,41 @@ export default {
|
|
|
prop: 'fleetShortName'
|
|
|
})
|
|
|
}
|
|
|
- if(this.roleName.indexOf('平台') !== -1||this.roleName.indexOf('admin') !== -1){
|
|
|
+ if(this.roleName.indexOf('平台') !== -1 || this.roleName.indexOf('admin') !== -1 || this.roleName.indexOf('管理员') !== -1){
|
|
|
this.goodsOptionCrud.menu = false
|
|
|
for (let item of this.goodsOptionCrud.column){
|
|
|
if (item.prop === 'landAmountC') return
|
|
|
}
|
|
|
return this.goodsOptionCrud.column.push( {
|
|
|
+ label: '客户名称',
|
|
|
+ prop: 'corpShortName',
|
|
|
+ overHidden: true,
|
|
|
+ index: 1,
|
|
|
+ width: 140,
|
|
|
+ search: true,
|
|
|
+ },{
|
|
|
+ label: '运输调度',
|
|
|
+ prop: 'dispatcherName',
|
|
|
+ overHidden: true,
|
|
|
+ index: 3,
|
|
|
+ width: 140,
|
|
|
+ },{
|
|
|
+ label: '物流运输',
|
|
|
+ prop: 'dispatchDeptName',
|
|
|
+ overHidden: true,
|
|
|
+ index: 3,
|
|
|
+ width: 140
|
|
|
+ },{
|
|
|
label: '应付运费',
|
|
|
overHidden: true,
|
|
|
index: 14,
|
|
|
prop: 'landAmountC'
|
|
|
}, {
|
|
|
+ label: '业务员',
|
|
|
+ prop: 'salesmanName',
|
|
|
+ index: 2,
|
|
|
+ width: 140,
|
|
|
+ }, {
|
|
|
label: '应付杂费',
|
|
|
overHidden: true,
|
|
|
index: 15,
|
|
@@ -772,10 +915,17 @@ export default {
|
|
|
},
|
|
|
//行跳转
|
|
|
celJump(row, index) {
|
|
|
- this.$router.push({
|
|
|
- path: '/landTransportation/dispatchingCars/index',
|
|
|
- query: {orderId: row.orderId},
|
|
|
- });
|
|
|
+ if (this.roleName.indexOf('平台') !== -1){
|
|
|
+ this.$router.push({
|
|
|
+ path: '/landTransportation/dispatchingCars/index',
|
|
|
+ query: {orderId: row.orderId},
|
|
|
+ });
|
|
|
+ }else {
|
|
|
+ this.$router.push({
|
|
|
+ path: '/landTransportation/placeAnOrder/index',
|
|
|
+ query: {id: '台账'+row.orderId},
|
|
|
+ });
|
|
|
+ }
|
|
|
},
|
|
|
// 获得高度
|
|
|
searchCriteriaSwitch(type) {
|