列设置

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) { export function GetCtnListRefsh(parameter) {
return request({ return request({
url: '/BookingOrder/GetCtnList', url: '/BookingOrder/GetCtnList',

@ -578,6 +578,13 @@
ediInfo: ediFrom, ediInfo: ediFrom,
ctnInfo 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 if (id.value) postData['id'] = id.value
// //
loading.value = true loading.value = true

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

@ -106,6 +106,15 @@
<span class="iconfont icon-a-gaipei1"></span> <span class="iconfont icon-a-gaipei1"></span>
改配 改配
</a-button> </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> </div>
<!-- 放舱(场站入货) --> <!-- 放舱(场站入货) -->
<OpBusinessYardDetails :details="details" @register="OYregisterModal" /> <OpBusinessYardDetails :details="details" @register="OYregisterModal" />
@ -591,6 +600,20 @@
<a-button type="primary" @click="sendChangeConfig"> </a-button> <a-button type="primary" @click="sendChangeConfig"> </a-button>
</template> </template>
</a-modal> </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> </div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
@ -688,6 +711,8 @@
const fileFlag = ref(false) const fileFlag = ref(false)
// //
const changeConfigFlag = ref(false) const changeConfigFlag = ref(false)
// 退
const returnCabinFlag = ref(false)
// //
const rules = { const rules = {
traceValue: [ traceValue: [
@ -1098,11 +1123,18 @@
schemas: fileForm, schemas: fileForm,
showActionButtonGroup: false, showActionButtonGroup: false,
}) })
//
const [registerFormC, { validate, setFieldsValue }] = useForm({ const [registerFormC, { validate, setFieldsValue }] = useForm({
labelWidth: 100, labelWidth: 100,
schemas: changeForm, schemas: changeForm,
showActionButtonGroup: false, showActionButtonGroup: false,
}) })
// 退
const [registerFormR, { validate: validater, setFieldsValue: setFieldsValuer }] = useForm({
labelWidth: 100,
schemas: changeForm,
showActionButtonGroup: false,
})
// //
const changeConfig = () => { const changeConfig = () => {
GetChangeOrderStatus({ id: props.id }).then((res) => { GetChangeOrderStatus({ id: props.id }).then((res) => {
@ -1450,6 +1482,16 @@
{ name: '卸货港', code: 'dischargePort' }, { name: '卸货港', code: 'dischargePort' },
{ name: '通知人', code: 'notifyPartyContent' }, { 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) { // function uploadFile(file) {
// const formData = new FormData() // const formData = new FormData()
// formData.append('file', file.file) // formData.append('file', file.file)
@ -1620,15 +1662,7 @@
} }
function handleCancelCabin() { function handleCancelCabin() {
cabinLoad.value = true 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() { function removeOrder() {
emit('removeOrder') emit('removeOrder')

Loading…
Cancel
Save