修改BUG

dev
lilu 2 years ago
parent ed25a78c66
commit adc79274a9

@ -4,6 +4,7 @@
:width="900" :width="900"
:visible="visible" :visible="visible"
:confirmLoading="confirmLoading" :confirmLoading="confirmLoading"
:maskClosable="false"
@ok="handleSubmit" @ok="handleSubmit"
@cancel="handleCancel" @cancel="handleCancel"
> >

@ -10,7 +10,7 @@
<a-tab-pane key="1" tab="主单信息"> <a-tab-pane key="1" tab="主单信息">
<a-row :gutter="24"> <a-row :gutter="24">
<a-col :span="18"> <a-col :span="18">
<template v-if="!inPageLoading"> <template>
<operationArea <operationArea
:details="bookingDetails" :details="bookingDetails"
@refresh="refreshPage" @refresh="refreshPage"
@ -38,7 +38,7 @@
<!-- 备注信息 --> <!-- 备注信息 -->
<remarksInfo :details="bookingDetails" @changeDetail="changeDetailFun"></remarksInfo> <remarksInfo :details="bookingDetails" @changeDetail="changeDetailFun"></remarksInfo>
<!-- 箱型 --> <!-- 箱型 -->
<goodsTable :details="bookingDetails" @changeDetail="changeDetailFun"></goodsTable> <goodsTable :details="bookingDetails" @changeDetail="changeDetailFun" v-if="!inPageLoading"></goodsTable>
</div> </div>
</a-tab-pane> </a-tab-pane>
<a-tab-pane key="2-2" tab="EDI补充信息"> <a-tab-pane key="2-2" tab="EDI补充信息">
@ -46,33 +46,32 @@
class="pane-box" class="pane-box"
:details="bookingDetails" :details="bookingDetails"
@changeDetail="changeDetailFun" @changeDetail="changeDetailFun"
v-if="!inPageLoading"
></ediMore> ></ediMore>
</a-tab-pane> </a-tab-pane>
</a-tabs> </a-tabs>
</template> </template>
<template v-else> <!-- <template v-if="inPageLoading">
<div class="load-block" style="width: 100%; height: 107px;"></div> <div class="load-block" style="width: 100%; height: 107px;"></div>
<div class="load-block" style="width: 100%; height: 390px;"></div> <div class="load-block" style="width: 100%; height: 390px;"></div>
<div class="load-block" style="width: 100%; height: 690px;"></div> <div class="load-block" style="width: 100%; height: 690px;"></div>
<div class="load-block" style="width: 100%; height: 390px;"></div> <div class="load-block" style="width: 100%; height: 390px;"></div>
</template> </template> -->
</a-col> </a-col>
<a-col :span="6"> <a-col :span="6">
<rightContent <rightContent
v-if="!inPageLoading"
:id="id" :id="id"
:details="bookingDetails" :details="bookingDetails"
:excuteRules="excuteRules" :excuteRules="excuteRules"
:excuteRulesType="excuteRulesType" :excuteRulesType="excuteRulesType"
@changeDetail="changeDetailFun" @changeDetail="changeDetailFun"
@rules="getRules"
></rightContent> ></rightContent>
<template v-else> <!-- <template v-if="inPageLoading">
<div class="load-block" style="width: 100%; height: 206px;"></div> <div class="load-block" style="width: 100%; height: 206px;"></div>
<div class="load-block" style="width: 100%; height: 142px;"></div> <div class="load-block" style="width: 100%; height: 142px;"></div>
<div class="load-block" style="width: 100%; height: 208px;"></div> <div class="load-block" style="width: 100%; height: 208px;"></div>
<div class="load-block" style="width: 100%; height: 249px;"></div> <div class="load-block" style="width: 100%; height: 249px;"></div>
</template> </template> -->
</a-col> </a-col>
</a-row> </a-row>
</a-tab-pane> </a-tab-pane>
@ -334,114 +333,117 @@ export default {
init() { init() {
// this.bookingDetails = {} // this.bookingDetails = {}
this.bookingDetails = initDetail this.bookingDetails = initDetail
this.excuteRules = []
this.excuteRulesType = ''
if (this.id) { if (this.id) {
this.isAdd = false this.isAdd = false
this.getDetail() this.getDetail()
} else { } else {
this.isAdd = true this.isAdd = true
this.bookingDetails = { // this.bookingDetails = {
id: 0, // id: 0,
parentId: 0, // parentId: 0,
// // //
customername: '', // customername: '',
customerid: '', // customerid: '',
carrier: '', // carrier: '',
carrierid: this.type, // carrierid: this.type,
forwarder: '', // forwarder: '',
pono: '', // pono: '',
mblno: '', // mblno: '',
hblno: '', // hblno: '',
bookingno: '', // bookingno: '',
contractno: '', // contractno: '',
vessel: '', // vessel: '',
voyno: '', // voyno: '',
voynoinner: '', // voynoinner: '',
lanecode: '', // lanecode: '',
etd: '', // etd: '',
atd: '', // atd: '',
lanename: '', // lanename: '',
shipagency: '', // shipagency: '',
sale: '', // sale: '',
op: '', // op: '',
doc: '', // doc: '',
custservice: '', // custservice: '',
// // //
shipper: '', // shipper: '',
consignee: '', // consignee: '',
notifyparty: '', // notifyparty: '',
yard: '', // yard: '',
customser: '', // customser: '',
trucker: '', // trucker: '',
agentid: '', // agentid: '',
eta: '', // eta: '',
closingdate: '', // closingdate: '',
closedocdate: '', // closedocdate: '',
closevgmdate: '', // closevgmdate: '',
portload: '', // portload: '',
portloadid: '', // portloadid: '',
transport: '', // transport: '',
transportid: '', // transportid: '',
portdischarge: '', // portdischarge: '',
portdischargeid: '', // portdischargeid: '',
destination: '', // destination: '',
destinationid: '', // destinationid: '',
placedelivery: '', // placedelivery: '',
placedeliveryid: '', // placedeliveryid: '',
placereceipt: '', // placereceipt: '',
placereceiptid: '', // placereceiptid: '',
pkgs: 0, // pkgs: 0,
kindpkgs: '', // kindpkgs: '',
kgs: 0, // kgs: 0,
cbm: 0, // cbm: 0,
// // //
marks: '', // marks: '',
cargoid: '', // cargoid: '',
hscode: '', // hscode: '',
description: '', // description: '',
totalno: '', // totalno: '',
// // //
issuetype: '', // issuetype: '',
issuedate: '', // issuedate: '',
issueplace: '', // issueplace: '',
issueplaceid: '', // issueplaceid: '',
nobill: 'THREE', // nobill: 'THREE',
copynobilll: 'THREE', // copynobilll: 'THREE',
prepardat: '', // prepardat: '',
payableat: '', // payableat: '',
blfrt: '', // blfrt: '',
thirdpayaddr: '', // thirdpayaddr: '',
service: '', // service: '',
reeferf: '', // reeferf: '',
tempset: '', // tempset: '',
tempid: '', // tempid: '',
tempmin: '', // tempmin: '',
tempmax: '', // tempmax: '',
humidity: '', // humidity: '',
dclass: '', // dclass: '',
dunno: '', // dunno: '',
dpage: '', // dpage: '',
dlabel: '', // dlabel: '',
linkman: '', // linkman: '',
// // //
soremark: '', // soremark: '',
siremark: '', // siremark: '',
// // //
ctnInputs: [], // ctnInputs: [],
// edi (edi) // // edi (edi)
weituo: '', // weituo: '',
freightpayer: '', // freightpayer: '',
scaccode: '', // scaccode: '',
itncode: '', // itncode: '',
iscontainersoc: 0, // iscontainersoc: 0,
bookingEDIExt: { // bookingEDIExt: {
weiTuoFang: '', // weiTuoFang: '',
ediAttn: '', // ediAttn: '',
ediAttnTel: '', // ediAttnTel: '',
ediAttnMail: '' // ediAttnMail: ''
}, // },
// // //
hbList: [] // hbList: []
} // }
this.bookingDetails.carrierid = this.type
this.bookingDetails.carrier = this.enmuCarrier(this.type) this.bookingDetails.carrier = this.enmuCarrier(this.type)
} }
}, },
@ -470,19 +472,19 @@ export default {
}, },
getDetail() { getDetail() {
this.inPageLoading = false // this.inPageLoading = false
// if (this.inPageLoading) { if (this.inPageLoading) {
// return false return false
// } }
// this.inPageLoading = true this.inPageLoading = true
// this.$message.loading({ content: '...' }); this.$message.loading({ content: '加载中...' });
BookingOrderGet({ BookingOrderGet({
id: this.id id: this.id
}) })
.then(res => { .then(res => {
this.inPageLoading = false this.inPageLoading = false
this.$message.destroy() this.$message.destroy()
// this.$message.success({ content: '' }) this.$message.success({ content: '加载完成' })
if (this.isCopy) { if (this.isCopy) {
res.data.mblno = '' res.data.mblno = ''
this.isAdd = true this.isAdd = true

@ -336,6 +336,7 @@
:width="1200" :width="1200"
:visible="customerVisible" :visible="customerVisible"
:confirmLoading="customerModelconfirm" :confirmLoading="customerModelconfirm"
:maskClosable="false"
@ok="handleModelSubmit" @ok="handleModelSubmit"
@cancel="handleModelCancel" @cancel="handleModelCancel"
> >

@ -23,7 +23,7 @@
</div> </div>
<div class="input cargo-mark"> <div class="input cargo-mark">
<div>货物标志</div> <div>货物标志</div>
<a-select :default-value="details.cargoid || 'S'" style="width: 120px" @change="handleChange"> <a-select :default-value="details.cargoid || 'S'" v-model="details.cargoid" style="width: 120px" @change="handleChange">
<a-select-option value="S"> S 普通货 </a-select-option> <a-select-option value="S"> S 普通货 </a-select-option>
<a-select-option value="R"> R 冻柜 </a-select-option> <a-select-option value="R"> R 冻柜 </a-select-option>
<a-select-option value="D"> D 危险品 </a-select-option> <a-select-option value="D"> D 危险品 </a-select-option>

@ -5,15 +5,9 @@
<div class="left"> <div class="left">
<a-button class="btn btn-add" type="primary" @click="addboxLine"></a-button> <a-button class="btn btn-add" type="primary" @click="addboxLine"></a-button>
<a-button class="btn btn-delete" @click="removeLine" :style="{ marginRight: '50px' }">删除</a-button> <a-button class="btn btn-delete" @click="removeLine" :style="{ marginRight: '50px' }">删除</a-button>
<a-button class="btn btn-more-name" type="primary" @click="openDialog" :disabled="tableData.length === 0" <a-button class="btn btn-more-name" type="primary" @click="openDialog" :disabled="tableData.length === 0"><a-icon type="appstore" />多品名 </a-button>
><a-icon type="appstore" />多品名</a-button <a-button class="btn btn-import-station" type="primary" @click="importYarn" :loading="YarnLoading"><a-icon type="import" />引入场站数据</a-button>
> <a-button class="btn btn-weight" type="primary" @click="importWeight" :loading="WeightLoading"><a-icon type="import" />引入箱皮重</a-button>
<a-button class="btn btn-import-station" type="primary" @click="importYarn" :loading="YarnLoading"
><a-icon type="import" />引入场站数据</a-button
>
<a-button class="btn btn-weight" type="primary" @click="importWeight" :loading="WeightLoading"
><a-icon type="import" />引入箱皮重</a-button
>
</div> </div>
<div class="table-right"> <div class="table-right">
<!-- <span>合计: {{ totalCtnall }}</span> --> <!-- <span>合计: {{ totalCtnall }}</span> -->
@ -43,6 +37,7 @@
width="80%" width="80%"
:visible="moreVisible" :visible="moreVisible"
:confirmLoading="moreModelconfirm" :confirmLoading="moreModelconfirm"
:maskClosable="false"
@cancel="handleModelCancel" @cancel="handleModelCancel"
> >
<div class="model-content"> <div class="model-content">
@ -658,6 +653,12 @@ export default {
this.details.ctnInputs = nval this.details.ctnInputs = nval
}, },
deep: true deep: true
},
'$route.query': {
immediate: true,
handler(nD, oD) {
this.init()
}
} }
}, },
@ -932,17 +933,17 @@ export default {
console.log('selectionRangeKeys::', selectionRangeKeys) console.log('selectionRangeKeys::', selectionRangeKeys)
}, },
calc(num1, num2, calcStr) { calc(num1, num2, calcStr) {
var str1, // var str1; //
str2, var str2;
ws1 = 0, // ws1ws2 num var ws1 = 0; // ws1ws2 num
ws2 = 0, // var ws2 = 0; //
bigger, // biggersmaller0 var bigger; // biggersmaller0
smaller, // 1.001 + 2.03 2.0301001+2031.12*1.1112*111000112*11/1000=1.232 var smaller; // 1.001 + 2.03 2.0301001+2031.12*1.1112*111000112*11/1000=1.232
zeroCount, // 0 var zeroCount; // 0
isExistDot1, // var isExistDot1; //
isExistDot2, var isExistDot2;
sum, var sum;
beishu = 1 var beishu = 1
// //
str1 = num1.toString() str1 = num1.toString()
str2 = num2.toString() str2 = num2.toString()

@ -532,6 +532,7 @@
:width="900" :width="900"
:visible="modelVisible" :visible="modelVisible"
:confirmLoading="modelconfirm" :confirmLoading="modelconfirm"
:maskClosable="false"
@ok="handleModelSubmit" @ok="handleModelSubmit"
@cancel="handleModelCancel" @cancel="handleModelCancel"
> >
@ -544,6 +545,7 @@
:title="yardType === 'remark' ? '场站备注' : '场站联系人'" :title="yardType === 'remark' ? '场站备注' : '场站联系人'"
:width="1200" :width="1200"
:visible="yardVisible" :visible="yardVisible"
:maskClosable="false"
@ok="ModelyardTypeOk" @ok="ModelyardTypeOk"
@cancel="ModelyardTypeCancel" @cancel="ModelyardTypeCancel"
> >

@ -72,6 +72,7 @@
:width="1200" :width="1200"
:visible="bookingModelvisible" :visible="bookingModelvisible"
:confirmLoading="bookingModelconfirm" :confirmLoading="bookingModelconfirm"
:maskClosable="false"
@ok="handleModelSubmit" @ok="handleModelSubmit"
@cancel="handleModelCancel" @cancel="handleModelCancel"
> >
@ -411,7 +412,7 @@
</a-modal> </a-modal>
<!-- 弹窗部分 end --> <!-- 弹窗部分 end -->
<!-- 打印弹窗 start --> <!-- 打印弹窗 start -->
<a-modal width="50vw" v-model="PrintModalVisible" title="打印"> <a-modal width="50vw" :maskClosable="false" v-model="PrintModalVisible" title="打印">
<template slot="footer"> <span></span> </template> <template slot="footer"> <span></span> </template>
<div class="PrintMain"> <div class="PrintMain">
<div class="PrintTitle"> <div class="PrintTitle">
@ -796,7 +797,7 @@ export default {
if (this.modelType === 'bookingSpace') { if (this.modelType === 'bookingSpace') {
this.bookingModelFrom.sendType = 'B' this.bookingModelFrom.sendType = 'B'
} else if (this.modelType === 'cutOff') { } else if (this.modelType === 'cutOff') {
this.bookingModelFrom.sendType = '' // this.bookingModelFrom.sendType = 'E'
} }
this.bookingModelFrom.send = type === 'send' this.bookingModelFrom.send = type === 'send'
this.bookingModelFrom.orderNo = this.details.mblno this.bookingModelFrom.orderNo = this.details.mblno
@ -809,6 +810,13 @@ export default {
.then(res => { .then(res => {
// //
if (res.success) { if (res.success) {
// this.pdfUrl = `${}${res.data}`
// const fname = res.data.substring(res.data.lastIndexOf("/") + 1, res.data.lastIndexOf(".")) //
// const link = document.createElement('a')
// link.href = this.pdfUrl
// link.setAttribute('download', fname)
// document.body.appendChild(link)
// link.click()
this.$message.success(`${type === 'send' ? '发送' : '保存'}成功`) this.$message.success(`${type === 'send' ? '发送' : '保存'}成功`)
this.handleModelCancel() this.handleModelCancel()
} else { } else {
@ -1096,7 +1104,11 @@ export default {
.then(res => { .then(res => {
if (res.success) { if (res.success) {
this.$message.destroy() this.$message.destroy()
this.$message.success({ content: '校验完成' }) if (!res.succ) {
this.$message.error(res.data.msg)
} else {
this.$message.success({ content: '校验完成' })
}
this.$emit('rules', { this.$emit('rules', {
rows: res.data.rows, rows: res.data.rows,
type: res.data.succ ? 'success' : 'fail' type: res.data.succ ? 'success' : 'fail'
@ -1105,7 +1117,7 @@ export default {
this.$message.error(res.message) this.$message.error(res.message)
} }
}) })
.catch(err => { .catch(() => {
this.$message.destroy() this.$message.destroy()
this.$message.success({ content: '校验失败' }) this.$message.success({ content: '校验失败' })
}) })

@ -16,9 +16,14 @@
<i class="iconfont icon-chenggong Success"></i><span>校验完成无异常信息</span> <i class="iconfont icon-chenggong Success"></i><span>校验完成无异常信息</span>
</div> </div>
</div> </div>
<div class="tip" v-else-if="excuteRulesType === 'fail'">
<div class="rules-label">
<i class="iconfont icon-shibai Warning"></i><span>校验失败</span>
</div>
</div>
<div class="tip no-data" v-else> <div class="tip no-data" v-else>
<i class="iconfont icon-meiyoudingdan"></i> <i class="iconfont icon-meiyoudingdan"></i>
<div class="text">暂无校验<span>立即校验</span></div> <div class="text">暂无校验, <a-button size="small" type="link" class="btn" @click="checkFun"> </a-button></div>
</div> </div>
</div> </div>
</a-card> </a-card>
@ -175,6 +180,7 @@
:width="900" :width="900"
:visible="remarkModelvisible" :visible="remarkModelvisible"
:confirmLoading="bookingModelconfirm" :confirmLoading="bookingModelconfirm"
:maskClosable="false"
cancelText="取消" cancelText="取消"
okText="确定" okText="确定"
@ok="handleModelSubmit" @ok="handleModelSubmit"
@ -188,6 +194,7 @@
:width="900" :width="900"
:visible="fileModelvisible" :visible="fileModelvisible"
:confirmLoading="uploading" :confirmLoading="uploading"
:maskClosable="false"
cancelText="关闭" cancelText="关闭"
okText="保存" okText="保存"
@ok="handleUpload" @ok="handleUpload"
@ -225,6 +232,7 @@ import {
GetLog, GetLog,
AddFile, AddFile,
BookingOrderGetFile, BookingOrderGetFile,
ExcuteRulesOceanBooking,
BookingOrderDownload BookingOrderDownload
} from '@/api/modular/main/BookingLedger' } from '@/api/modular/main/BookingLedger'
@ -311,6 +319,31 @@ export default {
this.bookingServiceItem = this.$options.filters['dictData']('booking_service_item') this.bookingServiceItem = this.$options.filters['dictData']('booking_service_item')
this.bookingAttachType = this.$options.filters['dictData']('booking_attach_type') this.bookingAttachType = this.$options.filters['dictData']('booking_attach_type')
}, },
//
checkFun() {
this.$message.loading({ content: '校验中...' })
ExcuteRulesOceanBooking(this.id)
.then(res => {
if (res.success) {
this.$message.destroy()
if (!res.succ) {
this.$message.error(res.data.msg)
} else {
this.$message.success({ content: '校验完成' })
}
this.$emit('rules', {
rows: res.data.rows,
type: res.data.succ ? 'success' : 'fail'
})
} else {
this.$message.error(res.message)
}
})
.catch(() => {
this.$message.destroy()
this.$message.success({ content: '校验失败' })
})
},
// - start // - start
getRemark() { getRemark() {
GetRemark({ GetRemark({
@ -579,9 +612,11 @@ export default {
.text { .text {
font-size: 13px; font-size: 13px;
color: #999; color: #999;
span {
.btn {
color: @primary-color; color: @primary-color;
cursor: pointer; cursor: pointer;
display: inline-block;
} }
} }
} }
@ -830,6 +865,10 @@ export default {
color: #999; color: #999;
padding: 20px 0; padding: 20px 0;
line-height: 30px; line-height: 30px;
.text{
display: inline-block;
}
} }
} }
.collapse-box { .collapse-box {

@ -93,7 +93,7 @@
</a-col> </a-col>
</a-row> </a-row>
<a-modal title="新增船公司" :width="600" :visible="addVisible" @ok="addSubmit" @cancel="addCancel"> <a-modal :maskClosable="false" :width="600" :visible="addVisible" @ok="addSubmit" @cancel="addCancel">
<a-radio-group v-model="carrierRadio"> <a-radio-group v-model="carrierRadio">
<div class="group-label"> <div class="group-label">
<div class="label-flex"> <div class="label-flex">
@ -128,7 +128,7 @@
</a-radio-group> </a-radio-group>
</a-modal> </a-modal>
<a-modal title="多提单号查询" :width="400" :visible="moreNumVisible" @ok="moreNumSubmit" @cancel="moreNumCancel"> <a-modal title="多提单号查询" :maskClosable="false" :width="400" :visible="moreNumVisible" @ok="moreNumSubmit" @cancel="moreNumCancel">
<div> <div>
<a-textarea v-model="moreNumVal" style="height: 200px" /> <a-textarea v-model="moreNumVal" style="height: 200px" />
</div> </div>
@ -603,8 +603,7 @@ export default {
} }
} }
/*列表表头 */ /*列表表头 */
.vxe-table--header-wrapper { .vxe-header--row{
// background-color: #f5f9fe !important;
position: relative; position: relative;
background: #fff !important; background: #fff !important;
.vxe-cell--sort { .vxe-cell--sort {

Loading…
Cancel
Save