更新任务

szh-new
sunzehua 4 months ago
parent 03b0887a93
commit 969f6e4912

@ -128,7 +128,7 @@
}
//
const previewFile = (item) => {
let fileURL = `http://118.190.144.189:3008/LinkAttach/${item.filePath}`
let fileURL = `http://118.190.144.189:3008//${item.filePath}`
window.open(fileURL)
}
const showIcon = (v) => {

@ -512,7 +512,7 @@ export function GetVGMMissingInfoByTaskId(parameter) {
export function CutDateGetInfoByTaskId(parameter) {
return request<DataResult>({
url: '/TaskManageCutDate/GetInfoByTaskId',
url: '/taskApi/TaskManageCutDateChange/GetInfoByTaskId',
method: 'get',
params: parameter
})

@ -86,48 +86,48 @@ export const searchFormSchema: FormSchema[] = [
}
},
},
{
field: 'taskCategory',
label: '任务分类',
component: 'Select',
required: false,
dynamicDisabled: false,
colProps: { span: 4 },
componentProps: ({ formModel }) => {
return {
options: categoryData.value,
fieldNames: {
label: 'name',
value: 'code'
},
showSearch: true,
filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
},
}
},
},
{
field: 'status',
label: '任务状态',
component: 'Select',
required: false,
dynamicDisabled: false,
colProps: { span: 4 },
componentProps: ({ formModel }) => {
return {
options: statusData.value,
fieldNames: {
label: 'name',
value: 'code'
},
showSearch: true,
filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
},
}
},
},
// {
// field: 'taskCategory',
// label: '任务分类',
// component: 'Select',
// required: false,
// dynamicDisabled: false,
// colProps: { span: 4 },
// componentProps: ({ formModel }) => {
// return {
// options: categoryData.value,
// fieldNames: {
// label: 'name',
// value: 'code'
// },
// showSearch: true,
// filterOption: (input: string, option: any) => {
// return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
// },
// }
// },
// },
// {
// field: 'status',
// label: '任务状态',
// component: 'Select',
// required: false,
// dynamicDisabled: false,
// colProps: { span: 4 },
// componentProps: ({ formModel }) => {
// return {
// options: statusData.value,
// fieldNames: {
// label: 'name',
// value: 'code'
// },
// showSearch: true,
// filterOption: (input: string, option: any) => {
// return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
// },
// }
// },
// },

@ -71,12 +71,12 @@ function init() {
var patt = new RegExp('filename=([^;]+\\.[^\\.;]+);*')
var result = patt.exec(contentDisposition) as any
console.log(patt,result,contentDisposition,res)
// var filename = result[1]
// var reg = /^["](.*)["]$/g
// pdfName.value = decodeURI(filename.replace(reg, '$1'))
// if (res.data.size > 150) {
// pdfUrl.value = window.URL.createObjectURL(new Blob([res.data], { type: 'application/pdf;charset=utf-8' }))
// }
var filename = result[1]
var reg = /^["](.*)["]$/g
pdfName.value = decodeURI(filename.replace(reg, '$1'))
if (res.data.size > 150) {
pdfUrl.value = window.URL.createObjectURL(new Blob([res.data], { type: 'application/pdf;charset=utf-8' }))
}
}
pdfLoad.value = false
})

