|
@@ -27,7 +27,9 @@
|
|
|
</template>
|
|
|
<template slot="billNo" slot-scope="{row,index}">
|
|
|
<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>
|
|
|
+ <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"
|
|
@@ -44,12 +46,19 @@
|
|
|
></crop-select>
|
|
|
</template>
|
|
|
<template slot-scope="{row,index}" slot="menu">
|
|
|
- <el-button
|
|
|
- size="small"
|
|
|
- type="text"
|
|
|
- @click="incidentalConfirm(row)"
|
|
|
- >{{row.confirmStatus == 0?'杂费确认':'杂费取消'}}
|
|
|
- </el-button>
|
|
|
+ <span v-if="row.extraAmountD>0">
|
|
|
+ <el-button
|
|
|
+ size="small"
|
|
|
+ type="text"
|
|
|
+ >{{ row.confirmStatus !== 0 ? '已确认' : '' }}
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ size="small"
|
|
|
+ type="text"
|
|
|
+ @click="incidentalConfirm(row)"
|
|
|
+ >{{ row.confirmStatus == 0 ? '杂费确认' : '杂费取消' }}
|
|
|
+ </el-button>
|
|
|
+ </span>
|
|
|
</template>
|
|
|
<template slot="addressDetail" slot-scope="{ row,index}">
|
|
|
<el-tooltip class="item" effect="dark" placement="top">
|
|
@@ -118,7 +127,8 @@
|
|
|
</avue-crud>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button @click="incidentalType = false" size="small">取 消</el-button>
|
|
|
- <el-button type="primary" size="small" v-if="collectionList.length>0" @click="incidentalClick">{{confirmStatus == 0?'杂费确认':'杂费取消'}}</el-button>
|
|
|
+ <el-button type="primary" size="small" v-if="collectionList.length>0"
|
|
|
+ @click="incidentalClick">{{ confirmStatus == 0 ? '杂费确认' : '杂费取消' }}</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
<el-dialog
|
|
@@ -138,7 +148,8 @@
|
|
|
<el-button @click="enclosure = false" size="small">取 消</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
- <track-playback :dialogVisible="dialogVisibleTwo" :parkingPoint="parkingPoint" :lineArr="lineArr" ref="playback"></track-playback>
|
|
|
+ <track-playback :dialogVisible="dialogVisibleTwo" :parkingPoint="parkingPoint" :lineArr="lineArr"
|
|
|
+ ref="playback"></track-playback>
|
|
|
</basic-container>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -167,8 +178,8 @@ export default {
|
|
|
return {
|
|
|
key: 0,
|
|
|
form: {},
|
|
|
- enclosure:false,
|
|
|
- dialogVisibleTwo:false,
|
|
|
+ enclosure: false,
|
|
|
+ dialogVisibleTwo: false,
|
|
|
lineArr: [],
|
|
|
parkingPoint: [],
|
|
|
orderList: [],
|
|
@@ -220,11 +231,11 @@ export default {
|
|
|
]
|
|
|
},
|
|
|
collectionOption: {},
|
|
|
- collectionList:[],
|
|
|
+ collectionList: [],
|
|
|
dialogVisible: false,
|
|
|
loading: false,
|
|
|
incidentalType: false,
|
|
|
- confirmStatus:0,
|
|
|
+ confirmStatus: 0,
|
|
|
activeName: '',
|
|
|
query: {},
|
|
|
page: {
|
|
@@ -249,6 +260,7 @@ export default {
|
|
|
searchIcon: true,
|
|
|
searchIndex: 2,
|
|
|
searchSpan: 8,
|
|
|
+ menuWidth:140,
|
|
|
menu: true,
|
|
|
searchMenuPosition: "right",
|
|
|
searchMenuSpan: 6,
|
|
@@ -400,47 +412,45 @@ export default {
|
|
|
this.goodsOptionCrud = await this.getColumnData(this.getColumnName(88.1), this.optionList);
|
|
|
this.collectionOption = await this.getColumnData(this.getColumnName(88.2), this.collectionOptionBackup);
|
|
|
this.key++
|
|
|
- let i = 0;
|
|
|
- this.goodsOptionCrud.column.forEach(item => {
|
|
|
- if (item.search) i++
|
|
|
- })
|
|
|
- if (i % 3 !== 0) {
|
|
|
- const num = 3 - Number(i % 3)
|
|
|
- this.goodsOptionCrud.searchMenuSpan = num * 8;
|
|
|
- this.goodsOptionCrud.searchMenuPosition = "right";
|
|
|
- }
|
|
|
- if(this.roleName.indexOf('总调度') !== -1||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)
|
|
|
// }
|
|
|
// })
|
|
|
- if (this.roleName.indexOf('车队') !== -1){
|
|
|
- for (let item of this.goodsOptionCrud.column){
|
|
|
+ if (this.roleName.indexOf('车队') !== -1) {
|
|
|
+ for (let item of this.goodsOptionCrud.column) {
|
|
|
if (item.prop === 'dispatchDeptName') return false
|
|
|
}
|
|
|
- return this.goodsOptionCrud.column.push(
|
|
|
+ this.goodsOptionCrud.column.push(
|
|
|
{
|
|
|
label: '物流运输',
|
|
|
- prop: 'dispatchDeptName',
|
|
|
+ prop: 'dispatchDept',
|
|
|
+ search: true,
|
|
|
+ dicUrl: "/api/blade-system/dept/top-list?deptCategory=1",
|
|
|
+ type: "select",
|
|
|
+ props: {
|
|
|
+ label: "deptName",
|
|
|
+ value: "id"
|
|
|
+ },
|
|
|
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,
|
|
@@ -456,11 +466,12 @@ export default {
|
|
|
index: 18,
|
|
|
prop: 'extraAmountItemC'
|
|
|
})
|
|
|
- }else {
|
|
|
- for (let item of this.goodsOptionCrud.column){
|
|
|
+ return this.calculateHu()
|
|
|
+ } else {
|
|
|
+ for (let item of this.goodsOptionCrud.column) {
|
|
|
if (item.prop === 'dispatcherName') return false
|
|
|
}
|
|
|
- return this.goodsOptionCrud.column.push(
|
|
|
+ this.goodsOptionCrud.column.push(
|
|
|
{
|
|
|
label: '客户名称',
|
|
|
prop: 'corpShortName',
|
|
@@ -468,7 +479,7 @@ export default {
|
|
|
index: 1,
|
|
|
width: 140,
|
|
|
search: true,
|
|
|
- },{
|
|
|
+ }, {
|
|
|
label: '运输调度',
|
|
|
prop: 'dispatcherName',
|
|
|
overHidden: true,
|
|
@@ -477,9 +488,10 @@ export default {
|
|
|
}, {
|
|
|
label: '业务员',
|
|
|
prop: 'salesmanName',
|
|
|
+ search: true,
|
|
|
index: 2,
|
|
|
width: 140,
|
|
|
- },{
|
|
|
+ }, {
|
|
|
label: '应收运费',
|
|
|
overHidden: true,
|
|
|
index: 11,
|
|
@@ -494,14 +506,14 @@ export default {
|
|
|
width: 100,
|
|
|
index: 17,
|
|
|
prop: 'extraAmountItemD'
|
|
|
- },{
|
|
|
+ }, {
|
|
|
label: '车队',
|
|
|
width: 100,
|
|
|
search: true,
|
|
|
index: 9,
|
|
|
overHidden: true,
|
|
|
prop: 'fleetShortName'
|
|
|
- },{
|
|
|
+ }, {
|
|
|
label: '应付运费',
|
|
|
overHidden: true,
|
|
|
index: 14,
|
|
@@ -524,141 +536,193 @@ export default {
|
|
|
index: 18,
|
|
|
prop: 'extraAmountItemC'
|
|
|
})
|
|
|
+ return this.calculateHu()
|
|
|
}
|
|
|
}
|
|
|
- if(this.roleName.indexOf('客户') !== -1){
|
|
|
+ if (this.roleName.indexOf('客户') !== -1) {
|
|
|
this.goodsOptionCrud.menu = true
|
|
|
- for (let item of this.goodsOptionCrud.column){
|
|
|
+ for (let item of this.goodsOptionCrud.column) {
|
|
|
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,
|
|
|
- prop: 'extraAmountD'
|
|
|
- }, {
|
|
|
- label: '应收杂费明细',
|
|
|
- width: 100,
|
|
|
- index: 17,
|
|
|
- prop: 'extraAmountItemD'
|
|
|
- },{
|
|
|
- label: '车队',
|
|
|
- width: 100,
|
|
|
- search: true,
|
|
|
- index: 9,
|
|
|
- overHidden: true,
|
|
|
- prop: 'fleetShortName'
|
|
|
- })
|
|
|
+ this.goodsOptionCrud.column.push(
|
|
|
+ {
|
|
|
+ label: '客户名称',
|
|
|
+ prop: 'corpShortName',
|
|
|
+ overHidden: true,
|
|
|
+ index: 1,
|
|
|
+ width: 140,
|
|
|
+ search: true,
|
|
|
+ }, {
|
|
|
+ label: '杂费确认',
|
|
|
+ prop: 'confirmStatus',
|
|
|
+ overHidden: true,
|
|
|
+ index: 1,
|
|
|
+ width: 140,
|
|
|
+ type: "select",
|
|
|
+ hide: true,
|
|
|
+ dicData: [{
|
|
|
+ label: '未确认',
|
|
|
+ value: 0
|
|
|
+ }, {
|
|
|
+ label: '已确认',
|
|
|
+ value: 1
|
|
|
+ }],
|
|
|
+ props: {
|
|
|
+ label: "label",
|
|
|
+ value: "value"
|
|
|
+ },
|
|
|
+ search: true,
|
|
|
+ }, {
|
|
|
+ label: '物流运输',
|
|
|
+ prop: 'dispatchDept',
|
|
|
+ search: true,
|
|
|
+ dicUrl: "/api/blade-system/dept/top-list?deptCategory=1",
|
|
|
+ type: "select",
|
|
|
+ props: {
|
|
|
+ label: "deptName",
|
|
|
+ value: "id"
|
|
|
+ },
|
|
|
+ overHidden: true,
|
|
|
+ index: 3,
|
|
|
+ width: 140
|
|
|
+ }, {
|
|
|
+ label: '应收运费',
|
|
|
+ overHidden: true,
|
|
|
+ index: 11,
|
|
|
+ prop: 'landAmountD'
|
|
|
+ }, {
|
|
|
+ label: '业务员',
|
|
|
+ prop: 'salesmanName',
|
|
|
+ search: true,
|
|
|
+ index: 2,
|
|
|
+ width: 140,
|
|
|
+ }, {
|
|
|
+ label: '应收杂费',
|
|
|
+ overHidden: true,
|
|
|
+ index: 12,
|
|
|
+ prop: 'extraAmountD'
|
|
|
+ }, {
|
|
|
+ label: '应收杂费明细',
|
|
|
+ width: 100,
|
|
|
+ index: 17,
|
|
|
+ prop: 'extraAmountItemD'
|
|
|
+ }, {
|
|
|
+ label: '车队',
|
|
|
+ width: 100,
|
|
|
+ search: true,
|
|
|
+ index: 9,
|
|
|
+ overHidden: true,
|
|
|
+ prop: 'fleetShortName'
|
|
|
+ })
|
|
|
+ return this.calculateHu()
|
|
|
}
|
|
|
- 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
|
|
|
- for (let item of this.goodsOptionCrud.column){
|
|
|
+ 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: 2,
|
|
|
- width: 140,
|
|
|
- }, {
|
|
|
- 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'
|
|
|
- },{
|
|
|
- label: '车队',
|
|
|
- width: 100,
|
|
|
- search: true,
|
|
|
- index: 9,
|
|
|
- overHidden: true,
|
|
|
- prop: 'fleetShortName'
|
|
|
- })
|
|
|
+ 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: 'dispatchDept',
|
|
|
+ search: true,
|
|
|
+ dicUrl: "/api/blade-system/dept/top-list?deptCategory=1",
|
|
|
+ type: "select",
|
|
|
+ props: {
|
|
|
+ label: "deptName",
|
|
|
+ value: "id"
|
|
|
+ },
|
|
|
+ overHidden: true,
|
|
|
+ index: 3,
|
|
|
+ width: 140
|
|
|
+ }, {
|
|
|
+ label: '业务员',
|
|
|
+ prop: 'salesmanName',
|
|
|
+ search: true,
|
|
|
+ index: 2,
|
|
|
+ width: 140,
|
|
|
+ }, {
|
|
|
+ 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'
|
|
|
+ }, {
|
|
|
+ label: '车队',
|
|
|
+ width: 100,
|
|
|
+ search: true,
|
|
|
+ index: 9,
|
|
|
+ overHidden: true,
|
|
|
+ prop: 'fleetShortName'
|
|
|
+ })
|
|
|
+ return this.calculateHu()
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- openTrack(row){
|
|
|
- gaude({itemId: row.id,plateNo:row.plateNo,tenantId:'234557',color:'2'}).then(res => {
|
|
|
+ calculateHu() {
|
|
|
+ let i = 0;
|
|
|
+ this.goodsOptionCrud.column.forEach(item => {
|
|
|
+ if (item.search === true) i++
|
|
|
+ })
|
|
|
+ if (i % 3 !== 0) {
|
|
|
+ const num = 3 - Number(i % 3)
|
|
|
+ this.goodsOptionCrud.searchMenuSpan = num * 8;
|
|
|
+ this.goodsOptionCrud.searchMenuPosition = "right";
|
|
|
+ }
|
|
|
+ },
|
|
|
+ openTrack(row) {
|
|
|
+ gaude({itemId: row.id, plateNo: row.plateNo, tenantId: '234557', color: '2'}).then(res => {
|
|
|
this.lineArr = res.data.data.trackArray
|
|
|
this.parkingPoint = res.data.data.parkArray
|
|
|
this.dialogVisibleTwo = true
|
|
|
let this_ = this
|
|
|
- setTimeout(function(){
|
|
|
+ setTimeout(function () {
|
|
|
this_.$refs.playback.initMap();
|
|
|
- },100)
|
|
|
+ }, 100)
|
|
|
})
|
|
|
},
|
|
|
//导出
|
|
@@ -723,39 +787,45 @@ export default {
|
|
|
this.$message.success("重置成功");
|
|
|
this.$refs.crud.$refs.dialogColumn.columnBox = false;
|
|
|
}
|
|
|
-
|
|
|
- if(this.roleName.indexOf('总调度') !== -1||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)
|
|
|
// }
|
|
|
// })
|
|
|
- if (this.roleName.indexOf('车队') !== -1){
|
|
|
- for (let item of this.goodsOptionCrud.column){
|
|
|
+ if (this.roleName.indexOf('车队') !== -1) {
|
|
|
+ for (let item of this.goodsOptionCrud.column) {
|
|
|
if (item.prop === 'dispatchDeptName') return false
|
|
|
}
|
|
|
- return this.goodsOptionCrud.column.push(
|
|
|
+ this.goodsOptionCrud.column.push(
|
|
|
{
|
|
|
label: '物流运输',
|
|
|
- prop: 'dispatchDeptName',
|
|
|
+ prop: 'dispatchDept',
|
|
|
+ search: true,
|
|
|
+ dicUrl: "/api/blade-system/dept/top-list?deptCategory=1",
|
|
|
+ type: "select",
|
|
|
+ props: {
|
|
|
+ label: "deptName",
|
|
|
+ value: "id"
|
|
|
+ },
|
|
|
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,
|
|
@@ -771,11 +841,12 @@ export default {
|
|
|
index: 18,
|
|
|
prop: 'extraAmountItemC'
|
|
|
})
|
|
|
- }else {
|
|
|
- for (let item of this.goodsOptionCrud.column){
|
|
|
+ return this.calculateHu()
|
|
|
+ } else {
|
|
|
+ for (let item of this.goodsOptionCrud.column) {
|
|
|
if (item.prop === 'dispatcherName') return false
|
|
|
}
|
|
|
- return this.goodsOptionCrud.column.push(
|
|
|
+ this.goodsOptionCrud.column.push(
|
|
|
{
|
|
|
label: '客户名称',
|
|
|
prop: 'corpShortName',
|
|
@@ -783,7 +854,7 @@ export default {
|
|
|
index: 1,
|
|
|
width: 140,
|
|
|
search: true,
|
|
|
- },{
|
|
|
+ }, {
|
|
|
label: '运输调度',
|
|
|
prop: 'dispatcherName',
|
|
|
overHidden: true,
|
|
@@ -792,9 +863,10 @@ export default {
|
|
|
}, {
|
|
|
label: '业务员',
|
|
|
prop: 'salesmanName',
|
|
|
+ search: true,
|
|
|
index: 2,
|
|
|
width: 140,
|
|
|
- },{
|
|
|
+ }, {
|
|
|
label: '应收运费',
|
|
|
overHidden: true,
|
|
|
index: 11,
|
|
@@ -809,14 +881,14 @@ export default {
|
|
|
width: 100,
|
|
|
index: 17,
|
|
|
prop: 'extraAmountItemD'
|
|
|
- },{
|
|
|
+ }, {
|
|
|
label: '车队',
|
|
|
width: 100,
|
|
|
search: true,
|
|
|
index: 9,
|
|
|
overHidden: true,
|
|
|
prop: 'fleetShortName'
|
|
|
- },{
|
|
|
+ }, {
|
|
|
label: '应付运费',
|
|
|
overHidden: true,
|
|
|
index: 14,
|
|
@@ -839,142 +911,183 @@ export default {
|
|
|
index: 18,
|
|
|
prop: 'extraAmountItemC'
|
|
|
})
|
|
|
+ return this.calculateHu()
|
|
|
}
|
|
|
}
|
|
|
- if(this.roleName.indexOf('客户') !== -1){
|
|
|
+ if (this.roleName.indexOf('客户') !== -1) {
|
|
|
this.goodsOptionCrud.menu = true
|
|
|
- for (let item of this.goodsOptionCrud.column){
|
|
|
+ for (let item of this.goodsOptionCrud.column) {
|
|
|
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,
|
|
|
- prop: 'extraAmountD'
|
|
|
- }, {
|
|
|
- label: '应收杂费明细',
|
|
|
- width: 100,
|
|
|
- index: 17,
|
|
|
- prop: 'extraAmountItemD'
|
|
|
- },{
|
|
|
- label: '车队',
|
|
|
- width: 100,
|
|
|
- search: true,
|
|
|
- index: 9,
|
|
|
- overHidden: true,
|
|
|
- prop: 'fleetShortName'
|
|
|
- })
|
|
|
+ this.goodsOptionCrud.column.push(
|
|
|
+ {
|
|
|
+ label: '客户名称',
|
|
|
+ prop: 'corpShortName',
|
|
|
+ overHidden: true,
|
|
|
+ index: 1,
|
|
|
+ width: 140,
|
|
|
+ search: true,
|
|
|
+ }, {
|
|
|
+ label: '杂费确认',
|
|
|
+ prop: 'confirmStatus',
|
|
|
+ overHidden: true,
|
|
|
+ index: 1,
|
|
|
+ width: 140,
|
|
|
+ type: "select",
|
|
|
+ hide: true,
|
|
|
+ dicData: [{
|
|
|
+ label: '未确认',
|
|
|
+ value: 0
|
|
|
+ }, {
|
|
|
+ label: '已确认',
|
|
|
+ value: 1
|
|
|
+ }],
|
|
|
+ props: {
|
|
|
+ label: "label",
|
|
|
+ value: "value"
|
|
|
+ },
|
|
|
+ search: true,
|
|
|
+ }, {
|
|
|
+ label: '物流运输',
|
|
|
+ prop: 'dispatchDept',
|
|
|
+ search: true,
|
|
|
+ dicUrl: "/api/blade-system/dept/top-list?deptCategory=1",
|
|
|
+ type: "select",
|
|
|
+ props: {
|
|
|
+ label: "deptName",
|
|
|
+ value: "id"
|
|
|
+ },
|
|
|
+ overHidden: true,
|
|
|
+ index: 3,
|
|
|
+ width: 140
|
|
|
+ }, {
|
|
|
+ label: '应收运费',
|
|
|
+ overHidden: true,
|
|
|
+ index: 11,
|
|
|
+ prop: 'landAmountD'
|
|
|
+ }, {
|
|
|
+ label: '业务员',
|
|
|
+ prop: 'salesmanName',
|
|
|
+ search: true,
|
|
|
+ index: 2,
|
|
|
+ width: 140,
|
|
|
+ }, {
|
|
|
+ label: '应收杂费',
|
|
|
+ overHidden: true,
|
|
|
+ index: 12,
|
|
|
+ prop: 'extraAmountD'
|
|
|
+ }, {
|
|
|
+ label: '应收杂费明细',
|
|
|
+ width: 100,
|
|
|
+ index: 17,
|
|
|
+ prop: 'extraAmountItemD'
|
|
|
+ }, {
|
|
|
+ label: '车队',
|
|
|
+ width: 100,
|
|
|
+ search: true,
|
|
|
+ index: 9,
|
|
|
+ overHidden: true,
|
|
|
+ prop: 'fleetShortName'
|
|
|
+ })
|
|
|
+ return this.calculateHu()
|
|
|
}
|
|
|
- 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
|
|
|
- for (let item of this.goodsOptionCrud.column){
|
|
|
+ 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: 2,
|
|
|
- width: 140,
|
|
|
- }, {
|
|
|
- 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'
|
|
|
- },{
|
|
|
- label: '车队',
|
|
|
- width: 100,
|
|
|
- search: true,
|
|
|
- index: 9,
|
|
|
- overHidden: true,
|
|
|
- prop: 'fleetShortName'
|
|
|
- })
|
|
|
+ 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: 'dispatchDept',
|
|
|
+ search: true,
|
|
|
+ dicUrl: "/api/blade-system/dept/top-list?deptCategory=1",
|
|
|
+ type: "select",
|
|
|
+ props: {
|
|
|
+ label: "deptName",
|
|
|
+ value: "id"
|
|
|
+ },
|
|
|
+ overHidden: true,
|
|
|
+ index: 3,
|
|
|
+ width: 140
|
|
|
+ }, {
|
|
|
+ label: '业务员',
|
|
|
+ prop: 'salesmanName',
|
|
|
+ search: true,
|
|
|
+ index: 2,
|
|
|
+ width: 140,
|
|
|
+ }, {
|
|
|
+ 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'
|
|
|
+ }, {
|
|
|
+ label: '车队',
|
|
|
+ width: 100,
|
|
|
+ search: true,
|
|
|
+ index: 9,
|
|
|
+ overHidden: true,
|
|
|
+ prop: 'fleetShortName'
|
|
|
+ })
|
|
|
+ return this.calculateHu()
|
|
|
}
|
|
|
},
|
|
|
//行跳转
|
|
|
celJump(row, index) {
|
|
|
- if (this.roleName.indexOf('平台') !== -1){
|
|
|
+ if (this.roleName.indexOf('平台') !== -1) {
|
|
|
this.$router.push({
|
|
|
path: '/landTransportation/dispatchingCars/index',
|
|
|
query: {orderId: row.orderId},
|
|
|
});
|
|
|
- }else {
|
|
|
+ } else {
|
|
|
this.$router.push({
|
|
|
path: '/landTransportation/placeAnOrder/index',
|
|
|
- query: {id: '台账'+row.orderId},
|
|
|
+ query: {id: '台账' + row.orderId},
|
|
|
});
|
|
|
}
|
|
|
},
|
|
@@ -1015,7 +1128,7 @@ export default {
|
|
|
size: page.pageSize,
|
|
|
current: page.currentPage,
|
|
|
tag: '0',
|
|
|
- ...params?params:this.query
|
|
|
+ ...params ? params : this.query
|
|
|
}
|
|
|
if (queryParams.arrivalTime) {
|
|
|
queryParams.beginArrivalTime = queryParams.arrivalTime[0]
|
|
@@ -1095,10 +1208,10 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
//打开附件
|
|
|
- annexOpen(row, index){
|
|
|
+ annexOpen(row, index) {
|
|
|
this.enclosure = true
|
|
|
this.formAnnex = row
|
|
|
- getFee({id:row.id}).then(res=>{
|
|
|
+ getFee({id: row.id}).then(res => {
|
|
|
this.orderList = res.data.data
|
|
|
})
|
|
|
},
|
|
@@ -1114,27 +1227,27 @@ export default {
|
|
|
ToBreak(val) {
|
|
|
if (val) return val.replace(/\n/g, '<br/>')
|
|
|
},
|
|
|
- incidentalConfirm(row){
|
|
|
+ incidentalConfirm(row) {
|
|
|
incidental({
|
|
|
- orderId:row.orderId,
|
|
|
- plateNo:row.plateNo,
|
|
|
- type:'1'
|
|
|
- }).then(res=>{
|
|
|
+ itemId: row.itemId,
|
|
|
+ plateNo: row.plateNo,
|
|
|
+ type: '1'
|
|
|
+ }).then(res => {
|
|
|
this.collectionList = res.data.data
|
|
|
this.incidentalType = true
|
|
|
this.confirmStatus = row.confirmStatus
|
|
|
})
|
|
|
},
|
|
|
- incidentalClick(){
|
|
|
- let id = []
|
|
|
- this.collectionList.forEach(item => id.push(item.id))
|
|
|
- if (this.confirmStatus == 0){
|
|
|
- incidentalConfirm({ids:id.join(',')}).then(res=>{
|
|
|
+ incidentalClick() {
|
|
|
+ if (this.confirmStatus == 0) {
|
|
|
+ incidentalConfirm({itemId: this.collectionList[0].itemId}).then(res => {
|
|
|
this.$message.success("确认成功");
|
|
|
+ this.onLoad(this.page)
|
|
|
})
|
|
|
- }else {
|
|
|
- cancelConfirm({ids:id.join(',')}).then(res=>{
|
|
|
+ } else {
|
|
|
+ cancelConfirm({itemId: this.collectionList[0].itemId}).then(res => {
|
|
|
this.$message.success("取消成功");
|
|
|
+ this.onLoad(this.page)
|
|
|
})
|
|
|
}
|
|
|
this.incidentalType = false
|