集装箱复制bug,审单选舱流程变更

szh-new
lijingjia 1 month ago
parent 522a088697
commit 17eb981cb6

@ -39,7 +39,6 @@
<script lang="ts" setup> <script lang="ts" setup>
import { ref, onMounted, defineProps } from 'vue' import { ref, onMounted, defineProps } from 'vue'
import { GetSeaExportLogList } from '/@/views/operation/seaexport/api/BookingLedger'
const props = defineProps({ const props = defineProps({
id: { id: {
type: String type: String

@ -870,7 +870,7 @@
// //
const approveAndCreateTast = (type) => { const approveAndCreateTast = (type) => {
createTask(type) createTask(type)
seaExportTaskAudit(null) seaExportTaskAudit(null, false)
} }
// //
const createTask = async (type) => { const createTask = async (type) => {
@ -1036,18 +1036,17 @@
sspace.value.init() sspace.value.init()
} else { } else {
// //
seaExportTaskAudit(remark) seaExportTaskAudit(remark, true)
AutomaticBooking(id.value)
} }
} else { } else {
// //
seaExportTaskAudit(remark) seaExportTaskAudit(remark, false)
} }
}) })
} }
} }
// //
const seaExportTaskAudit = (remark) => { const seaExportTaskAudit = (remark, b) => {
const postData = { const postData = {
result: remark ? 2 : 1, result: remark ? 2 : 1,
ids: [id.value], ids: [id.value],
@ -1059,6 +1058,7 @@
SeaExportTaskAudit(postData).then(res => { SeaExportTaskAudit(postData).then(res => {
loading.value = false loading.value = false
createMessage.success(res.message) createMessage.success(res.message)
if (b) AutomaticBooking(id.value)
// //
const { fullPath } = route // const { fullPath } = route //
tabStore.closeTabByKey(fullPath, router) tabStore.closeTabByKey(fullPath, router)

@ -589,19 +589,16 @@
UploadOcrFile, UploadOcrFile,
GetOcrImg, GetOcrImg,
DownloadBookingOrClosingEDI, DownloadBookingOrClosingEDI,
CheckAndInitVOLTAEdi,
CancelAllocationSlot, CancelAllocationSlot,
GetOcrText, GetOcrText,
SendTrace, SendTrace,
SubmitTelex, SubmitTelex,
GetClientParamListById, GetClientParamListById,
PrintShippingOrderLetterPDF,
GetChangeOrderStatus, GetChangeOrderStatus,
CreateChangeTaskAsync CreateChangeTaskAsync
} from '/@/views/operation/seaexport/api/BookingLedger.js' } from '/@/views/operation/seaexport/api/BookingLedger.js'
import { Divider } from 'ant-design-vue'
import { BookingTruckGetTruckListByBooking } from '/@/views/operation/seaexport/api/SendCar.js' import { BookingTruckGetTruckListByBooking } from '/@/views/operation/seaexport/api/SendCar.js'
import { ref, reactive, getCurrentInstance, h, watch, onMounted } from 'vue' import { ref, reactive, h, watch, nextTick } from 'vue'
import { Modal } from 'ant-design-vue' import { Modal } from 'ant-design-vue'
import { useModal } from '/@/components/Modal' import { useModal } from '/@/components/Modal'
import { useAppStore } from '/@/store/modules/app' import { useAppStore } from '/@/store/modules/app'
@ -1084,20 +1081,26 @@
if (res.data == '未审单') { if (res.data == '未审单') {
createMessage.warning('此单未审,可直接编辑调整!') createMessage.warning('此单未审,可直接编辑调整!')
} else { } else {
if (res.data == '已审未出号') {
setFieldsValue({
orderProgress: 1
})
} else if (res.data == '已出号未申报') {
setFieldsValue({
orderProgress: 2
})
} else if (res.data == '已申报') {
setFieldsValue({
orderProgress: 3
})
}
changeConfigFlag.value = true changeConfigFlag.value = true
nextTick(() => {
if (res.data == '已审未出号') {
setFieldsValue({
orderProgress: 1
})
} else if (res.data == '已出号未申报') {
setFieldsValue({
orderProgress: 2
})
} else if (res.data == '已申报') {
setFieldsValue({
orderProgress: 3
})
}
})
setFieldsValue({
changeReason: null,
changeRemark: null
})
} }
}) })
} }
@ -1126,9 +1129,11 @@
const postData = await validate() const postData = await validate()
postData['id'] = props.id postData['id'] = props.id
CreateChangeTaskAsync(postData).then(res => { CreateChangeTaskAsync(postData).then(res => {
createMessage.success(res.message) createMessage.success('已进入改配页面!')
emit('changeConfig') emit('changeConfig')
changeConfigFlag.value = false changeConfigFlag.value = false
}).catch(() => {
changeConfigFlag.value = false
}) })
} }
function downloadBookingOrEDI(type) { function downloadBookingOrEDI(type) {

Loading…
Cancel
Save