全局替换 国家 为 国家地区

szh-new
张同海 1 month ago
parent 7bd0031ffb
commit c76d348859

@ -25,7 +25,7 @@ import {
GetCodeCountryList,
GetClientGoodsList,
GetYardClientList,
GetControllerClientList
GetControllerClientList,
} from '/@/views/operation/seaexport/api/BookingLedger'
import { getList } from '/@/views/flowcenter/flowInstances/api'
import {
@ -33,7 +33,7 @@ import {
GetClientListByCode,
GetCtnSelectList,
GetTenantParamSelectList,
getOrgList
getOrgList,
} from '/@/api/common/index'
import { getClientBankList } from '/@/views/baseinfo/infoclient/api'
export default {
@ -185,7 +185,7 @@ export default {
return res.data
})
},
// 国家
// 国家地区
GetCodeCountryList: () => {
return GetCodeCountryList().then((res) => {
return res.data

@ -46,7 +46,7 @@ export const useOptionsStore = defineStore({
GetFeeCurrencySelectList: null,
// 用户表
GetUserList: null,
// 国家
// 国家地区
GetCodeCountryList: null,
// 车队
GetTruckClientList: null,
@ -67,7 +67,7 @@ export const useOptionsStore = defineStore({
// 场站
GetYardClientList: null,
// 委托单位
GetControllerClientList: null
GetControllerClientList: null,
}),
getters: {
// 通过code获取下拉字典code)就是接口尾部单词

@ -79,7 +79,7 @@
setModalProps({ loading: false })
})
const getTitle = computed(() => (!unref(isUpdate) ? '新增国家信息' : '编辑国家信息'))
const getTitle = computed(() => (!unref(isUpdate) ? '新增国家地区信息' : '编辑国家地区信息'))
async function handleSave(exit) {
try {

@ -2,17 +2,17 @@ import { BasicColumn, FormSchema } from '/@/components/Table'
import { Tag } from 'ant-design-vue'
export const columns: BasicColumn[] = [
{
title: '国家唯一代码',
title: '国家地区唯一代码',
dataIndex: 'countryCode',
width: 150,
},
{
title: '国家名称',
title: '国家地区名称',
dataIndex: 'countryName',
width: 200,
},
{
title: '国家英文名称',
title: '国家地区英文名称',
dataIndex: 'countryEnName',
width: 200,
},
@ -37,12 +37,12 @@ export const columns: BasicColumn[] = [
width: 200,
},
{
title: '国家3字代码',
title: '国家地区3字代码',
dataIndex: 'countryCode3',
width: 200,
},
{
title: '国家描述',
title: '国家地区描述',
dataIndex: 'explain',
width: 200,
},
@ -74,7 +74,7 @@ export const columns: BasicColumn[] = [
export const searchFormSchema: FormSchema[] = [
{
field: 'CountryName',
label: '国家名称',
label: '国家地区名称',
component: 'Input',
colProps: { span: 6 },
},
@ -89,7 +89,7 @@ export const formSchema: FormSchema[] = [
},
{
field: 'countryCode',
label: '国家唯一代码',
label: '国家地区唯一代码',
component: 'Input',
required: true,
colProps: { span: 12 },
@ -99,14 +99,14 @@ export const formSchema: FormSchema[] = [
},
{
field: 'countryName',
label: '国家名称',
label: '国家地区名称',
component: 'Input',
required: true,
colProps: { span: 12 },
},
{
field: 'countryEnName',
label: '国家英文名称',
label: '国家地区英文名称',
component: 'Input',
colProps: { span: 12 },
@ -139,14 +139,14 @@ export const formSchema: FormSchema[] = [
},
{
field: 'countryCode3',
label: '国家3字代码',
label: '国家地区3字代码',
component: 'Input',
colProps: { span: 12 },
},
{
field: 'explain',
label: '国家描述',
label: '国家地区描述',
component: 'InputTextArea',
colProps: { span: 12 },

@ -20,7 +20,7 @@
<Divider type="vertical" />
<a-button type="link" @click="importFlow" :disabled="checkPermissions('op:country:import')">
<span class="iconfont icon-xiazai"></span>
导入国家信息
导入国家地区信息
</a-button>
</template>
<template #bodyCell="{ column, record }">
@ -41,7 +41,7 @@
<TenantAuditStepModal @register="registerModal" @success="handleSuccess" />
<a-modal
:visible="visible"
title="导入国家信息"
title="导入国家地区信息"
width="70%"
@ok="handleOk"
@cancel="handleCancel"

@ -321,7 +321,7 @@ export const EditformSchema: FormSchema[] = [
},
{
field: 'country',
label: '国家',
label: '国家地区',
component: 'DEdit',
colProps: { span: 4 },
defaultValue: '',

@ -105,7 +105,7 @@ export function getClientSourceSelectList(query) {
params: query,
})
}
// 获取国家信息下拉列表-客户端 (Auth)
// 获取国家地区信息下拉列表-客户端 (Auth)
export function getClientCountrySelectList(query) {
return request<DataResult>({
url: Api.GetClientCountrySelectList,

@ -201,7 +201,7 @@ export const columns: BasicColumn[] = [
width: 150,
},
{
title: '国家',
title: '国家地区',
dataIndex: 'country',
sorter: true,
width: 150,
@ -371,7 +371,7 @@ export const searchFormSchema: FormSchema[] = [
},
{
field: 'country',
label: '国家',
label: '国家地区',
component: 'Select',
colProps: { span: 4 },
componentProps: () => {
@ -695,7 +695,7 @@ export const formSchema: FormSchema[] = [
},
{
field: 'country',
label: '国家',
label: '国家地区',
component: 'Select',
colProps: { span: 4 },
@ -1545,14 +1545,14 @@ export const CADformSchema: FormSchema[] = [
},
{
field: 'countryName',
label: '国家名称',
label: '国家地区名称',
component: 'Input',
colProps: { span: 6 },
show: false,
},
{
field: 'countryId',
label: '国家',
label: '国家地区',
component: 'Select',
colProps: { span: 6 },

@ -203,7 +203,7 @@ export const columns: BasicColumn[] = [
width: 150,
},
{
title: '国家',
title: '国家地区',
dataIndex: 'country',
sorter: true,
width: 150,

@ -40,7 +40,7 @@ export const columns: BasicColumn[] = [
width: 200,
},
{
title: '国家名称',
title: '国家地区名称',
dataIndex: 'countryName',
sorter: true,
width: 200,
@ -73,7 +73,7 @@ export const columns: BasicColumn[] = [
},
},
// {
// title: '国家',
// title: '国家地区',
// dataIndex: 'countryId',
// sorter: true,
// width: 200,
@ -149,7 +149,7 @@ export const searchFormSchema: FormSchema[] = [
{
field: 'countryId',
label: '国家',
label: '国家地区',
component: 'Select',
colProps: { span: 4 },
defaultValue: '',
@ -205,7 +205,7 @@ export const formSchema: FormSchema[] = [
},
{
field: 'countryName',
label: '国家名称',
label: '国家地区名称',
component: 'Input',
colProps: { span: 12 },
show: false,
@ -235,7 +235,7 @@ export const formSchema: FormSchema[] = [
},
{
field: 'countryId',
label: '国家',
label: '国家地区',
component: 'Select',
colProps: { span: 12 },
defaultValue: '',

@ -36,7 +36,7 @@ export const columns: BasicColumn[] = [
width: 200,
},
{
title: '国家',
title: '国家地区',
dataIndex: 'countryName',
sorter: true,
width: 200,
@ -57,9 +57,9 @@ export const columns: BasicColumn[] = [
if (record.type) {
RData = record.type
}
RData = RData.replace("1", "收货人")
RData = RData.replace("2", "发货人")
RData = RData.replace("3", "通知人")
RData = RData.replace('1', '收货人')
RData = RData.replace('2', '发货人')
RData = RData.replace('3', '通知人')
return RData
},
},
@ -125,7 +125,7 @@ export const formSchema: FormSchema[] = [
colProps: { span: 12 },
},
{
label: '国家code',
label: '国家地区code',
field: 'countryName',
component: 'Input',
defaultValue: '',
@ -133,7 +133,7 @@ export const formSchema: FormSchema[] = [
},
{
field: 'country',
label: '国家',
label: '国家地区',
component: 'Select',
required: false,
dynamicDisabled: false,
@ -203,6 +203,6 @@ export const formSchema: FormSchema[] = [
field: 'content',
label: '模版内容',
component: 'InputTextArea',
colProps: { span: 24 }
colProps: { span: 24 },
},
]

@ -24,7 +24,7 @@ export const columns: BasicColumn[] = [
width: 150,
},
{
title: '国家',
title: '国家地区',
dataIndex: 'countryName',
width: 120,
},
@ -114,7 +114,7 @@ export const formSchema: FormSchema[] = [
},
{
field: 'countryId',
label: '国家',
label: '国家地区',
required: true,
component: 'Select',
colProps: { span: 12 },
@ -138,7 +138,7 @@ export const formSchema: FormSchema[] = [
},
{
field: 'countryName',
label: '国家名称',
label: '国家地区名称',
show: false,
component: 'Input',
},

@ -1,15 +1,17 @@
import { ref } from 'vue'
import { BasicColumn, FormSchema } from '/@/components/Table'
import { GetCarrierlist, GetClientPortSelectList } from '/@/views/operation/seaexport/api/BookingLedger'
import { GetCtnSelectList,GetCarrierSelectList } from '/@/api/common'
import {
GetCarrierlist,
GetClientPortSelectList,
} from '/@/views/operation/seaexport/api/BookingLedger'
import { GetCtnSelectList, GetCarrierSelectList } from '/@/api/common'
import { getDictOption } from '/@/utils/dictUtil'
import { useOptionsStore } from '/@/store/modules/options'
const optionsStore = useOptionsStore()
const FnblType = ref([])
const FncargoId = ref([])
getDictOption('bl_type').then(res => {
getDictOption('bl_type').then((res) => {
FncargoId.value = res
})
export const searchFormSchema: FormSchema[] = [
@ -34,7 +36,7 @@ export const searchFormSchema: FormSchema[] = [
colProps: { span: 4 },
componentProps: {
allowClear: true,
}
},
},
{
field: 'PORTLOAD',
@ -51,11 +53,9 @@ export const searchFormSchema: FormSchema[] = [
valueField: 'ediCode',
showName: 'ediCode',
immediate: false,
onChange: (e, obj) => {
}
onChange: (e, obj) => {},
}
}
},
},
{
field: 'carrier',
@ -85,9 +85,9 @@ export const searchFormSchema: FormSchema[] = [
api: GetCtnSelectList,
labelField: 'ctnName',
valueField: 'ediCode',
resultField: 'data'
resultField: 'data',
}
}
},
},
{
field: 'etA_START',
@ -98,7 +98,7 @@ export const searchFormSchema: FormSchema[] = [
colProps: { span: 4 },
componentProps: {
allowClear: true,
}
},
},
{
field: 'etA_END',
@ -109,7 +109,7 @@ export const searchFormSchema: FormSchema[] = [
colProps: { span: 4 },
componentProps: {
allowClear: true,
}
},
},
{
@ -129,15 +129,13 @@ export const searchFormSchema: FormSchema[] = [
showName: 'ediCode',
valueField: 'ediCode',
immediate: false,
onChange: (e, obj) => {
}
onChange: (e, obj) => {},
}
}
},
},
{
field: 'PORTDISCHARGE_COUNTRY_CODE',
label: '国家',
label: '国家地区',
component: 'Input',
colProps: { span: 4 },
},
@ -162,25 +160,25 @@ export const columns: BasicColumn[] = [
title: '订舱抬头',
align: 'center',
width: 200,
dataIndex: 'bookingParty'
dataIndex: 'bookingParty',
},
{
title: '合约号',
align: 'center',
width: 100,
dataIndex: 'contractNo'
dataIndex: 'contractNo',
},
{
title: '订舱方式',
align: 'center',
width: 100,
dataIndex: 'bookingSlotTypeName'
dataIndex: 'bookingSlotTypeName',
},
{
title: '总库存',
align: 'center',
width: 100,
dataIndex: 'totalOrders'
dataIndex: 'totalOrders',
},
{
title: '剩余库存',
@ -192,55 +190,55 @@ export const columns: BasicColumn[] = [
title: '取消库存',
align: 'center',
width: 100,
dataIndex: 'cancelNum'
dataIndex: 'cancelNum',
},
{
title: '收货地',
align: 'center',
width: 100,
dataIndex: 'placeReceipt'
dataIndex: 'placeReceipt',
},
{
title: '交货地',
align: 'center',
width: 100,
dataIndex: 'placeDelivery'
dataIndex: 'placeDelivery',
},
{
title: '装货港',
align: 'center',
width: 100,
dataIndex: 'portLoad'
dataIndex: 'portLoad',
},
{
title: '卸货港',
align: 'center',
width: 100,
dataIndex: 'portDischarge'
dataIndex: 'portDischarge',
},
{
title: '卸货港国家',
title: '卸货港国家地区',
align: 'center',
width: 100,
dataIndex: 'portDischargeCountry'
dataIndex: 'portDischargeCountry',
},
{
title: '航线',
align: 'center',
width: 100,
dataIndex: 'laneName'
dataIndex: 'laneName',
},
{
title: '箱型箱量',
align: 'center',
width: 100,
dataIndex: 'ctnStat'
dataIndex: 'ctnStat',
},
{
title: '剩余箱型箱量',
align: 'center',
width: 110,
dataIndex: 'remainCtnStat'
dataIndex: 'remainCtnStat',
},
{
title: 'ETD',
@ -258,8 +256,6 @@ export const columns: BasicColumn[] = [
title: '船公司',
align: 'center',
width: 150,
dataIndex: 'carrier'
}
dataIndex: 'carrier',
},
]

@ -533,7 +533,7 @@ export const columns: BasicColumn[] = [
customCell: sharedOnCell,
},
{
title: '卸货港国家',
title: '卸货港国家地区',
align: 'center',
width: 180,
dataIndex: 'portDischargeCountry',

@ -1,7 +1,7 @@
/*
* @Author: lijingjia lijj_xl@163.com
* @Date: 2024-06-21 16:59:01
* @Description:
* @Description:
*/
import { commentProps } from 'ant-design-vue/lib/comment'
import { BasicColumn, FormSchema } from '/@/components/Table'
@ -64,11 +64,11 @@ export const columns: BasicColumn[] = [
dataIndex: 'originalCurrency',
width: 100,
},
// {
// title: '原始汇率',
// dataIndex: 'originalCurrency',
// width: 200,
// },
// {
// title: '原始汇率',
// dataIndex: 'originalCurrency',
// width: 200,
// },
{
title: '折算汇率',
dataIndex: 'exchangeRate',
@ -79,11 +79,11 @@ export const columns: BasicColumn[] = [
dataIndex: 'originalAmount',
width: 100,
},
// {
// title: '进项/销项税率',
// dataIndex: 'originalCurrency',
// width: 200,
// },
// {
// title: '进项/销项税率',
// dataIndex: 'originalCurrency',
// width: 200,
// },
{
title: '揽货人',
dataIndex: 'note',
@ -99,8 +99,8 @@ export const columns: BasicColumn[] = [
export const searchFormSchema: FormSchema[] = [
{
field: 'CountryName',
label: '国家名称',
label: '国家地区名称',
component: 'Input',
colProps: { span: 6 }
}
colProps: { span: 6 },
},
]

@ -1,7 +1,7 @@
/*
* @Author: lijingjia lijj_xl@163.com
* @Date: 2024-06-21 16:59:01
* @Description:
* @Description:
*/
import { commentProps } from 'ant-design-vue/lib/comment'
import { BasicColumn, FormSchema } from '/@/components/Table'
@ -64,11 +64,11 @@ export const columns: BasicColumn[] = [
dataIndex: 'originalCurrency',
width: 100,
},
// {
// title: '原始汇率',
// dataIndex: 'originalCurrency',
// width: 200,
// },
// {
// title: '原始汇率',
// dataIndex: 'originalCurrency',
// width: 200,
// },
{
title: '折算汇率',
dataIndex: 'exchangeRate',
@ -79,11 +79,11 @@ export const columns: BasicColumn[] = [
dataIndex: 'originalAmount',
width: 100,
},
// {
// title: '进项/销项税率',
// dataIndex: 'originalCurrency',
// width: 200,
// },
// {
// title: '进项/销项税率',
// dataIndex: 'originalCurrency',
// width: 200,
// },
{
title: '揽货人',
dataIndex: 'note',
@ -99,8 +99,8 @@ export const columns: BasicColumn[] = [
export const searchFormSchema: FormSchema[] = [
{
field: 'CountryName',
label: '国家名称',
label: '国家地区名称',
component: 'Input',
colProps: { span: 6 }
}
colProps: { span: 6 },
},
]

@ -610,7 +610,7 @@ export function GetShippingBillTemplateSelectList(parameter) {
params: parameter,
})
}
//获取国家信息下拉列表-客户端 (Auth)
//获取国家地区信息下拉列表-客户端 (Auth)
export function GetClientCountrySelectList(parameter) {
return request({
url: '/mainApi/Common/GetClientCountrySelectList',
@ -652,7 +652,7 @@ export function GetFactorySelectList(parameter) {
params: parameter,
})
}
// 获取国家下拉列表-客户端 (Auth)
// 获取国家地区下拉列表-客户端 (Auth)
export function GetCodeCountryList(parameter) {
return request({
url: '/mainApi/CodeCountry/GetCodeCountrySelectList',
@ -2067,7 +2067,7 @@ export function Withdraw(data) {
return request({
url: '/opApi/SeaExportTask/Withdraw',
method: 'post',
data
data,
})
}
@ -2076,7 +2076,7 @@ export function SeaExportTaskAudit(data) {
return request({
url: '/opApi/SeaExportTask/Audit',
method: 'post',
data
data,
})
}
@ -2085,7 +2085,7 @@ export function RefreshYGT(data) {
return request({
url: '/opApi/SeaExport/RefreshYGT',
method: 'post',
data
data,
})
}
@ -2094,7 +2094,7 @@ export function GetClientGoodsList(params) {
return request({
url: '/mainApi/ClientCommon/GetClientGoodsList',
method: 'get',
params
params,
})
}
@ -2103,7 +2103,7 @@ export function BatchDelBusinessOrderContact(data) {
return request({
url: '/opApi/BusinessOrderContact/BatchDelBusinessOrderContact',
method: 'post',
data
data,
})
}
@ -2112,7 +2112,7 @@ export function GetAvailableBookingSlots(data) {
return request({
url: '/opApi/BookingSlotService/GetAvailableBookingSlots',
method: 'post',
data
data,
})
}
@ -2121,7 +2121,7 @@ export function BringInBookingSlotToOrder(data) {
return request({
url: '/opApi/BookingSlotService/BringInBookingSlotToOrder',
method: 'post',
data
data,
})
}
@ -2130,7 +2130,7 @@ export function SetTaskStatus(data) {
return request({
url: '/opApi/SeaExportTask/SetTaskStatus',
method: 'post',
data
data,
})
}
@ -2138,7 +2138,7 @@ export function SetTaskStatus(data) {
export function AutomaticBooking(id) {
return request({
url: '/opApi/SeaExportTask/AutomaticBooking?businessId=' + id,
method: 'post'
method: 'post',
})
}
@ -2147,7 +2147,7 @@ export function GetSeaExportLogList(params) {
return request({
url: '/opApi/SeaExport/GetSeaExportLogList',
method: 'get',
params
params,
})
}
@ -2156,7 +2156,7 @@ export function PrintShippingOrderLetterPDF(params) {
return request({
url: '/opApi/SeaExport/PrintShippingOrderLetterPDF',
method: 'get',
params
params,
})
}
@ -2165,7 +2165,7 @@ export function GetBookingContractNoList(params) {
return request({
url: '/mainApi/ClientCommon/GetBookingContractNoList',
method: 'get',
params
params,
})
}
@ -2174,7 +2174,7 @@ export function BatchDelBusinessCtnPrice(data) {
return request({
url: '/opApi/BusinessCtnPrice/BatchDelBusinessCtnPrice',
method: 'post',
data
data,
})
}
@ -2183,7 +2183,7 @@ export function GetClientPortInfoByCode(params) {
return request({
url: '/mainApi/ClientCommon/GetClientPortInfoByCode',
method: 'get',
params
params,
})
}
@ -2192,7 +2192,7 @@ export function GetShippingBillShortList(params) {
return request({
url: '/opApi/ShippingBill/GetShippingBillShortList',
method: 'post',
params
params,
})
}
@ -2210,7 +2210,7 @@ export function CreateMultipleTask(data) {
return request({
url: '/opApi/SeaExportTask/CreateMultipleTask',
method: 'post',
data
data,
})
}
@ -2219,7 +2219,7 @@ export function SubmitAudit(data) {
return request({
url: '/opApi/SeaExportTask/SubmitAudit',
method: 'post',
data
data,
})
}
@ -2228,7 +2228,7 @@ export function GetChangeOrderStatus(params) {
return request({
url: '/opApi/SeaExportRefund/GetChangeOrderStatus',
method: 'get',
params
params,
})
}
@ -2237,7 +2237,7 @@ export function CreateChangeTaskAsync(data) {
return request({
url: '/opApi/SeaExportRefund/CreateChangeTaskAsync',
method: 'post',
data
data,
})
}
@ -2246,6 +2246,6 @@ export function IsLastMarker(params) {
return request({
url: '/mainApi/ClientFlowInstance/IsLastMarker',
method: 'get',
params
params,
})
}

@ -1,7 +1,12 @@
import { FormSchema, BasicColumn } from '/@/components/Table'
import { useOptionsStore } from '/@/store/modules/options'
import { GetClientListByCode } from '/@/api/common'
import { GetPackageSelectList, GetShippingBillTemplateSelectList, GetClientPortSelectList, GetVesselSelectList } from '/@/views/operation/seaexport/api/BookingLedger'
import {
GetPackageSelectList,
GetShippingBillTemplateSelectList,
GetClientPortSelectList,
GetVesselSelectList,
} from '/@/views/operation/seaexport/api/BookingLedger'
import { useMessage } from '/@/hooks/web/useMessage'
const { createMessage } = useMessage()
const optionsStore = useOptionsStore()
@ -70,9 +75,9 @@ export const formSchema1: FormSchema[] = [
slice: [30, 35, 40],
onCut: (v) => {
formModel.shipperContent = v
}
},
}
}
},
},
{
label: '',
@ -124,9 +129,9 @@ export const formSchema1: FormSchema[] = [
slice: [30, 35, 40],
onCut: (v) => {
formModel.consigneeContent = v
}
},
}
}
},
},
{
label: '',
@ -181,9 +186,9 @@ export const formSchema1: FormSchema[] = [
slice: [30, 35, 40],
onCut: (v) => {
formModel.notifyPartyContent = v
}
},
}
}
},
},
{
label: '',
@ -236,9 +241,9 @@ export const formSchema1: FormSchema[] = [
if (!e && !obj) {
formModel.agentId = ''
}
}
},
}
}
},
},
{
field: 'agentContent',
@ -249,9 +254,9 @@ export const formSchema1: FormSchema[] = [
// defaultValue: '',
colProps: { span: 24 },
componentProps: {
rows: 5
}
}
rows: 5,
},
},
]
// 下面的表单2
@ -265,7 +270,7 @@ export const formSchema2: FormSchema[] = [
componentProps: {
allowClear: true,
valueFormat: 'YYYY-MM-DD',
}
},
},
{
field: 'eta',
@ -275,8 +280,8 @@ export const formSchema2: FormSchema[] = [
defaultValue: null,
componentProps: {
allowClear: true,
valueFormat: 'YYYY-MM-DD'
}
valueFormat: 'YYYY-MM-DD',
},
},
{
label: '',
@ -307,9 +312,9 @@ export const formSchema2: FormSchema[] = [
if (!e && !obj) {
formModel.vesselId = null
}
}
},
}
}
},
},
{
label: '船司航次',
@ -392,10 +397,10 @@ export const formSchema2: FormSchema[] = [
componentProps: ({ formModel }) => {
return {
oninput: () => {
formModel.loadPort = formModel.loadPort.replace(/[\u4e00-\u9fa5]/ig,'')
}
formModel.loadPort = formModel.loadPort.replace(/[\u4e00-\u9fa5]/gi, '')
},
}
}
},
},
{
label: '',
@ -412,10 +417,10 @@ export const formSchema2: FormSchema[] = [
componentProps: ({ formModel }) => {
return {
oninput: () => {
formModel.dischargePort = formModel.dischargePort.replace(/[\u4e00-\u9fa5]/ig,'')
}
formModel.dischargePort = formModel.dischargePort.replace(/[\u4e00-\u9fa5]/gi, '')
},
}
}
},
},
{
label: '',
@ -490,10 +495,10 @@ export const formSchema2: FormSchema[] = [
componentProps: ({ formModel }) => {
return {
oninput: () => {
formModel.deliveryPlace = formModel.deliveryPlace.replace(/[\u4e00-\u9fa5]/ig,'')
}
formModel.deliveryPlace = formModel.deliveryPlace.replace(/[\u4e00-\u9fa5]/gi, '')
},
}
}
},
},
{
label: '',
@ -510,10 +515,10 @@ export const formSchema2: FormSchema[] = [
componentProps: ({ formModel }) => {
return {
oninput: () => {
formModel.receiptPlace = formModel.receiptPlace.replace(/[\u4e00-\u9fa5]/ig,'')
}
formModel.receiptPlace = formModel.receiptPlace.replace(/[\u4e00-\u9fa5]/gi, '')
},
}
}
},
},
{
label: '',
@ -568,17 +573,17 @@ export const formSchema2: FormSchema[] = [
componentProps: ({ formModel }) => {
return {
oninput: () => {
formModel.transPort = formModel.transPort.replace(/[\u4e00-\u9fa5]/ig,'')
}
formModel.transPort = formModel.transPort.replace(/[\u4e00-\u9fa5]/gi, '')
},
}
}
},
},
{
label: '',
field: 'transPortId',
component: 'Input',
show: false,
}
},
]
// 箱数或件数表单
@ -609,7 +614,7 @@ export const formSchema3: FormSchema[] = [
}
formModel.pkgs = pkgs
formActionType ? formActionType.submit() : null
}
},
}
},
},
@ -618,20 +623,20 @@ export const formSchema3: FormSchema[] = [
field: 'pkgs',
component: 'Input',
colProps: { span: 12 },
dynamicDisabled: true
dynamicDisabled: true,
},
{
label: '包装',
field: 'kindPkgsName',
component: 'Input',
colProps: { span: 12 },
dynamicDisabled: true
dynamicDisabled: true,
},
{
label: '',
field: 'kindPkgs',
component: 'Input',
show: false
show: false,
},
{
label: '毛重(公斤)',
@ -656,7 +661,7 @@ export const formSchema3: FormSchema[] = [
}
}
formModel.kgs = pkgs
}
},
}
},
},
@ -664,7 +669,7 @@ export const formSchema3: FormSchema[] = [
label: '总总量KGS',
field: 'kgs',
component: 'Input',
colProps: { span: 24 }
colProps: { span: 24 },
},
{
label: '尺码(立方米)',
@ -689,7 +694,7 @@ export const formSchema3: FormSchema[] = [
}
}
formModel.cbm = pkgs
}
},
}
},
},
@ -697,8 +702,8 @@ export const formSchema3: FormSchema[] = [
label: '总尺码CBM',
field: 'cbm',
component: 'Input',
colProps: { span: 24 }
}
colProps: { span: 24 },
},
]
export const formSchema4: FormSchema[] = [
@ -727,9 +732,9 @@ export const formSchema4: FormSchema[] = [
valueField: 'id',
filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
}
},
}
}
},
},
{
field: 'issueDate',
@ -745,16 +750,16 @@ export const formSchema4: FormSchema[] = [
valueFormat: 'YYYY-MM-DD',
onChange: (e) => {
formActionType ? formActionType.linkageForm(e) : null
}
},
}
}
},
},
{
label: '签单地点',
field: 'issuePlace',
component: 'Input',
required: false,
colProps: { span: 6 }
colProps: { span: 6 },
},
{
field: 'noBill',
@ -795,9 +800,9 @@ export const formSchema4: FormSchema[] = [
if (e && obj) {
formActionType ? formActionType.linkageForm(e) : null
}
}
},
}
}
},
},
{
label: '',
@ -836,7 +841,7 @@ export const formSchema4: FormSchema[] = [
formModel.prepareAtId = null
formModel.prepareAtCode = null
}
}
},
}
},
},
@ -844,13 +849,13 @@ export const formSchema4: FormSchema[] = [
label: '',
field: 'payableAtId',
component: 'Input',
show: false
show: false,
},
{
label: '',
field: 'payableAtCode',
component: 'Input',
show: false
show: false,
},
{
field: 'payableAt',
@ -877,9 +882,9 @@ export const formSchema4: FormSchema[] = [
formModel.payableAtId = null
formModel.payableAtCode = null
}
}
},
}
}
},
},
{
field: 'service',
@ -898,9 +903,9 @@ export const formSchema4: FormSchema[] = [
valueField: 'id',
filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
}
},
}
}
},
},
{
label: '其他备注',
@ -909,8 +914,8 @@ export const formSchema4: FormSchema[] = [
required: false,
colProps: { span: 12 },
componentProps: {
autoSize: { minRows: 3, maxRows: 3 }
}
autoSize: { minRows: 3, maxRows: 3 },
},
},
{
label: '备注',
@ -919,8 +924,8 @@ export const formSchema4: FormSchema[] = [
required: false,
colProps: { span: 12 },
componentProps: {
autoSize: { minRows: 3, maxRows: 3 }
}
autoSize: { minRows: 3, maxRows: 3 },
},
},
]
@ -931,7 +936,7 @@ export const formSchema5: FormSchema[] = [
field: 'mblno',
component: 'Input',
defaultValue: '',
colProps: { span: 12 }
colProps: { span: 12 },
},
{
label: '分提单号',
@ -939,8 +944,8 @@ export const formSchema5: FormSchema[] = [
component: 'Input',
required: true,
defaultValue: null,
colProps: { span: 12 }
}
colProps: { span: 12 },
},
]
// 历史提单表格
@ -1008,8 +1013,8 @@ export const searchFormSchema: FormSchema[] = [
componentProps: {
allowClear: true,
valueFormat: 'YYYY-MM-DD',
}
}
},
},
]
// 其他信息表单
@ -1019,85 +1024,85 @@ export const formSchema6: FormSchema[] = [
field: 'shipperCode',
component: 'Input',
defaultValue: '',
colProps: { span: 12 }
colProps: { span: 12 },
},
{
label: '国家代码',
label: '国家地区代码',
field: 'shipperCountry',
component: 'Input',
defaultValue: '',
colProps: { span: 12 }
colProps: { span: 12 },
},
{
label: '电话',
field: 'shipperTel',
component: 'Input',
defaultValue: '',
colProps: { span: 12 }
colProps: { span: 12 },
},
{
label: '邮箱',
field: 'shipperEmail',
component: 'Input',
defaultValue: '',
colProps: { span: 12 }
colProps: { span: 12 },
},
{
label: '企业代码',
field: 'consigneeCode',
component: 'Input',
defaultValue: '',
colProps: { span: 12 }
colProps: { span: 12 },
},
{
label: '国家代码',
label: '国家地区代码',
field: 'consigneeCountry',
component: 'Input',
defaultValue: '',
colProps: { span: 12 }
colProps: { span: 12 },
},
{
label: '电话',
field: 'consigneeTel',
component: 'Input',
defaultValue: '',
colProps: { span: 12 }
colProps: { span: 12 },
},
{
label: '邮箱',
field: 'consigneeEmail',
component: 'Input',
defaultValue: '',
colProps: { span: 12 }
colProps: { span: 12 },
},
{
label: '企业代码',
field: 'notifyPartyCode',
component: 'Input',
defaultValue: '',
colProps: { span: 12 }
colProps: { span: 12 },
},
{
label: '国家代码',
label: '国家地区代码',
field: 'notifyPartyCountry',
component: 'Input',
defaultValue: '',
colProps: { span: 12 }
colProps: { span: 12 },
},
{
label: '电话',
field: 'notifyPartyTel',
component: 'Input',
defaultValue: '',
colProps: { span: 12 }
colProps: { span: 12 },
},
{
label: '邮箱',
field: 'notifyPartyEmail',
component: 'Input',
defaultValue: '',
colProps: { span: 12 }
}
colProps: { span: 12 },
},
]
// 仓位列表
@ -1110,7 +1115,7 @@ export const storageColumns: BasicColumn[] = [
{
title: '箱型箱量(余量)',
dataIndex: 'ctnStat',
width: 120
width: 120,
},
{
title: '合约号',
@ -1155,13 +1160,13 @@ export const storageColumns: BasicColumn[] = [
{
title: '交货地',
dataIndex: 'placeDelivery',
width: 150
width: 150,
},
{
title: '订舱编号',
dataIndex: 'slotNo',
width: 150
}
width: 150,
},
]
// 仓位表格过滤表单
@ -1170,30 +1175,30 @@ export const storageSearchFormSchema: FormSchema[] = [
field: 'portLoad',
label: '装货地',
component: 'Input',
colProps: { span: 4 }
colProps: { span: 4 },
},
{
field: 'placeDelivery',
label: '交货地',
component: 'Input',
colProps: { span: 4 }
colProps: { span: 4 },
},
{
field: 'vessel',
label: '船名',
component: 'Input',
colProps: { span: 4 }
colProps: { span: 4 },
},
{
field: 'voyno',
label: '航次',
component: 'Input',
colProps: { span: 4 }
colProps: { span: 4 },
},
{
field: 'slotNo',
label: '编号',
component: 'Input',
colProps: { span: 4 }
colProps: { span: 4 },
},
]
]

