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