任务台

szh-new
lijingjia 4 months ago
parent 5f7ba4f20f
commit 926bed80c3

@ -2083,15 +2083,6 @@ export function BringInBookingSlotToOrder(data) {
})
}
// 获取当前任务
export function GetCurrent(params) {
return request({
url: '/opApi/SeaExportTask/GetCurrent',
method: 'get',
params
})
}
// 设置任务状态
export function SetTaskStatus(data) {
return request({

@ -32,7 +32,6 @@
:id="id"
:details="bookingDetails"
:inChildLoading="inChildLoading"
:taskType="taskType"
:source="source"
@refresh="refreshPage"
@SetOCR="SetOCR"
@ -109,7 +108,8 @@
:id="id"
businessType="1"
>
<a-button v-repeat v-if="taskType > 201" @click="completeTask" type="primary">
<a-button v-repeat v-if="route.query.status != 'WAIT_ORDER_AUDIT'" @click="completeTask" type="primary">
{{ completeText }}
</a-button>
</ApproveBtns>
@ -192,7 +192,6 @@
SeaExportCopy,
SeaExportTaskAudit,
CreateTask,
GetCurrent,
SetTaskStatus
} from '../api/BookingLedger'
import { getDictDropDown } from '/@/api/common'
@ -253,8 +252,6 @@
const inGoodsSave = ref(false)
const tabStore = useMultipleTabStore()
const moreStr = ref('')
//
const taskType = ref()
//
const feeHeight = computed(() => {
const height = window.innerHeight
@ -265,8 +262,16 @@
const status = route.query.status
if (status == 'WAIT_BC') {
return '收到BC'
} else if (status == 'WAIT_CANGDAN') {
} else if (status == 'WAIT_BILL_CONFIRM') {
return '提单确认'
} else if (status == 'WAIT_DRAFT') {
return '收到DRAFT'
} else if (status == 'WAIT_CHECKOUT_BILL') {
return '放单'
} else if (status == 'WAIT_BAOGUAN') {
return '报关完成'
} else if (status == 'WAIT_AMS') {
return '发送AMS'
} else {
return '完成任务'
}
@ -332,10 +337,6 @@
console.log(document.getElementsByClassName('main-tab')[0])
// tab
if (source.value != 'edit') document.getElementsByClassName('main-tab')[0].getElementsByClassName('ant-tabs-nav-wrap')[0].style.display = 'none'
//
if (route.query.taskId) {
getTask()
}
})
init()
//
@ -967,8 +968,7 @@
const submit = async () => {
const postData = {
businessId: id.value,
businessType: '1',
taskType: '201',
businessType: '1'
}
loading.value = true
await CreateTask(postData)
@ -985,11 +985,10 @@
const postData = {
businessId: id.value,
businessType: '1',
taskType: type
taskTypeName: route.query.status
}
loading.value = true
await CreateTask(postData).then(res => {
taskType.value = type
loading.value = false
createMessage.success(res.message)
}).catch(() => {
@ -1492,26 +1491,19 @@
loading.value = false
})
}
//
const getTask = () => {
GetCurrent({ businessId: id.value, businessType: 1 }).then(res => {
taskType.value = res.data.taskType
})
}
//
const completeTask = () => {
const { fullPath } = route //
const postData = {
businessId: id.value,
businessType: 1,
taskType: taskType.value,
taskTypeName: route.query.status,
taskStatus: 2,
autoCreateNext: true
}
SetTaskStatus(postData).then(res => {
createMessage.success('操作成功!')
tabStore.closeTabByKey(fullPath, router)
taskType.value = res.data
})
}
function setDeatilsFun(res, overSet = false) {

@ -1,10 +1,10 @@
<template>
<div class="operation-area">
<a-button v-repeat v-if="source == 'edit' || taskType == 202" type="link" @click="openModel('bookingSpace')">
<a-button v-repeat v-if="source == 'edit' || status == 'WAIT_BOOKING'" type="link" @click="openModel('bookingSpace')">
<span class="iconfont icon-gongdanqueren"></span>
订舱
</a-button>
<a-button v-if="source == 'edit' || taskType == 206" type="link" @click="openModel('cutOff')">
<a-button v-if="source == 'edit' || status == 'WAIT_SI'" type="link" @click="openModel('cutOff')">
<span class="iconfont icon-lanjie"></span>
截单
</a-button>
@ -14,16 +14,16 @@
cancel-text="否"
@confirm="openModel('vgm')"
>
<a-button v-if="source == 'edit'" type="link">
<span class="iconfont icon-lanjie"></span>
VGM
</a-button>
<a-button v-if="source == 'edit' || status == 'WAIT_VGM'" type="link">
<span class="iconfont icon-lanjie"></span>
VGM
</a-button>
</a-popconfirm>
<a-button v-if="source == 'edit'" type="link" @click="openModel('trace')">
<span class="iconfont icon-dingwei"></span>
运踪
</a-button>
<a-button v-if="source == 'edit'" type="link" @click="openPreOrderFun">
<a-button v-if="source == 'edit' || status == 'WAIT_CANGDAN'" type="link" @click="openPreOrderFun">
<span class="iconfont icon-chuanfanguanli-chuanfanshenqing"></span>
舱单
</a-button>
@ -32,7 +32,7 @@
下货纸
</a-button>
<Divider v-if="source == 'edit'" type="vertical" />
<a-button v-if="source == 'edit' || taskType == 204" type="link" @click="FnOpBusinessYard">
<a-button v-if="source == 'edit' || status == 'WAIT_SPACE_RELEASE'" type="link" @click="FnOpBusinessYard">
<span class="iconfont icon-a-fahuodaifahuo"></span>
场站入货
</a-button>
@ -46,6 +46,7 @@
提箱小票
</a-button>
<a-upload
v-if="source == 'edit'"
:file-list="fileList"
accept=".pdf"
:before-upload="beforeUpload"
@ -969,7 +970,7 @@
},
//
taskType: {
type: Number
type: String
}
})
// =============
@ -980,6 +981,7 @@
const modelType = ref('')
const bookingModelvisible = ref(false)
const bookingModelconfirm = ref(false)
const status = ref(route.query.status)
//
const rules = {
traceValue: [

@ -8,7 +8,7 @@
>
<template #footer>
</template>
<div class="pre-order">
<div class="pre-order" style="padding-top: 30px;">
<div class="flex">
<div class="ds-card" style="width: 251px;">
<h4>

@ -75,6 +75,14 @@
/>
<span class="s-txt" :class="{ 's-active': model.isDispatcher }">{{ model.isDispatcher ? '是' : '否'}}</span>
</template>
<template #signatureUrl>
<DsFile ref="dsFile" :id="id" :show="false" height="300">
<a-button type="link" size="mini" style="padding-right: 3px!important;" @click="addFile">
<span class="iconfont icon-fujian1"></span>
点击上传图片
</a-button>
</DsFile>
</template>
</BasicForm>
</a-tab-pane>
<a-tab-pane key="1" tab="个人开户信息">
@ -108,6 +116,8 @@
import BankInfo from './bankInfo.vue'
import { editUser, getUser } from '/@/api/system/user'
import { useMessage } from '/@/hooks/web/useMessage'
//
import DsFile from '/@/components/File/index.vue'
// Emits
const emit = defineEmits(['success', 'register'])
const isUpdate = ref(true)
@ -123,6 +133,7 @@
})
// id
const id = ref('')
const fileList = ref([])
const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => {
activeKey.value = '0'
resetFields()
@ -162,6 +173,10 @@
setModalProps({ confirmLoading: false, loading: false })
}
}
const dsFile = ref(null)
function addFile() {
dsFile.value.init()
}
async function refresh() {
const res: API.DataResult = await getUser({ id: unref(rowId) })
if (res.succeeded) {

@ -421,7 +421,14 @@ export const formSchema: FormSchema[] = [
api: getRoleList,
resultField: 'data'
}
}
},
{
field: 'signatureUrl',
label: '上传签名照',
slot: 'signatureUrl',
component: 'Input',
colProps: { span: 24 }
},
]
export const BankFormSchema: FormSchema[] = [

@ -741,6 +741,18 @@ function handleEdit(data) {
case 'WAIT_BC':
case 'WAIT_SPACE_RELEASE':
case 'WAIT_CANGDAN':
case 'WAIT_BILL_CONFIRM':
case 'WAIT_SI':
case 'WAIT_DRAFT':
case 'WAIT_CHECKOUT_BILL':
case 'WAIT_VGM':
case 'WAIT_BAOGUAN':
case 'WAIT_AMS':
case 'WAIT_SHANGJIAN':
case 'WAIT_COA':
case 'WAIT_CHANDIZHENG':
case 'WAIT_TUOCHE':
case 'WAIT_Insurance':
//
go({
path: '/taskmanage/booking-approval',

Loading…
Cancel
Save