diff --git a/src/views/main/BookingLedger/detail/components/sedOrder.vue b/src/views/main/BookingLedger/detail/components/sedOrder.vue index 8a51bc7..fd03ddb 100644 --- a/src/views/main/BookingLedger/detail/components/sedOrder.vue +++ b/src/views/main/BookingLedger/detail/components/sedOrder.vue @@ -156,7 +156,7 @@ export default { inSecLoad: false, mainOrderActiveKey: '1', basicRules: { - customername: [ { required: false, message: '请选择客户名', trigger: 'change' } ], + customername: [ { required: false, message: '请选择委托单位', trigger: 'change' } ], mblno: [{ required: false, message: '请输入提单号', trigger: 'change' }], carrierid: [{ required: false, message: '请选择船公司', trigger: 'change' }], forwarder: [{ required: false, message: '请输入订舱代理', trigger: 'change' }], @@ -172,7 +172,7 @@ export default { atd: [{ required: false, message: '请选择实际开船日期', trigger: 'change' }], lanename: [{ required: false, message: '请输入航线', trigger: 'change' }], shipagency: [{ required: false, message: '请输入船代', trigger: 'change' }], - sale: [{ required: false, message: '请选择销售人员', trigger: 'change' }], + sale: [{ required: false, message: '请选择揽货人员', trigger: 'change' }], op: [{ required: false, message: '请选择操作人员', trigger: 'change' }], doc: [{ required: false, message: '请选择单证人员', trigger: 'change' }], custservice: [{ required: false, message: '请选择客服人员', trigger: 'change' }] diff --git a/src/views/main/BookingLedger/detail/index.vue b/src/views/main/BookingLedger/detail/index.vue index 20ed2e6..5b59e32 100644 --- a/src/views/main/BookingLedger/detail/index.vue +++ b/src/views/main/BookingLedger/detail/index.vue @@ -366,7 +366,7 @@ export default { checkFrom: [], mainOrderActiveKey: '1-1', basicRules: { - customername: [{ required: false, message: '请选择客户名', trigger: 'change' }], + customername: [{ required: false, message: '请选择委托单位', trigger: 'change' }], mblno: [{ required: false, message: '请输入提单号', trigger: 'change' }], carrierid: [{ required: false, message: '请选择船公司', trigger: 'change' }], forwarder: [{ required: false, message: '请输入订舱代理', trigger: 'change' }], @@ -382,7 +382,7 @@ export default { atd: [{ required: false, message: '请选择实际开船日期', trigger: 'change' }], lanename: [{ required: false, message: '请输入航线', trigger: 'change' }], shipagency: [{ required: false, message: '请输入船代', trigger: 'change' }], - sale: [{ required: false, message: '请选择销售人员', trigger: 'change' }], + sale: [{ required: false, message: '请选择揽货人员', trigger: 'change' }], op: [{ required: false, message: '请选择操作人员', trigger: 'change' }], doc: [{ required: false, message: '请选择单证人员', trigger: 'change' }], custservice: [{ required: false, message: '请选择客服人员', trigger: 'change' }] diff --git a/src/views/main/BookingLedger/detail/modules/basicInfo.vue b/src/views/main/BookingLedger/detail/modules/basicInfo.vue index 07724b2..57836f2 100644 --- a/src/views/main/BookingLedger/detail/modules/basicInfo.vue +++ b/src/views/main/BookingLedger/detail/modules/basicInfo.vue @@ -8,13 +8,12 @@
- - + --> + + + {{ customer.shortName }} + + - + /> --> + + + {{ saleUser.name }} + + - + - + /> --> + + + {{ opUser.name }} + + - + - + /> --> + + + + {{ docUser.name }} + + - + - + /> --> + + + {{ custserviceUser.name }} + + + + + + + + + {{ routeUser.name }} + + @@ -497,7 +580,7 @@ { - if (item.shortName == value) { + if (item.shortName === value) { this.details.op = item.op this.details.opid = item.opid this.details.sale = item.sale @@ -1106,7 +1215,7 @@ export default { } this.getDjyCustomerpage(value, 'customer', 'consignor') }, - // 客户 - end + // 委托单位 - end // 订舱代理 - start forwarderSelect(value) { @@ -1277,6 +1386,8 @@ export default { this.docUserList = res.data } else if (type === 'custservice') { this.custserviceUserList = res.data + } else if (type === 'route') { + this.routeUserList = res.data } } }) @@ -1285,15 +1396,22 @@ export default { }) }, - // 销售 - saleSelect(value) { - console.log('销售选中', value) + // 揽货人 + saleSelect(val) { + const index = Number(val) + this.details.sale = this.saleUserList[index].name + this.details.saleid = this.saleUserList[index].id + console.log('揽货人选中', this.details.sale) + }, + // 模糊搜索暂时不用 + saleSelect1(value) { + console.log('揽货人选中', value) this.details.sale = value const index = this.saleUserListArr.indexOf(value) this.details.saleid = this.saleUserList[index].id }, saleChange(value) { - console.log('销售搜索内容: ', value) + console.log('揽货人搜索内容: ', value) if (!value) { this.details.sale = this.details.sale ? this.details.sale : '' } @@ -1301,7 +1419,14 @@ export default { }, // 操作 - opSelect(value) { + opSelect(val) { + const index = Number(val) + this.details.op = this.opUserList[index].name + this.details.opid = this.opUserList[index].id + console.log('修改操作人员', this.details.op) + }, + // 模糊搜索暂时不用 + opSelect1(value) { this.details.op = value const index = this.opUserListArr.indexOf(value) this.details.opid = this.opUserList[index].id @@ -1315,7 +1440,14 @@ export default { }, // 单证 - docSelect(value) { + docSelect(val) { + const index = Number(val) + this.details.doc = this.docUserList[index].name + this.details.docid = this.docUserList[index].id + console.log('修改单证人员', this.details.doc) + }, + // 模糊搜索暂时不用 + docSelect1(value) { this.details.doc = value const index = this.docUserListArr.indexOf(value) this.details.docid = this.docUserList[index].id @@ -1329,7 +1461,14 @@ export default { }, // 客服 - custserviceSelect(value) { + custserviceSelect(val) { + const index = Number(val) + this.details.custservice = this.custserviceUserList[index].name + this.details.custserviceid = this.custserviceUserList[index].id + console.log('修改客服人员', this.details.custservice) + }, + // 模糊搜索暂时不用 + custserviceSelect1(value) { this.details.custservice = value const index = this.custserviceUserListArr.indexOf(value) this.details.custserviceid = this.custserviceUserList[index].id @@ -1342,6 +1481,14 @@ export default { this.getUserList(value, 'custservice') }, + // 航线操作 + routeSelect(val) { + const index = Number(val) + this.details.route = this.routeUserList[index].name + this.details.routeid = this.routeUserList[index].id + console.log('修改客服人员', this.details.route) + }, + // 团队成员 - end // 关系人弹窗 - start @@ -1385,7 +1532,7 @@ export default { } ) } else { - this.$message.warning('请先选择客户!') + this.$message.warning('请先选择委托单位!') } } }, diff --git a/src/views/main/BookingLedger/detail/modules/mailingInfo.vue b/src/views/main/BookingLedger/detail/modules/mailingInfo.vue index a3ddee9..dcc17de 100644 --- a/src/views/main/BookingLedger/detail/modules/mailingInfo.vue +++ b/src/views/main/BookingLedger/detail/modules/mailingInfo.vue @@ -196,7 +196,7 @@ + + has-feedback + prop="warehouse" + > + +
@@ -862,6 +877,7 @@ export default { customserData: [], // 报关行 truckerData: [], // 车队 agentidData: [], // 国外代理 + warehouseData: [], // 仓库 shippername: '', consigneename: '', notifypartyname: '', @@ -1104,6 +1120,19 @@ export default { } else { return [] } + }, + warehouseDataArr() { + if (this.warehouseData) { + const arr = [] + this.warehouseData.map((item, index) => { + if (!arr.includes(item.shortName)) { + arr.push(item.shortName) + } + }) + return arr + } else { + return [] + } } }, created() { @@ -1464,6 +1493,19 @@ export default { }, // 国外代理 - end + // 仓库 - start + warehouseSelect(value) { + this.details.warehouse = value + this.details.warehouseID = this.warehouseData[this.warehouseDataArr.indexOf(value)].id + }, + warehouseChange(value) { + if (!value) { + this.details.warehouse = this.details.warehouse ? this.details.warehouse : '' + } + this.getDjyCustomerpage(value, 'warehouse', 'warehouse') + }, + // 仓库 - end + // 保存模板 saveModel(type) { this.modelVisible = true diff --git a/src/views/main/BookingLedger/list/index.vue b/src/views/main/BookingLedger/list/index.vue index 3be06ee..e7bce09 100644 --- a/src/views/main/BookingLedger/list/index.vue +++ b/src/views/main/BookingLedger/list/index.vue @@ -34,6 +34,7 @@ :resetType="ResetType" @change="formChange" @pressEnter="pressEnterFun" + @getCompleteList="getCompleteListFun" > @@ -125,12 +126,27 @@ + + + @@ -159,6 +175,13 @@ + + @@ -458,7 +481,12 @@ import { GetVessellist, GetPortlist, BookingOrderBachUpdate, - GetCarrierlist + GetCarrierlist, + DjyCustomerSuggest, + getVesselInfoService, + GetYardlist, + GetSysUserPage, + DjyCustomerpage } from '@/api/modular/main/BookingLedger' import columnSetting from '@/components/tableColumnSetting' import formLabel from './modules/formLabel' @@ -727,9 +755,11 @@ export default { } this.formData.map((item, index) => { this.$set(this.formRes, item.label, this.formRes[item.label] || '') - // select 船公司 获取下拉列表 - if (item.label === 'CARRIER') { - this.getFromSelectData(GetCarrierlist).then((data) => { + // select 船公司 获取下拉列表、 + const fun = this.emnuSelectApi(item.label) + // debugger + if (fun) { + this.getFromSelectData(fun).then((data) => { item.dataList = data this.$refs[`fromlabel-${item.label}`][0].$data.dataList = data }) @@ -747,11 +777,21 @@ export default { this.$forceUpdate() }) }, + emnuSelectApi (type) { + switch (type) { + case 'CARRIER': + return GetCarrierlist + case 'YARDID': + return GetYardlist + } + }, // 添加获取表单下拉列表数据 getFromSelectData(func, ...args) { + // debugger return new Promise((resolve, reject) => { - func(args).then((res) => { - console.log('== 船公司 ==', res) + // debugger + func(...args).then((res) => { + // debugger if (res.code === 200) { resolve(res.data); } else { @@ -759,26 +799,6 @@ export default { } }) }); - // GetCarrierlist({ - // KeyWord: name - // }) - // .then(res => { - // if (res.code === 200) { - // this.carrierData = res.data - // const arr = [] - // res.data.map((item, index) => { - // arr.push({ - // ...{ selectShowTab: item.cnName + ' / ' + item.code }, - // ...item - // }) - // }) - // this.carrierSelectData = arr - // this.$forceUpdate() - // } - // }) - // .catch(err => { - // console.log(err) - // }) }, // 添加获取表单下拉列表数据 getTableList() { @@ -941,14 +961,11 @@ export default { } else if (form.type === 'date') { this.formRes[form.label] = value } else if (form.type === 'dateRange') { - // 根据逻辑填写内容, 目前仅etd为时间范围 - // this.formRes[form.label] = value - if (form.label === 'ETD') { - this.formRes.BETD = value[0] - this.formRes.EETD = value[1] - } + this.formRes[form.resLabel[0]] = value[0] + this.formRes[form.resLabel[1]] = value[1] } else if (form.type === 'select') { - // 根据逻辑填写内容 + this.formRes[form.label] = value + } else if (form.type === 'complete') { this.formRes[form.label] = value } this.$forceUpdate() @@ -1263,7 +1280,77 @@ export default { .catch(err => { console.log(err) }) + }, + // 模糊搜索 + getCompleteListFun ({ form, value }) { + let query = {} + if (['VESSEL', 'PORTDISCHARGE', 'PORTLOAD'].includes(form.label)) { + // 船公司 卸货港 + query = { + KeyWord: value + } + } else if (form.label === 'CUSTOMERNAME') { + // 客户/ 委托单位 + query = { + KeyWord: value, + type: 'consignor' + } + } else if (form.label === 'FORWARDER') { + // 订舱代理 + query = { + KeyWord: value, + type: 'booking_agent' + } + } else if (['SALE', 'CUSTSERVICE', 'DOC'].includes(form.label)) { + // 销售 、 揽货人 + query = { + name: value + } + } else if (form.label === 'CUSTOMSER') { + // 报关行 + query = { + SearchValue: value, + PropString: 'customs_broker' + } + } + const fun = this.emnuCompleteApi(form.label) + if (fun) { + this.getFromSelectData(this.emnuCompleteApi(form.label), query).then((data) => { + console.log(data) + if (['CUSTOMERNAME', 'FORWARDER', 'CUSTOMSER'].includes(form.label)) { + this.$refs[`fromlabel-${form.label}`][0].$data.dataSourceList = data.rows + } else { + this.$refs[`fromlabel-${form.label}`][0].$data.dataSourceList = data + } + }) + } + }, + + emnuCompleteApi (type) { + switch (type) { + case 'VESSEL': + return GetVessellist + case 'CUSTOMERNAME': + return DjyCustomerSuggest + case 'FORWARDER': + return DjyCustomerSuggest + case 'PORTDISCHARGE': + return GetPortlist + case 'PORTLOAD': + return GetPortlist + case 'SALE': + return GetSysUserPage + case 'CUSTSERVICE': + return GetSysUserPage + case 'OP': + return GetSysUserPage + case 'DOC': + return GetSysUserPage + case 'CUSTOMSER': + return DjyCustomerpage + } } + } } @@ -1841,4 +1928,17 @@ export default { } } +/deep/ .ant-form-item-control-wrapper{ + overflow: hidden !important; +} + +.no-data{ + display: block; + color: #aaa; + font-size: 14px; + i{ + line-height: 120px; + font-size: 100px; + } +} diff --git a/src/views/main/BookingLedger/list/modules/formLabel.vue b/src/views/main/BookingLedger/list/modules/formLabel.vue index cfea711..e9a1f67 100644 --- a/src/views/main/BookingLedger/list/modules/formLabel.vue +++ b/src/views/main/BookingLedger/list/modules/formLabel.vue @@ -1,48 +1,72 @@ --> + @@ -139,4 +179,36 @@ export default { .aa{ transform: scaleY(.8); } +/deep/ .ant-select-selection__clear{ + margin-top: 0; +} +.vessel-label{ + // border-bottom:1px solid #eee; + .title{ + height: 28px; + line-height: 28px; + font-size: 14px; + font-weight:600; + color: #666; + border-bottom:1px dashed #ddd; + margin-bottom: 4px; + } + .voyno, .etd { + height: 22px; + line-height: 22px; + font-size: 12px; + color: #999; + } +} + +/deep/.ant-calendar-picker-input{ + overflow: hidden; +} +/deep/.ant-calendar-range-picker-input{ + height: 24px !important; + line-height: 24px !important; +} +/deep/ .ant-input{ + height: 24px !important; +} diff --git a/src/views/main/BookingLedger/list/modules/initData.js b/src/views/main/BookingLedger/list/modules/initData.js index 177cc33..5971dcd 100644 --- a/src/views/main/BookingLedger/list/modules/initData.js +++ b/src/views/main/BookingLedger/list/modules/initData.js @@ -1,27 +1,11 @@ export default { + // ==== 表格部分 ==== columns: [ { type: 'checkbox', width: 60, noDraggable: true }, - { field: 'carrier', label: 'CARRIER', width: 120, title: '船公司', showHeaderOverflow: true, sortable: true }, + { field: 'carrier', width: 120, title: '船公司', showHeaderOverflow: true, sortable: true }, { field: 'yard', label: 'YARD', width: 120, title: '场站', showHeaderOverflow: true, sortable: true }, - { - field: 'mblno', - label: 'MBLNO', - width: 160, - title: '主提单号', - showHeaderOverflow: true, - showOverflow: false, - sortable: true, - slots: { default: 'mblno' } - }, - { - field: 'vessel', - label: 'VESSEL', - width: 120, - title: '船名航次', - showHeaderOverflow: true, - sortable: true, - slots: { default: 'vessel' } - }, + { field: 'mblno', label: 'MBLNO', width: 160, title: '主提单号', showHeaderOverflow: true, showOverflow: false, sortable: true, slots: { default: 'mblno' } }, + { field: 'vessel', label: 'VESSEL', width: 120, title: '船名', showHeaderOverflow: true, sortable: true }, { field: 'etd', label: 'ETD', width: 110, title: '开船日期', showHeaderOverflow: true, sortable: true, slots: { default: 'etd' } }, { field: 'voyno', label: 'VOYNO', width: 120, title: '海关航次', showHeaderOverflow: true }, { field: 'bookingStatus', label: 'BOOKINGSTATUS', width: 120, title: '订舱状态', showHeaderOverflow: true }, @@ -29,74 +13,107 @@ export default { { 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: 'createdTime', label: 'CREATEDTIME', width: 160, title: '创建时间', showHeaderOverflow: true, sortable: true }, - { field: 'cntrtotal', label: 'CNTRTOTAL', 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: 'operate', title: '操作', width: 80, noDraggable: true, slots: { default: 'operate' }, fixed: 'right', resizable: false } ], columnsAllData: [ - { field: 'carrier', width: 120, title: '船公司', showHeaderOverflow: true, sortable: true }, + { field: 'mblno', label: 'MBLNO', width: 160, title: '主提单号', showHeaderOverflow: true, showOverflow: false, sortable: true, slots: { default: 'mblno' } }, + { field: 'hblno', label: 'HBLNO', width: 120, title: '分提单号', showHeaderOverflow: true, sortable: true }, + { field: 'customername', label: 'CUSTOMERNAME', width: 120, title: '委托单位', showHeaderOverflow: true, sortable: true }, // 客户 + { field: 'consignee', label: 'CONSIGNEE', width: 120, title: '收货人', showHeaderOverflow: true, sortable: true }, + { field: 'notifyparty', label: 'NOTIFYPARTY', width: 120, title: '通知人', showHeaderOverflow: true, sortable: true }, { field: 'yard', label: 'YARD', width: 120, title: '场站', showHeaderOverflow: true, sortable: true }, - { - field: 'mblno', - label: 'MBLNO', - width: 160, - title: '主提单号', - showHeaderOverflow: true, - showOverflow: false, - sortable: true, - slots: { default: 'mblno' } - }, - { - field: 'vessel', - label: 'VESSEL', - width: 120, - title: '船名航次', - showHeaderOverflow: true, - sortable: true, - slots: { default: 'vessel' } - }, + { field: 'vessel', label: 'VESSEL', width: 120, title: '船名', showHeaderOverflow: true, sortable: true }, + { field: 'voynoinner', label: 'VOYNOINNER', width: 120, title: '内部航次', showHeaderOverflow: true, sortable: true }, // 内部航次 / 海关航次 ? 暂时放内部航次 { field: 'etd', label: 'ETD', width: 110, title: '开船日期', showHeaderOverflow: true, sortable: true, slots: { default: 'etd' } }, - { 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: 'bookingStatus', label: 'BOOKINGSTATUS', width: 120, title: '订舱状态', showHeaderOverflow: true }, - { field: 'vgm', label: 'VGM', width: 120, title: 'VGM', 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: 'createdTime', label: 'CREATEDTIME', width: 160, 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: 'blfrt', label: 'BLFRT', width: 120, title: '付费方式', showHeaderOverflow: true, sortable: true }, - { field: 'cargoid', label: 'CARGOID', width: 120, title: '货物标识', showHeaderOverflow: true, sortable: true }, + { field: 'payableat', label: 'PAYABLEAT', width: 120, title: '到付地点', showHeaderOverflow: true, sortable: true }, + { field: 'pkgs', label: 'PKGS', width: 120, title: '件数', showHeaderOverflow: true, sortable: true }, + { field: 'kindpkgs', label: 'KINDPKGS', width: 120, title: '包装', showHeaderOverflow: true, sortable: true }, + { field: 'kgs', label: 'KGS', width: 120, 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: 'contractno', label: 'CONTRACTNO', width: 120, title: '合约号', showHeaderOverflow: true, sortable: true }, - { field: 'customername', label: 'CUSTOMERNAME', width: 120, title: '客户', showHeaderOverflow: true, sortable: true }, + { field: 'cntrtotal', label: 'CNTRTOTAL', width: 120, title: '箱型*箱量', showHeaderOverflow: true, sortable: true }, + { field: 'custservice', label: 'CUSTSERVICE', 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: 'op', label: 'OP', width: 120, title: '操作员', showHeaderOverflow: true, sortable: true }, + { field: 'doc', label: 'DOC', width: 120, title: '单证员', showHeaderOverflow: true, sortable: true }, + { field: 'carrier', 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: 'doc', label: 'DOC', 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: 'freightpayer', label: 'FREIGHTPAYER', 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: 'issueplace', label: 'ISSUEPLACE', 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: 'kindpkgs', label: 'KINDPKGS', width: 120, title: '包装', showHeaderOverflow: true, sortable: true }, - { field: 'pkgs', label: 'PKGS', width: 120, title: '件数', showHeaderOverflow: true, sortable: true }, + { field: 'issueplace', label: 'ISSUEPLACE', width: 120, title: '签单地点', showHeaderOverflow: true, sortable: true }, + { field: 'placedelivery', label: 'PLACEDELIVERY', width: 120, title: '交货地点', showHeaderOverflow: true, sortable: true }, + { field: 'nobill', label: 'NOBILL', width: 120, title: '提单份数', showHeaderOverflow: true, sortable: true }, + { field: 'portdischarge', label: 'PORTDISCHARGE', width: 120, title: '卸货港', showHeaderOverflow: true, sortable: true }, + { field: 'bookremark', label: 'BOOKREMARK', width: 120, title: '合同号备注', className: 'book-remark-box', showOverflow: false, slots: { default: 'bookremark' } }, + // { field: 'remarks', label: 'REMARKS', width: 120, title: '其他备注', showHeaderOverflow: true, showOverflow: false, sortable: true, slots: { default: 'remarks' } }, // 暂时写为so备注 + si备注 数据量太大,不要了 + { field: 'bookstatus', label: 'BOOKSTATUS', minWidth: 140, title: '运踪', showHeaderOverflow: true, slots: { default: 'bookstatus' } }, + { field: 'closingdate', label: 'CLOSINGDATE', width: 160, title: '截港日期', showHeaderOverflow: true, sortable: true, slots: { default: 'closingdate' } }, + { field: 'eta', label: 'ETA', width: 160, title: '预计到港日期', showHeaderOverflow: true, sortable: true }, + { field: 'portload', label: 'PORTLOAD', width: 160, title: '装货港', showHeaderOverflow: true, sortable: true }, + { field: 'shipper', label: 'SHIPPER', width: 160, title: '发货人', showHeaderOverflow: true, sortable: true }, + { field: 'destination', label: 'DESTINATION', width: 160, title: '目的地', showHeaderOverflow: true, sortable: true }, + { field: 'issuedate', label: 'ISSUEDATE', width: 160, title: '签单日期', showHeaderOverflow: true, sortable: true, slots: { default: 'issuedate' } }, + { field: 'prepardat', label: 'PREPARDAT', width: 160, title: '预付地点', showHeaderOverflow: true, sortable: true }, + { field: 'service', label: 'SERVICE', width: 160, title: '运输条款', showHeaderOverflow: true, sortable: true }, + { field: 'sale', label: 'SALE', width: 160, title: '揽货人', showHeaderOverflow: true, sortable: true }, // 销售 + { field: 'lanename', label: 'LANENAME', width: 160, title: '航线', showHeaderOverflow: true, sortable: true }, + { field: 'servicecontractno', label: 'SERVICECONTRACTNO', width: 160, title: '客户合同号', showHeaderOverflow: true, sortable: true }, // 没有设置该字段的地方 + { field: 'bsstatusname', label: 'BSSTATUSNAME', width: 160, title: '业务状态', showHeaderOverflow: true, sortable: true }, + { field: 'bsno', label: 'BSNO', width: 160, title: '业务编号', showHeaderOverflow: true, sortable: true }, + { field: 'agentid', label: 'AGENTID', width: 160, title: '国外代理', showHeaderOverflow: true, sortable: true }, + { field: 'trucker', label: 'TRUCKER', width: 160, title: '车队', showHeaderOverflow: true, sortable: true }, + { field: 'tempset', label: 'TEMPSET', width: 160, title: '设置温度', showHeaderOverflow: true, sortable: true }, + { field: 'reeferf', label: 'REEFERF', width: 160, title: '通风度', showHeaderOverflow: true, sortable: true }, + { field: 'shipagency', label: 'SHIPAGENCY', width: 160, title: '船代', showHeaderOverflow: true, sortable: true }, + { field: 'bookingno', label: 'BOOKINGNO', width: 160, title: '订舱编号', showHeaderOverflow: true, sortable: true }, + // 以下为东胜没有,大简云有,目前保留的 + { field: 'vgm', label: 'VGM', width: 120, title: 'VGM', showHeaderOverflow: true }, + { field: 'forwarder', label: 'FORWARDER', width: 120, title: '订舱代理', showHeaderOverflow: true, sortable: true }, + { field: 'bookingStatus', label: 'BOOKINGSTATUS', width: 120, title: '订舱状态', showHeaderOverflow: true }, + { field: 'freightpayer', label: 'FREIGHTPAYER', width: 120, title: '付款方', showHeaderOverflow: true, sortable: true }, + { field: 'voyno', label: 'VOYNO', width: 120, title: '海关航次', showHeaderOverflow: true }, + { field: 'cargoid', label: 'CARGOID', 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: 'notifyparty', label: 'NOTIFYPARTY', 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: '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_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: 'billStatus', label: 'BILLSTATUS', width: 120, title: '提单状态', showHeaderOverflow: true }, + { field: 'dunno', label: 'DUNNO', width: 120, title: '危险品编号', showHeaderOverflow: true, sortable: true }, + { field: 'contractno', label: 'CONTRACTNO', width: 120, title: '合约号', showHeaderOverflow: true, sortable: true }, + { field: 'route', label: 'ROUTE', width: 120, title: '航线操作', showHeaderOverflow: true, sortable: true } ], + // ==== 表单部分 ==== condAllData: [ + { title: '委托单位', align: 'center', width: 160, label: 'CUSTOMERNAME', type: 'complete', showLabel: 'shortName' }, // 客户 + { title: '主提单号', align: 'center', width: 160, label: 'MBLNO', type: 'input' }, + { title: '分提单号', align: 'center', width: 160, label: 'HBLNO', type: 'input' }, + { title: '船公司', align: 'center', width: 120, label: 'CARRIER', type: 'select', showLabel: 'enName', showLabel2: 'cnName' }, + { title: '订舱代理', align: 'center', width: 120, label: 'FORWARDER', type: 'complete', showLabel: 'shortName' }, + { title: '场站', align: 'center', width: 120, label: 'YARDID', type: 'select', showLabel: 'code', showLabel2: 'name' }, // 场站显示 name , yardid 取字段 code + // { title: '船名/航次', align: 'center', width: 120, label: 'VESSEL', type: 'complete', showLabel: 'vessel', showLabel2: 'voyno' }, // 船名航次换接口 船名 vessel 航次 voyno + { title: '船名', align: 'center', width: 120, label: 'VESSEL', type: 'complete', showLabel: 'name' }, // 船名航次换接口 船名 vessel 航次 voyno + { title: '开船日期', align: 'center', width: 160, label: 'ETD', type: 'dateRange', resLabel: ['BETD', 'EETD'] }, + { title: '实际开船日期', align: 'center', width: 160, label: 'ATD', type: 'dateRange', resLabel: ['BATD', 'EATD'] }, + { title: '预计到港日期', align: 'center', width: 160, label: 'ETA', type: 'dateRange', resLabel: ['BETA', 'EETA'] }, + { title: '卸货港', align: 'center', width: 120, label: 'PORTDISCHARGE', type: 'complete', showLabel: 'enName' }, + { title: '装货港', align: 'center', width: 120, label: 'PORTLOAD', type: 'complete', showLabel: 'enName' }, + { title: '揽货人', align: 'center', width: 120, label: 'SALE', type: 'complete', showLabel: 'name' }, // 销售 + { title: '客服员', align: 'center', width: 120, label: 'CUSTSERVICE', type: 'complete', showLabel: 'name' }, + { title: '操作员', align: 'center', width: 120, label: 'OP', type: 'complete', showLabel: 'name' }, + { title: '单证员', align: 'center', width: 120, label: 'DOC', type: 'complete', showLabel: 'name' }, + { title: '报关行', align: 'center', width: 120, label: 'CUSTOMSER', type: 'complete', showLabel: 'shortName' }, + { title: '订舱编号', align: 'center', width: 120, label: 'BOOKINGNO', type: 'input' }, + { title: '业务编号', align: 'center', width: 120, label: 'BSNO', type: 'input' }, + { title: '业务状态', align: 'center', width: 120, label: 'BSSTATUS', type: 'input' }, + { title: '客户合同号', align: 'center', width: 120, label: 'SERVICECONTRACTNO', type: 'input' }, + { title: '航线', align: 'center', width: 120, label: 'ROUTE', type: 'input' }, + { title: '航线代码', align: 'center', width: 120, label: 'LANECODE', type: 'input' }, + { title: '内部航次', align: 'center', width: 120, label: 'VOYNOINNER', type: 'input' }, + { title: '海关航次', align: 'center', width: 120, label: 'VOYNO', type: 'input' }, + // 未完成 + ], + condAllDataOld: [ { title: '业务编号', align: 'center', width: 120, label: 'BSNO', type: 'input' }, // { title: '船公司', align: 'center', width: 120, label: 'CARRIER', type: 'input' }, { title: '船公司', align: 'center', width: 120, label: 'CARRIER', type: 'select', showLabel: 'enName' }, @@ -118,7 +135,7 @@ export default { { title: '场站代码', align: 'center', width: 120, label: 'YARDID', type: 'input' }, { title: '场站', align: 'center', width: 120, label: 'YARD', type: 'input' }, { title: '船舶呼号', align: 'center', width: 120, label: 'VESSELID', type: 'input' }, - { title: '船名', align: 'center', width: 120, label: 'VESSEL', type: 'input' }, + { title: '船名', align: 'center', width: 120, label: 'VESSEL', type: 'complete', showLabel: 'name' }, { title: '海关航次', align: 'center', width: 120, label: 'VOYNO', type: 'input' }, { title: '内部航次', align: 'center', width: 120, label: 'VOYNOINNER', type: 'input' }, { title: '开船日期', align: 'center', width: 160, label: 'ETD', type: 'dateRange' }, @@ -138,5 +155,39 @@ export default { { title: '目的地代码', align: 'center', width: 120, label: 'DESTINATIONID', type: 'input' }, { title: '目的地', align: 'center', width: 120, label: 'DESTINATION', type: 'input' } // 此处省略部分数据 - ] + ], + columnsOld: [ + { type: 'checkbox', width: 60, noDraggable: true }, + { field: 'carrier', label: 'CARRIER', width: 120, title: '船公司', showHeaderOverflow: true, sortable: true }, + { field: 'yard', label: 'YARD', width: 120, title: '场站', showHeaderOverflow: true, sortable: true }, + { + field: 'mblno', + label: 'MBLNO', + width: 160, + title: '主提单号', + showHeaderOverflow: true, + showOverflow: false, + sortable: true, + slots: { default: 'mblno' } + }, + { + field: 'vessel', + label: 'VESSEL', + width: 120, + title: '船名航次', + showHeaderOverflow: true, + sortable: true, + slots: { default: 'vessel' } + }, + { field: 'etd', label: 'ETD', width: 110, title: '开船日期', showHeaderOverflow: true, sortable: true, slots: { default: 'etd' } }, + { field: 'voyno', label: 'VOYNO', 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: '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: 'createdTime', label: 'CREATEDTIME', width: 160, 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 } + ], }