|
|
@ -5,7 +5,32 @@
|
|
|
|
-->
|
|
|
|
-->
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<div class="ds-table-action-bar">
|
|
|
|
<div class="ds-table-action-bar">
|
|
|
|
<a-button type="link" @click="addBooking">
|
|
|
|
<TableButton
|
|
|
|
|
|
|
|
:show="{ add: null, del: null, copy: null}"
|
|
|
|
|
|
|
|
@add="addBooking"
|
|
|
|
|
|
|
|
@del="removeMoreFun"
|
|
|
|
|
|
|
|
@copy="copyBookingMore"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<a-dropdown>
|
|
|
|
|
|
|
|
<span class="iconfont icon-piliangbianji">{{ eLoading ? '正在导出' : '批量操作' }}</span>
|
|
|
|
|
|
|
|
<template #overlay>
|
|
|
|
|
|
|
|
<a-menu>
|
|
|
|
|
|
|
|
<a-menu-item>
|
|
|
|
|
|
|
|
<a @click="batchEditing()" href="javascript:;">批量编辑</a>
|
|
|
|
|
|
|
|
</a-menu-item>
|
|
|
|
|
|
|
|
<a-menu-item>
|
|
|
|
|
|
|
|
<a @click="batchSubmit" href="javascript:;">批量提交</a>
|
|
|
|
|
|
|
|
</a-menu-item>
|
|
|
|
|
|
|
|
<a-menu-item>
|
|
|
|
|
|
|
|
<a @click="exportExcel" href="javascript:;">批量导出</a>
|
|
|
|
|
|
|
|
</a-menu-item>
|
|
|
|
|
|
|
|
</a-menu>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</a-dropdown>
|
|
|
|
|
|
|
|
<span class="iconfont icon-a-xiaopiaofapiao-01" @click="openYz">运踪订阅</span>
|
|
|
|
|
|
|
|
<!-- <span class="iconfont icon-piliangdaochu-danse" @click="importFlow">批量导入</span> -->
|
|
|
|
|
|
|
|
</TableButton>
|
|
|
|
|
|
|
|
<!-- <a-button type="link" @click="addBooking">
|
|
|
|
<span class="iconfont icon-new_document"></span>
|
|
|
|
<span class="iconfont icon-new_document"></span>
|
|
|
|
新建
|
|
|
|
新建
|
|
|
|
</a-button>
|
|
|
|
</a-button>
|
|
|
@ -14,24 +39,20 @@
|
|
|
|
<span class="iconfont icon-shanchu1"></span>
|
|
|
|
<span class="iconfont icon-shanchu1"></span>
|
|
|
|
删除
|
|
|
|
删除
|
|
|
|
</a-button>
|
|
|
|
</a-button>
|
|
|
|
</a-popconfirm>
|
|
|
|
</a-popconfirm> -->
|
|
|
|
<slot></slot>
|
|
|
|
<slot></slot>
|
|
|
|
<a-button :loading="eLoading" type="link" @click="exportExcel">
|
|
|
|
<!-- <a-button :loading="eLoading" type="link" @click="exportExcel">
|
|
|
|
<span class="iconfont" :class="{ 'icon-tidanqianchu': !eLoading }"></span>
|
|
|
|
<span class="iconfont" :class="{ 'icon-tidanqianchu': !eLoading }"></span>
|
|
|
|
{{ eLoading ? '正在导出' : '批量导出' }}
|
|
|
|
{{ eLoading ? '正在导出' : '批量导出' }}
|
|
|
|
</a-button>
|
|
|
|
</a-button> -->
|
|
|
|
<a-button type="link" @click="test">
|
|
|
|
<!-- <a-button type="link" @click="test">
|
|
|
|
<span class="iconfont icon-time"></span>
|
|
|
|
<span class="iconfont icon-time"></span>
|
|
|
|
定时订舱
|
|
|
|
定时订舱
|
|
|
|
</a-button>
|
|
|
|
</a-button>
|
|
|
|
<a-button type="link" @click="test">
|
|
|
|
<a-button type="link" @click="test">
|
|
|
|
<span class="iconfont icon-a-xiaopiaofapiao-01"></span>
|
|
|
|
<span class="iconfont icon-a-xiaopiaofapiao-01"></span>
|
|
|
|
小票状态
|
|
|
|
小票状态
|
|
|
|
</a-button>
|
|
|
|
</a-button> -->
|
|
|
|
<a-button type="link" @click="openYz">
|
|
|
|
|
|
|
|
<span class="iconfont icon-a-xiaopiaofapiao-01"></span>
|
|
|
|
|
|
|
|
运踪订阅
|
|
|
|
|
|
|
|
</a-button>
|
|
|
|
|
|
|
|
<a-modal title="输入复制数量" :visible="copyMoreFlag" :footer="null" @cancel="copyMoreFlag = false">
|
|
|
|
<a-modal title="输入复制数量" :visible="copyMoreFlag" :footer="null" @cancel="copyMoreFlag = false">
|
|
|
|
<a-form ref="RefcopyMoreForm" :model="copyMoreForm" :label-col="{ span: 5 }" :wrapper-col="{ span: 12 }"
|
|
|
|
<a-form ref="RefcopyMoreForm" :model="copyMoreForm" :label-col="{ span: 5 }" :wrapper-col="{ span: 12 }"
|
|
|
|
@submit="handleSubmitCopyMore" :style="{ padding: '10px' }">
|
|
|
|
@submit="handleSubmitCopyMore" :style="{ padding: '10px' }">
|
|
|
@ -67,7 +88,7 @@ import { useGo } from '/@/hooks/web/usePage'
|
|
|
|
import { useMessage } from '/@/hooks/web/useMessage'
|
|
|
|
import { useMessage } from '/@/hooks/web/useMessage'
|
|
|
|
import { useRouter } from 'vue-router'
|
|
|
|
import { useRouter } from 'vue-router'
|
|
|
|
import { useModal } from '/@/components/Modal'
|
|
|
|
import { useModal } from '/@/components/Modal'
|
|
|
|
import { SeaExportBatchDel, SaveBookingTxxp, CommonExcelExport,SendTrace } from '../api/BookingLedger.js'
|
|
|
|
import { SeaExportBatchDel, SaveBookingTxxp, CommonExcelExport,SendTrace, CreateMultipleTask } from '../api/BookingLedger.js'
|
|
|
|
import BatchModification from '../modules/BatchModification.vue'
|
|
|
|
import BatchModification from '../modules/BatchModification.vue'
|
|
|
|
const router = useRouter()
|
|
|
|
const router = useRouter()
|
|
|
|
const { createMessage } = useMessage()
|
|
|
|
const { createMessage } = useMessage()
|
|
|
@ -80,10 +101,7 @@ const props = defineProps({
|
|
|
|
type: Function,
|
|
|
|
type: Function,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
columns: {
|
|
|
|
columns: {
|
|
|
|
type: Array,
|
|
|
|
type: Function
|
|
|
|
default: () => {
|
|
|
|
|
|
|
|
return []
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
queryData: {
|
|
|
|
queryData: {
|
|
|
|
type: Object,
|
|
|
|
type: Object,
|
|
|
@ -95,6 +113,18 @@ function addBooking() {
|
|
|
|
const addNum = Math.round(Math.random() * 1000)
|
|
|
|
const addNum = Math.round(Math.random() * 1000)
|
|
|
|
go(`/BookingDetail?addNum=${addNum}`)
|
|
|
|
go(`/BookingDetail?addNum=${addNum}`)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// 复制
|
|
|
|
|
|
|
|
function copyBookingMore() {
|
|
|
|
|
|
|
|
const select = props.selectRow()
|
|
|
|
|
|
|
|
const pkIdArr = select.map((item, index) => {
|
|
|
|
|
|
|
|
return item.id
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
if (pkIdArr.length === 0 || pkIdArr.length > 1) {
|
|
|
|
|
|
|
|
createMessage.warning('请选择一条数据进行复制!')
|
|
|
|
|
|
|
|
return false
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
go(`/BookingDetail?id=${pkIdArr[0]}&source=copy`)
|
|
|
|
|
|
|
|
}
|
|
|
|
const copyMoreFlag = ref(false)
|
|
|
|
const copyMoreFlag = ref(false)
|
|
|
|
const copyMoreForm = reactive({
|
|
|
|
const copyMoreForm = reactive({
|
|
|
|
number: 1,
|
|
|
|
number: 1,
|
|
|
@ -116,6 +146,21 @@ function batchEditing() {
|
|
|
|
batchFlag.value = true
|
|
|
|
batchFlag.value = true
|
|
|
|
openModal(true, { removeArr, flag: true })
|
|
|
|
openModal(true, { removeArr, flag: true })
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// 批量提交
|
|
|
|
|
|
|
|
const batchSubmit = () => {
|
|
|
|
|
|
|
|
const select = props.selectRow()
|
|
|
|
|
|
|
|
if (select.length === 0) {
|
|
|
|
|
|
|
|
createMessage.warning('请选择操作订单!')
|
|
|
|
|
|
|
|
return false
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
const ids = select.map(item => {
|
|
|
|
|
|
|
|
return item.id
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
CreateMultipleTask({ ids, businessType: '1', taskTypeName: 'WAIT_ORDER_AUDIT' }).then(res => {
|
|
|
|
|
|
|
|
createMessage.success(res.message)
|
|
|
|
|
|
|
|
props.reload()
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
function BMSuccess() {
|
|
|
|
function BMSuccess() {
|
|
|
|
props.reload()
|
|
|
|
props.reload()
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -137,7 +182,7 @@ const exportExcel = () => {
|
|
|
|
const postData = {
|
|
|
|
const postData = {
|
|
|
|
url: 'http://118.190.144.189:3008/opApi/SeaExport/GetSeaExportList',
|
|
|
|
url: 'http://118.190.144.189:3008/opApi/SeaExport/GetSeaExportList',
|
|
|
|
queryRequest: props.queryData,
|
|
|
|
queryRequest: props.queryData,
|
|
|
|
columnSets: props.columns,
|
|
|
|
columnSets: props.columns(),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
postData.queryRequest.pageCondition['isExport'] = true
|
|
|
|
postData.queryRequest.pageCondition['isExport'] = true
|
|
|
|
eLoading.value = true
|
|
|
|
eLoading.value = true
|
|
|
|