列设置

feature-JimuReport-1106-yjl
lijingjia 1 month ago
parent 8aeaa7d9a1
commit d46a6e2a6b

@ -1779,13 +1779,6 @@ export function BookingSlotGetAvailableSlots(parameter) {
})
}
export function CancelAllocationSlot(parameter) {
return request({
url: '/BookingOrder/CancelAllocationSlot?id=' + parameter,
method: 'post',
})
}
export function GetCtnListRefsh(parameter) {
return request({
url: '/BookingOrder/GetCtnList',

@ -578,6 +578,13 @@
ediInfo: ediFrom,
ctnInfo
}
//
if (postData.closingDate && postData.closingDate.length == 13) {
postData.closingDate = postData.closingDate + ':00:00'
}
if (postData.closeDocDate && postData.closeDocDate.length == 13) {
postData.closeDocDate = postData.closeDocDate + ':00:00'
}
if (id.value) postData['id'] = id.value
//
loading.value = true

@ -245,7 +245,7 @@ export const basicInfoFormSchema: FormSchema[] = [
api: GetBookingContractNoList,
params: { carrierId: formModel.carrierId },
labelField: 'contractName',
valueField: 'contractNo',
valueField: 'id',
showName: 'contractNo',
resultField: 'data',
immediate: false,

@ -106,6 +106,15 @@
<span class="iconfont icon-a-gaipei1"></span>
改配
</a-button>
<a-button
v-if="source == 'edit' || source == 'copy'"
type="link"
v-repeat
@click="returnCabin"
>
<span class="iconfont icon-tuihuotuihuo"></span>
退舱
</a-button>
</div>
<!-- 放舱(场站入货) -->
<OpBusinessYardDetails :details="details" @register="OYregisterModal" />
@ -591,6 +600,20 @@
<a-button type="primary" @click="sendChangeConfig"> </a-button>
</template>
</a-modal>
<!-- 退舱 -->
<a-modal
width="500px"
class="ds-modal-small"
:maskClosable="false"
v-model:visible="returnCabinFlag"
title="退舱确认"
>
<BasicForm @register="registerFormR" />
<template #footer>
<a-button @click="returnCabinFlag = false"> </a-button>
<a-button type="primary" @click="handleCancelCabin">退 </a-button>
</template>
</a-modal>
</div>
</template>
<script lang="ts" setup>
@ -688,6 +711,8 @@
const fileFlag = ref(false)
//
const changeConfigFlag = ref(false)
// 退
const returnCabinFlag = ref(false)
//
const rules = {
traceValue: [
@ -1098,11 +1123,18 @@
schemas: fileForm,
showActionButtonGroup: false,
})
//
const [registerFormC, { validate, setFieldsValue }] = useForm({
labelWidth: 100,
schemas: changeForm,
showActionButtonGroup: false,
})
// 退
const [registerFormR, { validate: validater, setFieldsValue: setFieldsValuer }] = useForm({
labelWidth: 100,
schemas: changeForm,
showActionButtonGroup: false,
})
//
const changeConfig = () => {
GetChangeOrderStatus({ id: props.id }).then((res) => {
@ -1450,6 +1482,16 @@
{ name: '卸货港', code: 'dischargePort' },
{ name: '通知人', code: 'notifyPartyContent' },
])
// 退
const returnCabin = () => {
// 退
const etd = props.details.etd
const now = new Date()
// if (!props?.details?.isBooking || new Date(etd) > now) {
// return createMessage.warning('退')
// }
returnCabinFlag.value = true
}
// function uploadFile(file) {
// const formData = new FormData()
// formData.append('file', file.file)
@ -1620,15 +1662,7 @@
}
function handleCancelCabin() {
cabinLoad.value = true
CancelAllocationSlot(props.details.id).then((res) => {
if (res.succeeded) {
notification.success({ message: '取消成功', duration: 3 })
emit('handleSetCtnList')
} else {
notification.error({ message: res.message, duration: 3 })
}
cabinLoad.value = false
})
}
function removeOrder() {
emit('removeOrder')

Loading…
Cancel
Save