更新任务自定义列

szh-new
sunzehua 4 months ago
parent 48841397c9
commit f2a420e47e

@ -1,6 +1,7 @@
// @ts-ignore
import { request } from '/@/utils/request'
import { DataResult, PageRequest } from '/@/api/model/baseModel'
import qs from "qs"
export function GetCurrentTotalStat(data) {
return request<DataResult>({
@ -792,3 +793,19 @@ export function GetContainsCarrierList() {
method: 'get',
})
}
export function UpdateUserTaskPlatFieldSet(parameter) {
return request<DataResult>({
url: '/mainApi/Common/UpdateUserTaskPlatFieldSet',
data:parameter,
method: 'post',
})
}
export function GetUserTaskPlatFieldSet(params) {
return request<DataResult>({
url: '/mainApi/Common/GetUserTaskPlatFieldSet',
data:params,
method: 'post',
})
}

@ -248,10 +248,11 @@
</div>
</template>
<script lang="ts" setup name="任务台账">
import { ref, onMounted, watch,onActivated } from 'vue'
import { ref, onMounted, watch, onActivated } from 'vue'
import { formatParams } from '/@/hooks/web/common'
import { searchFormSchema } from './columns'
import { BasicTable, useTable, TableAction } from '/@/components/Table'
import { GetUserTaskPlatFieldSet } from './api'
import { useMessage } from '../../hooks/web/useMessage'
import { useRoute, useRouter } from 'vue-router';
import { useOptionsStore } from '/@/store/modules/options'
@ -285,6 +286,7 @@ import { useGo } from '/@/hooks/web/usePage'
const go = useGo()
onMounted(() => {
getCurrentTotalStat()
getSetColumns()
// 使
optionsStore.getOptionsByCode('GetVesselSelectList')
optionsStore.getOptionsByCode('GetClientStlModeSelectList')
@ -305,9 +307,9 @@ onMounted(() => {
router.afterEach((to, from) => {
if (to.fullPath === '/taskmanage') {
refshTotalStat();
}
if (to.fullPath === '/taskmanage') {
refshTotalStat();
}
});
const levelreLoading = ref(false)
const levelLoading = ref(false)
@ -332,7 +334,7 @@ function getCurrentTotalStat() {
levelTree.value = []
const data = {
isReCalc: false,
queryCondition:formatParams(getForm().getFieldsValue()).queryCondition
queryCondition: formatParams(getForm().getFieldsValue()).queryCondition
}
GetCurrentTotalStat(data)
.then(res => {
@ -345,7 +347,6 @@ function getCurrentTotalStat() {
activeTopKey.value = levelTop.value[0].key
levelNext.value = selectNextLevel(levelNextAll.value, activeTopKey.value)
if (levelNext.value.length > 0) {
console.log(levelNext.value,activeNextKey.value)
if (!activeNextKey.value) {
activeNextKey.value = levelNext.value[0].key
getForm().setFieldsValue({ status: activeNextKey.value })
@ -379,7 +380,7 @@ function refshTotalStat() {
levelTreeAll.value = res.data.levelTree
levelTree.value = selectTreeLevel(levelTreeAll.value, activeNextKey.value, activeTopKey.value)
levelTree.value.map((item, index) => {
if(item.key === taskType.value){
if (item.key === taskType.value) {
item.active = true
}
})
@ -476,15 +477,7 @@ function changeTopLevel() {
})
reload()
}
function onSelect() {
}
function handleAdd() {
}
function init() {
}
//
function changeNextLevel() {
levelTree.value = selectTreeLevel(levelTreeAll.value, activeNextKey.value, activeTopKey.value)
@ -527,7 +520,7 @@ const columns = [
{ dataIndex: 'createUserName', width: 100, title: '接收人' },
{ dataIndex: 'completE_DEAL_NAME', width: 100, title: '完成方式' },
]
const [registerTable, { reload, setLoading, getForm, getSelectRows, setProps }] = useTable({
const [registerTable, { reload, setLoading, getForm, getSelectRows, setColumns }] = useTable({
api: async (p) => {
const res: API.DataResult = await GetPageAsync(p)
return new Promise((resolve) => {
@ -572,14 +565,13 @@ const [registerTable, { reload, setLoading, getForm, getSelectRows, setProps }]
formConfig: {
labelWidth: 120,
schemas: searchFormSchema,
submitFunc:handleNext,
resetFunc:handleResetFunc
submitFunc: handleNext,
resetFunc: handleResetFunc
},
isTreeTable: false,
pagination: true,
striped: true,
useSearchForm: true,
showTableSetting: true,
bordered: true,
showIndexColumn: true,
indexColumnProps: {
@ -595,14 +587,14 @@ const [registerTable, { reload, setLoading, getForm, getSelectRows, setProps }]
}
})
function handleNext(){
function handleNext() {
activeNextKey.value = ''
getCurrentTotalStat()
}
function handledbclick(row) {
handleEdit(row)
}
function handleResetFunc(){
function handleResetFunc() {
console.log('handleResetFunc')
}
function handleEdit(data) {
@ -781,8 +773,21 @@ function handleEdit(data) {
break;
}
}
function handleDelete() {
const columsAll = ref([]) as any
function getSetColumns() {
const data = {
permissionId: 1819556999776571399,
taskTypeCodeArray: ['DRAFT', 'ROLLING_NOMINATION', 'CUT_MODIFY', 'TRUCK_DISPATCH', 'PER_BILL',
'BC', 'SI_FEEDBACK', 'basic', 'ROUTE_CUT_CHANGE', 'CAUTION_NOTICE', 'POD_DISCHARGE_FULL'],
isSetDefault: false
}
GetUserTaskPlatFieldSet(data).then(res => {
if (res.succeeded) {
if (res.data.length > 0) {
columsAll.value = res.data
}
}
})
}
const bcFileFlag = ref(false)
const bcFile = ref({}) as any
@ -1184,7 +1189,6 @@ function laraRecordFun() {
//
function handleClickTree(row, index) {
console.log('点击详细任务类型', row)
if (!row.active) {
taskType.value = row.key
levelTree.value.map((item, index) => {
@ -1197,6 +1201,30 @@ function handleClickTree(row, index) {
})
taskType.value = ''
}
let arr = [] as any
let arr1 = [] as any
columsAll.value.forEach(item => {
if (item.taskTypeCode === row.key) {
JSON.parse(item.content).forEach(item=>{
if(item.checked){
arr.push(item)
}
})
}
if (item.taskTypeCode === 'BASIC') {
JSON.parse(item.content).forEach(item=>{
if(item.checked){
arr1.push(item)
}
})
}
})
if (arr.length == 0 && arr1.length == 0) {
setColumns(columns)
} else {
const arr3 = arr1.concat(arr)
setColumns(arr3)
}
reload()
}
</script>
@ -1346,7 +1374,7 @@ function handleClickTree(row, index) {
.nav-bottom {
width: 100%;
margin-bottom: 16px;
margin-bottom: 14px;
.icon {
font-size: 12px;

@ -4,7 +4,7 @@
<div class="main-content">
<a-row style="padding: 15px;" :gutter="16">
<a-col :span="pdfUrl ? 11 : 24">
<taskData :pdfUrl="pdfUrl" ref="taskDataRef" title='Booking Confirmation'></taskData>
<taskData :pdfUrl="pdfUrl" ref="taskDataRef" title='Booking Cancellation'></taskData>
</a-col>
<a-col :span="13" v-show="pdfUrl">
<pdf v-show="pdfUrl" @handleSuccess="handleSuccess" style="margin-bottom: 20px;" :id="taskPKId"

@ -3,313 +3,304 @@
"type":"basic",
"title":"基础信息",
"list":[
{"field":"tasK_NO","title":"任务流水号","width":150},
{"field":"tasK_TYPE","title":"任务类型","width":100,"slots": { "default": "taskType" }, "sortable": true},
{"field":"tasK_SOURCE","title":"任务来源","width":100,"slots": { "default": "taskScource" }},
{"field":"statuS_NAME","title":"状态","width":100,"slots": { "default": "status" }},
{"field":"tasK_TITLE","title":"任务标题","width":200,"slots": { "default": "taskTitle" }, "sortable": true},
{"field":"tasK_DESP","title":"任务描述","width":100},
{"field":"ouT_BUSI_NO","title":"外业务编号","width":120},
{"field":"ouT_BUSI_TYPE","title":"外业务类型","width":120,"slots": { "default": "ouT_BUSI_TYPE" }},
{"field":"tasK_BASE_TYPE","title":"基础业务类型","width":120},
{"field":"carrieR_ID","title":"船公司代号","width":100},
{"field":"mbL_NO","title":"主单号","width":150, "sortable": true},
{"field":"remark","title":"备注","width":100},
{"field":"iS_EXCEPT","title":"是否异常","width":100,"slots": { "default": "iS_EXCEPT" }},
{"field":"iS_PUBLIC","title":"是否公共","width":100,"slots": { "default": "iS_PUBLIC" }},
{"field":"iS_COMPLETE","title":"是否完成","width":100,"slots": { "default": "iS_COMPLETE" }},
{"field":"begiN_DATE","title":"任务启动时间","width":120},
{"field":"completE_DATE","title":"任务完成时间","width":120},
{"field":"resulT_NOTE","title":"反馈结果","width":100},
{"field":"etd","title":"开船日期","width":100, "sortable": true},
{"field":"completE_DEAL","title":"任务完成方式","width":120},
{"field":"issuE_TYPE_NAME","title":"签单方式","width":100},
{"field":"tasK_REQ_USERNAME","title":"操作名称","width":100, "sortable": true},
{"field":"contA_INFO","title":"箱型箱量","width":150, "sortable": true},
{"field":"vesseL_VOYNO","title":"船名航次","width":100, "sortable": true},
{"field":"yarD_NAME","title":"场站","width":150, "sortable": true},
{"field":"trucK_NAME","title":"车队名称","width":170,"slots": { "default": "truckName" }, "sortable": true},
{"field":"customeR_NAME","title":"委托客户","width":200, "sortable": true},
{"field":"needArriveTime","title":"要求到达时间","width":200, "sortable": true},
{"field":"realUserName","title":"实际操作人","width":100},
{"field":"batcH_STATIC","title":"批次统计","width":100},
{"field":"systeM_NAME","title":"平台名称","width":100},
{"field":"createdUserName","title":"接收人","width":100},
{"field":"createdTime","title":"接收时间","width":200, "sortable": true}
{"dataIndex":"tasK_NO","title":"任务流水号","width":150},
{"dataIndex":"tasK_TYPE_NAME","title":"任务类型","width":100, "sortable": true},
{"dataIndex":"tasK_SOURCE_NAME","title":"任务来源","width":100},
{"dataIndex":"statuS_NAME","title":"任务状态","width":100},
{"dataIndex":"tasK_TITLE","title":"任务标题","width":200,"sortable": true},
{"dataIndex":"tasK_DESP","title":"任务描述","width":100},
{"dataIndex":"ouT_BUSI_NO","title":"外业务编号","width":120},
{"dataIndex":"ouT_BUSI_TYPE","title":"外业务类型","width":120},
{"dataIndex":"tasK_BASE_TYPE","title":"基础业务类型","width":120},
{"dataIndex":"carrieR_CODE","title":"船公司","width":100},
{"dataIndex":"mbL_NO","title":"主单号","width":150, "sortable": true},
{"dataIndex":"remark","title":"备注","width":100},
{"dataIndex":"iS_EXCEPT","title":"是否异常","width":100},
{"dataIndex":"iS_PUBLIC","title":"是否公共","width":100},
{"dataIndex":"iS_COMPLETE","title":"是否完成","width":100},
{"dataIndex":"begiN_DATE","title":"任务启动时间","width":120},
{"dataIndex":"completE_DATE","title":"任务完成时间","width":120},
{"dataIndex":"resulT_NOTE","title":"反馈结果","width":100},
{"dataIndex":"etd","title":"开船日期","width":100, "sortable": true},
{"dataIndex":"completE_DEAL","title":"任务完成方式","width":120},
{"dataIndex":"issuE_TYPE_NAME","title":"签单方式","width":100},
{"dataIndex":"tasK_REQ_USERNAME","title":"操作名称","width":100, "sortable": true},
{"dataIndex":"contA_INFO","title":"箱型箱量","width":150, "sortable": true},
{"dataIndex":"vesseL_VOYNO","title":"船名航次","width":100, "sortable": true},
{"dataIndex":"yarD_NAME","title":"场站","width":150, "sortable": true},
{"dataIndex":"trucK_NAME","title":"车队名称","width":170, "sortable": true},
{"dataIndex":"customeR_NAME","title":"委托客户","width":200, "sortable": true},
{"dataIndex":"needArriveTime","title":"要求到达时间","width":200, "sortable": true},
{"dataIndex":"realUserName","title":"实际操作人","width":100},
{"dataIndex":"batcH_STATIC","title":"批次统计","width":100},
{"dataIndex":"systeM_NAME","title":"平台名称","width":100},
{"dataIndex":"createdUserName","title":"接收人","width":100},
{"dataIndex":"createdTime","title":"接收时间","width":200, "sortable": true}
]
},
{
"type":"SI_FEEDBACK",
"title":"SI反馈入库",
"list":[
{ "title":"船公司","field":"carrieR_ID","width": 100 },
{ "title":"提取签单方式","field":"takE_ISSUETYPE_NAME","width": 120 },
{ "title":"通知接收时间","field":"noticE_DATE","width": 120 },
{ "title":"签单方式","field":"issuetype","width": 100 },
{ "title":"截单上传时间","field":"submitteD_DATE","width": 120 },
{ "title":"提单份数","field":"billoF_NUM","width": 100 },
{ "title":"放单方式","field":"releasE_INSTRUCTION","width": 100 },
{ "title":"是否拆单","field":"sI_SUBTYPE","width": 100,"slots": { "default": "sI_SUBTYPE" } },
{ "title":"发货人","field":"shipper","width": 100 },
{ "title":"收货人","field":"consignee","width": 100 },
{ "title":"通知人","field":"notifyparty","width": 100 },
{ "title":"第二通知人","field":"notifypartY2","width": 100 },
{ "title":"订舱方","field":"transporT_RECEIVER","width": 100 },
{ "title":"唛头","field":"marks","width": 100 },
{ "title":"HS代码","field":"hscode","width": 100 },
{ "title":"货描","field":"description","width": 100 },
{ "title":"件数","field":"pkgs","width": 100 },
{ "title":"包装","field":"kindpkgs","width": 100 },
{ "title":"毛重","field":"kgs","width": 100 },
{ "title":"尺码","field":"cbm","width": 100 },
{ "title":"船名","field":"vessel","width": 100 },
{ "title":"海关航次","field":"voyno","width": 100 },
{ "title":"商品名称","field":"commodity","width": 100 },
{ "title":"收货地代码","field":"placereceiptid","width": 100 },
{ "title":"收货地","field":"placereceipt","width": 100 },
{ "title":"起运港代码","field":"portloadid","width": 100 },
{ "title":"起运港","field":"portload","width": 100 },
{ "title":"卸货港代码","field":"portdischargeid","width": 100 },
{ "title":"卸货港","field":"portdischarge","width": 100 },
{ "title":"交货地代码","field":"placedeliveryid","width": 100 },
{ "title":"交货地","field":"placedelivery","width": 100 },
{ "title":"处理状态","field":"procesS_STATUS","width": 100 },
{ "title":"自动更新订舱","field":"iS_SET_AUTO_UPD_BOOKING","width": 120 },
{ "title":"处理结果","field":"procesS_RESULT","width": 100 },
{ "title":"处理时间","field":"procesS_DATE","width": 100 },
{ "title":"比对差异数量","field":"difF_NUM","width": 120 },
{ "title":"是否已更新订舱","field":"iS_UPDATE_BOOKING","width": 140,"slots": { "default": "iS_UPDATE_BOOKING" } },
{ "title":"更新订舱时间","field":"updatE_BOOKING_DATE","width": 140 }
{ "title":"提取签单方式","dataIndex":"takE_ISSUETYPE_NAME","width": 120 },
{ "title":"通知接收时间","dataIndex":"noticE_DATE","width": 120 },
{ "title":"签单方式","dataIndex":"issuetype","width": 100 },
{ "title":"截单上传时间","dataIndex":"submitteD_DATE","width": 120 },
{ "title":"提单份数","dataIndex":"billoF_NUM","width": 100 },
{ "title":"放单方式","dataIndex":"releasE_INSTRUCTION","width": 100 },
{ "title":"是否拆单","dataIndex":"sI_SUBTYPE","width": 100 },
{ "title":"发货人","dataIndex":"shipper","width": 100 },
{ "title":"收货人","dataIndex":"consignee","width": 100 },
{ "title":"通知人","dataIndex":"notifyparty","width": 100 },
{ "title":"第二通知人","dataIndex":"notifypartY2","width": 100 },
{ "title":"订舱方","dataIndex":"transporT_RECEIVER","width": 100 },
{ "title":"唛头","dataIndex":"marks","width": 100 },
{ "title":"HS代码","dataIndex":"hscode","width": 100 },
{ "title":"货描","dataIndex":"description","width": 100 },
{ "title":"件数","dataIndex":"pkgs","width": 100 },
{ "title":"包装","dataIndex":"kindpkgs","width": 100 },
{ "title":"毛重","dataIndex":"kgs","width": 100 },
{ "title":"尺码","dataIndex":"cbm","width": 100 },
{ "title":"船名","dataIndex":"vessel","width": 100 },
{ "title":"海关航次","dataIndex":"voyno","width": 100 },
{ "title":"商品名称","dataIndex":"commodity","width": 100 },
{ "title":"收货地代码","dataIndex":"placereceiptid","width": 100 },
{ "title":"收货地","dataIndex":"placereceipt","width": 100 },
{ "title":"起运港代码","dataIndex":"portloadid","width": 100 },
{ "title":"起运港","dataIndex":"portload","width": 100 },
{ "title":"卸货港代码","dataIndex":"portdischargeid","width": 100 },
{ "title":"卸货港","dataIndex":"portdischarge","width": 100 },
{ "title":"交货地代码","dataIndex":"placedeliveryid","width": 100 },
{ "title":"交货地","dataIndex":"placedelivery","width": 100 },
{ "title":"处理状态","dataIndex":"procesS_STATUS","width": 100 },
{ "title":"自动更新订舱","dataIndex":"iS_SET_AUTO_UPD_BOOKING","width": 120 },
{ "title":"处理结果","dataIndex":"procesS_RESULT","width": 100 },
{ "title":"处理时间","dataIndex":"procesS_DATE","width": 100 },
{ "title":"比对差异数量","dataIndex":"difF_NUM","width": 120 },
{ "title":"是否已更新订舱","dataIndex":"iS_UPDATE_BOOKING","width": 140 },
{ "title":"更新订舱时间","dataIndex":"updatE_BOOKING_DATE","width": 140 }
]
},
{
"type":"BC",
"title":"BC任务",
"list":[
{ "title":"订舱单位","field":"bookinG_PARTY","width": 100 },
{ "title":"业务类型","field":"busI_TYPE","width": 100,"slots": { "default": "busI_TYPE" } },
{ "title":"发货人","field":"shipper","width": 100 },
{ "title":"收货人","field":"consignee","width": 100 },
{ "title":"通知人","field":"notifyparty","width": 100 },
{ "title":"BC更新次数","field":"bC_MODIFY_TIMES","width": 120 },
{ "title":"BC更新时间","field":"bC_MODIFY_DATE","width": 120 },
{ "title":"主单号","field":"mbL_NO","width": 100 },
{ "title":"船名","field":"vessel","width": 100 },
{ "title":"航次","field":"voyno","width": 100 },
{ "title":"船公司","field":"carrier","width": 100 },
{ "title":"收货地","field":"placereceipt","width": 100 },
{ "title":"装货港","field":"portload","width": 100 },
{ "title":"截关时间","field":"closinG_DATE","width": 100 },
{ "title":"截VGM时间","field":"vgM_CUTOFF_TIME","width": 100 },
{ "title":"ETA","field":"eta","width": 100 },
{ "title":"ETD","field":"etd","width": 100 },
{ "title":"卸货港","field":"portdischarge","width": 100 },
{ "title":"交货地","field":"placedelivery","width": 100 },
{ "title":"目的港ETA","field":"poD_ETA","width": 100 },
{ "title":"装运方式","field":"shippinG_METHOD","width": 100 },
{ "title":"运输条款","field":"service","width": 100 },
{ "title":"港前运输形态","field":"pretranS_MODE","width": 100 },
{ "title":"品名","field":"description","width": 100 },
{ "title":"签单地点","field":"issueplace","width": 100 },
{ "title":"集港码头","field":"collectioN_TERMINAL","width": 100 },
{ "title":"约号","field":"contractno","width": 100 },
{ "title":"预付地点","field":"prepardat","width": 100 },
{ "title":"船代","field":"shiP_AGENT","width": 100 },
{ "title":"场站","field":"yard","width": 100 },
{ "title":"场站联系人","field":"yarD_CONTACT_USR","width": 100 },
{ "title":"场站联系电话","field":"yarD_CONTACT_TEL","width": 100 },
{ "title":"截单时间","field":"cuT_SINGLE_TIME","width": 100 },
{ "title":"一代客服姓名","field":"fsT_CUSTOMER_SER_USRNAME","width": 120 },
{ "title":"一代客服电话","field":"fsT_CUSTOMER_SER_TEL","width": 120 },
{ "title":"一代客服邮箱","field":"fsT_CUSTOMER_SER_EMAIL","width": 120 },
{ "title":"备注1","field":"remarK1","width": 100 },
{ "title":"截港时间","field":"cY_CUTOFF_TIME","width": 100 },
{ "title":"状态","field":"status","width": 100 },
{ "title":"最后对应时间","field":"lasT_TOBOOKING_DATE","width": 120 },
{ "title":"来源邮箱","field":"froM_EMAIL","width": 100 },
{ "title":"接收邮箱","field":"recV_EMAIL","width": 100 },
{ "title":"船公司","field":"carrierid","width": 100 },
{ "title":"航线代码","field":"lanecode","width": 100 },
{ "title":"航线名称","field":"lanename","width": 100 },
{ "title":"承运方式","field":"carriagE_TYPE_NAME","width": 100 },
{ "title":"订舱方式","field":"bookinG_SLOT_TYPE_NAME","width": 100 },
{ "title":"箱型箱量","field":"ctN_STAT","width": 100 },
{ "title":"所在周数","field":"weeK_AT","width": 100 },
{ "title":"箱使天数","field":"detensioN_FREE_DAYS","width": 100 },
{ "title":"样单截止日期","field":"sI_CUT_DATE","width": 120 },
{ "title":"舱单截止时间","field":"manifesT_CUT_DATE","width": 120 },
{ "title":"MDGF提交截止时间","field":"mdgF_CUT_DATE","width": 140 },
{ "title":"中转港1","field":"transfeR_PORT_1","width": 100 },
{ "title":"中转港2","field":"transfeR_PORT_2","width": 100 },
{ "title":"二程船名","field":"seconD_VESSEL","width": 100 },
{ "title":"二程航次","field":"seconD_VOYNO","width": 100 },
{ "title":"二程ETD","field":"seconD_ETD","width": 100 },
{ "title":"二程ETA","field":"seconD_ETA","width": 100 },
{ "title":"订舱确认时间","field":"bookinG_COMFIRM_DATE","width": 120 },
{ "title":"批次号","field":"batcH_NO","width": 100 },
{ "title":"样单截止日期","field":"custoM_SI_CUT_DATE","width": 120 },
{ "title":"自动转发邮件","field":"iS_SET_AUTO_EMAIL","width": 120,"slots": { "default": "iS_SET_AUTO_EMAIL" } },
{ "title":"已发送邮件","field":"iS_SEND_EMAIL","width": 100,"slots": { "default": "iS_SEND_EMAIL" } },
{ "title":"比对差异数量","field":"difF_NUM","width": 100 },
{ "title":"邮件接收人","field":"autO_SEND_USER","width": 100 },
{ "title":"处理状态","field":"procesS_STATUS","width": 100,"slots": { "default": "procesS_STATUS" } },
{ "title":"处理结果","field":"procesS_RESULT","width": 100 },
{ "title":"处理时间","field":"procesS_DATE","width": 100 },
{ "title":"计费日期","field":"pricE_CALCULATION_DATE","width": 100 }
{ "title":"订舱单位","dataIndex":"bookinG_PARTY","width": 100 },
{ "title":"业务类型","dataIndex":"busI_TYPE","width": 100 },
{ "title":"发货人","dataIndex":"shipper","width": 100 },
{ "title":"收货人","dataIndex":"consignee","width": 100 },
{ "title":"通知人","dataIndex":"notifyparty","width": 100 },
{ "title":"BC更新次数","dataIndex":"bC_MODIFY_TIMES","width": 120 },
{ "title":"BC更新时间","dataIndex":"bC_MODIFY_DATE","width": 120 },
{ "title":"主单号","dataIndex":"mbL_NO","width": 100 },
{ "title":"船名","dataIndex":"vessel","width": 100 },
{ "title":"航次","dataIndex":"voyno","width": 100 },
{ "title":"收货地","dataIndex":"placereceipt","width": 100 },
{ "title":"装货港","dataIndex":"portload","width": 100 },
{ "title":"截关时间","dataIndex":"closinG_DATE","width": 100 },
{ "title":"截VGM时间","dataIndex":"vgM_CUTOFF_TIME","width": 100 },
{ "title":"ETA","dataIndex":"eta","width": 100 },
{ "title":"ETD","dataIndex":"etd","width": 100 },
{ "title":"卸货港","dataIndex":"portdischarge","width": 100 },
{ "title":"交货地","dataIndex":"placedelivery","width": 100 },
{ "title":"目的港ETA","dataIndex":"poD_ETA","width": 100 },
{ "title":"装运方式","dataIndex":"shippinG_METHOD","width": 100 },
{ "title":"运输条款","dataIndex":"service","width": 100 },
{ "title":"港前运输形态","dataIndex":"pretranS_MODE","width": 100 },
{ "title":"品名","dataIndex":"description","width": 100 },
{ "title":"签单地点","dataIndex":"issueplace","width": 100 },
{ "title":"集港码头","dataIndex":"collectioN_TERMINAL","width": 100 },
{ "title":"约号","dataIndex":"contractno","width": 100 },
{ "title":"预付地点","dataIndex":"prepardat","width": 100 },
{ "title":"船代","dataIndex":"shiP_AGENT","width": 100 },
{ "title":"场站","dataIndex":"yard","width": 100 },
{ "title":"场站联系人","dataIndex":"yarD_CONTACT_USR","width": 100 },
{ "title":"场站联系电话","dataIndex":"yarD_CONTACT_TEL","width": 100 },
{ "title":"截单时间","dataIndex":"cuT_SINGLE_TIME","width": 100 },
{ "title":"一代客服姓名","dataIndex":"fsT_CUSTOMER_SER_USRNAME","width": 120 },
{ "title":"一代客服电话","dataIndex":"fsT_CUSTOMER_SER_TEL","width": 120 },
{ "title":"一代客服邮箱","dataIndex":"fsT_CUSTOMER_SER_EMAIL","width": 120 },
{ "title":"备注1","dataIndex":"remarK1","width": 100 },
{ "title":"截港时间","dataIndex":"cY_CUTOFF_TIME","width": 100 },
{ "title":"状态","dataIndex":"status","width": 100 },
{ "title":"最后对应时间","dataIndex":"lasT_TOBOOKING_DATE","width": 120 },
{ "title":"来源邮箱","dataIndex":"froM_EMAIL","width": 100 },
{ "title":"接收邮箱","dataIndex":"recV_EMAIL","width": 100 },
{ "title":"航线代码","dataIndex":"lanecode","width": 100 },
{ "title":"航线名称","dataIndex":"lanename","width": 100 },
{ "title":"承运方式","dataIndex":"carriagE_TYPE_NAME","width": 100 },
{ "title":"订舱方式","dataIndex":"bookinG_SLOT_TYPE_NAME","width": 100 },
{ "title":"箱型箱量","dataIndex":"ctN_STAT","width": 100 },
{ "title":"所在周数","dataIndex":"weeK_AT","width": 100 },
{ "title":"箱使天数","dataIndex":"detensioN_FREE_DAYS","width": 100 },
{ "title":"样单截止日期","dataIndex":"sI_CUT_DATE","width": 120 },
{ "title":"舱单截止时间","dataIndex":"manifesT_CUT_DATE","width": 120 },
{ "title":"MDGF提交截止时间","dataIndex":"mdgF_CUT_DATE","width": 140 },
{ "title":"中转港1","dataIndex":"transfeR_PORT_1","width": 100 },
{ "title":"中转港2","dataIndex":"transfeR_PORT_2","width": 100 },
{ "title":"二程船名","dataIndex":"seconD_VESSEL","width": 100 },
{ "title":"二程航次","dataIndex":"seconD_VOYNO","width": 100 },
{ "title":"二程ETD","dataIndex":"seconD_ETD","width": 100 },
{ "title":"二程ETA","dataIndex":"seconD_ETA","width": 100 },
{ "title":"订舱确认时间","dataIndex":"bookinG_COMFIRM_DATE","width": 120 },
{ "title":"批次号","dataIndex":"batcH_NO","width": 100 },
{ "title":"样单截止日期","dataIndex":"custoM_SI_CUT_DATE","width": 120 },
{ "title":"自动转发邮件","dataIndex":"iS_SET_AUTO_EMAIL","width": 120 },
{ "title":"已发送邮件","dataIndex":"iS_SEND_EMAIL","width": 100 },
{ "title":"比对差异数量","dataIndex":"difF_NUM","width": 100 },
{ "title":"邮件接收人","dataIndex":"autO_SEND_USER","width": 100 },
{ "title":"处理状态","dataIndex":"procesS_STATUS","width": 100 },
{ "title":"处理结果","dataIndex":"procesS_RESULT","width": 100 },
{ "title":"处理时间","dataIndex":"procesS_DATE","width": 100 },
{ "title":"计费日期","dataIndex":"pricE_CALCULATION_DATE","width": 100 }
]
},
{
"title":"单票账单",
"type":"PER_BILL",
"list":[
{ "title":"发票号","field":"invoicE_NO","width": 100 },
{ "title":"取消号","field":"canceL_NO","width": 100 },
{ "title":"合计金额","field":"totaL_AMOUNT","width": 100 },
{ "title":"东胜接收","field":"iS_DONGSH_RECV","width": 100,"slots": { "default": "iS_DONGSH_RECV" } },
{ "title":"东胜接收回执 ","field":"iS_DONGSH_RESULT","width": 120,"slots": { "default": "iS_DONGSH_RESULT" } },
{ "title":"东胜接收时间","field":"dongsH_RECV_TIME","width": 120 },
{ "title":"东胜回执时间","field":"dongsH_RESULT_TIME","width": 120 },
{ "title":"东胜反馈原因","field":"dongsH_RECV_REASON","width": 120 }
{ "title":"发票号","dataIndex":"invoicE_NO","width": 100 },
{ "title":"取消号","dataIndex":"canceL_NO","width": 100 },
{ "title":"合计金额","dataIndex":"totaL_AMOUNT","width": 100 },
{ "title":"东胜接收","dataIndex":"iS_DONGSH_RECV","width": 100 },
{ "title":"东胜接收回执 ","dataIndex":"iS_DONGSH_RESULT","width": 120 },
{ "title":"东胜接收时间","dataIndex":"dongsH_RECV_TIME","width": 120 },
{ "title":"东胜回执时间","dataIndex":"dongsH_RESULT_TIME","width": 120 },
{ "title":"东胜反馈原因","dataIndex":"dongsH_RECV_REASON","width": 120 }
]
},
{
"title":"派车任务",
"type":"TRUCK_DISPATCH",
"list":[
{"field":"truckCode","title":"车队代码","width":"100"},
{"field":"truckName","title":"车队名称","width":"100"},
{"field":"toName","title":"TO","width":"100"},
{"field":"attn","title":"ATTN","width":"100"},
{"field":"attnTel","title":"ATTN电话","width":"100"},
{"field":"attnMail","title":"ATTN邮箱","width":"100"},
{"field":"attnFax","title":"ATTN传真","width":"100"},
{"field":"fromName","title":"FROM","width":"100"},
{"field":"fromTel","title":"FROM座机","width":"100"},
{"field":"fromMail","title":"FROM邮箱","width":"100"},
{"field":"fromMobile","title":"FROM手机号","width":"100"},
{"field":"fromFax","title":"FROM传真","width":"100"},
{"field":"kgs","title":"吨数","width":"100"},
{"field":"fee","title":"陆运费","width":"100"},
{"field":"payMethodName","title":"支付方式","width":"100"},
{"field":"truckTime","title":"派车日期","width":"100"},
{"field":"yardid","title":"提箱场站ID","width":"100"},
{"field":"yard","title":"提箱场站","width":"100"},
{"field":"yardcontract","title":"场站联系人","width":"100"},
{"field":"yardcontracttel","title":"场站联系人电话","width":"140"},
{"field":"factoryCode","title":"工厂代码","width":"100"},
{"field":"factoryName","title":"工厂名称","width":"100"},
{"field":"factoryContact","title":"工厂联系人","width":"100"},
{"field":"factoryTel","title":"工厂联系电话","width":"120"},
{"field":"returnTime","title":"返场时间","width":"100"},
{"field":"inYard","title":"入货场站","width":"100"},
{"field":"inYardContact","title":"入货联系人","width":"100"},
{"field":"inYardContractTel","title":"入货联系人电话","width":"100"},
{"field":"needArriveTime","title":"要求到达时间","width":"100"},
{"field":"closingTime","title":"截港日期","width":"100"},
{"field":"pickUpTime","title":"提货日期","width":"100"},
{"field":"isGuaJi","title":"是否挂机","width":"100"},
{"field":"status","title":"状态","width":"100"},
{"field":"attention","title":"注意事项","width":"100"},
{"field":"remark","title":"备注","width":"100"},
{"field":"dispatcherName","title":"调度名称","width":"100"},
{"field":"truckFlowNo","title":"派车流水号","width":"100"},
{"field":"taskNo","title":"任务流水号","width":"100"},
{"field":"vessel","title":"船名","width":"100"},
{"field":"voyNo","title":"航次","width":"100"},
{"field":"mblNo","title":"提单号","width":"100"},
{"field":"cntrTotal","title":"箱型箱量","width":"100"},
{"field":"factoryAddr","title":"工厂地址","width":"100"}
{"dataIndex":"truckCode","title":"车队代码","width":100},
{"dataIndex":"truckName","title":"车队名称","width":100},
{"dataIndex":"toName","title":"TO","width":100},
{"dataIndex":"attn","title":"ATTN","width":100},
{"dataIndex":"attnTel","title":"ATTN电话","width":100},
{"dataIndex":"attnMail","title":"ATTN邮箱","width":100},
{"dataIndex":"attnFax","title":"ATTN传真","width":100},
{"dataIndex":"fromName","title":"FROM","width":100},
{"dataIndex":"fromTel","title":"FROM座机","width":100},
{"dataIndex":"fromMail","title":"FROM邮箱","width":100},
{"dataIndex":"fromMobile","title":"FROM手机号","width":100},
{"dataIndex":"fromFax","title":"FROM传真","width":100},
{"dataIndex":"kgs","title":"吨数","width":100},
{"dataIndex":"fee","title":"陆运费","width":100},
{"dataIndex":"payMethodName","title":"支付方式","width":100},
{"dataIndex":"truckTime","title":"派车日期","width":100},
{"dataIndex":"yardid","title":"提箱场站ID","width":100},
{"dataIndex":"yard","title":"提箱场站","width":100},
{"dataIndex":"yardcontract","title":"场站联系人","width":100},
{"dataIndex":"yardcontracttel","title":"场站联系人电话","width":140},
{"dataIndex":"factoryCode","title":"工厂代码","width":100},
{"dataIndex":"factoryName","title":"工厂名称","width":100},
{"dataIndex":"factoryContact","title":"工厂联系人","width":100},
{"dataIndex":"factoryTel","title":"工厂联系电话","width":120},
{"dataIndex":"returnTime","title":"返场时间","width":100},
{"dataIndex":"inYard","title":"入货场站","width":100},
{"dataIndex":"inYardContact","title":"入货联系人","width":100},
{"dataIndex":"inYardContractTel","title":"入货联系人电话","width":100},
{"dataIndex":"needArriveTime","title":"要求到达时间","width":100},
{"dataIndex":"closingTime","title":"截港日期","width":100},
{"dataIndex":"pickUpTime","title":"提货日期","width":100},
{"dataIndex":"isGuaJi","title":"是否挂机","width":100},
{"dataIndex":"status","title":"状态","width":100},
{"dataIndex":"attention","title":"注意事项","width":100},
{"dataIndex":"remark","title":"备注","width":100},
{"dataIndex":"dispatcherName","title":"调度名称","width":100},
{"dataIndex":"truckFlowNo","title":"派车流水号","width":100},
{"dataIndex":"taskNo","title":"任务流水号","width":100},
{"dataIndex":"vessel","title":"船名","width":100},
{"dataIndex":"voyNo","title":"航次","width":100},
{"dataIndex":"mblNo","title":"提单号","width":100},
{"dataIndex":"cntrTotal","title":"箱型箱量","width":100},
{"dataIndex":"factoryAddr","title":"工厂地址","width":100}
]
},
{
"title":"任务截止时间变更通知",
"type":"CUT_MODIFY",
"list":[
{"field":"carrier","title":"船公司","width":"100"},
{"field":"vessel","title":"船名","width":"100"},
{"field":"voyno","title":"航次","width":"100"},
{"field":"noticE_DATE","title":"通知接收时间","width":"120"}
{"dataIndex":"vessel","title":"船名","width":100},
{"dataIndex":"voyno","title":"航次","width":100},
{"dataIndex":"noticE_DATE","title":"通知接收时间","width":120}
]
},
{
"title":"Rolling Nomination(预甩货通知)",
"type":"ROLLING_NOMINATION",
"list":[
{"field":"plaN_TYPE","title":"计划类型","width":"100","slots": { "default": "plaN_TYPE" }},
{"field":"batcH_NO","title":"批次号","width":"100"},
{"field":"carrierid","title":"船公司代号","width":"100"},
{"field":"carrier","title":"船公司","width":"100"},
{"field":"confirM_DEAD_LINE","title":"最后确认期限日期","width":"150"},
{"field":"reaD_CREATE_TIME","title":"解析生成日期","width":"120"},
{"field":"rolL_DOUBLE_REMARK","title":"含有二甩声明备注","width":"150"},
{"field":"plaN_TXT","title":"预甩计划详情","width":"100"},
{"field":"remark","title":"备注","width":"100"},
{"field":"tasK_BATCH_TOTAL","title":"任务批次明细合计","width":"150"},
{"field":"tasK_BATCH_PER_TOTAL","title":"任务批次单票合计","width":"150"}
{"dataIndex":"plaN_TYPE","title":"计划类型","width":100},
{"dataIndex":"batcH_NO","title":"批次号","width":100},
{"dataIndex":"carrierid","title":"船公司代号","width":100},
{"dataIndex":"confirM_DEAD_LINE","title":"最后确认期限日期","width":150},
{"dataIndex":"reaD_CREATE_TIME","title":"解析生成日期","width":120},
{"dataIndex":"rolL_DOUBLE_REMARK","title":"含有二甩声明备注","width":150},
{"dataIndex":"plaN_TXT","title":"预甩计划详情","width":100},
{"dataIndex":"remark","title":"备注","width":100},
{"dataIndex":"tasK_BATCH_TOTAL","title":"任务批次明细合计","width":150},
{"dataIndex":"tasK_BATCH_PER_TOTAL","title":"任务批次单票合计","width":150}
]
},
{
"title":"DRAFT转发客户",
"type":"DRAFT",
"list":[
{"field":"carrier","title":"船公司","width":"100"},
{"field":"mbL_NO","title":"主单号","width":"100"},
{"field":"iS_CHANGE","title":"已发消息提醒","width":"120","slots": { "default": "iS_CHANGE" }},
{"field":"iS_EMAIL_SEND","title":"是否邮件推送","width":"120","slots": { "default": "iS_EMAIL_SEND" }},
{"field":"senD_EMAIL_DATE","title":"邮件推送时间","width":"120"},
{"field":"noticE_DATE","title":"通知接收时间","width":"120"}
{"dataIndex":"mbL_NO","title":"主单号","width":100},
{"dataIndex":"iS_CHANGE","title":"已发消息提醒","width":120},
{"dataIndex":"iS_EMAIL_SEND","title":"是否邮件推送","width":120},
{"dataIndex":"senD_EMAIL_DATE","title":"邮件推送时间","width":120},
{"dataIndex":"noticE_DATE","title":"通知接收时间","width":120}
]
},
{
"title":"任务目的港未提货",
"type":"POD_DISCHARGE_FULL",
"list":[
{"field":"noticE_TYPE_NAME","title":"通知类型","width":"100"},
{"field":"mbL_NO","title":"主单号","width":"100"},
{"field":"carrier","title":"船公司","width":"100"},
{"field":"noticE_DATE","title":"通知接收时间","width":"120"}
{"dataIndex":"noticE_TYPE_NAME","title":"通知类型","width":100},
{"dataIndex":"mbL_NO","title":"主单号","width":100},
{"dataIndex":"noticE_DATE","title":"通知接收时间","width":120}
]
},
{
"title":"重要提醒",
"type":"CAUTION_NOTICE",
"list":[
{"field":"sourcE_SYSTEM","title":"来源系统","width":"100"},
{"field":"sourcE_BUSI_TYPENAME","title":"来源业务类型","width":"120"},
{"field":"notifY_CONTENT","title":"通知内容","width":"100"},
{"field":"mbL_NO","title":"提单号","width":"100"},
{"field":"carrier","title":"船公司","width":"100"},
{"field":"cautioN_NOTICE_TYPE","title":"通知差异类型","width":"120","slots": { "default": "plaN_TYPE" }},
{"field":"iS_WEEK_DIFF","title":"计费周差异","width":"100","slots": { "default": "iS_WEEK_DIFF" }},
{"field":"iS_PRICE_DATE_DIFF","title":"计费日差异","width":"100","slots": { "default": "iS_PRICE_DATE_DIFF" }},
{"field":"iS_TRANSFER","title":"转为中转","width":"100","slots": { "default": "iS_TRANSFER" }},
{"field":"iS_VESSEL_CHANGE","title":"船名变化","width":"100","slots": { "default": "iS_VESSEL_CHANGE" }},
{"field":"iS_CUT_DATE_ADVANCED","title":"截止时间提前","width":"120","slots": { "default": "iS_CUT_DATE_ADVANCED" }},
{"field":"olD_VAL","title":"原始值","width":"100"},
{"field":"neW_VAL","title":"修改值","width":"100"}
{"dataIndex":"sourcE_SYSTEM","title":"来源系统","width":100},
{"dataIndex":"sourcE_BUSI_TYPENAME","title":"来源业务类型","width":120},
{"dataIndex":"notifY_CONTENT","title":"通知内容","width":100},
{"dataIndex":"mbL_NO","title":"提单号","width":100},
{"dataIndex":"cautioN_NOTICE_TYPE","title":"通知差异类型","width":120},
{"dataIndex":"iS_WEEK_DIFF","title":"计费周差异","width":100},
{"dataIndex":"iS_PRICE_DATE_DIFF","title":"计费日差异","width":100},
{"dataIndex":"iS_TRANSFER","title":"转为中转","width":100},
{"dataIndex":"iS_VESSEL_CHANGE","title":"船名变化","width":100},
{"dataIndex":"iS_CUT_DATE_ADVANCED","title":"截止时间提前","width":120},
{"dataIndex":"olD_VAL","title":"原始值","width":100},
{"dataIndex":"neW_VAL","title":"修改值","width":100}
]
},
{
"title":"航线船舶截止时间调整的通知",
"type":"ROUTE_CUT_CHANGE",
"list":[
{"field":"vessel","title":"船名","width":"100"},
{"field":"voyno","title":"航次","width":"100"},
{"field":"carrier","title":"船公司","width":"100"},
{"field":"reaD_PORTLOAD","title":"装货港提取","width":"100"},
{"field":"oriG_ETD","title":"原ETD","width":"100"},
{"field":"mdgF_CUT_DATE","title":"MDGF提交截止时间","width":"200"},
{"field":"eta","title":"ETA","width":"100"},
{"field":"etd","title":"ETD","width":"100"},
{"field":"sI_CUT_DATE","title":"样单截止日期","width":"150"},
{"field":"tM_SHIFT_CUT_DATE","title":"码头移箱截止时间","width":"150"},
{"field":"vgM_CUTOFF_TIME","title":"截VGM时间","width":"100"},
{"field":"cY_CUT_DATE","title":"截港/场站收据截止","width":"200"},
{"field":"routE_CODE","title":"航线代码","width":"100"},
{"field":"emaiL_SUBJECT","title":"邮件对应标题","width":"100"},
{"field":"week","title":"周数","width":"100"},
{"field":"portloadid","title":"装货港代码","width":"100"},
{"field":"portload","title":"装货港","width":"100"}
{"dataIndex":"vessel","title":"船名","width":100},
{"dataIndex":"voyno","title":"航次","width":100},
{"dataIndex":"reaD_PORTLOAD","title":"装货港提取","width":100},
{"dataIndex":"oriG_ETD","title":"原ETD","width":100},
{"dataIndex":"mdgF_CUT_DATE","title":"MDGF提交截止时间","width":200},
{"dataIndex":"eta","title":"ETA","width":100},
{"dataIndex":"etd","title":"ETD","width":100},
{"dataIndex":"sI_CUT_DATE","title":"样单截止日期","width":150},
{"dataIndex":"tM_SHIFT_CUT_DATE","title":"码头移箱截止时间","width":150},
{"dataIndex":"vgM_CUTOFF_TIME","title":"截VGM时间","width":100},
{"dataIndex":"cY_CUT_DATE","title":"截港/场站收据截止","width":200},
{"dataIndex":"routE_CODE","title":"航线代码","width":100},
{"dataIndex":"emaiL_SUBJECT","title":"邮件对应标题","width":100},
{"dataIndex":"week","title":"周数","width":100},
{"dataIndex":"portloadid","title":"装货港代码","width":100},
{"dataIndex":"portload","title":"装货港","width":100}
]
}
]

@ -2,12 +2,11 @@
<div class="main">
<div class="title">
<div> 船公司</div>
<a-select size="small" v-model:value="carrierId" style="width: 180px;margin-right: 20px">
<a-select size="small" @change="handleChangeSearch" v-model:value="carrierId" style="width: 180px;margin-right: 20px">
<a-select-option v-for="item in carrierList" :key="item.carrierId" :value="item.carrierId">{{
item.carrier
}}</a-select-option>
}}</a-select-option>
</a-select>
<a-button size="small" type="primary" @click="searchInfo"></a-button>
</div>
<a-spin :spinning="loading">
<div class="list">
@ -116,7 +115,7 @@
<a-select @change="handleChangeCarrier" v-model:value="carrierIdAll" style="width: 180px">
<a-select-option v-for="item in carrierListAll" :key="item.id" :value="item.id">{{
item.shortName
}}</a-select-option>
}}</a-select-option>
</a-select>
</div>
<div>
@ -124,7 +123,7 @@
<a-select mode="multiple" v-model:value="taskTypeCode" style="width: 500px">
<a-select-option v-for="item in taskType" :key="item.code" :value="item.code">{{
item.name
}}</a-select-option>
}}</a-select-option>
</a-select>
</div>
</div>
@ -235,6 +234,10 @@ function handleSave() {
})
})
}
function handleChangeSearch(){
searchInfo()
carrierIdAll.value = carrierId.value
}
const carrierId = ref('')
const taskTypeCode = ref([])
const taskType = ref([]) as any

@ -3,7 +3,8 @@
<div class="main-title">
*使用说明上下拖动字段排序勾选字段会显示在任务台账
</div>
<div style="display: flex;padding: 20px">
<div class="switch"><a-switch @change="handleChangeSwitch" style="margin-right: 10px;" v-model:checked="isSetDefault" />是否默认配置</div>
<div style="display: flex;padding: 20px;padding-top: 10px;">
<div class="left">
<div class="title">
<div>基础信息</div> <a-button size="small" type="link" @click="handleSaveBasic">
@ -11,10 +12,10 @@
保存</a-button>
</div>
<a-spin :spinning="loading">
<draggable :list="basicList" item-key="field" animation="300">
<draggable :list="basicList" item-key="dataIndex" animation="300">
<template #item="{ element }">
<div class="check-item">
<a-checkbox v-model="element.checked">{{ element.title }}</a-checkbox>
<a-checkbox v-model:checked="element.checked">{{ element.title }}</a-checkbox>
<MenuOutlined />
</div>
</template>
@ -23,11 +24,12 @@
</div>
<div class="right">
<div class="title">
<div>{{ title }}</div> <a-button size="small" type="link" @click="handleSave"> <i class="icon-baocun iconfont"></i>保存</a-button>
<div>{{ title }}</div> <a-button size="small" type="link" @click="handleSave"> <i
class="icon-baocun iconfont"></i>保存</a-button>
</div>
<div>
<a-select style="width: 270px;margin-bottom: 10px;" size="small" @change="handleChange"
v-model="taskType">
<a-select style="width: 99%;margin-bottom: 10px;" size="small" @change="handleChange"
v-model:value="taskType">
<a-select-option value="SI_FEEDBACK">SI反馈入库</a-select-option>
<a-select-option value="BC">BC任务</a-select-option>
<a-select-option value="PER_BILL">单票账单</a-select-option>
@ -41,10 +43,10 @@
</a-select>
</div>
<a-spin :spinning="loading1">
<draggable :list="taskList" item-key="field" animation="300">
<draggable :list="taskList" item-key="dataIndex" animation="300">
<template #item="{ element }">
<div class="check-item">
<a-checkbox v-model="element.checked">{{ element.title }}</a-checkbox>
<a-checkbox v-model:checked="element.checked">{{ element.title }}</a-checkbox>
<MenuOutlined />
</div>
</template>
@ -59,27 +61,81 @@
import Data from './data.json'
import { ref, onMounted, computed, reactive } from 'vue'
import draggable from 'vuedraggable';
import { GetInfoByTaskIdNotice } from '../api'
import { UpdateUserTaskPlatFieldSet, GetUserTaskPlatFieldSet } from '../api'
import { MenuOutlined } from '@ant-design/icons-vue';
import { useMessage } from '../../../hooks/web/useMessage'
const { createMessage } = useMessage()
function handleSaveBasic() {
const data = {
"permissionId": 1819556999776571399,
"content": JSON.stringify(basicList.value),
"taskTypeCode": 'basic',
"isSetDefault": isSetDefault.value
}
loading.value = true
UpdateUserTaskPlatFieldSet(data).then(res => {
if (res.succeeded) {
createMessage.success(res.message)
}
loading.value = false
})
}
const isSetDefault = ref(false)
const loading = ref(false)
const loading1 = ref(false)
const basicList = ref([]) as any
const taskList = ref([]) as any
const taskType = ref('SI_FEEDBACK')
function handleChange() {
function handleChange(val) {
Data.forEach(item => {
if (item.type === val) {
taskList.value = item.list
getInfo()
}
})
}
const title = ref('SI反馈入库')
function handleSave() {
const data = {
"permissionId": 1819556999776571399,
"content": JSON.stringify(taskList.value),
"taskTypeCode": taskType.value,
"isSetDefault": isSetDefault.value
}
loading1.value = true
UpdateUserTaskPlatFieldSet(data).then(res => {
if (res.succeeded) {
createMessage.success(res.message)
}
loading1.value = false
})
}
function handleChangeSwitch(){
getInfo()
getInfoBasic()
}
function getInfo() {
const data = {
"permissionId": 1819556999776571399,
"taskTypeCodeArray": [taskType.value],
"isGetDefault": isSetDefault.value
}
loading.value = true
GetUserTaskPlatFieldSet(data).then(res => {
if (res.succeeded) {
if (res.data.length > 0) {
const arr = JSON.parse(res.data[0].content)
taskList.value = arr
} else {
taskList.value.forEach(item => {
item.checked = false
})
}
}
loading.value = false
})
}
onMounted(() => {
Data.forEach(item => {
if (item.type === taskType.value) {
@ -87,8 +143,32 @@ onMounted(() => {
}
})
basicList.value = Data[0].list
getInfo()
getInfoBasic()
})
function getInfoBasic(){
const data = {
"permissionId": 1819556999776571399,
"taskTypeCodeArray": ['basic'],
"isGetDefault": isSetDefault.value
}
loading1.value = true
GetUserTaskPlatFieldSet(data).then(res => {
if (res.succeeded) {
if (res.data.length > 0) {
const arr = JSON.parse(res.data[0].content)
basicList.value = arr
} else {
basicList.value.forEach(item => {
item.checked = false
})
}
}
loading1.value = false
})
}
</script>
<style scoped lang="less">
.main {
@ -108,7 +188,8 @@ onMounted(() => {
font-size: 12px;
width: 20%;
}
.right{
.right {
border: 1px solid rgba(232, 235, 237, 1);
padding: 10px 20px;
font-size: 12px;
@ -140,4 +221,11 @@ onMounted(() => {
}
}
}
.switch {
padding-left: 20px;
margin-top: 10px;
font-size: 12px;
color: black;
}
</style>
Loading…
Cancel
Save