保存
标准打印
@@ -95,7 +95,12 @@
-
+
@@ -348,6 +353,7 @@
function waitFor() {
notification.warning({ message: '暂未开发', duration: 3 })
}
+ const RefInfo = ref()
// 添加对账明细
async function AddDetailL(e) {
if (!id.value) {
@@ -358,6 +364,7 @@
if (res.succeeded) {
notification.success({ message: '添加成功', duration: 3 })
init()
+ RefInfo.value.handleSubmit()
}
})
}
diff --git a/src/views/operation/CustomerReconciliation/detail/info/index.vue b/src/views/operation/CustomerReconciliation/detail/info/index.vue
index c9508594..92c724b3 100644
--- a/src/views/operation/CustomerReconciliation/detail/info/index.vue
+++ b/src/views/operation/CustomerReconciliation/detail/info/index.vue
@@ -1,11 +1,14 @@
-
+
@@ -219,6 +223,8 @@
if (res.succeeded) {
dataSourceL.value = res.data
setTableData([...res.data])
+ setTableDataRT([])
+ setTableDataRB([])
spinningL.value = false
}
setModalProps({ confirmLoading: false, loading: false })
@@ -276,6 +282,9 @@
})
emit('AddDetailR', Apidata)
}
+ defineExpose({
+ handleSubmit,
+ })
diff --git a/src/views/operation/CustomerReconciliation/detail/info/infoColumns.tsx b/src/views/operation/CustomerReconciliation/detail/info/infoColumns.tsx
index 1c73dba0..2d6f6fc8 100644
--- a/src/views/operation/CustomerReconciliation/detail/info/infoColumns.tsx
+++ b/src/views/operation/CustomerReconciliation/detail/info/infoColumns.tsx
@@ -356,7 +356,8 @@ export const schemas: FormSchema[] = [
]
export const columnsL: BasicColumn[] = [
{ title: '业务类型', dataIndex: 'businessTypeName', align: 'left' },
- { title: '委托单位', dataIndex: 'customerName', align: 'left' },
+ { title: '费用对象', dataIndex: 'customerName', align: 'left' },
+ // { title: '委托单位', dataIndex: 'customerName', align: 'left' },
{ title: '业务状态', dataIndex: 'businessStatus', align: 'left' },
{ title: '财务日期', dataIndex: 'accountDate', align: 'left' },
{ title: '主提单号', dataIndex: 'mblno', align: 'left' },
diff --git a/src/views/operation/seaexport/api/BookingLedger.js b/src/views/operation/seaexport/api/BookingLedger.js
index 4bcb86dd..ba142650 100644
--- a/src/views/operation/seaexport/api/BookingLedger.js
+++ b/src/views/operation/seaexport/api/BookingLedger.js
@@ -550,6 +550,48 @@ export function SendShippingBill(parameter) {
data: parameter,
})
}
+// 舱单箱信息服务 列表 (Auth)
+export function GetShippingBillCtnList(parameter) {
+ return request({
+ url: '/opApi/ShippingBillCtn/GetShippingBillCtnList',
+ method: 'post',
+ data: parameter,
+ })
+}
+// 舱单箱信息服务 删除 (Auth)
+export function DelShippingBillCtn(parameter) {
+ return request({
+ url: '/opApi/ShippingBillCtn/DelShippingBillCtn',
+ method: 'get',
+ params: parameter,
+ })
+}
+// 舱单箱信息服务 批量删除 (Auth)
+export function BatchDelShippingBillCtn(parameter) {
+ return request({
+ url: '/opApi/ShippingBillCtn/BatchDelShippingBillCtn',
+ method: 'post',
+ data: parameter,
+ })
+}
+
+// 收发通模板下拉列表 (Auth)
+export function GetShippingBillTemplateSelectList(parameter) {
+ return request({
+ url: '/opApi/ShippingBillTemplate/GetShippingBillTemplateSelectList',
+ method: 'get',
+ params: parameter,
+ })
+}
+//获取国家信息下拉列表-客户端 (Auth)
+export function GetClientCountrySelectList(parameter) {
+ return request({
+ url: '/mainApi/Common/GetClientCountrySelectList',
+ method: 'get',
+ params: parameter,
+ })
+}
+
/**
* 获取分页查询客户
* @params ShortName
@@ -1839,4 +1881,3 @@ export function SendMSKBooking(parameter) {
data: parameter,
})
}
-
diff --git a/src/views/operation/seaexport/detail/modules/preOrder.vue b/src/views/operation/seaexport/detail/modules/preOrder.vue
index 276cdfd9..6b6f4af5 100644
--- a/src/views/operation/seaexport/detail/modules/preOrder.vue
+++ b/src/views/operation/seaexport/detail/modules/preOrder.vue
@@ -120,14 +120,15 @@
-
- China
- U.S.A
+
+
+ {{ item.vesselName }}
+
@@ -143,7 +144,7 @@
-
+
-
- China
- U.S.A
+
+
+ {{ item.shortName }} / {{ item.codeName }}
+
@@ -200,9 +206,21 @@
发货人信息
-
- China
- U.S.A
+ {
+ ChangeSFT(e, 'shipper')
+ }
+ "
+ >
+
+ {{ item.name }}
+
-
+
-
+
+
-
- China
- U.S.A
+
+
+ {{ item.countryName }}
+
@@ -261,12 +285,12 @@
-
+
@@ -278,9 +302,21 @@
收货人信息
-
- China
- U.S.A
+ {
+ ChangeSFT(e, 'consignee')
+ }
+ "
+ >
+
+ {{ item.name }}
+
-
+
-
+
-
- China
- U.S.A
+
+
+ {{ item.countryName }}
+
@@ -342,12 +383,12 @@
-
+
@@ -359,9 +400,21 @@
通知人信息
-
- China
- U.S.A
+ {
+ ChangeSFT(e, 'notifyParty')
+ }
+ "
+ >
+
+ {{ item.name }}
+
-
+
-
+
-
- China
- U.S.A
+
+
+ {{ item.countryName }}
+
@@ -423,12 +481,12 @@
-
+
@@ -444,14 +502,26 @@
-
- China
- U.S.A
+ {
+ PortChange(e, 'loadPort')
+ }
+ "
+ >
+
+ {{ item.portName }}/{{ item.ediCode }}
+
@@ -459,12 +529,12 @@
-
+
@@ -472,14 +542,26 @@
-
- China
- U.S.A
+ {
+ PortChange(e, 'dischargePort')
+ }
+ "
+ >
+
+ {{ item.portName }}/{{ item.ediCode }}
+
@@ -487,12 +569,12 @@
-
+
@@ -500,14 +582,26 @@
-
- China
- U.S.A
+ {
+ PortChange(e, 'deliveryPlace')
+ }
+ "
+ >
+
+ {{ item.portName }}/{{ item.ediCode }}
+
@@ -515,12 +609,12 @@
-
+
@@ -602,15 +696,17 @@
- China
- U.S.A
+ S 普通货
+ R 冻柜
+ D 危险品
+ O 超限箱
@@ -623,11 +719,16 @@
:labelCol="labelCol2"
:wrapperCol="wrapperCol2"
has-feedback
- name="kindpkgs"
+ name="kindPkgs"
>
-
- China
- U.S.A
+
+
+ {{ item.packageName }}
+
@@ -638,10 +739,13 @@
:labelCol="labelCol2"
:wrapperCol="wrapperCol2"
has-feedback
- name="tempset"
+ name="temperatureSet"
>
@@ -652,13 +756,13 @@
:labelCol="labelCol2"
:wrapperCol="wrapperCol2"
has-feedback
- name="tempid"
+ name="temperatureUnit"
>
C摄氏
F华氏
@@ -672,10 +776,13 @@
:labelCol="labelCol2"
:wrapperCol="wrapperCol2"
has-feedback
- name="reeferf"
+ name="reeferQuantity"
>
@@ -686,10 +793,13 @@
:labelCol="labelCol2"
:wrapperCol="wrapperCol2"
has-feedback
- name="dclass"
+ name="dangerClass"
>
@@ -700,10 +810,13 @@
:labelCol="labelCol2"
:wrapperCol="wrapperCol2"
has-feedback
- name="dunno"
+ name="dangerNo"
>
@@ -714,10 +827,13 @@
:labelCol="labelCol2"
:wrapperCol="wrapperCol2"
has-feedback
- name="dattn"
+ name="dangerAttn"
>
@@ -728,10 +844,13 @@
:labelCol="labelCol2"
:wrapperCol="wrapperCol2"
has-feedback
- name="dtel"
+ name="dangerTel"
>
@@ -760,14 +879,14 @@
md: { span: 23 },
}"
has-feedback
- name="remarks"
+ name="remark"
>
-
+
@@ -778,8 +897,7 @@
集装箱信息
-
-
+
新建
@@ -794,14 +912,19 @@
-
- China
- U.S.A
+
+
+ {{ item.codeName }}
+
@@ -831,7 +954,17 @@
import {
GetShippingBillList,
EditShippingBill,
+ GetShippingBillInfo,
} from '/@/views/operation/seaexport/api/BookingLedger.js'
+ import {
+ GetVesselSelectList,
+ GetCarrierlist,
+ GetShippingBillTemplateSelectList,
+ GetClientCountrySelectList,
+ GetClientPortSelectList,
+ GetPackageSelectList,
+ GetYardClientList,
+ } from '/@/views/operation/seaexport/api/BookingLedger'
import { useMessage } from '/@/hooks/web/useMessage'
const { notification } = useMessage()
import { useRoute } from 'vue-router'
@@ -881,6 +1014,7 @@
} else {
// this.getNoDataInit()
}
+ GetList()
}
function close() {
@@ -910,6 +1044,8 @@
orderList.value.push({ checked: false, ...e })
})
formState.value = orderList.value[editIndex.value]
+ } else {
+ orderList.value.push({ checked: false })
}
})
.catch((err) => {
@@ -926,10 +1062,27 @@
...formState.value,
ctnInfo: list.value,
}
+ vesselList.value.forEach((e) => {
+ if (e.id == ApiData.vesselId) {
+ ApiData.vessel = e.vesselName
+ }
+ })
+ carrierList.value.forEach((e) => {
+ if (e.id == ApiData.carrierId) {
+ ApiData.carrier = e.codeName
+ ApiData.carrierName = e.shortName
+ }
+ })
+ yardList.value.forEach((e) => {
+ if (e.id == ApiData.carrierId) {
+ ApiData.yard = e.shortName
+ }
+ })
EditShippingBill(ApiData).then((res) => {
- console.log(res)
+ if (res.succeeded) {
+ notification.success({ message: res.message, duration: 3 })
+ }
})
- console.log('保存')
}
// 删除
function removeOrder() {
@@ -959,9 +1112,82 @@
orderList.value[editIndex.value] = formState.value
editIndex.value = index
formState.value = orderList.value[index]
+ // GetShippingBillInfo({ id: formState.value.id }).then((res) => {
+ // if (res.succeeded) {
+ // notification.success({ message: res.message, duration: 3 })
+ // console.log(res)
+ // }
+ // })
}
// -----------------------右侧表单------------------------
+ const vesselList = ref
([])
+ const carrierList = ref([])
+ const countryList = ref([])
+ const portList = ref([])
+ const kindPkgsList = ref([])
+ const yardList = ref([])
+ const SFTList = reactive({
+ consigneList: [],
+ shipperList: [],
+ notifypartyList: [],
+ })
+ // const shipperList = ref([])
+ // const consigneList = ref([])
+ // const notifypartyList = ref([])
+ function GetList() {
+ GetVesselSelectList().then((res) => {
+ vesselList.value = res.data
+ })
+ GetCarrierlist().then((res) => {
+ carrierList.value = res.data
+ })
+ let TypeList = [
+ { label: '发货人', value: '2', code: 'shipper' },
+ { label: '收货人', value: '1', code: 'consignee' },
+ { label: '通知人', value: '3', code: 'notifyParty' },
+ ]
+ TypeList.forEach((e) => {
+ GetShippingBillTemplateSelectList({ type: e.value }).then((res) => {
+ SFTList[`${e.code}List`] = res.data
+ })
+ })
+ GetClientCountrySelectList().then((res) => {
+ countryList.value = res.data
+ })
+ GetClientPortSelectList().then((res) => {
+ portList.value = res.data
+ })
+ GetPackageSelectList().then((res) => {
+ kindPkgsList.value = res.data
+ })
+ GetYardClientList().then((res) => {
+ yardList.value = res.data
+ })
+ }
+ function ChangeSFT(data, type) {
+ console.log(data, type)
+
+ SFTList[`${type}List`].forEach((e) => {
+ if (e.id == data) {
+ console.log(e)
+ formState.value[`${type}Name`] = e.name
+ formState.value[`${type}Address`] = e.address
+ formState.value[`${type}Country`] = e.country
+ formState.value[`${type}CountryName`] = e.countryName
+ formState.value[`${type}CountryTel`] = e.tel
+ }
+ })
+ }
+ function PortChange(data, type) {
+ console.log(data, type)
+ portList.value.forEach((item) => {
+ if (item.id == data) {
+ formState.value[`${type}Code`] = item.ediCode
+ formState.value[type] = item.portName
+ }
+ })
+ }
// -----------------------下侧表格------------------------
const list = ref([])
const columns = [
@@ -973,10 +1199,15 @@
className: 'htCenter',
readOnly: false,
},
+ {
+ title: '尺寸',
+ width: 80,
+ data: 'size',
+ },
{
title: '箱型',
width: 80,
- data: 'isTempName',
+ data: 'ctn',
type: 'dropdown',
source: async (query, process) => {
const res = [
@@ -995,52 +1226,51 @@
process(dict)
},
},
+ {
+ title: '表现形式',
+ width: 80,
+ data: 'ctnAll',
+ },
{
title: '箱号',
width: 80,
- data: 'bsno',
+ data: 'cntrNo',
},
{
title: '封号',
width: 80,
- data: 'bsno',
+ data: 'sealNo',
},
{
title: '件数',
width: 80,
- data: 'bsno',
+ data: 'pkgs',
},
{
- title: '包装',
+ title: '毛重',
width: 80,
- data: 'isTempName',
- type: 'dropdown',
- source: async (query, process) => {
- const res = [
- {
- name: '是',
- value: true,
- },
- {
- name: '否',
- value: false,
- },
- ]
- const dict = res.map((res) => {
- return res.name
- })
- process(dict)
- },
+ data: 'kgs',
},
{
- title: '重量',
+ title: '尺码',
width: 80,
- data: 'bsno',
+ data: 'cbm',
},
+ // kindPkgsName
+ // kindPkgs
{
- title: '尺码',
+ title: '包装',
width: 80,
- data: 'bsno',
+ data: 'kindPkgsName',
+ type: 'dropdown',
+ source: async (query, process) => {
+ console.log(kindPkgsList.value)
+
+ const dict = kindPkgsList.value.map((res) => {
+ return res.cnExplain
+ })
+ process(dict)
+ },
},
]
const settings = {
@@ -1069,7 +1299,23 @@
// 此行直接复制,必须(非商用)
licenseKey: 'non-commercial-and-evaluation',
// 定义所有单元格发生变化的回调处理
- async afterChange(changes, source) {},
+ async afterChange(changes, source) {
+ if (source === 'edit' || source === 'Autofill.fill' || source === 'CopyPaste.paste') {
+ let dict: any = {}
+ if (changes[0][1] === 'kindPkgsName') {
+ const res = kindPkgsList.value
+ const item = res.filter((item) => {
+ return item.packageName === changes[0][3]
+ })
+ if (item) dict = item[0]
+ list.value[changes[0][0]]['kindPkgs'] = dict?.id
+ list.value[changes[0][0]]['kindPkgsName'] = dict?.packageName
+ }
+ }
+ },
+ }
+ function addCtn() {
+ list.value.push({})
}
defineExpose({
init,
diff --git a/src/views/operation/seaexport/detail/modules/preOrderData.json b/src/views/operation/seaexport/detail/modules/preOrderData.json
new file mode 100644
index 00000000..8f1e4eb0
--- /dev/null
+++ b/src/views/operation/seaexport/detail/modules/preOrderData.json
@@ -0,0 +1,207 @@
+id integer($int64)
+
+主键Id
+ctnInfo [
+nullable: true
+
+箱信息
+ShippingBillCtnReq{...}]
+businessId integer($int64)
+
+业务Id
+mblno string
+nullable: true
+
+主提单号
+hblno string
+nullable: true
+
+分提单号
+etd string($date-time)
+nullable: true
+
+开船日期
+forwarderId integer($int64)
+
+货代公司Id
+forwarder string
+nullable: true
+
+货代公司
+
+voyno string
+nullable: true
+
+海关航次
+innerVoyno string
+nullable: true
+
+内部航次
+shipperId integer($int64)
+nullable: true
+
+发货人 t_info_client CUSTNAME
+consigneeId integer($int64)
+nullable: true
+
+收货人 t_info_client CUSTNAME
+notifyPartyId integer($int64)
+nullable: true
+
+通知人 t_info_client CUSTNAME
+shipperName string
+nullable: true
+
+发货人名称
+shipperAddress string
+nullable: true
+
+发货人地址
+shipperCountry string
+nullable: true
+
+发货人国家code
+shipperCountryName string
+nullable: true
+
+发货人国家
+shipperCountryTel string
+nullable: true
+
+发货人电话
+consigneeName string
+nullable: true
+
+收货人名称
+consigneeAddress string
+nullable: true
+
+收货人地址
+consigneeCountry string
+nullable: true
+
+收货人国家code
+consigneeCountryName string
+nullable: true
+
+收货人国家
+consigneeCountryTel string
+nullable: true
+
+收货人电话
+notifyPartyName string
+nullable: true
+
+通知人名称
+notifyPartyAddress string
+nullable: true
+
+通知人地址
+notifyPartyCountry string
+nullable: true
+
+通知人国家code
+notifyPartyCountryName string
+nullable: true
+
+通知人国家
+notifyPartyCountryTel string
+nullable: true
+
+通知人电话
+loadPortId integer($int64)
+
+装货港Id
+loadPortCode string
+nullable: true
+
+装货港代码
+loadPort string
+nullable: true
+
+装货港
+dischargePortId integer($int64)
+
+卸货港Id
+dischargePortCode string
+nullable: true
+
+卸货港代码
+dischargePort string
+nullable: true
+
+卸货港
+deliveryPlaceId integer($int64)
+
+收货地Id
+deliveryPlaceCode string
+nullable: true
+
+收货地代码
+deliveryPlace string
+nullable: true
+
+收货地
+yardId integer($int64)
+
+场站Id t_crm_client CUSTNAME
+yard string
+nullable: true
+
+场站 t_crm_client CUSTNAME
+marks string
+nullable: true
+
+唛头 N/M
+description string
+nullable: true
+
+货物描述
+cargoId string
+nullable: true
+
+货物标识 S/R/D/O
+temperatureSet string
+nullable: true
+
+设置温度
+temperatureUnit string
+nullable: true
+
+温度单位
+reeferQuantity string
+nullable: true
+
+冷藏通风量
+dangerClass string
+nullable: true
+
+危险品分类
+dangerNo string
+nullable: true
+
+危险品编号
+dangerAttn string
+nullable: true
+
+危险品联系人
+dangerTel string
+nullable: true
+
+危险品电话
+kindPkgs string
+nullable: true
+
+包装 t_code_package
+remark string
+nullable: true
+
+Desc:备注
+sendRemark string
+nullable: true
+
+Desc:发送备注
+state string
+nullable: true
+
+状态
\ No newline at end of file