|
|
|
@ -281,7 +281,21 @@
|
|
|
|
|
:wrapperCol="{ xs: { span: 24 }, sm: { span: 15 } }"
|
|
|
|
|
has-feedback
|
|
|
|
|
>
|
|
|
|
|
{{ details.yard || '--' }}
|
|
|
|
|
<!-- {{ details.yard || '--' }} -->
|
|
|
|
|
<a-select
|
|
|
|
|
class="customer-input"
|
|
|
|
|
style="width:195px;"
|
|
|
|
|
:default-value="initCabinFrom.yard"
|
|
|
|
|
v-model="initCabinFrom.yard"
|
|
|
|
|
@change="handleYardChange"
|
|
|
|
|
show-search
|
|
|
|
|
:filter-option="filterOption"
|
|
|
|
|
:dropdownMatchSelectWidth="false"
|
|
|
|
|
>
|
|
|
|
|
<a-select-option v-for="(yard, yindex) in yardSelectData" :key="yindex" :value="yindex">
|
|
|
|
|
{{ yard.selectShowTab }}
|
|
|
|
|
</a-select-option>
|
|
|
|
|
</a-select>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="8">
|
|
|
|
@ -291,7 +305,7 @@
|
|
|
|
|
:wrapperCol="{ xs: { span: 24 }, sm: { span: 15 } }"
|
|
|
|
|
has-feedback
|
|
|
|
|
>
|
|
|
|
|
{{ details.yardcontract || '--' }}
|
|
|
|
|
<a-input class="box-input" style="width:195px;" :allowClear="true" v-model="initCabinFrom.yardcontract" />
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="8">
|
|
|
|
@ -301,7 +315,7 @@
|
|
|
|
|
:wrapperCol="{ xs: { span: 24 }, sm: { span: 15 } }"
|
|
|
|
|
has-feedback
|
|
|
|
|
>
|
|
|
|
|
{{ details.yardcontracttel || '--' }}
|
|
|
|
|
<a-input class="box-input" style="width:195px;" :allowClear="true" v-model="initCabinFrom.yardcontracttel" />
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="8">
|
|
|
|
@ -311,7 +325,16 @@
|
|
|
|
|
:wrapperCol="{ xs: { span: 24 }, sm: { span: 15 } }"
|
|
|
|
|
has-feedback
|
|
|
|
|
>
|
|
|
|
|
{{ details.closingdate || '--' }}
|
|
|
|
|
<!-- {{ details.closingdate || '--' }} -->
|
|
|
|
|
<a-date-picker
|
|
|
|
|
show-time
|
|
|
|
|
style="width:120px;"
|
|
|
|
|
format="YYYY-MM-DD HH:mm:ss"
|
|
|
|
|
v-model="initCabinFrom.closingTime"
|
|
|
|
|
@change="closingdateChange"
|
|
|
|
|
>
|
|
|
|
|
<a-icon slot="suffixIcon" type="time" style="display: none" />
|
|
|
|
|
</a-date-picker>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="8">
|
|
|
|
@ -321,7 +344,16 @@
|
|
|
|
|
:wrapperCol="{ xs: { span: 24 }, sm: { span: 15 } }"
|
|
|
|
|
has-feedback
|
|
|
|
|
>
|
|
|
|
|
{{ details.closedocdate || '--' }}
|
|
|
|
|
<!-- {{ details.closedocdate || '--' }} -->
|
|
|
|
|
<a-date-picker
|
|
|
|
|
show-time
|
|
|
|
|
style="width:120px;"
|
|
|
|
|
format="YYYY-MM-DD HH:mm:ss"
|
|
|
|
|
v-model="initCabinFrom.closeDocTime"
|
|
|
|
|
@change="closedocdateChange"
|
|
|
|
|
>
|
|
|
|
|
<a-icon slot="suffixIcon" type="time" style="display: none" />
|
|
|
|
|
</a-date-picker>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="8">
|
|
|
|
@ -331,7 +363,16 @@
|
|
|
|
|
:wrapperCol="{ xs: { span: 24 }, sm: { span: 15 } }"
|
|
|
|
|
has-feedback
|
|
|
|
|
>
|
|
|
|
|
{{ details.closevgmdate || '--' }}
|
|
|
|
|
<!-- {{ details.closevgmdate || '--' }} -->
|
|
|
|
|
<a-date-picker
|
|
|
|
|
show-time
|
|
|
|
|
style="width:120px;"
|
|
|
|
|
format="YYYY-MM-DD HH:mm:ss"
|
|
|
|
|
v-model="initCabinFrom.vgmTime"
|
|
|
|
|
@change="closevgmdateChange"
|
|
|
|
|
>
|
|
|
|
|
<a-icon slot="suffixIcon" type="time" style="display: none" />
|
|
|
|
|
</a-date-picker>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
</div>
|
|
|
|
@ -345,6 +386,7 @@
|
|
|
|
|
>
|
|
|
|
|
<div class="box-flex">
|
|
|
|
|
<a-input
|
|
|
|
|
class="remark-input"
|
|
|
|
|
style="width:1000px !important; text-align: left;"
|
|
|
|
|
:allowClear="true"
|
|
|
|
|
v-model="initCabinFrom.remark"
|
|
|
|
@ -652,7 +694,8 @@ import {
|
|
|
|
|
DownloadBookingOrClosingEDI,
|
|
|
|
|
DeleteLetterYard,
|
|
|
|
|
LetterYardPdf,
|
|
|
|
|
SendTrace
|
|
|
|
|
SendTrace,
|
|
|
|
|
GetYardlist
|
|
|
|
|
} from '@/api/modular/main/BookingLedger'
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
@ -756,6 +799,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
mounted() {
|
|
|
|
|
this.BCvData = [...this.CvData]
|
|
|
|
|
this.getYardlist()
|
|
|
|
|
},
|
|
|
|
|
watch: {
|
|
|
|
|
scale() {
|
|
|
|
@ -981,7 +1025,14 @@ export default {
|
|
|
|
|
urlVgm: '',
|
|
|
|
|
urlVgmSi: ''
|
|
|
|
|
},
|
|
|
|
|
remark: ''
|
|
|
|
|
remark: '',
|
|
|
|
|
yard: this.details.yard,
|
|
|
|
|
yardid: this.details.yardid,
|
|
|
|
|
closeDocTime: this.details.closedocdate,
|
|
|
|
|
closingTime: this.details.closingdate,
|
|
|
|
|
vgmTime: this.details.closevgmdate,
|
|
|
|
|
yardcontract: this.details.yardcontract,
|
|
|
|
|
yardcontracttel: this.details.yardcontracttel
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (type === 'initCabin') {
|
|
|
|
@ -1322,18 +1373,20 @@ export default {
|
|
|
|
|
|
|
|
|
|
// 保存放舱
|
|
|
|
|
saveBookingLetteryard() {
|
|
|
|
|
console.log('=== 放舱 ===', this.initCabinFrom)
|
|
|
|
|
// if (!this.id) {
|
|
|
|
|
this.initCabinFrom = {
|
|
|
|
|
...this.initCabinFrom,
|
|
|
|
|
...{
|
|
|
|
|
closeDocTime: this.details.closedocdate,
|
|
|
|
|
closingTime: this.details.closingdate,
|
|
|
|
|
vgmTime: this.details.closevgmdate,
|
|
|
|
|
yardcontract: this.details.yardcontract,
|
|
|
|
|
yardcontracttel: this.details.yardcontracttel
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// this.initCabinFrom = {
|
|
|
|
|
// ...this.initCabinFrom,
|
|
|
|
|
// ...{
|
|
|
|
|
// closeDocTime: this.details.closedocdate,
|
|
|
|
|
// closingTime: this.details.closingdate,
|
|
|
|
|
// vgmTime: this.details.closevgmdate,
|
|
|
|
|
// yardcontract: this.details.yardcontract,
|
|
|
|
|
// yardcontracttel: this.details.yardcontracttel
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
debugger
|
|
|
|
|
SaveBookingLetteryard(this.initCabinFrom)
|
|
|
|
|
.then(res => {
|
|
|
|
|
if (res.success) {
|
|
|
|
@ -1514,6 +1567,52 @@ export default {
|
|
|
|
|
.catch(err => {
|
|
|
|
|
console.log(err)
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
getYardlist(name = '') {
|
|
|
|
|
GetYardlist({
|
|
|
|
|
keyword: name
|
|
|
|
|
})
|
|
|
|
|
.then(res => {
|
|
|
|
|
if (res.code === 200) {
|
|
|
|
|
this.yardData = res.data
|
|
|
|
|
const arr = []
|
|
|
|
|
res.data.map((item, index) => {
|
|
|
|
|
arr.push({
|
|
|
|
|
...{ selectShowTab: item.name + ' / ' + item.code },
|
|
|
|
|
...item
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
this.yardSelectData = arr
|
|
|
|
|
this.$forceUpdate()
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch(err => {
|
|
|
|
|
console.log(err)
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
yardSelect(value) {
|
|
|
|
|
this.details.yard = value
|
|
|
|
|
const index = this.yardDataArr.indexOf(value)
|
|
|
|
|
this.details.yardid = this.yardData[index].code
|
|
|
|
|
},
|
|
|
|
|
yardChange(value) {
|
|
|
|
|
// this.getYardlist(value)
|
|
|
|
|
},
|
|
|
|
|
handleYardChange(index) {
|
|
|
|
|
this.initCabinFrom.yard = this.yardSelectData[index].name
|
|
|
|
|
this.initCabinFrom.yardid = this.yardSelectData[index].code
|
|
|
|
|
},
|
|
|
|
|
filterOption(input, option) {
|
|
|
|
|
return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
},
|
|
|
|
|
closingdateChange (date, dateString) {
|
|
|
|
|
this.initCabinFrom.closingTime = dateString
|
|
|
|
|
},
|
|
|
|
|
closevgmdateChange (date, dateString) {
|
|
|
|
|
this.initCabinFrom.vgmTime = dateString
|
|
|
|
|
},
|
|
|
|
|
closedocdateChange (date, dateString) {
|
|
|
|
|
this.initCabinFrom.closeDocTime = dateString
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -1771,6 +1870,66 @@ export default {
|
|
|
|
|
opacity: 0.04;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/deep/ .ant-select-selection{
|
|
|
|
|
position: relative;
|
|
|
|
|
z-index: 1;
|
|
|
|
|
&::after {
|
|
|
|
|
content: '';
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
z-index: -1;
|
|
|
|
|
background-color: @primary-color !important;
|
|
|
|
|
opacity: 0.04;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/deep/ .ant-calendar-picker{
|
|
|
|
|
position: relative;
|
|
|
|
|
z-index: 1;
|
|
|
|
|
&::after {
|
|
|
|
|
content: '';
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
z-index: -1;
|
|
|
|
|
background-color: @primary-color !important;
|
|
|
|
|
opacity: 0.04;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/deep/ .ant-input-affix-wrapper, .ant-input-affix-wrapper-textarea-with-clear-btn{
|
|
|
|
|
position: relative;
|
|
|
|
|
z-index: 1;
|
|
|
|
|
&::after {
|
|
|
|
|
content: '';
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
z-index: -1;
|
|
|
|
|
background-color: @primary-color !important;
|
|
|
|
|
opacity: 0.04;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.remark-input{
|
|
|
|
|
position: relative;
|
|
|
|
|
z-index: 1;
|
|
|
|
|
&::after {
|
|
|
|
|
content: '';
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
z-index: -1;
|
|
|
|
|
background-color: @primary-color !important;
|
|
|
|
|
opacity: 0.04;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/deep/ .ant-modal-body .ant-input {
|
|
|
|
|
background: none;
|
|
|
|
|
}
|
|
|
|
|