|
|
|
@ -94,7 +94,7 @@
|
|
|
|
|
</a-col>
|
|
|
|
|
</template>
|
|
|
|
|
</a-row>
|
|
|
|
|
<a-row class="from-box" :gutter="10" style="padding-left: 17px;">
|
|
|
|
|
<a-row class="from-box" :gutter="10" style="padding-left: 17px">
|
|
|
|
|
<a-col :xs="12" :sm="12" :md="12" :lg="8" :xl="5">
|
|
|
|
|
<a-form-model-item
|
|
|
|
|
class="pre-from-label"
|
|
|
|
@ -185,7 +185,7 @@
|
|
|
|
|
:showLabel="['cnName', 'code']"
|
|
|
|
|
:openSearch="false"
|
|
|
|
|
@change="getSelectViewRes"
|
|
|
|
|
style="flex: 1; margin-top: -4px;"
|
|
|
|
|
style="flex: 1; margin-top: -4px"
|
|
|
|
|
></selectView>
|
|
|
|
|
</a-form-model-item>
|
|
|
|
|
</a-col>
|
|
|
|
@ -1120,7 +1120,7 @@
|
|
|
|
|
:showLabel="['name', 'showCode']"
|
|
|
|
|
:openSearch="false"
|
|
|
|
|
@change="getSelectViewRes"
|
|
|
|
|
style="width:200px;"
|
|
|
|
|
style="width: 200px"
|
|
|
|
|
></selectView>
|
|
|
|
|
</a-form-model-item>
|
|
|
|
|
</div>
|
|
|
|
@ -1440,7 +1440,7 @@ export default {
|
|
|
|
|
allow-clear={true}
|
|
|
|
|
style="width: 120px"
|
|
|
|
|
filter-option={this.filterOption}
|
|
|
|
|
on-change={val => {
|
|
|
|
|
on-change={(val) => {
|
|
|
|
|
// console.log('== 箱型内部监听change ==')
|
|
|
|
|
if (val !== undefined) {
|
|
|
|
|
const data = this.ctnallList[val]
|
|
|
|
@ -1454,13 +1454,13 @@ export default {
|
|
|
|
|
// this.orderDetails.ediCtn[rowIndex].ctncode = ''
|
|
|
|
|
}
|
|
|
|
|
}}
|
|
|
|
|
on-focus={val => {
|
|
|
|
|
on-focus={(val) => {
|
|
|
|
|
// this.ctnallViewIndex = rowIndex
|
|
|
|
|
}}
|
|
|
|
|
on-blur={val => {
|
|
|
|
|
on-blur={(val) => {
|
|
|
|
|
// this.ctnallViewIndex = null
|
|
|
|
|
}}
|
|
|
|
|
on-inputKeydown={val => {
|
|
|
|
|
on-inputKeydown={(val) => {
|
|
|
|
|
if (val.key == 'Backspace') {
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
val.target.value = val.target.value.slice(0, -1)
|
|
|
|
@ -1549,7 +1549,7 @@ export default {
|
|
|
|
|
filter-option={this.filterOption}
|
|
|
|
|
style="width: 120px"
|
|
|
|
|
class="pre-kindpkgsView"
|
|
|
|
|
on-change={val => {
|
|
|
|
|
on-change={(val) => {
|
|
|
|
|
if (val !== undefined) {
|
|
|
|
|
const data = this.packageList[val]
|
|
|
|
|
this.orderDetails.ediCtn[rowIndex].kindpkgs = data.name
|
|
|
|
@ -1589,13 +1589,13 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
this.orderDetails.kindpkgs = row['kindpkgs']
|
|
|
|
|
}}
|
|
|
|
|
on-focus={val => {
|
|
|
|
|
on-focus={(val) => {
|
|
|
|
|
this.kindpkgsViewIndex = rowIndex
|
|
|
|
|
}}
|
|
|
|
|
on-blur={val => {
|
|
|
|
|
on-blur={(val) => {
|
|
|
|
|
this.kindpkgsViewIndex = null
|
|
|
|
|
}}
|
|
|
|
|
on-inputKeydown={val => {
|
|
|
|
|
on-inputKeydown={(val) => {
|
|
|
|
|
if (val.key == 'Backspace') {
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
val.target.value = val.target.value.slice(0, -1)
|
|
|
|
@ -1912,14 +1912,14 @@ export default {
|
|
|
|
|
country: this.orderDetails[`${this.modelType}countryName`],
|
|
|
|
|
tel: this.orderDetails[`${this.modelType}tel`]
|
|
|
|
|
})
|
|
|
|
|
.then(res => {
|
|
|
|
|
.then((res) => {
|
|
|
|
|
if (res.success) {
|
|
|
|
|
this.$message.success('保存成功')
|
|
|
|
|
this.handleModelCancel()
|
|
|
|
|
this.$forceUpdate()
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch(err => {
|
|
|
|
|
.catch((err) => {
|
|
|
|
|
console.log(err)
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
@ -1943,7 +1943,7 @@ export default {
|
|
|
|
|
total(type) {
|
|
|
|
|
let Rdata = 0
|
|
|
|
|
if (this.orderDetails.ediCtn) {
|
|
|
|
|
this.orderDetails.ediCtn.forEach(item => {
|
|
|
|
|
this.orderDetails.ediCtn.forEach((item) => {
|
|
|
|
|
Rdata = parseFloat(Rdata) + parseFloat(item[type]) || 0
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
@ -1995,7 +1995,7 @@ export default {
|
|
|
|
|
getPageESeaeEdi({
|
|
|
|
|
bookingId: this.id
|
|
|
|
|
})
|
|
|
|
|
.then(res => {
|
|
|
|
|
.then((res) => {
|
|
|
|
|
if (!res.success) {
|
|
|
|
|
this.$message.error(res.message)
|
|
|
|
|
}
|
|
|
|
@ -2014,7 +2014,7 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
this.preOrderLoad = true
|
|
|
|
|
})
|
|
|
|
|
.catch(err => {
|
|
|
|
|
.catch((err) => {
|
|
|
|
|
console.log(err)
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
@ -2089,7 +2089,7 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
console.log(type, 'type')
|
|
|
|
|
if (isHBL || type == 'enter') {
|
|
|
|
|
$details.ctnInputs.forEach(item => {
|
|
|
|
|
$details.ctnInputs.forEach((item) => {
|
|
|
|
|
$data.ediCtn.push({
|
|
|
|
|
ctnall: item.ctnall,
|
|
|
|
|
cntrno: item.cntrno,
|
|
|
|
@ -2105,7 +2105,7 @@ export default {
|
|
|
|
|
if (isHBL && type != 'enter') {
|
|
|
|
|
console.log('复制主单信息')
|
|
|
|
|
console.log(this.orderList, this.orderDetails)
|
|
|
|
|
this.orderList.forEach(item => {
|
|
|
|
|
this.orderList.forEach((item) => {
|
|
|
|
|
if (!item.isHBL) {
|
|
|
|
|
$data.shippername = item.shippername
|
|
|
|
|
$data.shipperaddR1 = item.shipperaddR1
|
|
|
|
@ -2126,7 +2126,7 @@ export default {
|
|
|
|
|
$data.forwarder = item.forwarder
|
|
|
|
|
$data.carrier = item.carrier
|
|
|
|
|
$data.ediCtn = item.ediCtn
|
|
|
|
|
$data.ediCtn.forEach(e => {
|
|
|
|
|
$data.ediCtn.forEach((e) => {
|
|
|
|
|
delete e.id
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
@ -2144,12 +2144,28 @@ export default {
|
|
|
|
|
// })
|
|
|
|
|
// }
|
|
|
|
|
if ($data.portdischargeid) {
|
|
|
|
|
GetPortlist({ KeyWord: $data.portdischargeid }).then(res => {
|
|
|
|
|
GetPortlist({ KeyWord: $data.portdischargeid }).then((res) => {
|
|
|
|
|
console.log(res.data[0], 'res.data[0]')
|
|
|
|
|
$data.consigneecountry = res.data[0].countryCode
|
|
|
|
|
$data.consigneecountryName = `${res.data[0].countryCode}/${res.data[0].cnName}`
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
if ($details.shipper) {
|
|
|
|
|
const newArr = $details.shipper.split('\n')
|
|
|
|
|
$data.shippername = newArr[0]
|
|
|
|
|
$data.shipperaddR1 = newArr[0]
|
|
|
|
|
}
|
|
|
|
|
if ($details.consignee) {
|
|
|
|
|
const newArr = $details.consignee.split('\n')
|
|
|
|
|
$data.consigneename = newArr[0]
|
|
|
|
|
$data.consigneeaddR1 = newArr[0]
|
|
|
|
|
}
|
|
|
|
|
if ($details.notifyparty) {
|
|
|
|
|
const newArr = $details.notifyparty.split('\n')
|
|
|
|
|
$data.notifypartyname = newArr[0]
|
|
|
|
|
$data.notifypartyaddR1 = newArr[0]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// if ($data.placedeliveryid) {
|
|
|
|
|
// $data.consigneecountry = 'CN'
|
|
|
|
|
// $data.consigneecountryName = '中国'
|
|
|
|
@ -2196,7 +2212,7 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
const query = this.$qs.stringify({ Ids: removeArr.toString() }, { arrayFormat: 'repeat' })
|
|
|
|
|
seaeEdiDelete(query)
|
|
|
|
|
.then(res => {
|
|
|
|
|
.then((res) => {
|
|
|
|
|
if (res.success) {
|
|
|
|
|
this.removeFun()
|
|
|
|
|
} else {
|
|
|
|
@ -2204,7 +2220,7 @@ export default {
|
|
|
|
|
this.removeFun(tempArr)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch(err => {
|
|
|
|
|
.catch((err) => {
|
|
|
|
|
console.log(err)
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
@ -2284,7 +2300,7 @@ export default {
|
|
|
|
|
console.log('== 即将发送单号 ==', sendArr)
|
|
|
|
|
const query = this.$qs.stringify({ Ids: sendArr.toString() }, { arrayFormat: 'repeat' })
|
|
|
|
|
seaeEdiCustEDI(query)
|
|
|
|
|
.then(res => {
|
|
|
|
|
.then((res) => {
|
|
|
|
|
if (res.success) {
|
|
|
|
|
this.$message.success('发送成功')
|
|
|
|
|
this.selectArr.map((item, index) => {
|
|
|
|
@ -2294,7 +2310,7 @@ export default {
|
|
|
|
|
this.$message.error(res.message)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch(err => {
|
|
|
|
|
.catch((err) => {
|
|
|
|
|
console.log(err)
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
@ -2575,7 +2591,7 @@ export default {
|
|
|
|
|
delete item.rowKey
|
|
|
|
|
})
|
|
|
|
|
seaeEdiSave($data)
|
|
|
|
|
.then(res => {
|
|
|
|
|
.then((res) => {
|
|
|
|
|
if (res.success) {
|
|
|
|
|
this.$message.success('保存成功')
|
|
|
|
|
res.data[0].ediCtn.map((item, index) => {
|
|
|
|
@ -2589,7 +2605,7 @@ export default {
|
|
|
|
|
this.selectArr = []
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch(err => {
|
|
|
|
|
.catch((err) => {
|
|
|
|
|
console.log(err)
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
@ -2670,7 +2686,7 @@ export default {
|
|
|
|
|
{ arrayFormat: 'repeat' }
|
|
|
|
|
)
|
|
|
|
|
seaeEdiCustEDI(query)
|
|
|
|
|
.then(res => {
|
|
|
|
|
.then((res) => {
|
|
|
|
|
this.sendLoading = false
|
|
|
|
|
if (res.success) {
|
|
|
|
|
let tip = ''
|
|
|
|
@ -2696,7 +2712,7 @@ export default {
|
|
|
|
|
this.$message.error(res.message)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch(err => {
|
|
|
|
|
.catch((err) => {
|
|
|
|
|
this.sendLoading = false
|
|
|
|
|
console.log(err)
|
|
|
|
|
})
|
|
|
|
|