|
|
|
@ -79,6 +79,15 @@
|
|
|
|
|
<div class="nav" @click="copyBookingMore"><i class="iconfont icon-fuzhi1"></i>复制多票</div>
|
|
|
|
|
<div class="nav" @click="batchEditing"><i class="iconfont icon-bianjiwenjian"></i>批量编辑</div>
|
|
|
|
|
<div class="nav"><i class="iconfont icon-shujushangchuan-shixin"></i>批量VGM</div>
|
|
|
|
|
<a-popconfirm
|
|
|
|
|
title="确定删除当前选中订舱?"
|
|
|
|
|
ok-text="是"
|
|
|
|
|
cancel-text="否"
|
|
|
|
|
@confirm="removeMoreFun"
|
|
|
|
|
@cancel="cancelRemove"
|
|
|
|
|
>
|
|
|
|
|
<div class="nav"><i class="iconfont icon-shanchu2"></i>删除</div>
|
|
|
|
|
</a-popconfirm>
|
|
|
|
|
<div class="nav"><i class="iconfont icon-shishijifei"></i>定时订舱</div>
|
|
|
|
|
<div class="nav"><i class="iconfont icon-xiaopiaodayin"></i>小票状态</div>
|
|
|
|
|
<div class="nav" @click="openTraceModel"><i class="iconfont icon-yunshu1"></i>运踪订阅</div>
|
|
|
|
@ -140,6 +149,15 @@
|
|
|
|
|
</template>
|
|
|
|
|
<template #operate="{ row }">
|
|
|
|
|
<vxe-button class="operate-btn" type="text" icon="vxe-icon-edit" @click="editColumns(row)"></vxe-button>
|
|
|
|
|
<a-popconfirm
|
|
|
|
|
title="确定删除当前订舱?"
|
|
|
|
|
ok-text="是"
|
|
|
|
|
cancel-text="否"
|
|
|
|
|
@confirm="removeFun(row)"
|
|
|
|
|
@cancel="cancelRemove"
|
|
|
|
|
>
|
|
|
|
|
<vxe-button class="operate-btn" type="text" icon="vxe-icon-delete"></vxe-button>
|
|
|
|
|
</a-popconfirm>
|
|
|
|
|
</template>
|
|
|
|
|
<!-- <template #bookstatus="{ row }">
|
|
|
|
|
<span class="book-btn" v-for="(btn,bindex) in row.bookstatus" :class="btn.staCode" :key="bindex"> {{ enmuBookingBtn(btn.staCode) }}<i>/</i></span>
|
|
|
|
@ -476,7 +494,8 @@ import {
|
|
|
|
|
GetFrt,
|
|
|
|
|
GetService,
|
|
|
|
|
GetForwarderlist,
|
|
|
|
|
DjyUserConfigMulti
|
|
|
|
|
DjyUserConfigMulti,
|
|
|
|
|
DeleteBookingOrder
|
|
|
|
|
} from '@/api/modular/main/BookingLedger'
|
|
|
|
|
|
|
|
|
|
import initData from './modules/initData'
|
|
|
|
@ -492,6 +511,7 @@ const formInitData = [
|
|
|
|
|
]
|
|
|
|
|
export default {
|
|
|
|
|
name: 'BookingLedger',
|
|
|
|
|
inject: ['reload'],
|
|
|
|
|
components: {
|
|
|
|
|
XCard,
|
|
|
|
|
columnSetting,
|
|
|
|
@ -897,11 +917,14 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
setTableList (data) {
|
|
|
|
|
if (data && JSON.parse(data.configJson).length) {
|
|
|
|
|
this.gridOptions.columns = JSON.parse(data.configJson)
|
|
|
|
|
this.formTableData = JSON.parse(data.configJson)
|
|
|
|
|
const nowTableArr = this.formTableData.map((item, index) => {
|
|
|
|
|
if (item.field === 'operate') {
|
|
|
|
|
item.width = 100
|
|
|
|
|
}
|
|
|
|
|
return item.field
|
|
|
|
|
})
|
|
|
|
|
this.gridOptions.columns = JSON.parse(JSON.stringify(this.formTableData))
|
|
|
|
|
const moreTableArr = []
|
|
|
|
|
this.fromTableAllData.map((item, index) => {
|
|
|
|
|
if (!nowTableArr.includes(item.field)) {
|
|
|
|
@ -1553,6 +1576,39 @@ export default {
|
|
|
|
|
this.$refs[`fromlabel-${form.label}`][0].$data.dataList = data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
removeMoreFun () {
|
|
|
|
|
const select = this.$refs.xGrid.getCheckboxRecords()
|
|
|
|
|
if (select.length === 0) {
|
|
|
|
|
this.$message.error('请选择操作订单')
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
const removeArr = select.map((item, index) => {
|
|
|
|
|
return item.id
|
|
|
|
|
})
|
|
|
|
|
this.deleteBookingOrder(removeArr)
|
|
|
|
|
},
|
|
|
|
|
removeFun (data) {
|
|
|
|
|
this.deleteBookingOrder([data.id])
|
|
|
|
|
},
|
|
|
|
|
deleteBookingOrder (arr) {
|
|
|
|
|
DeleteBookingOrder(arr.toString()).then(res => {
|
|
|
|
|
if (res.success) {
|
|
|
|
|
this.$message.success('删除成功')
|
|
|
|
|
this.gridOptions.data = this.gridOptions.data.filter(item => !arr.includes(item.id))
|
|
|
|
|
this.gridOptions.pagerConfig.total = this.gridOptions.pagerConfig.total - arr.length
|
|
|
|
|
this.$forceUpdate()
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(res.message)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch(err => {
|
|
|
|
|
console.log(err)
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
cancelRemove () {
|
|
|
|
|
console.log('== 取消 ==')
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -1712,6 +1768,15 @@ export default {
|
|
|
|
|
box-shadow: 0 0 10px #eee;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
&:nth-of-type(9) {
|
|
|
|
|
.iconfont {
|
|
|
|
|
color: #f6826b;
|
|
|
|
|
}
|
|
|
|
|
&:hover {
|
|
|
|
|
background: #fff;
|
|
|
|
|
box-shadow: 0 0 10px #eee;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|