|
@@ -234,6 +234,7 @@ export default {
|
|
|
}, {
|
|
}, {
|
|
|
label: '车号',
|
|
label: '车号',
|
|
|
width: 90,
|
|
width: 90,
|
|
|
|
|
+ search: true,
|
|
|
prop: 'plateNo'
|
|
prop: 'plateNo'
|
|
|
}, {
|
|
}, {
|
|
|
label: '备注',
|
|
label: '备注',
|
|
@@ -275,7 +276,7 @@ export default {
|
|
|
menuWidth: 140,
|
|
menuWidth: 140,
|
|
|
menu: true,
|
|
menu: true,
|
|
|
searchMenuPosition: "right",
|
|
searchMenuPosition: "right",
|
|
|
- searchMenuSpan: 6,
|
|
|
|
|
|
|
+ searchMenuSpan: 8,
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
height: "auto",
|
|
height: "auto",
|
|
|
showSummary: true,
|
|
showSummary: true,
|
|
@@ -362,6 +363,13 @@ export default {
|
|
|
width: 126,
|
|
width: 126,
|
|
|
search: true,
|
|
search: true,
|
|
|
}, {
|
|
}, {
|
|
|
|
|
+ label: '车号',
|
|
|
|
|
+ width: 90,
|
|
|
|
|
+ prop: 'plateNo',
|
|
|
|
|
+ overHidden: true,
|
|
|
|
|
+ index: 10,
|
|
|
|
|
+ search: true
|
|
|
|
|
+ }, {
|
|
|
label: '货运地点',
|
|
label: '货运地点',
|
|
|
index: 4,
|
|
index: 4,
|
|
|
width: 132,
|
|
width: 132,
|
|
@@ -404,13 +412,6 @@ export default {
|
|
|
overHidden: true,
|
|
overHidden: true,
|
|
|
prop: 'ctnDetail'
|
|
prop: 'ctnDetail'
|
|
|
}, {
|
|
}, {
|
|
|
- label: '车号',
|
|
|
|
|
- width: 90,
|
|
|
|
|
- prop: 'plateNo',
|
|
|
|
|
- overHidden: true,
|
|
|
|
|
- index: 10,
|
|
|
|
|
- search: true
|
|
|
|
|
- }, {
|
|
|
|
|
label: '备注',
|
|
label: '备注',
|
|
|
overHidden: true,
|
|
overHidden: true,
|
|
|
index: 13,
|
|
index: 13,
|
|
@@ -458,7 +459,7 @@ export default {
|
|
|
// })
|
|
// })
|
|
|
if (this.roleName.indexOf('车队') !== -1) {
|
|
if (this.roleName.indexOf('车队') !== -1) {
|
|
|
for (let item of this.goodsOptionCrud.column) {
|
|
for (let item of this.goodsOptionCrud.column) {
|
|
|
- if (item.prop === 'dispatchDeptName') return false
|
|
|
|
|
|
|
+ if (item.prop === 'dispatchDeptName') return this.calculateHu()
|
|
|
}
|
|
}
|
|
|
this.goodsOptionCrud.column.push(
|
|
this.goodsOptionCrud.column.push(
|
|
|
{
|
|
{
|
|
@@ -508,7 +509,7 @@ export default {
|
|
|
return this.calculateHu()
|
|
return this.calculateHu()
|
|
|
} else {
|
|
} else {
|
|
|
for (let item of this.goodsOptionCrud.column) {
|
|
for (let item of this.goodsOptionCrud.column) {
|
|
|
- if (item.prop === 'dispatcherName') return false
|
|
|
|
|
|
|
+ if (item.prop === 'dispatcherName') return this.calculateHu()
|
|
|
}
|
|
}
|
|
|
this.goodsOptionCrud.column.push(
|
|
this.goodsOptionCrud.column.push(
|
|
|
{
|
|
{
|
|
@@ -578,7 +579,7 @@ export default {
|
|
|
if (this.roleName.indexOf('客户') !== -1) {
|
|
if (this.roleName.indexOf('客户') !== -1) {
|
|
|
this.goodsOptionCrud.menu = true
|
|
this.goodsOptionCrud.menu = true
|
|
|
for (let item of this.goodsOptionCrud.column) {
|
|
for (let item of this.goodsOptionCrud.column) {
|
|
|
- if (item.prop === 'landAmountD') return
|
|
|
|
|
|
|
+ if (item.prop === 'landAmountD') return this.calculateHu()
|
|
|
}
|
|
}
|
|
|
this.goodsOptionCrud.column.push(
|
|
this.goodsOptionCrud.column.push(
|
|
|
{
|
|
{
|
|
@@ -657,7 +658,7 @@ export default {
|
|
|
if (this.roleName.indexOf('平台') !== -1 || this.roleName.indexOf('admin') !== -1 || this.roleName.indexOf('管理员') !== -1) {
|
|
if (this.roleName.indexOf('平台') !== -1 || this.roleName.indexOf('admin') !== -1 || this.roleName.indexOf('管理员') !== -1) {
|
|
|
this.goodsOptionCrud.menu = false
|
|
this.goodsOptionCrud.menu = false
|
|
|
for (let item of this.goodsOptionCrud.column) {
|
|
for (let item of this.goodsOptionCrud.column) {
|
|
|
- if (item.prop === 'landAmountC') return
|
|
|
|
|
|
|
+ if (item.prop === 'landAmountC') return this.calculateHu()
|
|
|
}
|
|
}
|
|
|
this.goodsOptionCrud.column.push(
|
|
this.goodsOptionCrud.column.push(
|
|
|
{
|
|
{
|
|
@@ -736,17 +737,21 @@ export default {
|
|
|
})
|
|
})
|
|
|
return this.calculateHu()
|
|
return this.calculateHu()
|
|
|
}
|
|
}
|
|
|
|
|
+ // this.calculateHu()
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
calculateHu() {
|
|
calculateHu() {
|
|
|
let i = 0;
|
|
let i = 0;
|
|
|
this.goodsOptionCrud.column.forEach(item => {
|
|
this.goodsOptionCrud.column.forEach(item => {
|
|
|
- if (item.search === true) i++
|
|
|
|
|
|
|
+ if (item.search) i++
|
|
|
})
|
|
})
|
|
|
if (i % 3 !== 0) {
|
|
if (i % 3 !== 0) {
|
|
|
const num = 3 - Number(i % 3)
|
|
const num = 3 - Number(i % 3)
|
|
|
this.goodsOptionCrud.searchMenuSpan = num * 8;
|
|
this.goodsOptionCrud.searchMenuSpan = num * 8;
|
|
|
this.goodsOptionCrud.searchMenuPosition = "right";
|
|
this.goodsOptionCrud.searchMenuPosition = "right";
|
|
|
|
|
+ }else {
|
|
|
|
|
+ this.goodsOptionCrud.searchMenuSpan = 3 * 8;
|
|
|
|
|
+ this.goodsOptionCrud.searchMenuPosition = "right";
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
openTrack(row) {
|
|
openTrack(row) {
|
|
@@ -867,7 +872,7 @@ export default {
|
|
|
// })
|
|
// })
|
|
|
if (this.roleName.indexOf('车队') !== -1) {
|
|
if (this.roleName.indexOf('车队') !== -1) {
|
|
|
for (let item of this.goodsOptionCrud.column) {
|
|
for (let item of this.goodsOptionCrud.column) {
|
|
|
- if (item.prop === 'dispatchDeptName') return false
|
|
|
|
|
|
|
+ if (item.prop === 'dispatchDeptName') return this.calculateHu()
|
|
|
}
|
|
}
|
|
|
this.goodsOptionCrud.column.push(
|
|
this.goodsOptionCrud.column.push(
|
|
|
{
|
|
{
|
|
@@ -917,7 +922,7 @@ export default {
|
|
|
return this.calculateHu()
|
|
return this.calculateHu()
|
|
|
} else {
|
|
} else {
|
|
|
for (let item of this.goodsOptionCrud.column) {
|
|
for (let item of this.goodsOptionCrud.column) {
|
|
|
- if (item.prop === 'dispatcherName') return false
|
|
|
|
|
|
|
+ if (item.prop === 'dispatcherName') return this.calculateHu()
|
|
|
}
|
|
}
|
|
|
this.goodsOptionCrud.column.push(
|
|
this.goodsOptionCrud.column.push(
|
|
|
{
|
|
{
|
|
@@ -987,7 +992,7 @@ export default {
|
|
|
if (this.roleName.indexOf('客户') !== -1) {
|
|
if (this.roleName.indexOf('客户') !== -1) {
|
|
|
this.goodsOptionCrud.menu = true
|
|
this.goodsOptionCrud.menu = true
|
|
|
for (let item of this.goodsOptionCrud.column) {
|
|
for (let item of this.goodsOptionCrud.column) {
|
|
|
- if (item.prop === 'landAmountD') return
|
|
|
|
|
|
|
+ if (item.prop === 'landAmountD') return this.calculateHu()
|
|
|
}
|
|
}
|
|
|
this.goodsOptionCrud.column.push(
|
|
this.goodsOptionCrud.column.push(
|
|
|
{
|
|
{
|
|
@@ -1066,7 +1071,7 @@ export default {
|
|
|
if (this.roleName.indexOf('平台') !== -1 || this.roleName.indexOf('admin') !== -1 || this.roleName.indexOf('管理员') !== -1) {
|
|
if (this.roleName.indexOf('平台') !== -1 || this.roleName.indexOf('admin') !== -1 || this.roleName.indexOf('管理员') !== -1) {
|
|
|
this.goodsOptionCrud.menu = false
|
|
this.goodsOptionCrud.menu = false
|
|
|
for (let item of this.goodsOptionCrud.column) {
|
|
for (let item of this.goodsOptionCrud.column) {
|
|
|
- if (item.prop === 'landAmountC') return
|
|
|
|
|
|
|
+ if (item.prop === 'landAmountC') return this.calculateHu()
|
|
|
}
|
|
}
|
|
|
this.goodsOptionCrud.column.push(
|
|
this.goodsOptionCrud.column.push(
|
|
|
{
|
|
{
|