+
+
diff --git a/src/views/operation/seaexport/detail/modules/baseInfo.tsx b/src/views/operation/seaexport/detail/modules/baseInfo.tsx
index 06fb5365..7e2b33c1 100644
--- a/src/views/operation/seaexport/detail/modules/baseInfo.tsx
+++ b/src/views/operation/seaexport/detail/modules/baseInfo.tsx
@@ -479,9 +479,9 @@ export const basicInfoFormSchema: FormSchema[] = [
valueField: 'voyNo',
filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
- }
+ },
}
- }
+ },
},
{
label: '船司航线',
@@ -697,9 +697,9 @@ export const basicInfoFormSchema: FormSchema[] = [
valueField: 'id',
filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
- }
+ },
}
- }
+ },
},
{
label: '客服员',
@@ -713,7 +713,9 @@ export const basicInfoFormSchema: FormSchema[] = [
return {
api: () => {
return new Promise((resolve) => {
- const data = JSON.parse(JSON.stringify(optionsStore.getOptionsByCode('GetCustomerServiceList')))
+ const data = JSON.parse(
+ JSON.stringify(optionsStore.getOptionsByCode('GetCustomerServiceList')),
+ )
data.forEach((e) => {
e.userName = `${e.userCode}/${e.userName}`
})
@@ -741,7 +743,9 @@ export const basicInfoFormSchema: FormSchema[] = [
return {
api: () => {
return new Promise((resolve) => {
- const data = JSON.parse(JSON.stringify(optionsStore.getOptionsByCode('GetCustomerServiceList')))
+ const data = JSON.parse(
+ JSON.stringify(optionsStore.getOptionsByCode('GetCustomerServiceList')),
+ )
data.forEach((e) => {
e.userName = `${e.userCode}/${e.userName}`
})
@@ -862,8 +866,8 @@ export const mailingInfoFormSchemaL: FormSchema[] = [
onChange: (e) => {
if (e) {
if (e.type == 'Id') {
- formModel.shipper = e.res.shortName
- formModel.shipperId = e.res.id
+ formModel.shipper = e.label
+ formModel.shipperId = e.value
} else {
formModel[`shipper${e.type}`] = e.res
}
@@ -905,8 +909,8 @@ export const mailingInfoFormSchemaL: FormSchema[] = [
onChange: (e) => {
if (e) {
if (e.type == 'Id') {
- formModel.consignee = e.res.shortName
- formModel.consigneeId = e.res.id
+ formModel.consignee = e.label
+ formModel.consigneeId = e.value
} else {
formModel[`consignee${e.type}`] = e.res
}
@@ -936,6 +940,27 @@ export const mailingInfoFormSchemaL: FormSchema[] = [
// defaultValue: '',
show: false,
},
+ {
+ label: '',
+ field: 'secondNotifyPartyContent',
+ component: 'Input',
+ // defaultValue: '',
+ show: false,
+ },
+ {
+ label: '',
+ field: 'secondNotifyParty',
+ component: 'Input',
+ // defaultValue: '',
+ show: false,
+ },
+ {
+ label: '',
+ field: 'secondNotifyPartyId',
+ component: 'Input',
+ // defaultValue: '',
+ show: false,
+ },
{
field: 'tzr',
component: 'SelectTextArea',
@@ -947,11 +972,25 @@ export const mailingInfoFormSchemaL: FormSchema[] = [
field: 'notifyParty',
onChange: (e) => {
if (e) {
- if (e.type == 'Id') {
- formModel.notifyParty = e.res.shortName
- formModel.notifyPartyId = e.res.id
- } else {
- formModel[`notifyParty${e.type}`] = e.res
+ console.log(e, 123)
+
+ switch (e.type) {
+ case 'Content':
+ formModel[`notifyParty${e.type}`] = e.res
+ break
+ case 'Id':
+ formModel.notifyParty = e.res.label
+ formModel.notifyPartyId = e.res.value
+ break
+ case 'Content2':
+ formModel.secondNotifyPartyContent = e.res
+ break
+ case 'Id2':
+ formModel.secondNotifyParty = e.res.label
+ formModel.secondNotifyPartyId = e.res.value
+ break
+ default:
+ break
}
}
},
@@ -987,7 +1026,9 @@ export const mailingInfoFormSchemaR: FormSchema[] = [
showSearch: true,
api: () => {
return new Promise((resolve) => {
- const data = JSON.parse(JSON.stringify(optionsStore.getOptionsByCode('GetClientPortSelectList')))
+ const data = JSON.parse(
+ JSON.stringify(optionsStore.getOptionsByCode('GetClientPortSelectList')),
+ )
data.forEach((item) => {
item.portName = `${item.portName}(${item.ediCode})`
})
@@ -1124,7 +1165,9 @@ export const mailingInfoFormSchemaR: FormSchema[] = [
showSearch: true,
api: () => {
return new Promise((resolve) => {
- const data = JSON.parse(JSON.stringify(optionsStore.getOptionsByCode('GetClientPortSelectList')))
+ const data = JSON.parse(
+ JSON.stringify(optionsStore.getOptionsByCode('GetClientPortSelectList')),
+ )
data.forEach((e) => {
e.ediCode = `${e.portName}/${e.ediCode}`
})
@@ -1231,7 +1274,9 @@ export const mailingInfoFormSchemaR: FormSchema[] = [
showSearch: true,
api: () => {
return new Promise((resolve) => {
- const data = JSON.parse(JSON.stringify(optionsStore.getOptionsByCode('GetClientPortSelectList')))
+ const data = JSON.parse(
+ JSON.stringify(optionsStore.getOptionsByCode('GetClientPortSelectList')),
+ )
data.forEach((e) => {
e.portName = `${e.portName}/${e.ediCode}`
})
@@ -1328,9 +1373,11 @@ export const mailingInfoFormSchemaR: FormSchema[] = [
showSearch: true,
api: () => {
return new Promise((resolve) => {
- const data = JSON.parse(JSON.stringify(optionsStore.getOptionsByCode('GetClientPortSelectList')))
+ const data = JSON.parse(
+ JSON.stringify(optionsStore.getOptionsByCode('GetClientPortSelectList')),
+ )
data.forEach((e) => {
- e.ediCode = `${e.portName}/${e.ediCode}`
+ e.ediCode = `${e.portName}/${e.ediCode}`
})
resolve({ data })
})
@@ -1409,9 +1456,11 @@ export const mailingInfoFormSchemaR: FormSchema[] = [
showSearch: true,
api: () => {
return new Promise((resolve) => {
- const data = JSON.parse(JSON.stringify(optionsStore.getOptionsByCode('GetClientPortSelectList')))
+ const data = JSON.parse(
+ JSON.stringify(optionsStore.getOptionsByCode('GetClientPortSelectList')),
+ )
data.forEach((e) => {
- e.ediCode = `${e.portName}/${e.ediCode}`
+ e.ediCode = `${e.portName}/${e.ediCode}`
})
resolve({ data })
})
@@ -1498,9 +1547,11 @@ export const mailingInfoFormSchemaR: FormSchema[] = [
showSearch: true,
api: () => {
return new Promise((resolve) => {
- const data = JSON.parse(JSON.stringify(optionsStore.getOptionsByCode('GetClientPortSelectList')))
+ const data = JSON.parse(
+ JSON.stringify(optionsStore.getOptionsByCode('GetClientPortSelectList')),
+ )
data.forEach((e) => {
- e.ediCode = `${e.portName}/${e.ediCode}`
+ e.ediCode = `${e.portName}/${e.ediCode}`
})
resolve({ data })
})
@@ -1615,9 +1666,11 @@ export const mailingInfoFormSchemaR: FormSchema[] = [
showSearch: true,
api: () => {
return new Promise((resolve) => {
- const data = JSON.parse(JSON.stringify(optionsStore.getOptionsByCode('GetClientPortSelectList')))
+ const data = JSON.parse(
+ JSON.stringify(optionsStore.getOptionsByCode('GetClientPortSelectList')),
+ )
data.forEach((e) => {
- e.ediCode = `${e.portName}/${e.ediCode}`
+ e.ediCode = `${e.portName}/${e.ediCode}`
})
resolve({ data })
})
@@ -1687,7 +1740,9 @@ export const mailingInfoFormSchemaR: FormSchema[] = [
showSearch: true,
api: () => {
return new Promise((resolve) => {
- const data = JSON.parse(JSON.stringify(optionsStore.getOptionsByCode('GetClientPortSelectList')))
+ const data = JSON.parse(
+ JSON.stringify(optionsStore.getOptionsByCode('GetClientPortSelectList')),
+ )
data.forEach((e) => {
e.portName = `${e.portName}/${e.ediCode}`
})
@@ -1731,7 +1786,9 @@ export const mailingInfoFormSchemaR: FormSchema[] = [
showSearch: true,
api: () => {
return new Promise((resolve) => {
- const data = JSON.parse(JSON.stringify(optionsStore.getOptionsByCode('GetClientPortSelectList')))
+ const data = JSON.parse(
+ JSON.stringify(optionsStore.getOptionsByCode('GetClientPortSelectList')),
+ )
data.forEach((e) => {
e.portName = `${e.portName}/${e.ediCode}`
})
diff --git a/src/views/operation/seaexport/detail/modules/operationArea.vue b/src/views/operation/seaexport/detail/modules/operationArea.vue
index 4bf89187..81e6212e 100644
--- a/src/views/operation/seaexport/detail/modules/operationArea.vue
+++ b/src/views/operation/seaexport/detail/modules/operationArea.vue
@@ -71,14 +71,14 @@