@ -18,12 +18,12 @@ export const baseSchema: FormSchema[] = [
field: 'id',
show: false,
defaultValue: '0',
component: 'Input'
component: 'Input',
},
{
field: 'isPart',
show: false,
component: 'Input'
component: 'Input',
},
{
field: 'mblno',
@ -36,7 +36,7 @@ export const baseSchema: FormSchema[] = [
show: ({ values }) => {
return !values.isPart
},
colProps: { span: 4 }
colProps: { span: 4 },
},
{
field: 'hblno',
@ -49,23 +49,23 @@ export const baseSchema: FormSchema[] = [
componentProps: ({ formActionType }) => {
return {
onChange: (e, obj) => {
if(e){
if (e) {
formActionType ? formActionType.linkageForm(e.target.value) : null
}
}
},
}
},
colProps: { span: 4 }
colProps: { span: 4 },
},
{
field: 'vesselId',
show: false,
component: 'Input'
component: 'Input',
},
{
field: 'innerVoyno',
show: false,
component: 'Input'
component: 'Input',
},
{
label: '船名',
@ -106,7 +106,7 @@ export const baseSchema: FormSchema[] = [
labelField: 'voyNo',
valueField: 'voyNo',
resultField: 'data',
immediate: false
immediate: false,
}
},
},
@ -134,14 +134,14 @@ export const baseSchema: FormSchema[] = [
if (!e && !obj) {
formModel.shipAgencyId = ''
}
}
},
}
}
},
},
{
field: 'carrierId',
show: false,
component: 'Input'
component: 'Input',
},
{
label: '船公司',
@ -165,9 +165,9 @@ export const baseSchema: FormSchema[] = [
if (!e && !obj) {
formModel.carrierId = ''
}
}
},
}
}
},
},
{
field: 'etd',
@ -178,7 +178,7 @@ export const baseSchema: FormSchema[] = [
colProps: { span: 4 },
componentProps: {
allowClear: true,
valueFormat: 'YYYY-MM-DD'
valueFormat: 'YYYY-MM-DD',
},
},
{
@ -205,15 +205,15 @@ export const baseSchema: FormSchema[] = [
formModel.loadPortId = null
formModel.loadPort = null
}
}
},
}
}
},
},
{
field: 'loadPort',
label: '装货港',
component: 'Input',
colProps: { span: 4 }
colProps: { span: 4 },
},
{
field: 'loadPortId',
@ -245,15 +245,15 @@ export const baseSchema: FormSchema[] = [
formModel.dischargePortId = null
formModel.dischargePort = null
}
}
},
}
}
},
},
{
field: 'dischargePort',
label: '卸货港',
component: 'Input',
colProps: { span: 4 }
colProps: { span: 4 },
},
{
field: 'dischargePortId',
@ -286,15 +286,15 @@ export const baseSchema: FormSchema[] = [
formModel.receiptPladeliveryPlacece = null
formModel.deliveryPlaceId = null
}
}
},
}
}
},
},
{
field: 'deliveryPlace',
label: '收货地',
component: 'Input',
colProps: { span: 4 }
colProps: { span: 4 },
},
{
field: 'deliveryPlaceId',
@ -306,7 +306,7 @@ export const baseSchema: FormSchema[] = [
field: 'remark',
label: '备注',
component: 'Input',
colProps: { span: 24 }
colProps: { span: 24 },
},
]
// 收发通
@ -353,9 +353,9 @@ export const mailingSchema: FormSchema[] = [
formModel.shipperContent = null
formModel.shipper = ''
}
}
},
}
}
},
},
{
label: '',
@ -398,15 +398,15 @@ export const mailingSchema: FormSchema[] = [
formModel.consignee = null
formModel.consigneeContent = ''
}
}
},
}
}
},
},
{
label: '',
field: 'notifyPartyId',
component: 'Input',
show: false
show: false,
},
{
label: '通知人',
@ -443,49 +443,49 @@ export const mailingSchema: FormSchema[] = [
formModel.notifyPartyContent = null
formModel.notifyParty = ''
}
}
},
}
}
},
},
{
field: 'shipperName',
label: '名称',
component: 'Input',
colProps: { span: 8 }
colProps: { span: 8 },
},
{
field: 'consigneeName',
label: '名称',
component: 'Input',
colProps: { span: 8 }
colProps: { span: 8 },
},
{
field: 'notifyPartyName',
label: '名称',
component: 'Input',
colProps: { span: 8 }
colProps: { span: 8 },
},
{
field: 'shipperAddress',
label: '地址',
component: 'Input',
colProps: { span: 8 }
colProps: { span: 8 },
},
{
field: 'consigneeAddress',
label: '地址',
component: 'Input',
colProps: { span: 8 }
colProps: { span: 8 },
},
{
field: 'notifyPartyAddress',
label: '地址',
component: 'Input',
colProps: { span: 8 }
colProps: { span: 8 },
},
{
field: 'shipperCountry',
label: '国家',
label: '国家地区',
component: 'Select',
componentProps: ({ formModel }) => {
return {
@ -497,7 +497,7 @@ export const mailingSchema: FormSchema[] = [
value: 'countryCode',
},
filterOption: (input: string, option: any) => {
return option.showName.toLowerCase().indexOf(input.toLowerCase()) >= 0;
return option.showName.toLowerCase().indexOf(input.toLowerCase()) >= 0
},
onChange: (e, obj) => {
if (e && obj) {
@ -509,22 +509,22 @@ export const mailingSchema: FormSchema[] = [
},
}
},
colProps: { span: 4 }
colProps: { span: 4 },
},
{
field: 'shipperCountryName',
component: 'Input',
show: false
show: false,
},
{
field: 'shipperCountryTel',
label: '电话',
component: 'Input',
colProps: { span: 4 }
colProps: { span: 4 },
},
{
field: 'consigneeCountry',
label: '国家',
label: '国家地区',
component: 'Select',
componentProps: ({ formModel }) => {
return {
@ -549,22 +549,22 @@ export const mailingSchema: FormSchema[] = [
},
}
},
colProps: { span: 4 }
colProps: { span: 4 },
},
{
field: 'consigneeCountryName',
component: 'Input',
show: false
show: false,
},
{
field: 'consigneeCountryTel',
label: '电话',
component: 'Input',
colProps: { span: 4 }
colProps: { span: 4 },
},
{
field: 'notifyPartyCountry',
label: '国家',
label: '国家地区',
component: 'Select',
componentProps: ({ formModel }) => {
return {
@ -588,18 +588,18 @@ export const mailingSchema: FormSchema[] = [
},
}
},
colProps: { span: 4 }
colProps: { span: 4 },
},
{
field: 'notifyPartyCountryName',
component: 'Input',
show: false
show: false,
},
{
field: 'notifyPartyCountryTel',
label: '电话',
component: 'Input',
colProps: { span: 4 }
colProps: { span: 4 },
},
]
// 场站
@ -631,20 +631,21 @@ export const yardSchema: FormSchema[] = [
if (!e && !obj) {
formModel.yardId = ''
}
}
},
}
}
},
},
]
function getCountryList() {
const arr = localStorage.getItem('ds-country') ? JSON.parse(localStorage.getItem('ds-country')) : []
const arr = localStorage.getItem('ds-country')
? JSON.parse(localStorage.getItem('ds-country'))
: []
if (arr.length > 0) {
countryList = arr
} else {
GetClientCountrySelectList().then(res => {
res.data.forEach(item=>{
GetClientCountrySelectList().then((res) => {
res.data.forEach((item) => {
item.showName = item.countryName + '/' + item.countryCode
})
countryList = res.data

File diff suppressed because it is too large Load Diff

@ -60,11 +60,11 @@ nullable: true
shipperCountry string
nullable: true
code
code
shipperCountryName string
nullable: true
shipperCountryTel string
nullable: true
@ -80,11 +80,11 @@ nullable: true
consigneeCountry string
nullable: true
code
code
consigneeCountryName string
nullable: true
consigneeCountryTel string
nullable: true
@ -100,11 +100,11 @@ nullable: true
notifyPartyCountry string
nullable: true
code
code
notifyPartyCountryName string
nullable: true
notifyPartyCountryTel string
nullable: true

@ -1,225 +1,245 @@
<template>
<div class="main">
<a-spin :spinning="spinning">
<div class="main-box">
<div class="box">
<div class="LeftHead">
<p>
<i style="color: orange;margin-right: 10px;font-size: 16px"
class="icon-lunchuan iconfont"></i>
货物运输计划已变更 {{ taskData.carrier }}
</p>
<p>时间{{ taskData.createTime }}</p>
</div>
<a-row>
<a-col :span="4">
<div class="text">提单号</div>
{{ taskData.billNo }}
</a-col>
<a-col :span="4">
<div class="text">此订舱号派生自原单号</div>
{{ taskData.origBillNo }}
</a-col>
</a-row>
<a-row>
<a-col :span="4">
<div class="text">订舱号</div>
{{ taskData.bookingNo }}
</a-col>
<a-col :span="4">
<div class="text">集装箱号</div>
{{ taskData.contaNoList }}
</a-col>
</a-row>
<a-row>
<a-col :span="20">
<div class="text">变更原因</div>
{{ taskData.changeReasonNotes }}
</a-col>
</a-row>
</div>
<div class="box">
<div class="LeftHead">
<div style="font-weight: bold;">出运计划</div>
</div>
<div style="display: flex;margin-top: 15px;">
<div style="width: 33%;">
<div style="font-weight: bold;font-size: 13px;">港口名,国家,码头</div>
<div :class="{
gray: taskData.from.portList.length == 1,
red: taskData.from.portList.length > 1 && item.isRemoved,
green: taskData.from.portList.length > 1 && !item.isRemoved
}" v-for="(item, index) in taskData.from.portList" :key="index">
{{ item.portName }},{{ item.countryCode }},{{ item.terminalName }}</div>
</div>
<div style="width: 33%;">
<div style="font-weight: bold;font-size: 13px;">预计离港日</div>
<div :class="{
gray: taskData.from.dateList.length == 1,
red: taskData.from.dateList.length > 1 && item.isRemoved,
green: taskData.from.dateList.length > 1 && !item.isRemoved
}" v-for="(item, index) in taskData.from.dateList" :key="index">
{{ item.dateVal }}</div>
</div>
<div style="width: 33%;">
<div style="font-weight: bold;font-size: 13px;">船名,航次,船旗</div>
<div :class="{
gray: taskData.from.vesselList.length == 1,
red: taskData.from.vesselList.length > 1 && item.isRemoved,
green: taskData.from.vesselList.length > 1 && !item.isRemoved
}" v-for="(item, index) in taskData.from.vesselList" :key="index">
{{ item.vessel }},{{ item.voyno }},{{ item.flag }}</div>
</div>
</div>
</div>
<div class="box">
<div class="LeftHead">
<div style="font-weight: bold;">到达计划</div>
</div>
<div style="display: flex;margin-top: 15px;">
<div style="width: 33%;">
<div style="font-weight: bold;font-size: 13px;">港口名,国家,码头</div>
<div :class="{
gray: taskData.to.portList.length == 1,
red: taskData.to.portList.length > 1 && item.isRemoved,
green: taskData.to.portList.length > 1 && !item.isRemoved
}" v-for="(item, index) in taskData.to.portList" :key="index">
{{ item.portName }},{{ item.countryCode }},{{ item.terminalName }}</div>
</div>
<div style="width: 33%;">
<div style="font-weight: bold;font-size: 13px;">预计到港日</div>
<div :class="{
gray: taskData.to.dateList.length == 1,
red: taskData.to.dateList.length > 1 && item.isRemoved,
green: taskData.to.dateList.length > 1 && !item.isRemoved
}" v-for="(item, index) in taskData.to.dateList" :key="index">
{{ item.dateVal }}</div>
</div>
<div style="width: 33%;">
<div style="font-weight: bold;font-size: 13px;">船名,航次,船旗</div>
<div :class="{
gray: taskData.to.vesselList.length == 1,
red: taskData.to.vesselList.length > 1 && item.isRemoved,
green: taskData.to.vesselList.length > 1 && !item.isRemoved
}" v-for="(item, index) in taskData.to.vesselList" :key="index">
{{ item.vessel }},{{ item.voyno }},{{ item.flag }}</div>
</div>
</div>
</div>
<div class="main">
<a-spin :spinning="spinning">
<div class="main-box">
<div class="box">
<div class="LeftHead">
<p>
<i
style="color: orange; margin-right: 10px; font-size: 16px"
class="icon-lunchuan iconfont"
></i>
货物运输计划已变更 {{ taskData.carrier }}
</p>
<p>时间{{ taskData.createTime }}</p>
</div>
<a-row>
<a-col :span="4">
<div class="text">提单号</div>
{{ taskData.billNo }}
</a-col>
<a-col :span="4">
<div class="text">此订舱号派生自原单号</div>
{{ taskData.origBillNo }}
</a-col>
</a-row>
<a-row>
<a-col :span="4">
<div class="text">订舱号</div>
{{ taskData.bookingNo }}
</a-col>
<a-col :span="4">
<div class="text">集装箱号</div>
{{ taskData.contaNoList }}
</a-col>
</a-row>
<a-row>
<a-col :span="20">
<div class="text">变更原因</div>
{{ taskData.changeReasonNotes }}
</a-col>
</a-row>
</div>
<div class="box">
<div class="LeftHead">
<div style="font-weight: bold">出运计划</div>
</div>
<div style="display: flex; margin-top: 15px">
<div style="width: 33%">
<div style="font-weight: bold; font-size: 13px">港口名,国家地区,码头</div>
<div
:class="{
gray: taskData.from.portList.length == 1,
red: taskData.from.portList.length > 1 && item.isRemoved,
green: taskData.from.portList.length > 1 && !item.isRemoved,
}"
v-for="(item, index) in taskData.from.portList"
:key="index"
>
{{ item.portName }},{{ item.countryCode }},{{ item.terminalName }}</div
>
</div>
</a-spin>
<taskButton :buttonList="['取消', '完成', '转移', '邮件', '检索']" @loadingStart="loadingStart" @loadingStop="loadingStop"
:id="taskPKId"></taskButton>
</div>
<div style="width: 33%">
<div style="font-weight: bold; font-size: 13px">预计离港日</div>
<div
:class="{
gray: taskData.from.dateList.length == 1,
red: taskData.from.dateList.length > 1 && item.isRemoved,
green: taskData.from.dateList.length > 1 && !item.isRemoved,
}"
v-for="(item, index) in taskData.from.dateList"
:key="index"
>
{{ item.dateVal }}</div
>
</div>
<div style="width: 33%">
<div style="font-weight: bold; font-size: 13px">船名,航次,船旗</div>
<div
:class="{
gray: taskData.from.vesselList.length == 1,
red: taskData.from.vesselList.length > 1 && item.isRemoved,
green: taskData.from.vesselList.length > 1 && !item.isRemoved,
}"
v-for="(item, index) in taskData.from.vesselList"
:key="index"
>
{{ item.vessel }},{{ item.voyno }},{{ item.flag }}</div
>
</div>
</div>
</div>
<div class="box">
<div class="LeftHead">
<div style="font-weight: bold">到达计划</div>
</div>
<div style="display: flex; margin-top: 15px">
<div style="width: 33%">
<div style="font-weight: bold; font-size: 13px">港口名,国家地区,码头</div>
<div
:class="{
gray: taskData.to.portList.length == 1,
red: taskData.to.portList.length > 1 && item.isRemoved,
green: taskData.to.portList.length > 1 && !item.isRemoved,
}"
v-for="(item, index) in taskData.to.portList"
:key="index"
>
{{ item.portName }},{{ item.countryCode }},{{ item.terminalName }}</div
>
</div>
<div style="width: 33%">
<div style="font-weight: bold; font-size: 13px">预计到港日</div>
<div
:class="{
gray: taskData.to.dateList.length == 1,
red: taskData.to.dateList.length > 1 && item.isRemoved,
green: taskData.to.dateList.length > 1 && !item.isRemoved,
}"
v-for="(item, index) in taskData.to.dateList"
:key="index"
>
{{ item.dateVal }}</div
>
</div>
<div style="width: 33%">
<div style="font-weight: bold; font-size: 13px">船名,航次,船旗</div>
<div
:class="{
gray: taskData.to.vesselList.length == 1,
red: taskData.to.vesselList.length > 1 && item.isRemoved,
green: taskData.to.vesselList.length > 1 && !item.isRemoved,
}"
v-for="(item, index) in taskData.to.vesselList"
:key="index"
>
{{ item.vessel }},{{ item.voyno }},{{ item.flag }}</div
>
</div>
</div>
</div>
</div>
</a-spin>
<taskButton
:buttonList="['取消', '完成', '转移', '邮件', '检索']"
@loadingStart="loadingStart"
@loadingStop="loadingStop"
:id="taskPKId"
></taskButton>
</div>
</template>
<script lang="ts" setup>
import { ref, onMounted, computed } from 'vue'
import { TaskTransPlanHasChange } from '../api'
import taskButton from '../components/taskButton.vue'
import { useMessage } from '../../../hooks/web/useMessage'
const { createMessage } = useMessage()
import { useRoute } from 'vue-router'
const selectedRowKeysTable = ref([])
const route = useRoute()
const spinning = ref(false)
const taskData = ref({
import { ref, onMounted, computed } from 'vue'
import { TaskTransPlanHasChange } from '../api'
import taskButton from '../components/taskButton.vue'
import { useMessage } from '../../../hooks/web/useMessage'
const { createMessage } = useMessage()
import { useRoute } from 'vue-router'
const selectedRowKeysTable = ref([])
const route = useRoute()
const spinning = ref(false)
const taskData = ref({
from: {
vesselList: [],
dateList: [],
portList: [],
vesselList: [],
dateList: [],
portList: [],
},
to: {
vesselList: [],
dateList: [],
portList: [],
vesselList: [],
dateList: [],
portList: [],
},
contaNoList: []
}) as any
const taskPKId = ref(route.query.taskPKId)
const tableLoad = ref(false)
contaNoList: [],
}) as any
const taskPKId = ref(route.query.taskPKId)
const tableLoad = ref(false)
onMounted(() => {
onMounted(() => {
getInfo()
})
})
function getInfo() {
function getInfo() {
spinning.value = true
const ApiData = {
taskPKId: taskPKId.value
taskPKId: taskPKId.value,
}
TaskTransPlanHasChange(ApiData).then(res => {
if (res.succeeded) {
taskData.value = res.data
} else {
createMessage.error(res.message)
}
spinning.value = false
TaskTransPlanHasChange(ApiData).then((res) => {
if (res.succeeded) {
taskData.value = res.data
} else {
createMessage.error(res.message)
}
spinning.value = false
})
}
function handleOpenUser() {
}
function handleOpen() {
}
function handleOpenCtn() {
}
function onSelectChange(selectedRowKeys) {
selectedRowKeys.value = selectedRowKeys;
};
function loadingStart() {
}
function handleOpenUser() {}
function handleOpen() {}
function handleOpenCtn() {}
function onSelectChange(selectedRowKeys) {
selectedRowKeys.value = selectedRowKeys
}
function loadingStart() {
spinning.value = true
}
function loadingStop() {
}
function loadingStop() {
spinning.value = false
}
function handleRefshPage() {
}
function handleRefsh() {
}
function handleSendNotice() {
}
}
function handleRefshPage() {}
function handleRefsh() {}
function handleSendNotice() {}
</script>
<style lang="less" scoped>
@import url('./taskStyle.less');
@import url('./taskStyle.less');
.gray {
.gray {
color: rgb(157 157 157);
}
}
.red {
.red {
color: red;
text-decoration: line-through;
}
}
.green {
.green {
color: rgb(40, 202, 40);
}
}
.point {
.point {
height: 10px;
width: 10px;
border-radius: 50%;
margin: 0 auto;
background: green;
}
}
.modaltitle {
.modaltitle {
border-bottom: 1px solid #000;
width: 5rem;
padding: 0.2rem 0.5rem;
margin-top: 1rem;
}
}
.icon-chuanfanguanli-chuanfanshenqing {
.icon-chuanfanguanli-chuanfanshenqing {
color: '#02A7F0';
}
</style>
}
</style>

Loading…
Cancel
Save