更新任务

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

@ -128,7 +128,7 @@
} }
// //
const previewFile = (item) => { 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) window.open(fileURL)
} }
const showIcon = (v) => { const showIcon = (v) => {

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

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

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

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

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

Loading…
Cancel
Save