多品名

szh-new
张同海 6 months ago
parent 684c64f6bd
commit 11a6a60b36

@ -175,14 +175,11 @@
res.data.ArrclientTag.push(item) res.data.ArrclientTag.push(item)
} }
} else { } else {
console.log(item)
clientTag_o.value[item] = res.data.clientTag[item] clientTag_o.value[item] = res.data.clientTag[item]
} }
}) })
} }
console.log(clientTag_o.value)
await setFieldsValue({ await setFieldsValue({
...res.data, ...res.data,
}) })
@ -191,10 +188,8 @@
...res.data, ...res.data,
}) })
activeKey.value = '1' activeKey.value = '1'
console.log(res.data.id, 'res.data.clientId', 11111111111111111) await getClientBankList({
clientId: res.data.clientTag.clientId,
getClientBankList({
clientId: res.data.clientId,
}).then((res) => { }).then((res) => {
console.log(res) console.log(res)
}) })

@ -1,30 +1,114 @@
{
The Level field is required "code": 0,
The TaxNo field is required "multiCode": "Data_Query_Success",
The CtnType field is required "count": 0,
The FAPCode field is required "message": "查询成功",
The FARCode field is required "succeeded": true,
The OrderNo field is required "data": {
The RMBBank field is required "id": "1771001857053954048",
The StlDate field is required "codeName": "1",
The StlName field is required "shortName": "1",
The USDBank field is required "description": "1",
'' must not be empty "name": "",
The AuditNote field is required "enFullName": "1",
'' must not be empty "address": "1",
The BillRises1 field is required "email": "1",
The BillRises2 field is required "web": "1",
The RMBAccount field is required "tel": "1",
The USDAccount field is required "fax": "1",
The CarrierList field is required "chief": "1",
The InvoiceBank field is required "saleId": "1771068747235332096",
The RMBOnlineNO field is required "op": "1771068747235332096",
The USDOnlineNO field is required "doc": "1771068747235332096",
The RMBBillRises field is required "country": "1763023492099477504",
The USDBillRises field is required "province": "1",
The StlMiddleDate field is required "city": "1",
The InvoiceAddrTel field is required "blContent": "1",
The InvoiceStlDate field is required "isStop": false,
The StlFirstHalfDate field is required "billRises1": "1",
The CustomAttributes1 field is required "billRises2": "1",
The CustomAttributes2 field is required. "usdBillRises": "1",
"rmbBillRises": "1",
"rmbBank": "1",
"rmbAccount": "1",
"rmbOnlineNO": "1",
"usdBank": "1",
"usdAccount": "1",
"usdOnlineNO": "1",
"customAttributes1": "1",
"customAttributes2": "1",
"usdMaxAmountCredit": 0.0,
"rmbMaxAmountCredit": 0.0,
"maxAmountCredit": 0.0,
"stlName": "1",
"usdExchangeRate": 1.0,
"stlDate": "1",
"stlFirstHalfDate": "1",
"stlMiddleDate": "1",
"invoiceStlDate": "1",
"level": "1",
"qq": "1",
"msn": "1",
"farCode": "1",
"fapCode": "1",
"unitPrice": "1",
"registrationNo": "1",
"orderNo": "1",
"taxNo": "1",
"ediCode": "1",
"ediCode2": "1",
"ediCode3": "1",
"organizationCode": "1",
"pcorpName": "1",
"inspectionNo": "1",
"auditStatus": 1,
"auditTime": "1899-12-27 06:39:58",
"auditNote": "1",
"feeFRT": "1767427156532662272",
"rcvMode": 1,
"sourceId": "1763454583448932352",
"invoiceBank": "1",
"invoiceAddrTel": "1",
"saleOrgId": "1",
"commissionRate": 0.0,
"proportionRate": 0.0,
"commissionUserId": "0",
"carrierList": "1",
"ctnType": "1",
"customerService": "1771068747235332096",
"enShortName": "1",
"wmsFeeRateType": "2",
"status": 0,
"note": "",
"createTime": "2024-03-22 10:32:01",
"clientTag": {
"id": "1771001857276252160",
"clientId": "1771001857053954048",
"isSpecialApproval": false,
"isCarrier": true,
"isBooking": false,
"isYard": true,
"isTruck": true,
"isController": false,
"isCustom": false,
"isAgent": false,
"isAgentCn": true,
"isExpress": false,
"isAirLines": false,
"isShipper": false,
"isConsignee": false,
"isNotifyParty": false,
"isWareHouse": false,
"isWharf": false,
"isInsurer": false,
"isLeasing": false,
"isTradingAgency": false,
"isOther": false,
"others": "1",
"isShipAgency": false,
"isEnterprise": false,
"note": "",
"createTime": "2024-03-22 10:32:01"
}
}
}

