dev
张同海 2 years ago
parent 75fcf19190
commit ae1630d35e

@ -5,7 +5,7 @@
* @params PageSize * @params PageSize
* @params PageNo * @params PageNo
*/ */
export function BookingOrderPage (parameter) { export function BookingOrderPage(parameter) {
return axios({ return axios({
url: '/BookingOrder/page', url: '/BookingOrder/page',
method: 'get', method: 'get',
@ -17,7 +17,7 @@ export function BookingOrderPage (parameter) {
* 获取订舱明细 * 获取订舱明细
* @params Id * @params Id
*/ */
export function BookingOrderGet (parameter) { export function BookingOrderGet(parameter) {
return axios({ return axios({
url: '/BookingOrder/get', url: '/BookingOrder/get',
method: 'get', method: 'get',
@ -29,7 +29,7 @@ export function BookingOrderPage (parameter) {
* 获取分页查询客户 * 获取分页查询客户
* @params ShortName * @params ShortName
*/ */
export function DjyCustomerpage (parameter) { export function DjyCustomerpage(parameter) {
return axios({ return axios({
url: '/DjyCustomer/page', url: '/DjyCustomer/page',
method: 'get', method: 'get',
@ -41,7 +41,7 @@ export function BookingOrderPage (parameter) {
* 获取船公司 * 获取船公司
* @params CnName * @params CnName
*/ */
export function GetCarrierlist (parameter) { export function GetCarrierlist(parameter) {
return axios({ return axios({
url: '/commondb/carrierlist', url: '/commondb/carrierlist',
method: 'get', method: 'get',
@ -53,7 +53,7 @@ export function BookingOrderPage (parameter) {
* 获取船名 * 获取船名
* @params Name * @params Name
*/ */
export function GetVessellist (parameter) { export function GetVessellist(parameter) {
return axios({ return axios({
url: '/commondb/vessellist', url: '/commondb/vessellist',
method: 'get', method: 'get',
@ -65,7 +65,7 @@ export function BookingOrderPage (parameter) {
* 用户查询 * 用户查询
* @params Name * @params Name
*/ */
export function GetSysUserPage (parameter) { export function GetSysUserPage(parameter) {
return axios({ return axios({
url: '/sysUser/page', url: '/sysUser/page',
method: 'get', method: 'get',
@ -78,7 +78,7 @@ export function BookingOrderPage (parameter) {
* @params Type : 10, 20, 30, 40 * @params Type : 10, 20, 30, 40
* @params SearchValue * @params SearchValue
*/ */
export function BookingTemplate (parameter) { export function BookingTemplate(parameter) {
return axios({ return axios({
url: '/BookingTemplate/page', url: '/BookingTemplate/page',
method: 'get', method: 'get',
@ -90,7 +90,7 @@ export function BookingOrderPage (parameter) {
* 场站 * 场站
* @params SearchValue * @params SearchValue
*/ */
export function GetYardlist (parameter) { export function GetYardlist(parameter) {
return axios({ return axios({
url: '/commondb/yardlist', url: '/commondb/yardlist',
method: 'get', method: 'get',
@ -102,7 +102,7 @@ export function BookingOrderPage (parameter) {
* 起始港 * 起始港
* @params Name * @params Name
*/ */
export function GetPortloadlist (parameter) { export function GetPortloadlist(parameter) {
return axios({ return axios({
url: '/commondb/portloadlist', url: '/commondb/portloadlist',
method: 'get', method: 'get',
@ -114,7 +114,7 @@ export function BookingOrderPage (parameter) {
* 目的港 * 目的港
* @params Name * @params Name
*/ */
export function GetPortlist (parameter) { export function GetPortlist(parameter) {
return axios({ return axios({
url: '/commondb/portlist', url: '/commondb/portlist',
method: 'get', method: 'get',
@ -126,7 +126,7 @@ export function BookingOrderPage (parameter) {
* 包装 * 包装
* @params Name * @params Name
*/ */
export function GetPackage (parameter) { export function GetPackage(parameter) {
return axios({ return axios({
url: '/commondb/package', url: '/commondb/package',
method: 'get', method: 'get',
@ -138,7 +138,7 @@ export function BookingOrderPage (parameter) {
* 付费方式 * 付费方式
* @params Name * @params Name
*/ */
export function GetFrt (parameter) { export function GetFrt(parameter) {
return axios({ return axios({
url: '/commondb/frt', url: '/commondb/frt',
method: 'get', method: 'get',
@ -150,7 +150,7 @@ export function BookingOrderPage (parameter) {
* 付费方式 * 付费方式
* @params Name * @params Name
*/ */
export function GetService (parameter) { export function GetService(parameter) {
return axios({ return axios({
url: '/commondb/service', url: '/commondb/service',
method: 'get', method: 'get',
@ -162,7 +162,7 @@ export function BookingOrderPage (parameter) {
* 备注 * 备注
* @params id * @params id
*/ */
export function GetRemark (parameter) { export function GetRemark(parameter) {
return axios({ return axios({
url: '/BookingOrder/getRemark', url: '/BookingOrder/getRemark',
method: 'get', method: 'get',
@ -177,7 +177,7 @@ export function BookingOrderPage (parameter) {
"remark": "string" "remark": "string"
} }
*/ */
export function AddRemark (parameter) { export function AddRemark(parameter) {
return axios({ return axios({
url: '/BookingOrder/addRemark', url: '/BookingOrder/addRemark',
method: 'post', method: 'post',
@ -189,13 +189,13 @@ export function BookingOrderPage (parameter) {
* 附件 * 附件
* @params id * @params id
*/ */
export function GetFile (parameter) { export function GetFile(parameter) {
return axios({ return axios({
url: '/BookingOrder/getFile', url: '/BookingOrder/getFile',
method: 'get', method: 'get',
params: parameter params: parameter
}) })
} }
/** /**
* 新增附件 * 新增附件
@ -206,7 +206,7 @@ export function BookingOrderPage (parameter) {
"file": "string" "file": "string"
} }
*/ */
export function AddFile (parameter) { export function AddFile(parameter) {
return axios({ return axios({
url: '/BookingOrder/addFile', url: '/BookingOrder/addFile',
method: 'post', method: 'post',
@ -218,7 +218,7 @@ export function BookingOrderPage (parameter) {
* 获取货运动态 * 获取货运动态
* @params id * @params id
*/ */
export function GetBookingLog (parameter) { export function GetBookingLog(parameter) {
return axios({ return axios({
url: `/BookingOrder/GetStatusLog`, url: `/BookingOrder/GetStatusLog`,
method: 'get', method: 'get',
@ -230,7 +230,7 @@ export function BookingOrderPage (parameter) {
* 日志明细 * 日志明细
* @params id * @params id
*/ */
export function GetLog (parameter) { export function GetLog(parameter) {
return axios({ return axios({
url: '/BookingOrder/getLog', url: '/BookingOrder/getLog',
method: 'get', method: 'get',
@ -242,7 +242,7 @@ export function BookingOrderPage (parameter) {
* 获取箱型 * 获取箱型
* @params id * @params id
*/ */
export function GetCtn (parameter) { export function GetCtn(parameter) {
return axios({ return axios({
url: '/commondb/ctn', url: '/commondb/ctn',
method: 'get', method: 'get',
@ -253,7 +253,7 @@ export function BookingOrderPage (parameter) {
/** /**
* 更新订舱 * 更新订舱
*/ */
export function BookingOrderUpdate (parameter) { export function BookingOrderUpdate(parameter) {
return axios({ return axios({
url: '/BookingOrder/Update', url: '/BookingOrder/Update',
method: 'post', method: 'post',
@ -264,7 +264,7 @@ export function BookingOrderPage (parameter) {
/** /**
* 新增订舱 * 新增订舱
*/ */
export function BookingOrderAdd (parameter) { export function BookingOrderAdd(parameter) {
return axios({ return axios({
url: '/BookingOrder/Add', url: '/BookingOrder/Add',
method: 'post', method: 'post',
@ -275,7 +275,7 @@ export function BookingOrderPage (parameter) {
/** /**
* 增加订舱模板 * 增加订舱模板
*/ */
export function BookingTemplateAdd (parameter) { export function BookingTemplateAdd(parameter) {
return axios({ return axios({
url: '/BookingTemplate/add', url: '/BookingTemplate/add',
method: 'post', method: 'post',
@ -287,7 +287,7 @@ export function BookingOrderPage (parameter) {
* 签单方式 * 签单方式
* @params name * @params name
*/ */
export function Codeissuetypelist (parameter) { export function Codeissuetypelist(parameter) {
return axios({ return axios({
url: '/commondb/codeissuetypelist', url: '/commondb/codeissuetypelist',
method: 'get', method: 'get',
@ -300,7 +300,7 @@ export function BookingOrderPage (parameter) {
* @params bookingId * @params bookingId
* @params isWeb * @params isWeb
*/ */
export function GetYardData (parameter) { export function GetYardData(parameter) {
return axios({ return axios({
url: '/BookingOrder/GetYardData', url: '/BookingOrder/GetYardData',
method: 'get', method: 'get',
@ -311,7 +311,7 @@ export function BookingOrderPage (parameter) {
/** /**
* 发送订舱截单EDI * 发送订舱截单EDI
*/ */
export function SendBookingOrClosingEDI (parameter) { export function SendBookingOrClosingEDI(parameter) {
return axios({ return axios({
url: '/BookingOrder/SendBookingOrClosingEDI', url: '/BookingOrder/SendBookingOrClosingEDI',
method: 'post', method: 'post',
@ -322,7 +322,7 @@ export function BookingOrderPage (parameter) {
/** /**
* 发送下货纸 * 发送下货纸
*/ */
export function SendXHZ (parameter) { export function SendXHZ(parameter) {
return axios({ return axios({
url: '/BookingOrder/SendXHZ?bookingId=' + parameter, url: '/BookingOrder/SendXHZ?bookingId=' + parameter,
method: 'post', method: 'post',
@ -333,7 +333,7 @@ export function BookingOrderPage (parameter) {
/** /**
* 直发VGM * 直发VGM
*/ */
export function VgmSend (parameter) { export function VgmSend(parameter) {
return axios({ return axios({
url: '/BookingOrder/VgmSend?bookingId=' + parameter, url: '/BookingOrder/VgmSend?bookingId=' + parameter,
method: 'post', method: 'post',
@ -344,7 +344,7 @@ export function BookingOrderPage (parameter) {
/** /**
* 获取放舱信息 * 获取放舱信息
*/ */
export function LetterYard (parameter) { export function LetterYard(parameter) {
return axios({ return axios({
url: '/BookingOrder/LetterYard?bookingId=' + parameter, url: '/BookingOrder/LetterYard?bookingId=' + parameter,
method: 'get', method: 'get',
@ -355,7 +355,7 @@ export function LetterYard (parameter) {
/** /**
* 保存新增或修改放舱 * 保存新增或修改放舱
*/ */
export function SaveBookingLetteryard (parameter) { export function SaveBookingLetteryard(parameter) {
return axios({ return axios({
url: '/BookingLetteryard/Save', url: '/BookingLetteryard/Save',
method: 'post', method: 'post',
@ -366,7 +366,7 @@ export function LetterYard (parameter) {
/** /**
* 放舱发送 * 放舱发送
*/ */
export function SendLetterYard (parameter) { export function SendLetterYard(parameter) {
return axios({ return axios({
url: '/BookingLetteryard/SendLetterYard?bookingId=' + parameter, url: '/BookingLetteryard/SendLetterYard?bookingId=' + parameter,
method: 'post', method: 'post',
@ -377,7 +377,7 @@ export function LetterYard (parameter) {
/** /**
* 样单 * 样单
*/ */
export function SampleBill (parameter) { export function SampleBill(parameter) {
return axios({ return axios({
url: '/BookingOrder/SampleBill?bookingId=' + parameter, url: '/BookingOrder/SampleBill?bookingId=' + parameter,
method: 'get', method: 'get',
@ -388,7 +388,7 @@ export function LetterYard (parameter) {
/** /**
* 保存新增或修改样单 * 保存新增或修改样单
*/ */
export function SaveBookingSampleBill (parameter) { export function SaveBookingSampleBill(parameter) {
return axios({ return axios({
url: '/BookingSampleBill/Save', url: '/BookingSampleBill/Save',
method: 'post', method: 'post',
@ -399,7 +399,7 @@ export function LetterYard (parameter) {
/** /**
* 获取VGMVGM SI链接 * 获取VGMVGM SI链接
*/ */
export function VgmLink (parameter) { export function VgmLink(parameter) {
return axios({ return axios({
url: '/BookingOrder/VgmLink?bookingId=' + parameter, url: '/BookingOrder/VgmLink?bookingId=' + parameter,
method: 'get', method: 'get',
@ -410,7 +410,7 @@ export function LetterYard (parameter) {
/** /**
* 获取样单pdf * 获取样单pdf
*/ */
export function SampleBillPdf (parameter) { export function SampleBillPdf(parameter) {
return axios({ return axios({
url: '/BookingOrder/SampleBillPdf?bookingId=' + parameter, url: '/BookingOrder/SampleBillPdf?bookingId=' + parameter,
method: 'get', method: 'get',
@ -421,7 +421,7 @@ export function LetterYard (parameter) {
/** /**
* 获取提箱小票链接 * 获取提箱小票链接
*/ */
export function TxxpLink (parameter) { export function TxxpLink(parameter) {
return axios({ return axios({
url: '/BookingOrder/TxxpLink?bookingId=' + parameter, url: '/BookingOrder/TxxpLink?bookingId=' + parameter,
method: 'get', method: 'get',
@ -432,7 +432,7 @@ export function LetterYard (parameter) {
/** /**
* 校验 * 校验
*/ */
export function ExcuteRulesOceanBooking (parameter) { export function ExcuteRulesOceanBooking(parameter) {
return axios({ return axios({
url: '/RulesEngineClient/ExcuteRulesOceanBooking?bookingId=' + parameter, url: '/RulesEngineClient/ExcuteRulesOceanBooking?bookingId=' + parameter,
method: 'get', method: 'get',
@ -444,10 +444,21 @@ export function LetterYard (parameter) {
* 付费方式 * 付费方式
* @params Name * @params Name
*/ */
export function GetForwarderlist (parameter) { export function GetForwarderlist(parameter) {
return axios({ return axios({
url: '/commondb/forwarderlist', url: '/commondb/forwarderlist',
method: 'get', method: 'get',
params: parameter params: parameter
}) })
} }
/**
* 打印
* @params Name
*/
export function BookingOrderPrint(parameter) {
return axios({
url: '/BookingOrder/Print',
method: 'get',
params: parameter
})
}

@ -326,7 +326,7 @@
> >
<template v-if="customerType === 'select'"> <template v-if="customerType === 'select'">
<div class="select-customer"> <div class="select-customer">
<ve-table <!-- <ve-table
:columns="columns" :columns="columns"
:table-data="tableData" :table-data="tableData"
borderY borderY
@ -335,7 +335,50 @@
rowKeyFieldName="rowKey" rowKeyFieldName="rowKey"
:rowStyleOption="rowStyleOption" :rowStyleOption="rowStyleOption"
:checkbox-option="checkboxOption" :checkbox-option="checkboxOption"
/> /> -->
<vxe-toolbar>
<template #buttons>
<vxe-button icon="vxe-icon-square-plus" @click="insertEvent()"></vxe-button>
<vxe-button @click="$refs.xTable.removeCheckboxRow()"></vxe-button>
<vxe-button icon="vxe-icon-save" @click="saveEvent"></vxe-button>
</template>
</vxe-toolbar>
<vxe-table
border
show-overflow
keep-source
ref="xTable"
max-height="400"
:data="tableData"
:edit-config="{ trigger: 'click', mode: 'cell', icon: 'vxe-icon-edit', showStatus: true }"
>
<vxe-column type="checkbox" width="60"></vxe-column>
<vxe-column field="name" title="联系人" :edit-render="{}">
<template #edit="{ row }">
<vxe-input v-model="row.name" type="text"></vxe-input>
</template>
</vxe-column>
<vxe-column field="email" title="邮箱">
<template #edit="{ row }">
<vxe-input v-model="row.email" type="text"></vxe-input>
</template>
</vxe-column>
<vxe-column field="tel" title="电话">
<template #edit="{ row }">
<vxe-input v-model="row.tel" type="text"></vxe-input>
</template>
</vxe-column>
<vxe-column field="remark" title="备注">
<template #edit="{ row }">
<vxe-input v-model="row.remark" type="text"></vxe-input>
</template>
</vxe-column>
<vxe-column field="roleCode" title="角色">
<template #edit="{ row }">
<vxe-input v-model="row.roleCode" type="text"></vxe-input>
</template>
</vxe-column>
</vxe-table>
</div> </div>
</template> </template>
<template v-else-if="customerType === 'add'"> <template v-else-if="customerType === 'add'">
@ -347,7 +390,7 @@
<script> <script>
import { XCard } from '@/components' import { XCard } from '@/components'
import { AutoComplete } from 'ant-design-vue' import { AutoComplete } from 'ant-design-vue'
import { DjyCustomerPage } from '@/api/modular/main/CustomerInformationManagement'
import { import {
DjyCustomerpage, DjyCustomerpage,
GetCarrierlist, GetCarrierlist,
@ -658,6 +701,26 @@ export default {
this.init() this.init()
}, },
methods: { methods: {
// ========== ==========
// ---------- ----------
async insertEvent(row) {
const $table = this.$refs.xTable
const record = {
sex: '1',
date12: '2021-01-01'
}
const { row: newRow } = await $table.insertAt(record, row)
await $table.setActiveCell(newRow, 'name')
},
// ---------- ----------
saveEvent() {
const $table = this.$refs.xTable
const { insertRecords, removeRecords, updateRecords } = $table.getRecordset()
VXETable.modal.alert(
`insertRecords=${insertRecords.length} removeRecords=${removeRecords.length} updateRecords=${updateRecords.length}`
)
},
// ==============================
init() { init() {
// this.getCustomer() // this.getCustomer()
// this.getCarrier() // this.getCarrier()
@ -669,6 +732,10 @@ export default {
// this.getUserList('op') // this.getUserList('op')
// this.getUserList('doc') // this.getUserList('doc')
// this.getUserList('custservice') // this.getUserList('custservice')
DjyCustomerPage({ pageSize: 999 }).then(res => {
console.log(res)
this.CustomerData = res.data.rows
})
if (this.details.etd) { if (this.details.etd) {
this.etdWeek = this.getWeek(this.details.etd) this.etdWeek = this.getWeek(this.details.etd)
} }

@ -487,29 +487,58 @@
</div> </div>
</a-modal> </a-modal>
<a-modal <a-modal
:title="yardType === 'add' ? '添加客户' : '关系人'" :title="yardType === 'remark' ? '场站备注' : '场站联系人'"
:width="1200" :width="1200"
:visible="yardVisible" :visible="yardVisible"
:confirmLoading="customerModelconfirm" @ok="ModelyardTypeOk"
@ok="handleModelSubmit" @cancel="ModelyardTypeCancel"
@cancel="handleModelCancel"
> >
<template v-if="yardType === 'select'"> <template v-if="yardType === 'remark'">
<div class="select-customer"> <div class="select-customer">
<ve-table <a-textarea v-model="details.yardremark" placeholder="场站备注" :auto-size="{ minRows: 3, maxRows: 5 }" />
:columns="columns"
:table-data="tableData"
borderY
:cell-autofill-option="cellAutofillOption"
:editOption="editOption"
rowKeyFieldName="rowKey"
:rowStyleOption="rowStyleOption"
:checkbox-option="checkboxOption"
/>
</div> </div>
</template> </template>
<template v-else-if="yardType === 'add'"> <template v-else-if="yardType === 'content'">
<div></div> <a-form>
<a-row>
<a-col :span="12">
<a-form-item
class="from-label"
label="联系人"
:labelCol="YardlabelCol"
:wrapperCol="YardwrapperCol"
has-feedback
style="overflow: visible;"
>
<a-input placeholder="请输入联系人" v-model="details.yardcontract" />
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item
class="from-label"
label="电话"
:labelCol="YardlabelCol"
:wrapperCol="YardwrapperCol"
has-feedback
style="overflow: visible;"
>
<a-input placeholder="请输入电话" v-model="details.yardcontracttel" />
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item
class="from-label"
label="邮箱"
:labelCol="YardlabelCol"
:wrapperCol="YardwrapperCol"
has-feedback
style="overflow: visible;"
>
<a-input placeholder="请输入邮箱" v-model="details.yardcontractemail" />
</a-form-item>
</a-col>
</a-row>
</a-form>
</template> </template>
</a-modal> </a-modal>
</a-collapse-panel> </a-collapse-panel>
@ -554,6 +583,16 @@ export default {
sm: { span: 15 }, sm: { span: 15 },
md: { span: 13 } md: { span: 13 }
}, },
YardlabelCol: {
xs: { span: 24 },
sm: { span: 1 },
md: { span: 4 }
},
YardwrapperCol: {
xs: { span: 24 },
sm: { span: 1 },
md: { span: 20 }
},
showKey: ['1'], showKey: ['1'],
// //
shipperData: [], // shipperData: [], //
@ -781,6 +820,7 @@ export default {
this.init() this.init()
}, },
methods: { methods: {
// ========== ==========
changeYard(type) { changeYard(type) {
if (type == 'remark') { if (type == 'remark') {
this.yardType = type this.yardType = type
@ -789,6 +829,14 @@ export default {
} }
this.yardVisible = true this.yardVisible = true
}, },
ModelyardTypeOk() {
const type = this.yardType
this.ModelyardTypeCancel()
},
ModelyardTypeCancel() {
this.yardVisible = false
this.yardType = ''
},
init() { init() {
// this.getTemplate('', 'shipper') // this.getTemplate('', 'shipper')
// this.getTemplate('', 'consignee') // this.getTemplate('', 'consignee')

@ -14,7 +14,15 @@
</a-popconfirm> </a-popconfirm>
<button><span class="iconfont icon-fuzhi1"></span>复制</button> <button><span class="iconfont icon-fuzhi1"></span>复制</button>
<button @click="saveFun"><span class="iconfont icon-icon_baocun"></span>保存</button> <button @click="saveFun"><span class="iconfont icon-icon_baocun"></span>保存</button>
<button><span class="iconfont icon-printing"></span>打印</button> <a-dropdown>
<!-- <a class="ant-dropdown-link" @click="e => e.preventDefault()"> Hover me <a-icon type="down" /> </a> -->
<button><span class="iconfont icon-printing"></span>打印<a-icon type="down" /></button>
<a-menu slot="overlay">
<a-menu-item v-for="item in templateType" :key="item.id">
<span @click="FnCilckTemplateType(item.code)">{{ item.name }}</span>
</a-menu-item>
</a-menu>
</a-dropdown>
</div> </div>
<div class="btn-list more-view-1"> <div class="btn-list more-view-1">
<button @click="openModel('bookingSpace')"><span class="iconfont icon-chuanbo"></span>订舱</button> <button @click="openModel('bookingSpace')"><span class="iconfont icon-chuanbo"></span>订舱</button>
@ -369,11 +377,7 @@
<template slot="footer"> <template slot="footer">
<a-button @click="saveModel"></a-button> <a-button @click="saveModel"></a-button>
<a-button type="primary" @click="sendModel"></a-button> <a-button type="primary" @click="sendModel"></a-button>
<a-button <a-button type="primary" @click="removeModel" v-if="['initCabin', 'vgmlink'].includes(modelType)">
type="primary"
@click="removeModel"
v-if="['initCabin', 'vgmlink'].includes(modelType)"
>
删除 删除
</a-button> </a-button>
</template> </template>
@ -395,7 +399,8 @@ import {
SaveBookingSampleBill, SaveBookingSampleBill,
SampleBillPdf, SampleBillPdf,
TxxpLink, TxxpLink,
ExcuteRulesOceanBooking ExcuteRulesOceanBooking,
BookingOrderPrint
} from '@/api/modular/main/BookingLedger' } from '@/api/modular/main/BookingLedger'
export default { export default {
@ -404,8 +409,8 @@ export default {
type: Object, type: Object,
default: () => { default: () => {
return {} return {}
}, }
}, }
}, },
data() { data() {
return { return {
@ -422,12 +427,12 @@ export default {
forwarderName: '', forwarderName: '',
fileRole: '', fileRole: '',
sendType: 'B', sendType: 'B',
send: false, send: false
}, },
radioStyle: { radioStyle: {
display: 'block', display: 'block',
height: '30px', height: '30px',
lineHeight: '30px', lineHeight: '30px'
}, },
// //
initCabinFrom: { initCabinFrom: {
@ -441,22 +446,38 @@ export default {
orderUrl: { orderUrl: {
urlTxxp: '', urlTxxp: '',
urlVgm: '', urlVgm: '',
urlVgmSi: '', urlVgmSi: ''
}, },
remark: '', remark: ''
}, },
// //
hsaBillPdf: false, hsaBillPdf: false,
billPdf: '', billPdf: '',
billPdfTip: '' billPdfTip: '',
templateType: []
} }
}, },
mounted() { mounted() {
this.templateType = this.$options.filters['dictData']('booking_template_type')
// if (this.id) { // if (this.id) {
// this.getLetterYard() // this.getLetterYard()
// } // }
}, },
methods: { methods: {
// ========== ==========
FnCilckTemplateType(type) {
BookingOrderPrint({ type, bookingId: this.id })
.then(res => {
if (res.success) {
this.$message.success('打印成功')
} else {
this.$message.error(res.message)
}
})
.catch(err => {
console.log(err)
})
},
refreshPage() { refreshPage() {
this.$emit('refresh') this.$emit('refresh')
}, },
@ -511,7 +532,7 @@ export default {
this.bookingModelFrom.send = type === 'send' this.bookingModelFrom.send = type === 'send'
this.bookingModelFrom.orderNo = this.details.mblno this.bookingModelFrom.orderNo = this.details.mblno
SendBookingOrClosingEDI(this.bookingModelFrom) SendBookingOrClosingEDI(this.bookingModelFrom)
.then((res) => { .then(res => {
// //
if (res.success) { if (res.success) {
this.$message.success(`${type === 'send' ? '发送' : '保存'}成功`) this.$message.success(`${type === 'send' ? '发送' : '保存'}成功`)
@ -520,7 +541,7 @@ export default {
this.$message.error(res.message) this.$message.error(res.message)
} }
}) })
.catch((err) => { .catch(err => {
console.log(err) console.log(err)
}) })
}, },
@ -535,7 +556,7 @@ export default {
forwarderName: '', forwarderName: '',
fileRole: '', fileRole: '',
sendType: 'B', sendType: 'B',
send: false, send: false
} }
}, },
// vgm / // vgm /
@ -543,9 +564,9 @@ export default {
let content = null let content = null
const _this = this const _this = this
if (type === 'vgm') { if (type === 'vgm') {
content = (h) => <div>确认发送VGM吗?</div> content = h => <div>确认发送VGM吗?</div>
} else if (type === 'paper') { } else if (type === 'paper') {
content = (h) => <div>确认发送下货纸吗?</div> content = h => <div>确认发送下货纸吗?</div>
} }
this.$confirm({ this.$confirm({
title: '温馨提示', title: '温馨提示',
@ -561,34 +582,34 @@ export default {
onCancel() { onCancel() {
console.log('Cancel') console.log('Cancel')
}, },
class: 'test', class: 'test'
}) })
}, },
sendXHZ() { sendXHZ() {
SendXHZ(this.id) SendXHZ(this.id)
.then((res) => { .then(res => {
if (res.success) { if (res.success) {
this.$message.success(`下货纸发送成功`) this.$message.success(`下货纸发送成功`)
} else { } else {
this.$message.error(res.message) this.$message.error(res.message)
} }
}) })
.catch((err) => { .catch(err => {
console.log(err) console.log(err)
}) })
}, },
vgmSend() { vgmSend() {
VgmSend(this.id) VgmSend(this.id)
.then((res) => { .then(res => {
if (res.success) { if (res.success) {
this.$message.success(`VGM发送成功`) this.$message.success(`VGM发送成功`)
} else { } else {
this.$message.error(res.message) this.$message.error(res.message)
} }
}) })
.catch((err) => { .catch(err => {
console.log(err) console.log(err)
}) })
}, },
@ -596,7 +617,7 @@ export default {
// //
getLetterYard() { getLetterYard() {
LetterYard(this.id) LetterYard(this.id)
.then((res) => { .then(res => {
console.log('== 放舱信息 ==', res.data) console.log('== 放舱信息 ==', res.data)
if (res.success) { if (res.success) {
this.initCabinFrom = res.data this.initCabinFrom = res.data
@ -604,7 +625,7 @@ export default {
this.$message.error(res.message) this.$message.error(res.message)
} }
}) })
.catch((err) => { .catch(err => {
console.log(err) console.log(err)
}) })
}, },
@ -612,7 +633,7 @@ export default {
// //
getSampleBill() { getSampleBill() {
SampleBill(this.id) SampleBill(this.id)
.then((res) => { .then(res => {
console.log('== 样单信息 ==', res.data) console.log('== 样单信息 ==', res.data)
if (res.success) { if (res.success) {
this.initCabinFrom = res.data this.initCabinFrom = res.data
@ -620,7 +641,7 @@ export default {
this.$message.error(res.message) this.$message.error(res.message)
} }
}) })
.catch((err) => { .catch(err => {
console.log(err) console.log(err)
}) })
}, },
@ -628,7 +649,7 @@ export default {
// VGM // VGM
getVgmLink() { getVgmLink() {
VgmLink(this.id) VgmLink(this.id)
.then((res) => { .then(res => {
console.log('== VGM信息 ==', res.data) console.log('== VGM信息 ==', res.data)
if (res.success) { if (res.success) {
// this.initCabinFrom = res.data // this.initCabinFrom = res.data
@ -636,14 +657,14 @@ export default {
this.$message.error(res.message) this.$message.error(res.message)
} }
}) })
.catch((err) => { .catch(err => {
console.log(err) console.log(err)
}) })
}, },
sampleBillPdf () { sampleBillPdf() {
SampleBillPdf(this.id) SampleBillPdf(this.id)
.then((res) => { .then(res => {
if (res.success) { if (res.success) {
this.hsaBillPdf = true this.hsaBillPdf = true
this.billPdf = res.data.description this.billPdf = res.data.description
@ -652,7 +673,7 @@ export default {
this.billPdfTip = res.message this.billPdfTip = res.message
} }
}) })
.catch((err) => { .catch(err => {
console.log(err) console.log(err)
}) })
}, },
@ -732,30 +753,30 @@ export default {
} }
} }
SaveBookingLetteryard(this.initCabinFrom) SaveBookingLetteryard(this.initCabinFrom)
.then((res) => { .then(res => {
if (res.success) { if (res.success) {
this.$message.success('保存成功') this.$message.success('保存成功')
// this.initCabinFrom = res.data // this.initCabinFrom = res.data
} else { } else {
this.$message.error(res.message) this.$message.error(res.message)
} }
}) })
.catch((err) => { .catch(err => {
console.log(err) console.log(err)
}) })
}, },
// / // /
saveBookingSampleBill() { saveBookingSampleBill() {
SaveBookingSampleBill(this.initCabinFrom) SaveBookingSampleBill(this.initCabinFrom)
.then((res) => { .then(res => {
if (res.success) { if (res.success) {
this.$message.success('保存成功') this.$message.success('保存成功')
} else { } else {
this.$message.error(res.message) this.$message.error(res.message)
} }
}) })
.catch((err) => { .catch(err => {
console.log(err) console.log(err)
}) })
}, },
@ -763,21 +784,21 @@ export default {
// //
sendLetterYard() { sendLetterYard() {
SendLetterYard(this.id) SendLetterYard(this.id)
.then((res) => { .then(res => {
if (res.success) { if (res.success) {
this.$message.success('发送成功') this.$message.success('发送成功')
} else { } else {
this.$message.error(res.message) this.$message.error(res.message)
} }
}) })
.catch((err) => { .catch(err => {
console.log(err) console.log(err)
}) })
}, },
TxxpLink() { TxxpLink() {
TxxpLink(this.id) TxxpLink(this.id)
.then((res) => { .then(res => {
if (res.success) { if (res.success) {
console.log(res.data) console.log(res.data)
this.copyFun(res.data) this.copyFun(res.data)
@ -785,25 +806,25 @@ export default {
this.$message.error(res.message) this.$message.error(res.message)
} }
}) })
.catch((err) => { .catch(err => {
console.log(err) console.log(err)
}) })
}, },
checkFun () { checkFun() {
ExcuteRulesOceanBooking(this.id) ExcuteRulesOceanBooking(this.id)
.then((res) => { .then(res => {
if (res.success) { if (res.success) {
this.$emit('rules', res.data.rows) this.$emit('rules', res.data.rows)
} else { } else {
this.$message.error(res.message) this.$message.error(res.message)
} }
}) })
.catch((err) => { .catch(err => {
console.log(err) console.log(err)
}) })
} }
}, }
} }
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
@ -929,10 +950,10 @@ export default {
left: 0; left: 0;
} }
} }
.pdf-view{ .pdf-view {
height: 400px; height: 400px;
} }
.no-pdf{ .no-pdf {
text-align: center; text-align: center;
margin: 20px 0; margin: 20px 0;
} }

Loading…
Cancel
Save