|
|
@ -27,7 +27,7 @@
|
|
|
|
</a-dropdown>
|
|
|
|
</a-dropdown>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <a-popconfirm
|
|
|
|
<a-popconfirm
|
|
|
|
title="确定删除当前选中订舱?"
|
|
|
|
title="确定删除当前选中订舱?"
|
|
|
|
ok-text="是"
|
|
|
|
ok-text="是"
|
|
|
|
cancel-text="否"
|
|
|
|
cancel-text="否"
|
|
|
@ -36,7 +36,7 @@
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<div class="nav"><i class="iconfont icon-shanchu2"></i>删除</div>
|
|
|
|
<div class="nav"><i class="iconfont icon-shanchu2"></i>删除</div>
|
|
|
|
</a-popconfirm>
|
|
|
|
</a-popconfirm>
|
|
|
|
<div class="nav"><i class="iconfont icon-shishijifei"></i>定时订舱</div>
|
|
|
|
<!-- <div class="nav"><i class="iconfont icon-shishijifei"></i>定时订舱</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="nav" @click="handleSearchTxxp">
|
|
|
|
<div class="nav" @click="handleSearchTxxp">
|
|
|
|
<a-spin :spinning="txxpLoading">
|
|
|
|
<a-spin :spinning="txxpLoading">
|
|
|
@ -104,7 +104,7 @@
|
|
|
|
</a-form>
|
|
|
|
</a-form>
|
|
|
|
</a-modal>
|
|
|
|
</a-modal>
|
|
|
|
<!-- 批量操作 -->
|
|
|
|
<!-- 批量操作 -->
|
|
|
|
<BatchModification @register="registerModal" @success="BMSuccess" />
|
|
|
|
<!-- <BatchModification v-if="batchFlag" @register="registerModal" @success="BMSuccess" /> -->
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
|
|
<script lang="ts" setup>
|
|
|
@ -113,7 +113,8 @@
|
|
|
|
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 BatchModification from '../modules/BatchModification.vue'
|
|
|
|
import { SeaExportBatchDel } from '../api/BookingLedger.js'
|
|
|
|
|
|
|
|
// import BatchModification from '../modules/BatchModification.vue'
|
|
|
|
const router = useRouter()
|
|
|
|
const router = useRouter()
|
|
|
|
const { createMessage } = useMessage()
|
|
|
|
const { createMessage } = useMessage()
|
|
|
|
const go = useGo()
|
|
|
|
const go = useGo()
|
|
|
@ -176,6 +177,8 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 批量编辑 弹窗
|
|
|
|
// 批量编辑 弹窗
|
|
|
|
const [registerModal, { openModal }] = useModal()
|
|
|
|
const [registerModal, { openModal }] = useModal()
|
|
|
|
|
|
|
|
// 批量编辑开关
|
|
|
|
|
|
|
|
const batchFlag = ref(false)
|
|
|
|
// 批量编辑
|
|
|
|
// 批量编辑
|
|
|
|
function batchEditing() {
|
|
|
|
function batchEditing() {
|
|
|
|
const select = props.selectRow()
|
|
|
|
const select = props.selectRow()
|
|
|
@ -186,11 +189,41 @@
|
|
|
|
const removeArr = select.map((item) => {
|
|
|
|
const removeArr = select.map((item) => {
|
|
|
|
return item.id
|
|
|
|
return item.id
|
|
|
|
})
|
|
|
|
})
|
|
|
|
openModal(true, { removeArr, flag: true })
|
|
|
|
batchFlag.value = true
|
|
|
|
|
|
|
|
openModal(true, { removeArr })
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function BMSuccess() {
|
|
|
|
function BMSuccess() {
|
|
|
|
props.reload()
|
|
|
|
props.reload()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// 删除
|
|
|
|
|
|
|
|
function removeMoreFun() {
|
|
|
|
|
|
|
|
const select = props.selectRow()
|
|
|
|
|
|
|
|
if (select.length === 0) {
|
|
|
|
|
|
|
|
createMessage.warning('请选择操作订单!')
|
|
|
|
|
|
|
|
return false
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
const removeArr = select.map((item) => {
|
|
|
|
|
|
|
|
return item.id
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
deleteBookingOrder(removeArr)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// 删除方法
|
|
|
|
|
|
|
|
function deleteBookingOrder(arr) {
|
|
|
|
|
|
|
|
let api = []
|
|
|
|
|
|
|
|
arr.forEach((e, i) => {
|
|
|
|
|
|
|
|
api.push(e)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
SeaExportBatchDel({ ids: api })
|
|
|
|
|
|
|
|
.then((res) => {
|
|
|
|
|
|
|
|
if (res.succeeded) {
|
|
|
|
|
|
|
|
createMessage.success('删除成功!')
|
|
|
|
|
|
|
|
props.reload()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.catch((err) => {
|
|
|
|
|
|
|
|
console.log(err)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
<style lang="scss">
|
|
|
|