修改没数据

szh_zidingyibiaoti
sunzehua 2 years ago
parent c0c965fcc0
commit 8445a3c1ce

@ -2020,7 +2020,7 @@ export default {
}, },
getNoDataInit(isHBL = false, type) { getNoDataInit(isHBL = false, type) {
console.log(this.details, 'this.details') console.log(this.details, 'this.details')
let $details = JSON.parse(JSON.stringify(this.details)) const $details = JSON.parse(JSON.stringify(this.details))
const $data = { const $data = {
bookingId: $details.id, bookingId: $details.id,
id: 0, id: 0,
@ -2030,7 +2030,6 @@ export default {
etd: $details.etd, etd: $details.etd,
forwarder: $details.shipagency || '', forwarder: $details.shipagency || '',
vessel: $details.vessel, vessel: $details.vessel,
voyno: $details.voyno,
// //
carrier: $details.carrier || '', carrier: $details.carrier || '',
carrierid: $details.carrierid || '', carrierid: $details.carrierid || '',
@ -2048,6 +2047,7 @@ export default {
notifypartyname: '', notifypartyname: '',
notifypartyaddR1: '', notifypartyaddR1: '',
notifypartycountry: '', notifypartycountry: '',
voyno: '',
notifypartycountryName: '', notifypartycountryName: '',
notifypartytel: '', notifypartytel: '',
portload: $details.portload || 'QINGDAO,CHINA', portload: $details.portload || 'QINGDAO,CHINA',
@ -2088,7 +2088,7 @@ export default {
] ]
} }
console.log(type, 'type') console.log(type, 'type')
if (isHBL || type == 'enter') { if (isHBL || type === 'enter') {
$details.ctnInputs.forEach((item) => { $details.ctnInputs.forEach((item) => {
$data.ediCtn.push({ $data.ediCtn.push({
ctnall: item.ctnall, ctnall: item.ctnall,
@ -2113,6 +2113,7 @@ export default {
$data.shippercountryName = item.shippercountryName $data.shippercountryName = item.shippercountryName
$data.shippertel = item.shippertel $data.shippertel = item.shippertel
$data.marks = item.marks $data.marks = item.marks
$data.voyno = item.voyno
$data.description = item.description $data.description = item.description
$data.consigneename = item.consigneename $data.consigneename = item.consigneename
$data.consigneeaddR1 = item.consigneeaddR1 $data.consigneeaddR1 = item.consigneeaddR1
@ -2145,7 +2146,7 @@ export default {
// $data.notifypartycountryName = res.data[0].country // $data.notifypartycountryName = res.data[0].country
// }) // })
// } // }
if ($data.portdischargeid) { if ($data.portdischargeid && !isHBL) {
GetPortlist({ KeyWord: $data.portdischargeid }).then((res) => { GetPortlist({ KeyWord: $data.portdischargeid }).then((res) => {
if (res.data) { if (res.data) {
$data.consigneecountry = res.data[0].countryCode $data.consigneecountry = res.data[0].countryCode

Loading…
Cancel
Save