@ -32,10 +32,11 @@
<div v-for="(item, index) in levelTree"
@click="handleClickTree(item, index)"
:class="{ active: item.active }" class="box-item">
<span class="box-number">{{ item.total }}</span>
<span class="box-text" style="font-size: 12px;font-weight: 400">{{
item.name
}}</span>
<div class="box-text" >
<i class="icon-jinggao iconfont"></i>
{{item.name}}
</div>
<div class="box-number">{{ item.total }}</div>
</div>
</div>
</a-tab-pane>
@ -206,16 +207,6 @@
onClick: () => {
handleEdit(record)
},
},
{
icon: 'ant-design:delete-outlined',
tooltip: '删除',
popConfirm: {
title: '是否要删除?',
okText: '是',
cancelText: '否',
confirm: handleDelete.bind(null, record),
},
}
]" />
</template>
@ -454,27 +445,7 @@ function selectTreeLevel(list, key, topKey) {
})
return arr
}
const startData = [
{ tasK_BASE_TYPE: 'VGM_COMPARE', tasK_TITLE: 'VGM_COMPARE' },
{ tasK_BASE_TYPE: 'SI_FEEDBACK', tasK_TITLE: 'SI_FEEDBACK' },
{ tasK_BASE_TYPE: 'ORIGINAL_LOST', tasK_TITLE: 'ORIGINAL_LOST' },
{ tasK_BASE_TYPE: 'ABORT_CHANGE_SHIP', tasK_TITLE: 'ABORT_CHANGE_SHIP' },
{ tasK_BASE_TYPE: 'CHANGE_SHIP', tasK_TITLE: 'CHANGE_SHIP' },
{ tasK_BASE_TYPE: 'PER_BILL', tasK_TITLE: 'PER_BILL' },
{ tasK_BASE_TYPE: 'INVOICE_BILL_MAIL', tasK_TITLE: 'INVOICE_BILL_MAIL' },
{ tasK_BASE_TYPE: 'TRNAS_PLAN_HAS_CHANGE', tasK_TITLE: 'TRNAS_PLAN_HAS_CHANGE' },
{ tasK_BASE_TYPE: 'POD_DISCHARGE_FULL', tasK_TITLE: 'POD_DISCHARGE_FULL' },
{ tasK_BASE_TYPE: 'CUT_MODIFY', tasK_TITLE: 'CUT_MODIFY' },
{ tasK_BASE_TYPE: 'VGM_MISSING', tasK_TITLE: 'VGM_MISSING' },
{ tasK_BASE_TYPE: 'CAUTION_NOTICE', tasK_TITLE: 'CAUTION_NOTICE' },
{ tasK_BASE_TYPE: 'VGM_FEEDBACK', tasK_TITLE: 'VGM_FEEDBACK' },
{ tasK_BASE_TYPE: 'ROLLING_NOMINATION', tasK_TITLE: 'ROLLING_NOMINATION' },
{ tasK_BASE_TYPE: 'CANCELLATION', tasK_TITLE: 'CANCELLATION' },
{ tasK_BASE_TYPE: 'BC_MODIFY', tasK_TITLE: 'BC_MODIFY' },
{ tasK_BASE_TYPE: 'BC', tasK_TITLE: 'BC' },
{ tasK_BASE_TYPE: 'DRAFT', tasK_TITLE: 'DRAFT' },
{ tasK_BASE_TYPE: 'TRUCK_DISPATCH', tasK_TITLE: 'TRUCK_DISPATCH' },
]
const columns = [
{ dataIndex: 'tasK_TYPE_NAME', width: 100, title: '任务类型' },
{ dataIndex: 'tasK_TITLE', width: 200, title: '任务标题' },
@ -515,9 +486,6 @@ const [registerTable, { reload, setLoading, getForm, getSelectRows, setProps }]
if (item.FieldName === 'task_TYPE') {
item.ConditionalType = 0
}
if (item.FieldName === 'status') {
item.ConditionalType = 0
}
if (item.FieldName === 'taskRecvName') {
item.ConditionalType = 0
}
@ -1207,9 +1175,16 @@ function handleClickTree(row, index) {
.box-item {
cursor: pointer;
margin-bottom: 10px;
display: flex;
justify-content: space-between;
align-items: center;
&:hover {
background: rgba(245, 249, 252, 1);
.box-text {
background: rgba(245, 249, 252, 1);
color: rgba(37, 122, 250, 1);
}
}
&.active {
@ -1237,8 +1212,12 @@ function handleClickTree(row, index) {
}
.box-text {
padding: 4px 7px;
font-size: 14px;
padding: 2px 7px;
font-weight: 400;
line-height: 14px;
flex:1;
margin-right: 10px;
}
.bottom-box {

@ -1,18 +1,22 @@
<template>
<div class="main">
<a-spin :spinning="spinning">
<div class="LeftHead">
<p>
<i class="icon-PC_gangkou iconfont" style="color: red;margin-right: 10px;font-size: 16px"></i>
截止时间变更通知({{ taskData.carrier }})
</p>
<p>时间{{ taskData.createTime }}</p>
<div class="box">
<div class="LeftHead">
<p>
<i class="icon-PC_gangkou iconfont" style="color: red;margin-right: 10px;font-size: 16px"></i>
截止时间变更通知({{ taskData.carrier }})
</p>
<p>时间{{ taskData.createTime }}</p>
</div>
<a-table :pagination="false" size="small" :scroll="{ x: 1500, y: 300 }" :columns="columns"
:data-source="taskData" bordered>
</a-table>
<a-row style="margin-top: 40px;" type="flex" justify="end" :gutter="16">
<taskButton :buttonList="['取消', '完成', '转移', '邮件']" @loadingStart="loadingStart"
@loadingStop="loadingStop" :id="taskPKId"></taskButton>
</a-row>
</div>
<BasicTable class="ds-table" @register="registerTable"></BasicTable>
<a-row style="margin-top: 40px;" type="flex" justify="end" :gutter="16">
<taskButton :buttonList="['取消', '完成', '转移','邮件']" @loadingStart="loadingStart" @loadingStop="loadingStop"
:id="taskPKId"></taskButton>
</a-row>
</a-spin>
</div>
</template>
@ -20,42 +24,41 @@
import { ref, onMounted } from 'vue'
import { CutDateGetInfoByTaskId } from '../api'
import { useMessage } from '../../../hooks/web/useMessage'
import { BasicTable, useTable, TableAction } from '/@/components/Table'
import taskButton from '../components/taskButton.vue'
const { createMessage } = useMessage()
import { useRoute } from 'vue-router'
const route = useRoute()
const spinning = ref(false)
const taskData = ref({}) as any
const taskData = ref([]) as any
const taskPKId = ref(route.query.taskPKId)
onMounted(() => {
getInfo()
})
const columns = [
{
dataIndex: 'mblNo',
title: '提单号',
key: 'mblNo',
width:100,
width: 100,
align: 'center'
},
{
title: '船名/航次',
dataIndex: 'vessel',
width:100,
width: 100,
key: 'vessel',
align: 'center',
},
{
title: '样单截止时间',
dataIndex: 'siCutDateTxt',
width:100,
width: 100,
key: 'siCutDateTxt',
align: 'center'
},
{
title: '开港时间',
width:100,
width: 100,
dataIndex: 'cyOpenDateTxt',
key: 'cyOpenDateTxt',
align: 'center'
@ -64,12 +67,11 @@ const columns = [
title: '截港时间',
dataIndex: 'cyCutoffTimeTxt',
key: 'cyCutoffTimeTxt',
width:100,
width: 100,
align: 'center'
},
{
title: '舱单-入港清单截止时间',
width:100,
dataIndex: 'manifestCutDateTxt',
key: 'manifestCutDateTxt',
align: 'center'
@ -77,14 +79,13 @@ const columns = [
{
title: 'MDGF提交截止时间',
dataIndex: 'mdgfCutDateTxt',
width:100,
key: 'mdgfCutDateTxt',
align: 'center'
},
{
title: 'VGM截止时间',
dataIndex: 'vgmCutoffTimeTxt',
width:100,
width: 100,
key: 'vgmCutoffTimeTxt',
align: 'center'
},
@ -92,12 +93,11 @@ const columns = [
title: '海关放行截止时间',
dataIndex: 'closingDateTxt',
key: 'closingDateTxt',
width:100,
align: 'center'
},
{
title: '已发通知',
width:100,
width: 100,
dataIndex: 'bookingId',
key: 'bookingId',
align: 'center',
@ -105,24 +105,18 @@ const columns = [
{
title: '订舱',
dataIndex: 'bookingId1',
width:100,
width: 100,
key: 'bookingId1',
align: 'center'
}
]
const [registerTable, { reload, setLoading, getForm, getSelectRows, setProps }] = useTable({
api: async (p) => {
const res: API.DataResult = await CutDateGetInfoByTaskId(p)
return new Promise((resolve) => {
resolve({
data:res.data, total: res.count
})
taskData.value = res.data[0]
})
},
immediate: false,
columns,
})
function getInfo() {
CutDateGetInfoByTaskId({ taskPKId: taskPKId.value }).then(res => {
})
}
function loadingStart() {
spinning.value = true
}

Loading…
Cancel
Save