|
|
@ -131,13 +131,25 @@
|
|
|
|
<div class="model-btn-list" v-if="modelType === 'initCabin'">
|
|
|
|
<div class="model-btn-list" v-if="modelType === 'initCabin'">
|
|
|
|
<a-button class="btn" @click="saveModel" :loading="SaveLoading">保存</a-button>
|
|
|
|
<a-button class="btn" @click="saveModel" :loading="SaveLoading">保存</a-button>
|
|
|
|
<a-button class="btn" type="primary" @click="sendModel" :loading="SendLoading">发送</a-button>
|
|
|
|
<a-button class="btn" type="primary" @click="sendModel" :loading="SendLoading">发送</a-button>
|
|
|
|
<a-button class="btn" type="primary" @click="removeModel" :loading="DelLoading" v-if="['initCabin'].includes(modelType)">
|
|
|
|
<a-button
|
|
|
|
|
|
|
|
class="btn"
|
|
|
|
|
|
|
|
type="primary"
|
|
|
|
|
|
|
|
@click="removeModel"
|
|
|
|
|
|
|
|
:loading="DelLoading"
|
|
|
|
|
|
|
|
v-if="['initCabin'].includes(modelType)"
|
|
|
|
|
|
|
|
>
|
|
|
|
删除
|
|
|
|
删除
|
|
|
|
</a-button>
|
|
|
|
</a-button>
|
|
|
|
<template v-if="modelType === 'initCabin'">
|
|
|
|
<template v-if="modelType === 'initCabin'">
|
|
|
|
<a-button class="btn" type="primary" @click="downLoadFile(2, 'EXCEL')" :loading="downLoadEXCELLoading">EXCEL</a-button>
|
|
|
|
<a-button class="btn" type="primary" @click="downLoadFile(2, 'EXCEL')" :loading="downLoadEXCELLoading"
|
|
|
|
<a-button class="btn" type="primary" @click="downLoadFile(1, 'PDF')" :loading="downLoadPDFLoading">PDF</a-button>
|
|
|
|
>EXCEL</a-button
|
|
|
|
<a-button class="btn" type="primary" @click="downLoadFile(3, 'DOCX')" :loading="downLoadDOCXLoading">DOCX</a-button>
|
|
|
|
>
|
|
|
|
|
|
|
|
<a-button class="btn" type="primary" @click="downLoadFile(1, 'PDF')" :loading="downLoadPDFLoading"
|
|
|
|
|
|
|
|
>PDF</a-button
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<a-button class="btn" type="primary" @click="downLoadFile(3, 'DOCX')" :loading="downLoadDOCXLoading"
|
|
|
|
|
|
|
|
>DOCX</a-button
|
|
|
|
|
|
|
|
>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<a-form>
|
|
|
|
<a-form>
|
|
|
@ -504,7 +516,7 @@
|
|
|
|
</a-form>
|
|
|
|
</a-form>
|
|
|
|
<template slot="footer">
|
|
|
|
<template slot="footer">
|
|
|
|
<template v-if="['initCabin'].includes(modelType)">
|
|
|
|
<template v-if="['initCabin'].includes(modelType)">
|
|
|
|
<a-button @click="handleModelCancel" >关闭</a-button>
|
|
|
|
<a-button @click="handleModelCancel">关闭</a-button>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template v-else>
|
|
|
|
<template v-else>
|
|
|
|
<a-button @click="saveModel" :loading="SaveLoading">保存</a-button>
|
|
|
|
<a-button @click="saveModel" :loading="SaveLoading">保存</a-button>
|
|
|
@ -744,14 +756,6 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
mounted() {
|
|
|
|
this.BCvData = [...this.CvData]
|
|
|
|
this.BCvData = [...this.CvData]
|
|
|
|
BookingOrderPrintTemplateList().then(res => {
|
|
|
|
|
|
|
|
this.templateType = []
|
|
|
|
|
|
|
|
res.data.forEach(item => {
|
|
|
|
|
|
|
|
if (item.isMain) {
|
|
|
|
|
|
|
|
this.templateType.push(item)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
watch: {
|
|
|
|
watch: {
|
|
|
|
scale() {
|
|
|
|
scale() {
|
|
|
@ -887,6 +891,15 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// ========== 订舱打印 ==========
|
|
|
|
// ========== 订舱打印 ==========
|
|
|
|
FSnhowPrintModal() {
|
|
|
|
FSnhowPrintModal() {
|
|
|
|
|
|
|
|
BookingOrderPrintTemplateList().then(res => {
|
|
|
|
|
|
|
|
console.log(res.data)
|
|
|
|
|
|
|
|
this.templateType = []
|
|
|
|
|
|
|
|
res.data.forEach(item => {
|
|
|
|
|
|
|
|
if (item.isMain) {
|
|
|
|
|
|
|
|
this.templateType.push(item)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
})
|
|
|
|
this.PrintModalVisible = true
|
|
|
|
this.PrintModalVisible = true
|
|
|
|
},
|
|
|
|
},
|
|
|
|
FnCilckTemplateType(typeCode) {
|
|
|
|
FnCilckTemplateType(typeCode) {
|
|
|
@ -1477,14 +1490,14 @@ export default {
|
|
|
|
return false
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const query = {
|
|
|
|
const query = {
|
|
|
|
businessId: this.$route.query.id,
|
|
|
|
businessId: this.$route.query.id,
|
|
|
|
mblno: this.details.mblno,
|
|
|
|
mblno: this.details.mblno,
|
|
|
|
yard: this.traceValue.includes('1') ? this.details.yard : '',
|
|
|
|
yard: this.traceValue.includes('1') ? this.details.yard : '',
|
|
|
|
yardCode: this.traceValue.includes('1') ? this.details.yardid : '',
|
|
|
|
yardCode: this.traceValue.includes('1') ? this.details.yardid : '',
|
|
|
|
carrierid: this.traceValue.includes('2') ? this.details.carrierid : '',
|
|
|
|
carrierid: this.traceValue.includes('2') ? this.details.carrierid : '',
|
|
|
|
carrier: this.traceValue.includes('2') ? this.details.carrier : '',
|
|
|
|
carrier: this.traceValue.includes('2') ? this.details.carrier : '',
|
|
|
|
isBook: !!this.traceValue.includes('2')
|
|
|
|
isBook: !!this.traceValue.includes('2')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
SendTrace([query])
|
|
|
|
SendTrace([query])
|
|
|
|
.then(res => {
|
|
|
|
.then(res => {
|
|
|
|
if (res.success) {
|
|
|
|
if (res.success) {
|
|
|
@ -1815,11 +1828,11 @@ export default {
|
|
|
|
.trace-check {
|
|
|
|
.trace-check {
|
|
|
|
margin-left: 10px;
|
|
|
|
margin-left: 10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.model-btn-list{
|
|
|
|
.model-btn-list {
|
|
|
|
margin-bottom:15px;
|
|
|
|
margin-bottom: 15px;
|
|
|
|
.btn{
|
|
|
|
.btn {
|
|
|
|
margin-right: 6px;
|
|
|
|
margin-right: 6px;
|
|
|
|
&.ant-btn-primary{
|
|
|
|
&.ant-btn-primary {
|
|
|
|
color: #fff;
|
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|