|
|
@ -19,7 +19,7 @@
|
|
|
|
<SvgIcon class="ml30" size="18" name="delete" @click="deleteRow" />
|
|
|
|
<SvgIcon class="ml30" size="18" name="delete" @click="deleteRow" />
|
|
|
|
</a-tooltip>
|
|
|
|
</a-tooltip>
|
|
|
|
<a-tooltip placement="top" title="打印">
|
|
|
|
<a-tooltip placement="top" title="打印">
|
|
|
|
<SvgIcon class="ml30" size="18" name="print" />
|
|
|
|
<SvgIcon class="ml30" size="18" name="print" @click="print" />
|
|
|
|
</a-tooltip>
|
|
|
|
</a-tooltip>
|
|
|
|
<!-- <a-popconfirm
|
|
|
|
<!-- <a-popconfirm
|
|
|
|
:visible="deleteFlag"
|
|
|
|
:visible="deleteFlag"
|
|
|
@ -69,7 +69,11 @@
|
|
|
|
<img src="../../../../../assets/images/nodata.png" alt="">
|
|
|
|
<img src="../../../../../assets/images/nodata.png" alt="">
|
|
|
|
<div class="no-message">暂无数据</div>
|
|
|
|
<div class="no-message">暂无数据</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<ul class="h-list">
|
|
|
|
|
|
|
|
<li v-for="item in list" :key="item.id" class="mt10" :class="{ 'active-li': item.id == activeId }" @click="setFormValue(item)">
|
|
|
|
|
|
|
|
<span class="iconfont icon-renwu_"></span> <span>{{ item.hblno }}</span>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- <BasicTable
|
|
|
|
<!-- <BasicTable
|
|
|
|
class="ds-table-detail"
|
|
|
|
class="ds-table-detail"
|
|
|
@ -95,6 +99,7 @@
|
|
|
|
ref="contBox"
|
|
|
|
ref="contBox"
|
|
|
|
:id="id"
|
|
|
|
:id="id"
|
|
|
|
:setFieldsValue="setFieldsValue3"
|
|
|
|
:setFieldsValue="setFieldsValue3"
|
|
|
|
|
|
|
|
:ctnInfo="ctnInfo"
|
|
|
|
></container>
|
|
|
|
></container>
|
|
|
|
<a-form
|
|
|
|
<a-form
|
|
|
|
v-model="formData"
|
|
|
|
v-model="formData"
|
|
|
@ -175,11 +180,11 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</a-spin>
|
|
|
|
</a-spin>
|
|
|
|
</a-tab-pane>
|
|
|
|
</a-tab-pane>
|
|
|
|
<a-tab-pane key="2" tab="其他信息" size="small">
|
|
|
|
<!-- <a-tab-pane key="2" tab="其他信息" size="small">
|
|
|
|
<BasicForm
|
|
|
|
<BasicForm
|
|
|
|
@register="OtherForm"
|
|
|
|
@register="OtherForm"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</a-tab-pane>
|
|
|
|
</a-tab-pane> -->
|
|
|
|
</a-tabs>
|
|
|
|
</a-tabs>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</a-spin>
|
|
|
|
</a-spin>
|
|
|
@ -188,6 +193,7 @@
|
|
|
|
:reload="init"
|
|
|
|
:reload="init"
|
|
|
|
ref="ladHistory"
|
|
|
|
ref="ladHistory"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
|
|
|
|
<DsPrint ref="dsPrint" :code="code" :paramJsonStr="paramJsonStr" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
|
|
<script lang="ts" setup>
|
|
|
@ -202,7 +208,7 @@
|
|
|
|
const container = defineAsyncComponent(() => import("./container.vue"))
|
|
|
|
const container = defineAsyncComponent(() => import("./container.vue"))
|
|
|
|
// 历史提单弹窗
|
|
|
|
// 历史提单弹窗
|
|
|
|
const ladingHistory = defineAsyncComponent(() => import("./ladingHistory.vue"))
|
|
|
|
const ladingHistory = defineAsyncComponent(() => import("./ladingHistory.vue"))
|
|
|
|
import { EditSeaExportBillManage, BatchDelBillManageCtn, GetSeaExportBillManageInfo } from '../../api/BookingLedger'
|
|
|
|
import { EditSeaExportBillManage, BatchDelBillManage, BatchDelBillManageCtn, GetSeaExportBillManageInfo } from '../../api/BookingLedger'
|
|
|
|
// 引入提示信息
|
|
|
|
// 引入提示信息
|
|
|
|
import { useMessage } from '/@/hooks/web/useMessage'
|
|
|
|
import { useMessage } from '/@/hooks/web/useMessage'
|
|
|
|
const { createMessage } = useMessage()
|
|
|
|
const { createMessage } = useMessage()
|
|
|
@ -214,24 +220,10 @@
|
|
|
|
// 详情信息
|
|
|
|
// 详情信息
|
|
|
|
details: { type: Object, default: {} }
|
|
|
|
details: { type: Object, default: {} }
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
// tab页签
|
|
|
|
const activeKey = ref('1')
|
|
|
|
const activeKey = ref('1')
|
|
|
|
const selectiChange = (v) => {
|
|
|
|
// 当前激活的列表数据
|
|
|
|
if (v.length == 0) {
|
|
|
|
const activeId = ref(null)
|
|
|
|
resetFields1()
|
|
|
|
|
|
|
|
resetFields2()
|
|
|
|
|
|
|
|
resetFields3()
|
|
|
|
|
|
|
|
resetFields4()
|
|
|
|
|
|
|
|
formData.agentId = ''
|
|
|
|
|
|
|
|
formData.agentContent = ''
|
|
|
|
|
|
|
|
formData.cntrSealNo = ''
|
|
|
|
|
|
|
|
formData.description = ''
|
|
|
|
|
|
|
|
formData.marks = ''
|
|
|
|
|
|
|
|
setFieldsValue5({
|
|
|
|
|
|
|
|
...props.details
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
setFormValue()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// 提单信息第一个表单(收发通)
|
|
|
|
// 提单信息第一个表单(收发通)
|
|
|
|
const [registerForm, { setFieldsValue: setFieldsValue1, validate: validate1, resetFields: resetFields1 }] =
|
|
|
|
const [registerForm, { setFieldsValue: setFieldsValue1, validate: validate1, resetFields: resetFields1 }] =
|
|
|
|
useForm({
|
|
|
|
useForm({
|
|
|
@ -284,16 +276,21 @@
|
|
|
|
const deleteRow = () => {
|
|
|
|
const deleteRow = () => {
|
|
|
|
loading.value = true
|
|
|
|
loading.value = true
|
|
|
|
deleteFlag.value = false
|
|
|
|
deleteFlag.value = false
|
|
|
|
BatchDelBillManageCtn({ id: props.id, ids: state.rowKeys }).then(res => {
|
|
|
|
if (!activeId.value) return createMessage.warning('请选择要删除的数据!')
|
|
|
|
|
|
|
|
BatchDelBillManage({ id: props.id, ids: [activeId.value] }).then(res => {
|
|
|
|
|
|
|
|
createMessage.success('删除成功!')
|
|
|
|
loading.value = false
|
|
|
|
loading.value = false
|
|
|
|
|
|
|
|
activeId.value = null
|
|
|
|
init()
|
|
|
|
init()
|
|
|
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
|
|
|
loading.value = false
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const dloading = ref(false)
|
|
|
|
const dloading = ref(false)
|
|
|
|
// 设置表单的值
|
|
|
|
// 设置表单的值
|
|
|
|
const setFormValue = () => {
|
|
|
|
const setFormValue = (row) => {
|
|
|
|
const row = getSelectRows()[0]
|
|
|
|
|
|
|
|
const id = row?.id
|
|
|
|
const id = row?.id
|
|
|
|
|
|
|
|
activeId.value = id
|
|
|
|
if (id) {
|
|
|
|
if (id) {
|
|
|
|
dloading.value = true
|
|
|
|
dloading.value = true
|
|
|
|
GetSeaExportBillManageInfo({ id }).then(res => {
|
|
|
|
GetSeaExportBillManageInfo({ id }).then(res => {
|
|
|
@ -637,8 +634,15 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 集装箱
|
|
|
|
// 集装箱
|
|
|
|
const contBox = ref(null)
|
|
|
|
const contBox = ref(null)
|
|
|
|
|
|
|
|
// 集装箱数据
|
|
|
|
|
|
|
|
const ctnInfo = ref([])
|
|
|
|
|
|
|
|
// 打印
|
|
|
|
|
|
|
|
const print = () => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
// 新建
|
|
|
|
// 新建
|
|
|
|
const create = () => {
|
|
|
|
const create = () => {
|
|
|
|
|
|
|
|
activeId.value = null
|
|
|
|
resetFields1()
|
|
|
|
resetFields1()
|
|
|
|
resetFields2()
|
|
|
|
resetFields2()
|
|
|
|
resetFields3()
|
|
|
|
resetFields3()
|
|
|
@ -649,7 +653,8 @@
|
|
|
|
formData.description = ''
|
|
|
|
formData.description = ''
|
|
|
|
formData.marks = ''
|
|
|
|
formData.marks = ''
|
|
|
|
setFieldsValue1({
|
|
|
|
setFieldsValue1({
|
|
|
|
...props.details
|
|
|
|
...props.details,
|
|
|
|
|
|
|
|
id: null
|
|
|
|
})
|
|
|
|
})
|
|
|
|
setFieldsValue2({
|
|
|
|
setFieldsValue2({
|
|
|
|
...props.details
|
|
|
|
...props.details
|
|
|
@ -661,13 +666,21 @@
|
|
|
|
...props.details
|
|
|
|
...props.details
|
|
|
|
})
|
|
|
|
})
|
|
|
|
setFieldsValue5({
|
|
|
|
setFieldsValue5({
|
|
|
|
...props.details
|
|
|
|
...props.details,
|
|
|
|
|
|
|
|
hblno: null
|
|
|
|
})
|
|
|
|
})
|
|
|
|
formData.agentId = props.details.agentId
|
|
|
|
formData.agentId = props.details.agentId
|
|
|
|
formData.agentContent = props.details.agentContent
|
|
|
|
formData.agentContent = props.details.agentContent
|
|
|
|
formData.cntrSealNo = props.details.cntrSealNo
|
|
|
|
formData.cntrSealNo = props.details.cntrSealNo
|
|
|
|
formData.description = props.details.description
|
|
|
|
formData.description = props.details.description
|
|
|
|
formData.marks = props.details.marks
|
|
|
|
formData.marks = props.details.marks
|
|
|
|
|
|
|
|
// 如果主单存在集装箱,清空集装箱id
|
|
|
|
|
|
|
|
if (props.details.ctnInfo && props.details.ctnInfo.length) {
|
|
|
|
|
|
|
|
props.details.ctnInfo.forEach(item => {
|
|
|
|
|
|
|
|
item.id = ''
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
ctnInfo.value = props.details.ctnInfo
|
|
|
|
|
|
|
|
}
|
|
|
|
createMessage.success('表单已置为新建状态!')
|
|
|
|
createMessage.success('表单已置为新建状态!')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 调入主单信息
|
|
|
|
// 调入主单信息
|
|
|
@ -727,6 +740,27 @@
|
|
|
|
margin-bottom: 0!important;
|
|
|
|
margin-bottom: 0!important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.h-list {
|
|
|
|
|
|
|
|
li {
|
|
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
line-height: 22px;
|
|
|
|
|
|
|
|
padding: 0 5px;
|
|
|
|
|
|
|
|
border-radius: 2px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
li:hover {
|
|
|
|
|
|
|
|
background: #F5F9FC;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
span {
|
|
|
|
|
|
|
|
color: #7A8798;
|
|
|
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.active-li {
|
|
|
|
|
|
|
|
background: #F5F9FC;
|
|
|
|
|
|
|
|
span {
|
|
|
|
|
|
|
|
color: #257AFA;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
.ml30 {
|
|
|
|
.ml30 {
|
|
|
|
margin-left: 30px;
|
|
|
|
margin-left: 30px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|