|
|
|
@ -60,9 +60,11 @@
|
|
|
|
|
</span>
|
|
|
|
|
<div>
|
|
|
|
|
<p>
|
|
|
|
|
<a-icon type="edit" @click="handleOpenAtd(1)" />
|
|
|
|
|
<span>ETA:</span><span>{{ handleTime(details.startETA) }}</span>
|
|
|
|
|
</p>
|
|
|
|
|
<p>
|
|
|
|
|
<a-icon type="edit" @click="handleOpenAtd(2)" />
|
|
|
|
|
<span>ATA:</span><span>{{ handleTime(details.startATA) }}</span>
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
@ -71,9 +73,11 @@
|
|
|
|
|
<span> </span>
|
|
|
|
|
<div>
|
|
|
|
|
<p>
|
|
|
|
|
<a-icon type="edit" @click="handleOpenAtd(3)" />
|
|
|
|
|
<span>ETD:</span><span>{{ handleTime(details.ygtETD) }}</span>
|
|
|
|
|
</p>
|
|
|
|
|
<p @click="handleOpenAtd" style="cursor: pointer;">
|
|
|
|
|
<p style="cursor: pointer;">
|
|
|
|
|
<a-icon type="edit" @click="handleOpenAtd(4)" />
|
|
|
|
|
<span>ATD:</span><span>{{ handleTime(details.atd) }}</span>
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
@ -378,7 +382,7 @@
|
|
|
|
|
</a-spin>>
|
|
|
|
|
</a-modal>
|
|
|
|
|
<a-modal
|
|
|
|
|
title="实际开船日期"
|
|
|
|
|
:title="Cqtitle"
|
|
|
|
|
:width="600"
|
|
|
|
|
:visible="atdFlag"
|
|
|
|
|
:maskClosable="false"
|
|
|
|
@ -395,7 +399,7 @@
|
|
|
|
|
cancel-text="取消"
|
|
|
|
|
@confirm="handleSubimtAtd"
|
|
|
|
|
>
|
|
|
|
|
<a-button type="primary" >确定</a-button>
|
|
|
|
|
<a-button type="primary" style="color: white;" >确定</a-button>
|
|
|
|
|
</a-popconfirm>
|
|
|
|
|
</template>
|
|
|
|
|
</a-modal>
|
|
|
|
@ -462,9 +466,11 @@ export default {
|
|
|
|
|
fileModelconfirm: false,
|
|
|
|
|
authorization: 'authorization-text',
|
|
|
|
|
file: {},
|
|
|
|
|
Cqtitle: '',
|
|
|
|
|
upFileList: [],
|
|
|
|
|
uploading: false,
|
|
|
|
|
realTimePercent: null,
|
|
|
|
|
CqType: 0,
|
|
|
|
|
bookingServiceItem: [],
|
|
|
|
|
atdLoading: false,
|
|
|
|
|
booGoodsStatusItem: [],
|
|
|
|
@ -547,20 +553,47 @@ export default {
|
|
|
|
|
handleCancel() {
|
|
|
|
|
this.roleFlag = false
|
|
|
|
|
},
|
|
|
|
|
handleOpenAtd() {
|
|
|
|
|
handleOpenAtd(type) {
|
|
|
|
|
this.atdFlag = true
|
|
|
|
|
this.atdTime = JSON.parse(JSON.stringify(this.details)).atd
|
|
|
|
|
this.CqType = type
|
|
|
|
|
if (type === 1) {
|
|
|
|
|
this.Cqtitle = 'ETA'
|
|
|
|
|
this.atdTime = JSON.parse(JSON.stringify(this.details)).startETA
|
|
|
|
|
}
|
|
|
|
|
if (type === 2) {
|
|
|
|
|
this.Cqtitle = 'ATA'
|
|
|
|
|
this.atdTime = JSON.parse(JSON.stringify(this.details)).startATA
|
|
|
|
|
}
|
|
|
|
|
if (type === 3) {
|
|
|
|
|
this.Cqtitle = 'ETD'
|
|
|
|
|
this.atdTime = JSON.parse(JSON.stringify(this.details)).ygtETD
|
|
|
|
|
}
|
|
|
|
|
if (type === 4) {
|
|
|
|
|
this.Cqtitle = 'ATD'
|
|
|
|
|
this.atdTime = JSON.parse(JSON.stringify(this.details)).atd
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
handleSubimtAtd() {
|
|
|
|
|
const data = {
|
|
|
|
|
atd: this.atdTime,
|
|
|
|
|
Id: this.details.id
|
|
|
|
|
}
|
|
|
|
|
if (this.CqType === 1) {
|
|
|
|
|
data.startETA = this.atdTime
|
|
|
|
|
}
|
|
|
|
|
if (this.CqType === 2) {
|
|
|
|
|
data.startATA = this.atdTime
|
|
|
|
|
}
|
|
|
|
|
if (this.CqType === 3) {
|
|
|
|
|
data.ygtETD = this.atdTime
|
|
|
|
|
}
|
|
|
|
|
if (this.CqType === 4) {
|
|
|
|
|
data.atd = this.atdTime
|
|
|
|
|
}
|
|
|
|
|
this.atdLoading = true
|
|
|
|
|
SaveDataInList(data).then(res => {
|
|
|
|
|
if (res.success) {
|
|
|
|
|
this.$message.success('修改成功')
|
|
|
|
|
this.$emit('changeAtd', this.atdTime)
|
|
|
|
|
this.$emit('changeAtd', this.atdTime, this.CqType)
|
|
|
|
|
this.$store.commit('SET_SAVENEEDNUMBER', this.details.id)
|
|
|
|
|
this.atdFlag = false
|
|
|
|
|
} else {
|
|
|
|
|