pull/1/head
张同海 2 years ago
parent 9478ac84c3
commit 6b2cbdf62d

@ -24,9 +24,7 @@
v-if="(findex < 4 && !advanced) || advanced" v-if="(findex < 4 && !advanced) || advanced"
class="from-label" class="from-label"
> >
<a-form-item <a-form-item style="padding-left:10px;padding-right:10px;" :label="formLabel.title">
style="padding-left:10px;padding-right:10px;"
:label="formLabel.title">
<formLabel <formLabel
:ref="`fromlabel-${formLabel.label}`" :ref="`fromlabel-${formLabel.label}`"
:labelData="formLabel" :labelData="formLabel"
@ -165,10 +163,14 @@
</a-col> </a-col>
</a-row> </a-row>
<a-modal :maskClosable="false" :width="600" :visible="addVisible" @ok="addSubmit" @cancel="addCancel"> <a-modal :maskClosable="false" :width="900" :visible="addVisible" @ok="addSubmit" @cancel="addCancel">
<a-radio-group v-model="carrierRadio"> <a-radio-group class="group-label-box" v-model="carrierRadio">
<div class="group-label"> <div class="group-label">
<div class="label-flex"> <a-radio :style="radioStyle" :value="item.code" v-for="item in carrierData" :key="item.code">
<!-- <img class="radio-logo" :src="`@/assets/logo/{item.code}.png`" /> -->
{{ item.cnName }}
</a-radio>
<!-- <div class="label-flex">
<a-radio :style="radioStyle" value="CMA"> <a-radio :style="radioStyle" value="CMA">
<img class="radio-logo" src="@/assets/logo/CMA.png" /> CMA <img class="radio-logo" src="@/assets/logo/CMA.png" /> CMA
</a-radio> </a-radio>
@ -195,7 +197,7 @@
<a-radio :style="radioStyle" value="SINOLINE"> <a-radio :style="radioStyle" value="SINOLINE">
<img class="radio-logo" src="@/assets/logo/waiyun.png" /> 外运 <img class="radio-logo" src="@/assets/logo/waiyun.png" /> 外运
</a-radio> </a-radio>
</div> </div> -->
</div> </div>
</a-radio-group> </a-radio-group>
</a-modal> </a-modal>
@ -457,14 +459,14 @@ import {
SendTrace, SendTrace,
GetVessellist, GetVessellist,
GetPortlist, GetPortlist,
BookingOrderBachUpdate BookingOrderBachUpdate,
GetCarrierlist
} from '@/api/modular/main/BookingLedger' } from '@/api/modular/main/BookingLedger'
import columnSetting from '@/components/tableColumnSetting' import columnSetting from '@/components/tableColumnSetting'
import formLabel from './modules/formLabel' import formLabel from './modules/formLabel'
import initData from './modules/initData' import initData from './modules/initData'
import { DjyUserConfigGet, DjyUserConfigAdd } from '@/api/modular/main/DjyUserConfig' import { DjyUserConfigGet, DjyUserConfigAdd } from '@/api/modular/main/DjyUserConfig'
import { mapActions } from 'vuex' import { mapActions } from 'vuex'
const formInitData = [ const formInitData = [
{ title: '主提单号', align: 'center', width: '90', label: 'MBLNO', type: 'input' }, { title: '主提单号', align: 'center', width: '90', label: 'MBLNO', type: 'input' },
{ title: '分提单号', align: 'center', width: '90', label: 'HBLNO', type: 'input' }, { title: '分提单号', align: 'center', width: '90', label: 'HBLNO', type: 'input' },
@ -561,7 +563,8 @@ export default {
vesselData: [], vesselData: [],
WebVessel: '', WebVessel: '',
portDischargeData: [], portDischargeData: [],
destinationData: [] destinationData: [],
carrierData: []
} }
}, },
created() { created() {
@ -573,6 +576,7 @@ export default {
this.getFormData() this.getFormData()
this.getTableList() this.getTableList()
this.getPageSize() this.getPageSize()
this.getCarrier()
}, },
mounted() { mounted() {
console.log('=== 列表 mounted ===') console.log('=== 列表 mounted ===')
@ -691,7 +695,37 @@ export default {
} }
this.getTableList() this.getTableList()
}, },
// - start
getCarrier() {
GetCarrierlist()
.then(res => {
if (res.code === 200) {
DjyUserConfigGet({ type: 'booking_memory' })
.then(e => {
console.log(e)
if (e.data) {
let data = []
JSON.parse(e.data.configJson).forEach(item => {
res.data.forEach(item2 => {
if (item == item2.code) {
data.push(item2)
}
})
})
this.carrierData = data
} else {
this.carrierData = res.data
}
})
.catch(() => {
this.carrierData = res.data
})
}
})
.catch(err => {
console.log(err)
})
},
getFormData(isReset = false) { getFormData(isReset = false) {
DjyUserConfigGet({ type: 'booking_list_cond' }).then(res => { DjyUserConfigGet({ type: 'booking_list_cond' }).then(res => {
if (res.data && JSON.parse(res.data.configJson).length) { if (res.data && JSON.parse(res.data.configJson).length) {
@ -779,7 +813,7 @@ export default {
this.getList(this.formRes) this.getList(this.formRes)
}, },
editPageSizeSave (pageSize = 10) { editPageSizeSave(pageSize = 10) {
const data = { const data = {
pageSize: pageSize pageSize: pageSize
} }
@ -791,7 +825,7 @@ export default {
}) })
}, },
getPageSize () { getPageSize() {
DjyUserConfigGet({ type: 'booking_list_page' }).then(res => { DjyUserConfigGet({ type: 'booking_list_page' }).then(res => {
if (res.data && JSON.parse(res.data.configJson)) { if (res.data && JSON.parse(res.data.configJson)) {
this.gridOptions.pagerConfig.pageSize = JSON.parse(res.data.configJson).pageSize this.gridOptions.pagerConfig.pageSize = JSON.parse(res.data.configJson).pageSize
@ -1055,9 +1089,22 @@ export default {
// }) // })
}, },
addSubmit() { addSubmit() {
let data = []
data.push(this.carrierRadio)
this.carrierData.forEach(item => {
if (item.code != this.carrierRadio) {
data.push(item.code)
}
})
DjyUserConfigAdd({
type: 'booking_memory',
configJson: JSON.stringify(data)
}).then(res => {
this.getCarrier()
this.addVisible = false this.addVisible = false
this.addNum = Math.round(Math.random() * 1000) this.addNum = Math.round(Math.random() * 1000)
this.$router.push({ name: 'BookingDetail', query: { type: this.carrierRadio, addNum: this.addNum } }) this.$router.push({ name: 'BookingDetail', query: { type: this.carrierRadio, addNum: this.addNum } })
})
}, },
addCancel() { addCancel() {
this.addVisible = false this.addVisible = false
@ -1474,14 +1521,22 @@ export default {
height: 40px; height: 40px;
display: inline-block; display: inline-block;
} }
.group-label-box {
.group-label { width: 100%;
width: 500px; .group-label {
width: 100%;
display: flex; display: flex;
.label-flex { flex-wrap: wrap;
flex: 1; .ant-radio-wrapper {
width: 20%;
margin: 0;
}
// .label-flex {
// flex: 1;
// }
} }
} }
/*查询区日期默认颜色 */ /*查询区日期默认颜色 */
/deep/ .ant-calendar-today { /deep/ .ant-calendar-today {
.ant-calendar-date { .ant-calendar-date {

@ -22,16 +22,53 @@ export default {
sortable: true, sortable: true,
slots: { default: 'vessel' } slots: { default: 'vessel' }
}, },
{ field: 'etd', label: 'ETD', width: 110, title: '开船日期', showHeaderOverflow: true, sortable: true, slots: { default: 'etd' } }, {
field: 'etd',
label: 'ETD',
width: 110,
title: '开船日期',
showHeaderOverflow: true,
sortable: true,
slots: { default: 'etd' }
},
{ field: 'voyno', label: 'VOYNO', width: 120, title: '海关航次', showHeaderOverflow: true }, { field: 'voyno', label: 'VOYNO', width: 120, title: '海关航次', showHeaderOverflow: true },
{ field: 'bookingStatus', label: 'BOOKINGSTATUS', width: 120, title: '订舱状态', showHeaderOverflow: true }, { field: 'bookingStatus', label: 'BOOKINGSTATUS', width: 120, title: '订舱状态', showHeaderOverflow: true },
{ field: 'vgm', label: 'VGM', width: 120, title: 'VGM', showHeaderOverflow: true }, { field: 'vgm', label: 'VGM', width: 120, title: 'VGM', showHeaderOverflow: true },
{ field: 'billStatus', label: 'BILLSTATUS', width: 120, title: '提单状态', showHeaderOverflow: true }, { field: 'billStatus', label: 'BILLSTATUS', width: 120, title: '提单状态', showHeaderOverflow: true },
{ field: 'portdischarge', label: 'PORTDISCHARGE', width: 120, title: '卸货港', showHeaderOverflow: true, sortable: true }, {
{ field: 'createdUserName', label: 'CREATEDUSERNAME', width: 120, title: '创建人', showHeaderOverflow: true, sortable: true }, field: 'portdischarge',
{ field: 'createdTime', label: 'CREATEDTIME', width: 160, title: '创建时间', showHeaderOverflow: true, sortable: true }, label: 'PORTDISCHARGE',
width: 120,
title: '卸货港',
showHeaderOverflow: true,
sortable: true
},
{
field: 'createdUserName',
label: 'CREATEDUSERNAME',
width: 120,
title: '创建人',
showHeaderOverflow: true,
sortable: true
},
{
field: 'createdTime',
label: 'CREATEDTIME',
width: 160,
title: '创建时间',
showHeaderOverflow: true,
sortable: true
},
{ field: 'cntrtotal', label: 'CNTRTOTAL', width: 120, title: '箱型箱量', showHeaderOverflow: true, sortable: true }, { field: 'cntrtotal', label: 'CNTRTOTAL', width: 120, title: '箱型箱量', showHeaderOverflow: true, sortable: true },
{ field: 'operate', title: '操作', width: 80, noDraggable: true, slots: { default: 'operate' }, fixed: 'right', resizable: false } {
field: 'operate',
title: '操作',
width: 80,
noDraggable: true,
slots: { default: 'operate' },
fixed: 'right',
resizable: false
}
], ],
columnsAllData: [ columnsAllData: [
{ field: 'carrier', width: 120, title: '船公司', showHeaderOverflow: true, sortable: true }, { field: 'carrier', width: 120, title: '船公司', showHeaderOverflow: true, sortable: true },
@ -55,43 +92,130 @@ export default {
sortable: true, sortable: true,
slots: { default: 'vessel' } slots: { default: 'vessel' }
}, },
{ field: 'etd', label: 'ETD', width: 110, title: '开船日期', showHeaderOverflow: true, sortable: true, slots: { default: 'etd' } }, {
field: 'etd',
label: 'ETD',
width: 110,
title: '开船日期',
showHeaderOverflow: true,
sortable: true,
slots: { default: 'etd' }
},
{ field: 'voyno', label: 'VOYNO', width: 120, title: '海关航次', showHeaderOverflow: true }, { field: 'voyno', label: 'VOYNO', width: 120, title: '海关航次', showHeaderOverflow: true },
{ field: 'bookremark', label: 'BOOKREMARK', width: 120, title: '备注', className: 'book-remark-box', showOverflow: false, slots: { default: 'bookremark' } }, {
field: 'bookremark',
label: 'BOOKREMARK',
width: 120,
title: '备注',
className: 'book-remark-box',
showOverflow: false,
slots: { default: 'bookremark' }
},
{ field: 'bookingStatus', label: 'BOOKINGSTATUS', width: 120, title: '订舱状态', showHeaderOverflow: true }, { field: 'bookingStatus', label: 'BOOKINGSTATUS', width: 120, title: '订舱状态', showHeaderOverflow: true },
{ field: 'vgm', label: 'VGM', width: 120, title: 'VGM', showHeaderOverflow: true }, { field: 'vgm', label: 'VGM', width: 120, title: 'VGM', showHeaderOverflow: true },
{ field: 'billStatus', label: 'BILLSTATUS', width: 120, title: '提单状态', showHeaderOverflow: true }, { field: 'billStatus', label: 'BILLSTATUS', width: 120, title: '提单状态', showHeaderOverflow: true },
{ field: 'portdischarge', label: 'PORTDISCHARGE', width: 120, title: '卸货港', showHeaderOverflow: true, sortable: true }, {
{ field: 'createdUserName', label: 'CREATEDUSERNAME', width: 120, title: '创建人', showHeaderOverflow: true, sortable: true }, field: 'portdischarge',
{ field: 'createdTime', label: 'CREATEDTIME', width: 160, title: '创建时间', showHeaderOverflow: true, sortable: true }, label: 'PORTDISCHARGE',
width: 120,
title: '卸货港',
showHeaderOverflow: true,
sortable: true
},
{
field: 'createdUserName',
label: 'CREATEDUSERNAME',
width: 120,
title: '创建人',
showHeaderOverflow: true,
sortable: true
},
{
field: 'createdTime',
label: 'CREATEDTIME',
width: 160,
title: '创建时间',
showHeaderOverflow: true,
sortable: true
},
{ field: 'cntrtotal', label: 'CNTRTOTAL', width: 120, title: '箱型箱量', showHeaderOverflow: true, sortable: true }, { field: 'cntrtotal', label: 'CNTRTOTAL', width: 120, title: '箱型箱量', showHeaderOverflow: true, sortable: true },
{ field: 'atd', label: 'ATD', width: 160, title: '实际开船日期', showHeaderOverflow: true, sortable: true, slots: { default: 'atd' } }, {
field: 'atd',
label: 'ATD',
width: 160,
title: '实际开船日期',
showHeaderOverflow: true,
sortable: true,
slots: { default: 'atd' }
},
{ field: 'blfrt', label: 'BLFRT', width: 120, title: '付费方式', showHeaderOverflow: true, sortable: true }, { field: 'blfrt', label: 'BLFRT', width: 120, title: '付费方式', showHeaderOverflow: true, sortable: true },
{ field: 'cargoid', label: 'CARGOID', width: 120, title: '货物标识', showHeaderOverflow: true, sortable: true }, { field: 'cargoid', label: 'CARGOID', width: 120, title: '货物标识', showHeaderOverflow: true, sortable: true },
{ field: 'cbm', label: 'CBM', width: 90, title: '尺码', showHeaderOverflow: true, sortable: true }, { field: 'cbm', label: 'CBM', width: 90, title: '尺码', showHeaderOverflow: true, sortable: true },
{ field: 'consignee', label: 'CONSIGNEE', width: 120, title: '收货人', showHeaderOverflow: true, sortable: true }, { field: 'consignee', label: 'CONSIGNEE', width: 120, title: '收货人', showHeaderOverflow: true, sortable: true },
{ field: 'contractno', label: 'CONTRACTNO', width: 120, title: '合约号', showHeaderOverflow: true, sortable: true }, { field: 'contractno', label: 'CONTRACTNO', width: 120, title: '合约号', showHeaderOverflow: true, sortable: true },
{ field: 'customername', label: 'CUSTOMERNAME', width: 120, title: '客户', showHeaderOverflow: true, sortable: true }, {
field: 'customername',
label: 'CUSTOMERNAME',
width: 120,
title: '客户',
showHeaderOverflow: true,
sortable: true
},
{ field: 'customser', label: 'CUSTOMSER', width: 120, title: '报关行', showHeaderOverflow: true, sortable: true }, { field: 'customser', label: 'CUSTOMSER', width: 120, title: '报关行', showHeaderOverflow: true, sortable: true },
{ field: 'custservice', label: 'CUSTSERVICE', width: 120, title: '客服', showHeaderOverflow: true, sortable: true }, { field: 'custservice', label: 'CUSTSERVICE', width: 120, title: '客服', showHeaderOverflow: true, sortable: true },
{ field: 'doc', label: 'DOC', width: 120, title: '单证', showHeaderOverflow: true, sortable: true }, { field: 'doc', label: 'DOC', width: 120, title: '单证', showHeaderOverflow: true, sortable: true },
{ field: 'dunno', label: 'DUNNO', width: 120, title: '危险品编号', showHeaderOverflow: true, sortable: true }, { field: 'dunno', label: 'DUNNO', width: 120, title: '危险品编号', showHeaderOverflow: true, sortable: true },
{ field: 'forwarder', label: 'FORWARDER', width: 120, title: '订舱代理', showHeaderOverflow: true, sortable: true }, { field: 'forwarder', label: 'FORWARDER', width: 120, title: '订舱代理', showHeaderOverflow: true, sortable: true },
{ field: 'freightpayer', label: 'FREIGHTPAYER', width: 120, title: '付款方', showHeaderOverflow: true, sortable: true }, {
field: 'freightpayer',
label: 'FREIGHTPAYER',
width: 120,
title: '付款方',
showHeaderOverflow: true,
sortable: true
},
{ field: 'hblno', label: 'HBLNO', width: 120, title: '分提单号', showHeaderOverflow: true, sortable: true }, { field: 'hblno', label: 'HBLNO', width: 120, title: '分提单号', showHeaderOverflow: true, sortable: true },
{ field: 'hscode', label: 'HSCODE', width: 120, title: 'HS代码', showHeaderOverflow: true, sortable: true }, { field: 'hscode', label: 'HSCODE', width: 120, title: 'HS代码', showHeaderOverflow: true, sortable: true },
{ field: 'issueplace', label: 'ISSUEPLACE', width: 120, title: '签单地点', showHeaderOverflow: true, sortable: true }, {
field: 'issueplace',
label: 'ISSUEPLACE',
width: 120,
title: '签单地点',
showHeaderOverflow: true,
sortable: true
},
{ field: 'issuetype', label: 'ISSUETYPE', width: 120, title: '签单方式', showHeaderOverflow: true, sortable: true }, { field: 'issuetype', label: 'ISSUETYPE', width: 120, title: '签单方式', showHeaderOverflow: true, sortable: true },
{ field: 'kgs', label: 'KGS', width: 120, title: '毛重', showHeaderOverflow: true, sortable: true }, { field: 'kgs', label: 'KGS', width: 120, title: '毛重', showHeaderOverflow: true, sortable: true },
{ field: 'kindpkgs', label: 'KINDPKGS', width: 120, title: '包装', showHeaderOverflow: true, sortable: true }, { field: 'kindpkgs', label: 'KINDPKGS', width: 120, title: '包装', showHeaderOverflow: true, sortable: true },
{ field: 'pkgs', label: 'PKGS', width: 120, title: '件数', showHeaderOverflow: true, sortable: true }, { field: 'pkgs', label: 'PKGS', width: 120, title: '件数', showHeaderOverflow: true, sortable: true },
{ field: 'marks', label: 'MARKS', width: 120, title: '唛头', showHeaderOverflow: true, sortable: true }, { field: 'marks', label: 'MARKS', width: 120, title: '唛头', showHeaderOverflow: true, sortable: true },
{ field: 'nobill', label: 'NOBILL', width: 120, title: '提单分数', showHeaderOverflow: true, sortable: true }, { field: 'nobill', label: 'NOBILL', width: 120, title: '提单分数', showHeaderOverflow: true, sortable: true },
{ field: 'notifyparty', label: 'NOTIFYPARTY', width: 120, title: '通知人', showHeaderOverflow: true, sortable: true }, {
field: 'notifyparty',
label: 'NOTIFYPARTY',
width: 120,
title: '通知人',
showHeaderOverflow: true,
sortable: true
},
{ field: 'op', label: 'OP', width: 120, title: '操作人', showHeaderOverflow: true, sortable: true }, { field: 'op', label: 'OP', width: 120, title: '操作人', showHeaderOverflow: true, sortable: true },
{ field: 'payableat', label: 'PAYABLEAT', width: 120, title: '到付地点', showHeaderOverflow: true, sortable: true }, { field: 'payableat', label: 'PAYABLEAT', width: 120, title: '到付地点', showHeaderOverflow: true, sortable: true },
{ field: 'placedelivery', label: 'PLACEDELIVERY', width: 120, title: '交货地', showHeaderOverflow: true, sortable: true }, {
{ field: 'bookstatus', label: 'BOOKSTATUS', minWidth: 140, title: '运踪', showHeaderOverflow: true, slots: { default: 'bookstatus' } } field: 'placedelivery',
label: 'PLACEDELIVERY',
width: 120,
title: '交货地',
showHeaderOverflow: true,
sortable: true
},
{
field: 'bookstatus',
label: 'BOOKSTATUS',
minWidth: 140,
title: '运踪',
showHeaderOverflow: true,
slots: { default: 'bookstatus' }
}
// { field: 'book_sta_cate_billtrace', label: 'book_sta_cate_billtrace', width: 120, title: '运踪状态', showHeaderOverflow: true, sortable: true }, // { field: 'book_sta_cate_billtrace', label: 'book_sta_cate_billtrace', width: 120, title: '运踪状态', showHeaderOverflow: true, sortable: true },
// { field: 'book_sta_cate_vgm', label: 'book_sta_cate_vgm', width: 120, title: 'VGM状态', showHeaderOverflow: true, sortable: true }, // { field: 'book_sta_cate_vgm', label: 'book_sta_cate_vgm', width: 120, title: 'VGM状态', showHeaderOverflow: true, sortable: true },
// { field: 'book_sta_cate_si', label: 'book_sta_cate_si', width: 120, title: '提单状态', showHeaderOverflow: true, sortable: true }, // { field: 'book_sta_cate_si', label: 'book_sta_cate_si', width: 120, title: '提单状态', showHeaderOverflow: true, sortable: true },

@ -41,15 +41,6 @@
<a-input v-model="queryParam.displayName" allow-clear placeholder="请输入显示名称" /> <a-input v-model="queryParam.displayName" allow-clear placeholder="请输入显示名称" />
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :md="6" :sm="24">
<a-form-item label="分类">
<a-select v-model="queryParam.cateCode" style="width: 100%" placeholder="请选择分类" allow-clear>
<a-select-option v-for="item in CateData" :key="item.id" :value="`[${item.code}]`">
123
</a-select-option>
</a-select>
</a-form-item>
</a-col>
<a-col :md="6" :sm="24"> <a-col :md="6" :sm="24">
<a-form-item label="模板类型"> <a-form-item label="模板类型">
<a-select v-model="queryParam.type" style="width: 100%" placeholder="请选择模板类型" allow-clear> <a-select v-model="queryParam.type" style="width: 100%" placeholder="请选择模板类型" allow-clear>
@ -62,6 +53,15 @@
</a-select> </a-select>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :md="6" :sm="24">
<a-form-item label="分类">
<a-select v-model="queryParam.cateCode" style="width: 100%" placeholder="请选择分类" allow-clear>
<a-select-option v-for="item in CateData" :key="item.id" :value="`[${item.code}]`">
{{ item.name }}
</a-select-option>
</a-select>
</a-form-item>
</a-col>
</a-row> </a-row>
</a-col> </a-col>
<a-col :md="3" :sm="24"> <a-col :md="3" :sm="24">
@ -293,7 +293,7 @@ export default {
currentPage: 1, currentPage: 1,
pageSize: 10, pageSize: 10,
totalResult: 1, totalResult: 1,
type: 'ExcelTemplate' type: ''
}, },
ColumnsQuery: [], ColumnsQuery: [],
TableColumns: [], TableColumns: [],

Loading…
Cancel
Save