|
|
|
@ -101,16 +101,16 @@
|
|
|
|
|
<span> <i class="iconfont icon-xiaopiaodayin"></i>船公司文件 </span>
|
|
|
|
|
<a-menu slot="overlay">
|
|
|
|
|
<a-menu-item>
|
|
|
|
|
<a @click="handleDownByBc" href="javascript:;">BC下载</a>
|
|
|
|
|
<a @click="handleDownByBc(1)" href="javascript:;">BC下载</a>
|
|
|
|
|
</a-menu-item>
|
|
|
|
|
<a-menu-item>
|
|
|
|
|
<a href="javascript:;">DRAFT下载</a>
|
|
|
|
|
<a @click="handleDownByBc(2)" href="javascript:;">DRAFT下载</a>
|
|
|
|
|
</a-menu-item>
|
|
|
|
|
<a-menu-item>
|
|
|
|
|
<a href="javascript:;">到港时间更新</a>
|
|
|
|
|
<a @click="handleDownByBc(3)" href="javascript:;">到港时间更新</a>
|
|
|
|
|
</a-menu-item>
|
|
|
|
|
<a-menu-item>
|
|
|
|
|
<a href="javascript:;">舱位分配查询</a>
|
|
|
|
|
<a @click="handleDownByBc(4)" href="javascript:;">舱位分配查询</a>
|
|
|
|
|
</a-menu-item>
|
|
|
|
|
</a-menu>
|
|
|
|
|
</a-dropdown>
|
|
|
|
@ -659,15 +659,16 @@
|
|
|
|
|
@cancel="bcFileFlag=false"
|
|
|
|
|
>
|
|
|
|
|
<div class="bcfile-title">
|
|
|
|
|
<a-icon style="margin-right: 10px;" type="copy" />时间{{ bcFile.executeTime }}
|
|
|
|
|
<span> {{ bcFile.batchTotal }}</span>
|
|
|
|
|
<div><a-icon style="margin-right: 10px;" @click="handleCopy" type="copy" />时间{{ bcFile.executeTime }}</div>
|
|
|
|
|
<span > {{ bcFile.batchTotal }}</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="bc-box">
|
|
|
|
|
<div ref="bcBox" class="bc-box" v-if="bcFile.ext && bcFile.ext.length>0">
|
|
|
|
|
<div class="bc-item" v-for="(item,index) in bcFile.ext" :key="index">
|
|
|
|
|
<span>{{ item.bno }}</span>
|
|
|
|
|
<span> {{ item.msg }}</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div v-else>{{ bcFile.msg }}</div>
|
|
|
|
|
</a-modal>
|
|
|
|
|
</a-spin>
|
|
|
|
|
</div>
|
|
|
|
@ -698,7 +699,10 @@ import {
|
|
|
|
|
DeleteBookingOrder,
|
|
|
|
|
ExcuteShippingOrderCompareBatch,
|
|
|
|
|
GetTenantLineList,
|
|
|
|
|
downloadBookingConfirm
|
|
|
|
|
downloadBookingConfirm,
|
|
|
|
|
downloadDraft,
|
|
|
|
|
checkUpdateETA,
|
|
|
|
|
checkUpdateManifestNo
|
|
|
|
|
} from '@/api/modular/main/BookingLedger'
|
|
|
|
|
|
|
|
|
|
import initData from './modules/initData'
|
|
|
|
@ -807,7 +811,7 @@ export default {
|
|
|
|
|
destinationData: [],
|
|
|
|
|
RcarrierData: [],
|
|
|
|
|
RecentlyCarrierData: [],
|
|
|
|
|
bcFile: {},
|
|
|
|
|
bcFile: { ext: [] },
|
|
|
|
|
bcFileFlag: false
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
@ -910,7 +914,7 @@ export default {
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
handleDownByBc() {
|
|
|
|
|
handleDownByBc(type) {
|
|
|
|
|
const select = this.$refs.xGrid.getCheckboxRecords()
|
|
|
|
|
const pkIdArr = select.map((item, index) => {
|
|
|
|
|
return item.id
|
|
|
|
@ -919,7 +923,8 @@ export default {
|
|
|
|
|
this.$message.error('请至少选择一条数据')
|
|
|
|
|
return false
|
|
|
|
|
} else {
|
|
|
|
|
downloadBookingConfirm(pkIdArr)
|
|
|
|
|
if (type === 1) {
|
|
|
|
|
downloadBookingConfirm(pkIdArr)
|
|
|
|
|
.then((res) => {
|
|
|
|
|
if (res.success) {
|
|
|
|
|
this.bcFileFlag = true
|
|
|
|
@ -931,6 +936,49 @@ export default {
|
|
|
|
|
.catch((err) => {
|
|
|
|
|
console.log(err)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
if (type === 2) {
|
|
|
|
|
downloadDraft(pkIdArr)
|
|
|
|
|
.then((res) => {
|
|
|
|
|
if (res.success) {
|
|
|
|
|
this.bcFileFlag = true
|
|
|
|
|
this.bcFile = res.data
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(res.message)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch((err) => {
|
|
|
|
|
console.log(err)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
if (type === 3) {
|
|
|
|
|
checkUpdateETA(pkIdArr)
|
|
|
|
|
.then((res) => {
|
|
|
|
|
if (res.success) {
|
|
|
|
|
this.bcFileFlag = true
|
|
|
|
|
this.bcFile = res.data
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(res.message)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch((err) => {
|
|
|
|
|
console.log(err)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
if (type === 4) {
|
|
|
|
|
checkUpdateManifestNo(pkIdArr)
|
|
|
|
|
.then((res) => {
|
|
|
|
|
if (res.success) {
|
|
|
|
|
this.bcFileFlag = true
|
|
|
|
|
this.bcFile = res.data
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(res.message)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch((err) => {
|
|
|
|
|
console.log(err)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// 批量编辑
|
|
|
|
@ -1464,6 +1512,15 @@ export default {
|
|
|
|
|
handledbclick({ row }) {
|
|
|
|
|
this.editColumns(row)
|
|
|
|
|
},
|
|
|
|
|
handleCopy() {
|
|
|
|
|
const text = this.$refs.bcBox.innerText
|
|
|
|
|
var cInput = document.createElement('input');
|
|
|
|
|
cInput.value = text;
|
|
|
|
|
document.body.appendChild(cInput);
|
|
|
|
|
cInput.select(); // 选取文本框内容
|
|
|
|
|
document.execCommand('copy');
|
|
|
|
|
document.body.removeChild(cInput);
|
|
|
|
|
},
|
|
|
|
|
editColumns(row) {
|
|
|
|
|
this.$router.push({ name: 'BookingDetail', query: { id: row.id, type: row.carrierid, mblno: row.mblno } })
|
|
|
|
|
},
|
|
|
|
@ -3014,6 +3071,9 @@ export default {
|
|
|
|
|
border-bottom:1px dashed black;
|
|
|
|
|
padding-bottom: 5px;
|
|
|
|
|
margin-bottom: 10px;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
}
|
|
|
|
|
.bc-box{
|
|
|
|
|
max-height: 200px;
|
|
|
|
|