9.10海运出口禅道迭代

szh-new
lijingjia 3 months ago
parent 989d217458
commit 9c5356d30d

@ -143,6 +143,12 @@ export const searchFormSchema: FormSchema[] = [
component: 'Input', component: 'Input',
colProps: { span: 4 }, colProps: { span: 4 },
}, },
{
field: 'portName',
label: '港口英文名称',
component: 'Input',
colProps: { span: 4 }
},
{ {
field: 'countryId', field: 'countryId',
label: '国家', label: '国家',

@ -1963,7 +1963,7 @@ export function EditShippingBillPartCtn(data) {
}) })
} }
// 提单信息删除 // 提单信息删除
export function BatchDelBillManageCtn(data) { export function BatchDelBillManageCtn(data) {
return request({ return request({
url: '/opApi/SeaExportBillManage/BatchDelBillManageCtn', url: '/opApi/SeaExportBillManage/BatchDelBillManageCtn',
@ -1972,6 +1972,15 @@ export function BatchDelBillManageCtn(data) {
}) })
} }
// 提单信息删除
export function BatchDelBillManage(data) {
return request({
url: '/opApi/SeaExportBillManage/BatchDelBillManage',
method: 'post',
data,
})
}
// 历史提单信息历史列表 // 历史提单信息历史列表
export function GetBillManageHistoryList(data) { export function GetBillManageHistoryList(data) {
return request({ return request({

@ -59,6 +59,13 @@
}, },
setFieldsValue: { setFieldsValue: {
type: Function type: Function
},
//
ctnInfo: {
type: Array,
default: () => {
return []
}
} }
}) })
// ref // ref
@ -334,7 +341,7 @@
queryCondition: JSON.stringify([ queryCondition: JSON.stringify([
{ {
FieldName: 'bsno', FieldName: 'bsno',
FieldValue: props.id, FieldValue: props.details.id,
ConditionalType: 1, ConditionalType: 1,
}, },
]), ]),
@ -369,7 +376,8 @@
} }
} }
}) })
GetCtnList() list.value = props.ctnInfo
hot.loadData(props.ctnInfo)
}) })
defineExpose({ defineExpose({
list, list,

@ -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;
} }

@ -18,10 +18,10 @@
</a-button> </a-button>
</ConfigForm> </ConfigForm>
<div> <div>
<span v-if="userStore.getUserInfo.tenantId == '1750335377144680448'" class="customerNo"> <!-- <span v-if="userStore.getUserInfo.tenantId == '1750335377144680448'" class="customerNo">
{{ formData.customerNo }} {{ formData.customerNo }}
</span> </span> -->
<span v-else> <span>
<input <input
ref="customerNoRef" ref="customerNoRef"
:style="{ width: `${formData.customerNo?.length * 7}px` }" :style="{ width: `${formData.customerNo?.length * 7}px` }"

Loading…
Cancel
Save