|
|
@ -17,10 +17,11 @@
|
|
|
|
:data-source="shipperDataArr"
|
|
|
|
:data-source="shipperDataArr"
|
|
|
|
@select="shipperSelect"
|
|
|
|
@select="shipperSelect"
|
|
|
|
@change="shipperChange"
|
|
|
|
@change="shipperChange"
|
|
|
|
|
|
|
|
@focus="shipperChange"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
<a-button class="save-btn" type="link" size="small" icon="save" @click="saveModel('shipper')"
|
|
|
|
<a-button class="save-btn" type="link" size="small" icon="save" @click="saveModel('shipper')">
|
|
|
|
>保存</a-button
|
|
|
|
保存
|
|
|
|
>
|
|
|
|
</a-button>
|
|
|
|
<div class="right">
|
|
|
|
<div class="right">
|
|
|
|
<span class="btn-circle" @click="spliceMore('shipper')" :style="{ fontSize: '14px' }">*</span>
|
|
|
|
<span class="btn-circle" @click="spliceMore('shipper')" :style="{ fontSize: '14px' }">*</span>
|
|
|
|
<span class="btn" @click="changeCode(35, 'shipper')">35</span>
|
|
|
|
<span class="btn" @click="changeCode(35, 'shipper')">35</span>
|
|
|
@ -54,6 +55,7 @@
|
|
|
|
:data-source="consigneeDataArr"
|
|
|
|
:data-source="consigneeDataArr"
|
|
|
|
@select="consigneeSelect"
|
|
|
|
@select="consigneeSelect"
|
|
|
|
@change="consigneeChange"
|
|
|
|
@change="consigneeChange"
|
|
|
|
|
|
|
|
@focus="consigneeChange"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
<a-button class="save-btn" type="link" size="small" icon="save" @click="saveModel('consignee')"
|
|
|
|
<a-button class="save-btn" type="link" size="small" icon="save" @click="saveModel('consignee')"
|
|
|
|
>保存</a-button
|
|
|
|
>保存</a-button
|
|
|
@ -91,6 +93,7 @@
|
|
|
|
:data-source="notifyDataArr"
|
|
|
|
:data-source="notifyDataArr"
|
|
|
|
@select="notifySelect"
|
|
|
|
@select="notifySelect"
|
|
|
|
@change="notifyChange"
|
|
|
|
@change="notifyChange"
|
|
|
|
|
|
|
|
@focus="notifyChange"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
<a-button class="save-btn" type="link" size="small" icon="save" @click="saveModel('notifyparty')"
|
|
|
|
<a-button class="save-btn" type="link" size="small" icon="save" @click="saveModel('notifyparty')"
|
|
|
|
>保存</a-button
|
|
|
|
>保存</a-button
|
|
|
@ -177,6 +180,7 @@
|
|
|
|
:data-source="customserDataArr"
|
|
|
|
:data-source="customserDataArr"
|
|
|
|
@select="customserSelect"
|
|
|
|
@select="customserSelect"
|
|
|
|
@change="customserChange"
|
|
|
|
@change="customserChange"
|
|
|
|
|
|
|
|
@focus="customserChange"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
@ -195,6 +199,7 @@
|
|
|
|
:data-source="truckerDataArr"
|
|
|
|
:data-source="truckerDataArr"
|
|
|
|
@select="truckerSelect"
|
|
|
|
@select="truckerSelect"
|
|
|
|
@change="truckerChange"
|
|
|
|
@change="truckerChange"
|
|
|
|
|
|
|
|
@focus="truckerChange"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
@ -213,6 +218,7 @@
|
|
|
|
:data-source="agentidDataArr"
|
|
|
|
:data-source="agentidDataArr"
|
|
|
|
@select="agentidSelect"
|
|
|
|
@select="agentidSelect"
|
|
|
|
@change="agentidChange"
|
|
|
|
@change="agentidChange"
|
|
|
|
|
|
|
|
@focus="agentidChange"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
@ -298,6 +304,7 @@
|
|
|
|
:data-source="portloadDataArr"
|
|
|
|
:data-source="portloadDataArr"
|
|
|
|
@select="portloadSelect"
|
|
|
|
@select="portloadSelect"
|
|
|
|
@change="portloadChange"
|
|
|
|
@change="portloadChange"
|
|
|
|
|
|
|
|
@focus="portloadChange"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
@ -327,6 +334,7 @@
|
|
|
|
:data-source="transportDataArr"
|
|
|
|
:data-source="transportDataArr"
|
|
|
|
@select="transportSelect"
|
|
|
|
@select="transportSelect"
|
|
|
|
@change="transportChange"
|
|
|
|
@change="transportChange"
|
|
|
|
|
|
|
|
@focus="transportChange"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
@ -356,6 +364,7 @@
|
|
|
|
:data-source="portdischargeDataArr"
|
|
|
|
:data-source="portdischargeDataArr"
|
|
|
|
@select="portdischargeSelect"
|
|
|
|
@select="portdischargeSelect"
|
|
|
|
@change="portdischargeChange"
|
|
|
|
@change="portdischargeChange"
|
|
|
|
|
|
|
|
@focus="portdischargeChange"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
@ -385,6 +394,7 @@
|
|
|
|
:data-source="destinationDataArr"
|
|
|
|
:data-source="destinationDataArr"
|
|
|
|
@select="destinationSelect"
|
|
|
|
@select="destinationSelect"
|
|
|
|
@change="destinationChange"
|
|
|
|
@change="destinationChange"
|
|
|
|
|
|
|
|
@focus="destinationChange"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
@ -414,6 +424,7 @@
|
|
|
|
:data-source="placedeliveryDataArr"
|
|
|
|
:data-source="placedeliveryDataArr"
|
|
|
|
@select="placedeliverySelect"
|
|
|
|
@select="placedeliverySelect"
|
|
|
|
@change="placedeliveryChange"
|
|
|
|
@change="placedeliveryChange"
|
|
|
|
|
|
|
|
@focus="placedeliveryChange"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
@ -443,6 +454,7 @@
|
|
|
|
:data-source="placereceiptDataArr"
|
|
|
|
:data-source="placereceiptDataArr"
|
|
|
|
@select="placereceiptSelect"
|
|
|
|
@select="placereceiptSelect"
|
|
|
|
@change="placereceiptChange"
|
|
|
|
@change="placereceiptChange"
|
|
|
|
|
|
|
|
@focus="placereceiptChange"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
@ -483,6 +495,7 @@
|
|
|
|
:data-source="kindpkgsDataArr"
|
|
|
|
:data-source="kindpkgsDataArr"
|
|
|
|
@select="kindpkgsSelect"
|
|
|
|
@select="kindpkgsSelect"
|
|
|
|
@change="kindpkgsChange"
|
|
|
|
@change="kindpkgsChange"
|
|
|
|
|
|
|
|
@focus="kindpkgsChange"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
@ -666,7 +679,6 @@ export default {
|
|
|
|
watch: {
|
|
|
|
watch: {
|
|
|
|
details: {
|
|
|
|
details: {
|
|
|
|
handler(nval, oval) {
|
|
|
|
handler(nval, oval) {
|
|
|
|
// console.log('数据改变', nval)
|
|
|
|
|
|
|
|
this.$emit('changeDetail', {
|
|
|
|
this.$emit('changeDetail', {
|
|
|
|
detail: nval,
|
|
|
|
detail: nval,
|
|
|
|
type: 'mailingInfo'
|
|
|
|
type: 'mailingInfo'
|
|
|
@ -864,9 +876,11 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
mounted() {
|
|
|
|
const shipperScroll = document.getElementById('shipper-scroll')
|
|
|
|
const shipperScroll = document.getElementById('shipper-scroll')
|
|
|
|
shipperScroll.addEventListener('scroll', () => {
|
|
|
|
if (shipperScroll) {
|
|
|
|
document.getElementById('shipper-scroll-right').scrollTop = shipperScroll.scrollTop
|
|
|
|
shipperScroll.addEventListener('scroll', () => {
|
|
|
|
})
|
|
|
|
document.getElementById('shipper-scroll-right').scrollTop = shipperScroll.scrollTop
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
const consigneeScroll = document.getElementById('consignee-scroll')
|
|
|
|
const consigneeScroll = document.getElementById('consignee-scroll')
|
|
|
|
consigneeScroll.addEventListener('scroll', () => {
|
|
|
|
consigneeScroll.addEventListener('scroll', () => {
|
|
|
|
document.getElementById('consignee-scroll-right').scrollTop = consigneeScroll.scrollTop
|
|
|
|
document.getElementById('consignee-scroll-right').scrollTop = consigneeScroll.scrollTop
|
|
|
@ -956,8 +970,7 @@ export default {
|
|
|
|
// 场站 - start
|
|
|
|
// 场站 - start
|
|
|
|
getYardlist(name = '') {
|
|
|
|
getYardlist(name = '') {
|
|
|
|
GetYardlist({
|
|
|
|
GetYardlist({
|
|
|
|
Name: name,
|
|
|
|
keyword: name
|
|
|
|
keyword: ''
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.then(res => {
|
|
|
|
.then(res => {
|
|
|
|
if (res.code === 200) {
|
|
|
|
if (res.code === 200) {
|
|
|
@ -990,7 +1003,6 @@ export default {
|
|
|
|
handleYardChange(index) {
|
|
|
|
handleYardChange(index) {
|
|
|
|
this.details.yard = this.yardSelectData[index].name
|
|
|
|
this.details.yard = this.yardSelectData[index].name
|
|
|
|
this.details.yardid = this.yardSelectData[index].code
|
|
|
|
this.details.yardid = this.yardSelectData[index].code
|
|
|
|
console.log(this.details.yard, this.details.yardid)
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
filterOption(input, option) {
|
|
|
|
filterOption(input, option) {
|
|
|
|
return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
@ -1000,7 +1012,7 @@ export default {
|
|
|
|
// 起始港 ( 装货港 / 收货地) - start
|
|
|
|
// 起始港 ( 装货港 / 收货地) - start
|
|
|
|
getPortloadlist(name = '', type) {
|
|
|
|
getPortloadlist(name = '', type) {
|
|
|
|
GetPortloadlist({
|
|
|
|
GetPortloadlist({
|
|
|
|
Name: name
|
|
|
|
KeyWord: name
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.then(res => {
|
|
|
|
.then(res => {
|
|
|
|
if (res.code === 200) {
|
|
|
|
if (res.code === 200) {
|
|
|
@ -1014,6 +1026,10 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
portloadSelect(value) {
|
|
|
|
portloadSelect(value) {
|
|
|
|
this.details.portload = value
|
|
|
|
this.details.portload = value
|
|
|
|
|
|
|
|
this.details.issueplace = value
|
|
|
|
|
|
|
|
if (!this.details.prepardat) {
|
|
|
|
|
|
|
|
this.details.prepardat = value
|
|
|
|
|
|
|
|
}
|
|
|
|
const index = this.portloadDataArr.indexOf(value)
|
|
|
|
const index = this.portloadDataArr.indexOf(value)
|
|
|
|
this.details.portloadid = this.portloadData[index].ediCode
|
|
|
|
this.details.portloadid = this.portloadData[index].ediCode
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -1033,7 +1049,7 @@ export default {
|
|
|
|
// 目的港 ( 卸货港 / 中转港 / 目的地 / 交货地) - start
|
|
|
|
// 目的港 ( 卸货港 / 中转港 / 目的地 / 交货地) - start
|
|
|
|
getPortlist(name = '', type) {
|
|
|
|
getPortlist(name = '', type) {
|
|
|
|
GetPortlist({
|
|
|
|
GetPortlist({
|
|
|
|
Name: name
|
|
|
|
KeyWord: name
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.then(res => {
|
|
|
|
.then(res => {
|
|
|
|
if (res.code === 200) {
|
|
|
|
if (res.code === 200) {
|
|
|
@ -1048,6 +1064,9 @@ export default {
|
|
|
|
// 卸货港
|
|
|
|
// 卸货港
|
|
|
|
portdischargeSelect(value) {
|
|
|
|
portdischargeSelect(value) {
|
|
|
|
this.details.portdischarge = value
|
|
|
|
this.details.portdischarge = value
|
|
|
|
|
|
|
|
if (!this.details.payableat) {
|
|
|
|
|
|
|
|
this.details.payableat = value
|
|
|
|
|
|
|
|
}
|
|
|
|
const index = this.portdischargeDataArr.indexOf(value)
|
|
|
|
const index = this.portdischargeDataArr.indexOf(value)
|
|
|
|
this.details.portdischargeid = this.portdischargeData[index].ediCode
|
|
|
|
this.details.portdischargeid = this.portdischargeData[index].ediCode
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -1086,7 +1105,7 @@ export default {
|
|
|
|
// 包装 - start
|
|
|
|
// 包装 - start
|
|
|
|
getPackage(name = '') {
|
|
|
|
getPackage(name = '') {
|
|
|
|
GetPackage({
|
|
|
|
GetPackage({
|
|
|
|
Name: name
|
|
|
|
KeyWord: name
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.then(res => {
|
|
|
|
.then(res => {
|
|
|
|
if (res.code === 200) {
|
|
|
|
if (res.code === 200) {
|
|
|
@ -1115,7 +1134,6 @@ export default {
|
|
|
|
.then(res => {
|
|
|
|
.then(res => {
|
|
|
|
if (res.code === 200) {
|
|
|
|
if (res.code === 200) {
|
|
|
|
this[`${type}Data`] = res.data.rows
|
|
|
|
this[`${type}Data`] = res.data.rows
|
|
|
|
console.log(this[`${type}DataArr`])
|
|
|
|
|
|
|
|
this.$forceUpdate()
|
|
|
|
this.$forceUpdate()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -1194,7 +1212,6 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
changeCodeRemove(num, type) {
|
|
|
|
changeCodeRemove(num, type) {
|
|
|
|
const newStr = this.details[type].replace(/\n|\r/g, '')
|
|
|
|
const newStr = this.details[type].replace(/\n|\r/g, '')
|
|
|
|
console.log(newStr)
|
|
|
|
|
|
|
|
const indexs = []
|
|
|
|
const indexs = []
|
|
|
|
let count = 0
|
|
|
|
let count = 0
|
|
|
|
for (let i = 0; i < newStr.length - 1; i++) {
|
|
|
|
for (let i = 0; i < newStr.length - 1; i++) {
|
|
|
@ -1208,9 +1225,7 @@ export default {
|
|
|
|
let resStr = ``
|
|
|
|
let resStr = ``
|
|
|
|
splitPosition.map((split, sindex) => {
|
|
|
|
splitPosition.map((split, sindex) => {
|
|
|
|
const start = sindex === 0 ? 0 : splitPosition[sindex - 1]
|
|
|
|
const start = sindex === 0 ? 0 : splitPosition[sindex - 1]
|
|
|
|
console.log(sindex, start, newStr.slice(start, split))
|
|
|
|
|
|
|
|
if (sindex === splitPosition.length - 1) {
|
|
|
|
if (sindex === splitPosition.length - 1) {
|
|
|
|
console.log('last', newStr.slice(start, split), newStr.slice(split))
|
|
|
|
|
|
|
|
resStr += `${newStr.slice(start, split)}
|
|
|
|
resStr += `${newStr.slice(start, split)}
|
|
|
|
${newStr.slice(split)}`
|
|
|
|
${newStr.slice(split)}`
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|