@ -75,6 +75,8 @@ export function getClientStlModeSelectList(query) {
// 客户银行信息 列表 (Auth) // 客户银行信息 列表 (Auth)
export function getClientBankList(parameter) { export function getClientBankList(parameter) {
console.log(parameter,111111111111111111111);
return request<DataResult>({ return request<DataResult>({
url: Api.GetClientBankList, url: Api.GetClientBankList,
method: 'post', method: 'post',

@ -49,6 +49,31 @@ export function GetOpCtnList(parameter) {
data: parameter, data: parameter,
}) })
} }
// 集装箱多品名 服务 列表 (Auth)
export function GetOpCtnDetailList(parameter) {
return request({
url: '/opApi/OpCtnDetail/GetOpCtnDetailList',
method: 'post',
data: parameter,
})
}
// 集装箱多品名 服务 编辑 (Auth)
export function SaveOpCtnDetail(parameter) {
return request({
url: '/opApi/OpCtnDetail/SaveOpCtnDetail',
method: 'post',
data: parameter,
})
}
// 集装箱多品名 服务 批量删除 (Auth)
export function BatchDelOpCtnDetail(parameter) {
return request({
url: '/opApi/OpCtnDetail/BatchDelOpCtnDetail',
method: 'post',
data: parameter,
})
}
// 获取场站下拉列表 (Auth) // 获取场站下拉列表 (Auth)
export function GetYardClientList(parameter) { export function GetYardClientList(parameter) {

@ -0,0 +1,20 @@
The Level field is required
The TaxNo field is required
The CtnType field is required
The RMBBank field is required
The StlDate field is required
The StlName field is required
The USDBank field is required
The AuditNote field is required
The RMBAccount field is required
The USDAccount field is required
The CarrierList field is required
The InvoiceBank field is required
The RMBOnlineNO field is required
The USDOnlineNO field is required
The StlMiddleDate field is required
The InvoiceStlDate field is required
The StlFirstHalfDate field is required
The CustomAttributes1 field is required
The CustomAttributes2 field is required.

@ -1773,6 +1773,13 @@ export const mailingInfoFormSchemaL: FormSchema[] = [
defaultValue: '', defaultValue: '',
show: false, show: false,
}, },
{
label: '',
field: 'shipper',
component: 'Input',
defaultValue: '',
show: false,
},
{ {
field: 'shipperId', field: 'shipperId',
component: 'SelectTextArea', component: 'SelectTextArea',
@ -1781,6 +1788,8 @@ export const mailingInfoFormSchemaL: FormSchema[] = [
return { return {
label: '发货人', label: '发货人',
onChange: (e) => { onChange: (e) => {
console.log(e)
formModel[`shipper${e.type}`] = e.res formModel[`shipper${e.type}`] = e.res
}, },
} }
@ -1793,6 +1802,13 @@ export const mailingInfoFormSchemaL: FormSchema[] = [
defaultValue: '', defaultValue: '',
show: false, show: false,
}, },
{
label: '',
field: 'consignee',
component: 'Input',
defaultValue: '',
show: false,
},
{ {
field: 'consigneeId', field: 'consigneeId',
component: 'SelectTextArea', component: 'SelectTextArea',
@ -1813,6 +1829,13 @@ export const mailingInfoFormSchemaL: FormSchema[] = [
defaultValue: '', defaultValue: '',
show: false, show: false,
}, },
{
label: '',
field: 'notifyParty',
component: 'Input',
defaultValue: '',
show: false,
},
{ {
field: 'notifyPartyId', field: 'notifyPartyId',
component: 'SelectTextArea', component: 'SelectTextArea',
@ -1977,9 +2000,16 @@ export const mailingInfoFormSchemaR: FormSchema[] = [
component: '', component: '',
colProps: { span: 5 }, colProps: { span: 5 },
}, },
// {
// label: '第三付款地',
// field: 'thirdPayAt',
// component: 'Input',
// defaultValue: '',
// show: false,
// },
{ {
label: '中转港代码', label: '中转港代码',
field: 'transportid', field: 'transportCode',
component: 'Select', component: 'Select',
required: false, required: false,
dynamicDisabled: false, dynamicDisabled: false,

@ -699,7 +699,6 @@
}) })
.then((res) => { .then((res) => {
if (route.query.isCopy) { if (route.query.isCopy) {
console.log(res, 123123123)
res.data = { res.data = {
...res.data, ...res.data,
id: '', id: '',
@ -708,8 +707,6 @@
isFeeLocking: '', isFeeLocking: '',
} }
} }
console.log(res)
notification.destroy() notification.destroy()
setDeatilsFun(res, false) setDeatilsFun(res, false)
appStore.settopDown(false) appStore.settopDown(false)
@ -781,7 +778,10 @@
ctnList.push({ label: e.name, value: e.value }) ctnList.push({ label: e.name, value: e.value })
}) })
} }
RefgoodsTable.value.getDataSource().forEach((e, index) => { // list
console.log(RefgoodsTable.value.list, 'ZZZZZZZZZZZZZZZZZZZZZZ')
RefgoodsTable.value.list.forEach((e, index) => {
let ctnCode = '' let ctnCode = ''
ctnList.forEach((item: any) => { ctnList.forEach((item: any) => {
if (item.label == e.ctn) { if (item.label == e.ctn) {
@ -791,47 +791,47 @@
ctnInfo.push({ ctnInfo.push({
id: e.id ? e.id : '', id: e.id ? e.id : '',
bsno: e.bsno ? e.bsno : '', bsno: e.bsno ? e.bsno : '',
ctnNum: e.ctnNum, ctnNum: e.ctnNum | '',
cntrNo: e.cntrNo, cntrNo: e.cntrNo | '',
sealNo: e.sealNo, sealNo: e.sealNo | '',
kindPkgs: e.kindPkgs, kindPkgs: e.kindPkgs | '',
kgs: e.kgs, kgs: e.kgs | '',
size: e.size, size: e.size | '',
tareWeight: e.tareWeight, tareWeight: e.tareWeight | '',
weightType: e.weightType, weightType: e.weightType | '',
ctnCode: ctnCode, ctnCode: ctnCode | '',
ctn: e.ctn, ctn: e.ctn | '',
weightKGS: e.weightKGS, weightKGS: e.weightKGS | '',
weightDate: e.weightDate, weightDate: e.weightDate | '',
teu: e.teu, teu: e.teu | '',
ctnAll: e.ctnAll, ctnAll: e.ctnAll | '',
cbm: e.cbm, cbm: e.cbm | '',
pkgs: e.pkgs, pkgs: e.pkgs | '',
isTemp: e.isTemp, isTemp: e.isTemp | '',
goodsName: e.goodsName, goodsName: e.goodsName | '',
ctnStatus: e.ctnStatus, ctnStatus: e.ctnStatus | '',
weightATTN: e.weightATTN, weightATTN: e.weightATTN | '',
weightTel: e.weightTel, weightTel: e.weightTel | '',
weightSign: e.weightSign, weightSign: e.weightSign | '',
masterNo: e.masterNo, masterNo: e.masterNo | '',
trucker: e.trucker, trucker: e.trucker | '',
truckNo: e.truckNo, truckNo: e.truckNo | '',
truckFee: e.truckFee, truckFee: e.truckFee | '',
freeStorageDay: e.freeStorageDay, freeStorageDay: e.freeStorageDay | '',
storageDay: e.storageDay, storageDay: e.storageDay | '',
storagePrice: e.storagePrice, storagePrice: e.storagePrice | '',
storageFee: e.storageFee, storageFee: e.storageFee | '',
freeCtnDay: e.freeCtnDay, freeCtnDay: e.freeCtnDay | '',
ctnDay: e.ctnDay, ctnDay: e.ctnDay | '',
ctnPrice: e.ctnPrice, ctnPrice: e.ctnPrice | '',
ctnFee: e.ctnFee, ctnFee: e.ctnFee | '',
vgmAddr: e.vgmAddr, vgmAddr: e.vgmAddr | '',
vgmEmail: e.vgmEmail, vgmEmail: e.vgmEmail | '',
pickUpTime: e.pickUpTime, pickUpTime: e.pickUpTime | '',
actualArrivalPortTime: e.actualArrivalPortTime, actualArrivalPortTime: e.actualArrivalPortTime | '',
}) })
}) })
console.log(ctnInfo) console.log(ctnInfo, 'AAAAAAAAAAAAAAAAAAAAAAAA')
let _data = { let _data = {
...initDetail, ...initDetail,
...RefbasicInfo.value.getFieldsValue(), ...RefbasicInfo.value.getFieldsValue(),
@ -841,10 +841,15 @@
...RefediMore.value.getFieldsValue(), ...RefediMore.value.getFieldsValue(),
...RefmastetMore.value.getFieldsValue(), ...RefmastetMore.value.getFieldsValue(),
ctnInfo, ctnInfo,
transportCode: RefmailingInfo.value.getFieldsValueR().transportCode | '',
BookingRemark: RefmailingInfo.value.getFieldsValueR().BookingRemark | '',
CloseDocRemark: RefmailingInfo.value.getFieldsValueR().CloseDocRemark | '',
thirdPayAt: '',
} }
BookingOrderSave(_data) BookingOrderSave(_data)
.then((res) => { .then((res) => {
if (res.success) { if (res.succeeded) {
notification.success({ message: '保存成功', duration: 3 })
} }
}) })
.catch((err) => { .catch((err) => {
@ -906,10 +911,10 @@
function updateSchema(data) { function updateSchema(data) {
console.log(data, 'updateSchema') console.log(data, 'updateSchema')
// RefbasicInfo.value.updateSchema(data) RefbasicInfo.value.updateSchema(data)
// RefmailingInfo.value.updateSchemaL(data) // RefmailingInfo.value.updateSchemaL(data)
RefmailingInfo.value.updateSchemaR(data) RefmailingInfo.value.updateSchemaR(data)
// RefcargoInfo.value.updateSchema(data) RefcargoInfo.value.updateSchema(data)
// RefediMore.value.updateSchema(data) // RefediMore.value.updateSchema(data)
// RefmastetMore.value.updateSchema(data) // RefmastetMore.value.updateSchema(data)
} }
@ -1449,7 +1454,7 @@
function handleRefshTable() { function handleRefshTable() {
RefgoodsTable.value.loadingTable = true RefgoodsTable.value.loadingTable = true
GetCtnListRefsh({ orderId: bookingDetails.value.id }).then((res) => { GetCtnListRefsh({ orderId: bookingDetails.value.id }).then((res) => {
if (res.success) { if (res.succeeded) {
bookingDetails.value.ctnInputs = res.data bookingDetails.value.ctnInputs = res.data
RefgoodsTable.value.init() RefgoodsTable.value.init()
} else { } else {
@ -1756,7 +1761,7 @@
function removeOrderFun() { function removeOrderFun() {
DeleteBookingOrder(bookingDetails.value.id) DeleteBookingOrder(bookingDetails.value.id)
.then((res) => { .then((res) => {
if (res.success) { if (res.succeeded) {
notification.error({ message: '删除成功', duration: 3 }) notification.error({ message: '删除成功', duration: 3 })
const $data = appStore.getneedSavePages const $data = appStore.getneedSavePages
delete $data[route.fullPath] delete $data[route.fullPath]
@ -1863,139 +1868,41 @@
} }
function setDeatilsFun(res, overSet = false) { function setDeatilsFun(res, overSet = false) {
// if (!res.data.bookingEDIExt) {
// res.data.bookingEDIExt = bookingEDIExtData
// }
// if (res.data.cargoid == 'R') {
// cargoRules.value['goodsname'][0].required = true
// }
// if (res.data.cargoid != 'R') {
// cargoRules.value['goodsname'][0].required = false
// }
// if (!res.data.extendState) {
// isLockBooking.value = false
// } else {
// isLockBooking.value = res.data.extendState.isLockBooking
// }
// if (res.data.ctnInputs.length > 0) {
// res.data.ctnInputs.map((item) => {
// if (item.weightype === '') {
// item.weighkgs = item.weighkgs
// ? item.weighkgs
// : calc(Number(item['kgs']), Number(item['tareweight']), '+')
// }
// item.pkgs = item.pkgs ? item.pkgs : ''
// item.kgs = item.kgs ? item.kgs : ''
// item.cbm = item.cbm ? item.cbm : ''
// item.tareweight = item.tareweight ? item.tareweight : ''
// item.weighkgs = item.weighkgs ? item.weighkgs : ''
// if (!item.cntrno) {
// item.cntrno = ''
// }
// if (!item.sealno) {
// item.sealno = ''
// }
// if (!item.weighdate) {
// item.weighdate = ''
// }
// })
// }
// if (res.data.hbList.length > 0) {
// res.data.hbList.map((item, index) => {
// const newBookingEDIExt = {
// ...JSON.parse(JSON.stringify(bookingEDIExtData)),
// ...item.bookingEDIExt,
// }
// item = {
// ...JSON.parse(JSON.stringify(initDetail)),
// ...item,
// ...{ bookingEDIExt: newBookingEDIExt },
// }
// if (item.ctnInputs.length > 0) {
// item.ctnInputs.map((citem) => {
// citem.pkgs = citem.pkgs ? citem.pkgs : ''
// citem.kgs = citem.kgs ? citem.kgs : ''
// citem.cbm = citem.cbm ? citem.cbm : ''
// citem.tareweight = citem.tareweight ? citem.tareweight : ''
// citem.weighkgs = citem.weighkgs ? citem.weighkgs : ''
// })
// }
// res.data.hbList[index] = item
// })
// }
// res.data.feeself = !!res.data.feeself
let newData = res.data let newData = res.data
// if (route.query.isCopy && !overSet) {
// delete res.data.id
// const copyData = {
// customername: res.data.customername,
// portloadid: res.data.portloadid,
// portload: res.data.portload,
// issueplace: res.data.issueplace,
// prepardat: res.data.prepardat,
// route: res.data.route,
// shippingMethod: res.data.shippingMethod,
// shipper: res.data.shipper,
// consignee: res.data.consignee,
// notifyparty: res.data.notifyparty,
// sale: res.data.sale,
// }
// newData = { ...initDetail, ...copyData }
// }
// const $BookingEDIExt = {
// ...bookingEDIExtData,
// ...res.data.bookingEDIExt,
// }
bookingDetails.value = { bookingDetails.value = {
...bookingDetails.value, ...bookingDetails.value,
...newData, ...newData,
// ...{ bookingEDIExt: $BookingEDIExt },
} }
// oldBookingDetails.value = bookingDetails.value
// sendMessageFY()
// if (route.query.isCopy && route.query.copyId) {
// const hisData = {
// bookingDetails: bookingDetails.value,
// excuteRules: excuteRules.value,
// excuteRulesType: excuteRulesType.value,
// isAdd: isAdd.value,
// tabActiveKey: tabActiveKey.value,
// mainOrderActiveKey: mainOrderActiveKey.value,
// // type: type.value,
// isCopy: isCopy.value,
// id: id.value,
// }
oldBookingDetails.value = bookingDetails.value // historyData.value[`copyMore-${id.value}`] = hisData
sendMessageFY() // }
if (route.query.isCopy && route.query.copyId) { // getFilter()
const hisData = { // inPageLoading.value = false
bookingDetails: bookingDetails.value, // setTimeout(() => {
excuteRules: excuteRules.value, // setTimeout(() => {
excuteRulesType: excuteRulesType.value, // checkSaveFun({ type: 'details', hasChange: false })
isAdd: isAdd.value, // }, 600)
tabActiveKey: tabActiveKey.value, // detailsLoadOver.value = true
mainOrderActiveKey: mainOrderActiveKey.value, // inChildLoading.value = false
// type: type.value, // notification.success({ message: '', duration: 3 })
isCopy: isCopy.value, // if (res.data.hbList && res.data.hbList.length > 0) {
id: id.value, // Showtabs.value = true
} // }
// if (Object.keys(that.$refs).includes('RefsedOrder')) { // }, 1200)
// const secActive = RefsedOrder.value.$data.editIndex
// hisData.secActive = secActive
// }
historyData.value[`copyMore-${id.value}`] = hisData
}
getFilter()
inPageLoading.value = false
setTimeout(() => {
setTimeout(() => {
checkSaveFun({ type: 'details', hasChange: false })
}, 600)
detailsLoadOver.value = true
inChildLoading.value = false
notification.success({ message: '加载完成', duration: 3 })
if (res.data.hbList && res.data.hbList.length > 0) {
Showtabs.value = true
}
// if (!hasHbList.value && bookingDetails.value.hbList.length > 0) {
// RefsedOrder.value.init(bookingDetails.value.hbList)
// hasHbList.value = true
// } else {
// RefsedOrder.value.init([])
// }
// if (bookingDetails.value.ctnInputs.length > 0) {
// RefgoodsTable.value.init()
// }
}, 1200)
// that.$forceUpdate()
} }
function sendMessageFY() { function sendMessageFY() {
const mapFrame = iframe.value const mapFrame = iframe.value
@ -2181,7 +2088,7 @@
bookingId: route.query.id, bookingId: route.query.id,
}) })
.then((res) => { .then((res) => {
if (res.success) { if (res.succeeded) {
if (res.data.statuslog) { if (res.data.statuslog) {
res.data.statuslog = res.data.statuslog.reverse() res.data.statuslog = res.data.statuslog.reverse()
} }

@ -1,5 +1,6 @@
<template> <template>
<div class="more-edi" :style="{ paddingTop: '20px', paddingBottom: '10px' }"> <div class="more-edi" :style="{ paddingTop: '20px', paddingBottom: '10px' }">
{{ props.details.customDate }}
<BasicForm @register="registerForm" /> <BasicForm @register="registerForm" />
<!-- <a-form ref="RefediFrom" :model="props.details" :rules="rules" v-if="props.details"> <!-- <a-form ref="RefediFrom" :model="props.details" :rules="rules" v-if="props.details">
<div class="normal"> <div class="normal">
@ -898,21 +899,27 @@
schemas: ediMoreFormSchema, schemas: ediMoreFormSchema,
showActionButtonGroup: false, showActionButtonGroup: false,
}) })
const PropsDetails = ref(props.details)
const emit = defineEmits(['changeDetail']) const emit = defineEmits(['changeDetail'])
const RefediFrom = ref() const RefediFrom = ref()
watch( watch(
() => PropsDetails, () => props.details,
(nval) => { (nval, oval) => {
if (!props.inSave) { console.log(nval, 555)
emit('changeDetail', { setFieldsValue(nval)
detail: nval, // if (nval.id) {
type: 'ediMore', // console.log(nval.id)
}) // }
} // if (!props.inSave) {
// emit('changeDetail', {
// detail: nval,
// type: 'baseInfo',
// })
// // that.$forceUpdate()
// }
}, },
{ {
deep: true, deep: true,
immediate: true,
}, },
) )

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save