diff --git a/src/api/modular/main/BookingLedger.js b/src/api/modular/main/BookingLedger.js index 63919f8..83f937d 100644 --- a/src/api/modular/main/BookingLedger.js +++ b/src/api/modular/main/BookingLedger.js @@ -773,7 +773,7 @@ export function DeleteBookingOrder(parameter) { }) } -//恢复删除 +// 恢复删除 export function RecoverDeleteOrder(parameter) { return axios({ url: '/BookingOrder/RecoverDelete?Ids=' + parameter, @@ -864,3 +864,35 @@ export function seaeEdiCustEDI(parameter) { data: parameter }) } + +export function downloadBookingConfirm(parameter) { + return axios({ + url: '/BookingValueAdded/DownloadBookingConfirm', + method: 'post', + data: parameter + }) +} + +export function downloadDraft(parameter) { + return axios({ + url: '/BookingValueAdded/DownloadDraft', + method: 'post', + data: parameter + }) +} + +export function checkUpdateETA(parameter) { + return axios({ + url: '/BookingValueAdded/CheckUpdateETA', + method: 'post', + data: parameter + }) +} + +export function checkUpdateManifestNo(parameter) { + return axios({ + url: '/BookingValueAdded/CheckUpdateManifestNo', + method: 'post', + data: parameter + }) +} diff --git a/src/components/Table/index.js b/src/components/Table/index.js index 33f75c5..f321855 100644 --- a/src/components/Table/index.js +++ b/src/components/Table/index.js @@ -16,7 +16,7 @@ export default { selectedRows: [], selectedRowKeys: [], - + sortObj: { DescSort: '' }, localLoading: false, localDataSource: [], localPagination: Object.assign({}, this.pagination), @@ -46,6 +46,10 @@ export default { type: Boolean, default: true }, + pageSizeOptions: { + type: Array, + default: ['10', '20', '30', '40', '50'] + }, size: { type: String, default: 'middle' @@ -125,25 +129,29 @@ export default { current: localPageNum, pageSize: this.pageSize, showSizeChanger: this.showSizeChanger, - //pageSizeOptions: ['10', '20', '30', '40', '50'], //分页选项 + pageSizeOptions: this.pageSizeOptions, showTotal: (total, range) => { return range[0] + '-' + range[1] + '共' + total + '条' } })) || false this.needTotalList = this.initTotalList(this.columns) + this.sortObj = { + DescSort: '', + field: '' + } this.loadData() // this.columnsSetting = this.columns - //记录选择显示的列,以当前路由为key + // 记录选择显示的列,以当前路由为key this.columnsSetting = [] - let cacheColumns = this.$ls.get(this.$route.path) + const cacheColumns = this.$ls.get(this.$route.path) if (cacheColumns && cacheColumns.length > 0) { this.columnsSetting = cacheColumns this.columns.forEach((item, index, arr) => { - let temp = this.columnsSetting.find(m => m.dataIndex == item.dataIndex) - //如果存在 + const temp = this.columnsSetting.find(m => m.dataIndex == item.dataIndex) + // 如果存在 if (temp) { arr[index].checked = temp.checked } @@ -161,6 +169,7 @@ export default { * @param Boolean bool */ refresh(bool = false) { + console.log(this.sortObj) bool && (this.localPagination = Object.assign( {}, @@ -179,6 +188,9 @@ export default { */ loadData(pagination, filters, sorter) { this.localLoading = true + if (sorter) { + this.sortObj = sorter + } const parameter = Object.assign( { pageNo: @@ -188,20 +200,25 @@ export default { (this.showPagination && this.localPagination.pageSize) || this.pageSize }, - (sorter && - sorter.field && { - sortField: sorter.field - }) || - {}, - (sorter && - sorter.order && { - sortOrder: sorter.order - }) || - {}, + (this.sortObj && this.sortObj.field && { SortField: this.sortObj.field }) || {}, { ...filters } ) + if (this.sortObj && this.sortObj.order === 'descend' && this.sortObj.field) { + parameter.DescSort = true + this.sortObj.DescSort = true + } else { + if (this.sortObj && this.sortObj.field) { + parameter.DescSort = false + this.sortObj.DescSort = false + } else { + delete parameter.DescSort + if (this.sortObj) { + this.sortObj.DescSort = '' + } + } + } const result = this.data(parameter) // 对接自己的通用数据接口需要修改下方代码中的 r.pageNo, r.totalCount, r.data // eslint-disable-next-line @@ -379,7 +396,7 @@ export default { title: '列设置', isDropdown: true, menu: () => { - //return + // return return }, onClick: () => {} diff --git a/src/store/modules/booking.js b/src/store/modules/booking.js index bcffd67..c06fabb 100644 --- a/src/store/modules/booking.js +++ b/src/store/modules/booking.js @@ -330,12 +330,12 @@ const booking = { allData['payableatInitList'] = $data break case 'user': - allData['saleInitList'] = $data.result - allData['opInitList'] = $data.result - allData['docInitList'] = $data.result - allData['custserviceInitList'] = $data.result - allData['routeInitList'] = $data.result - allData['lineManageInitList'] = $data.result + allData['saleInitList'] = $data + allData['opInitList'] = $data + allData['docInitList'] = $data + allData['custserviceInitList'] = $data + allData['routeInitList'] = $data + allData['lineManageInitList'] = $data break case 'contractno': allData['contractnoInitList'] = $data diff --git a/src/views/main/BookingLedger/detail/modules/cargoInfo.vue b/src/views/main/BookingLedger/detail/modules/cargoInfo.vue index e50f7e2..b13754a 100644 --- a/src/views/main/BookingLedger/detail/modules/cargoInfo.vue +++ b/src/views/main/BookingLedger/detail/modules/cargoInfo.vue @@ -52,7 +52,7 @@ :defaultVal="details.goodsname" searchApi="getGoodsname" :searchQuery="{ queryItem: '', top: 50 }" - :showLabel="['goodsCode', 'goodsNameEN']" + :showLabel="['goodsNameEN', 'goodsCode']" :openSearch="true" @change="getSelectViewRes" style="width: 75%;max-width:210px;" diff --git a/src/views/main/BookingLedger/detail/modules/goodsTable.vue b/src/views/main/BookingLedger/detail/modules/goodsTable.vue index 28540b2..2a0f4b2 100644 --- a/src/views/main/BookingLedger/detail/modules/goodsTable.vue +++ b/src/views/main/BookingLedger/detail/modules/goodsTable.vue @@ -293,6 +293,7 @@ export default { edit: false, width: 130, renderBodyCell: ({ row, column, rowIndex }, h) => { + this.openEdit = true return ( { - // const activeDom = document.getElementsByClassName('ve-table-cell-selection')[0].firstChild - // if (this.isDOM(activeDom)) { - // const isCtnall = activeDom.classList.contains('ctnallView') - // const isKindpkgs = activeDom.classList.contains('kindpkgsView') - // if (isCtnall) { - // console.log('== 点击到箱型按钮,设置当前table禁止编辑 ==') - // activeDom.click() - // // this.cellSelectionOption.enable = false - // // setTimeout(() => { - // // this.cellAutofillOption = false - // // this.rowKeyName = false - // // this.tableData.map((item, index) => { - // // delete item.rowKey - // // }) - // // }, 300) - // } - // if (isKindpkgs) { - // activeDom.click() - // // this.cellSelectionOption.enable = false - // // setTimeout(() => { - // // this.cellAutofillOption = false - // // this.rowKeyName = false - // // this.tableData.map((item, index) => { - // // delete item.rowKey - // // }) - // // }, 300) - // } - // } - // }, 600) - // } + const arr = [] + if (document.getElementsByClassName('ant-select-dropdown').length > 0) { + document.getElementsByClassName('ant-select-dropdown').forEach((item) => { + const style = item.style + if (style.display !== 'none') { + arr.push(1) + } + }) + } + if (arr.length === 0) { + this.cellSelectionOption.enable = true + if ([37, 38, 39, 40, 9].includes(event.keyCode)) { + if (arr.length === 0) { + // this.openKeyDown = true + + setTimeout(() => { + const activeDom = document.getElementsByClassName('ve-table-cell-selection')[0].firstChild + if (this.isDOM(activeDom)) { + activeDom.click() + } + }, 200) + } + } + } else { + this.cellSelectionOption.enable = false + } } }) } diff --git a/src/views/main/BookingLedger/detail/modules/mailingInfo.vue b/src/views/main/BookingLedger/detail/modules/mailingInfo.vue index b83688a..7155ffa 100644 --- a/src/views/main/BookingLedger/detail/modules/mailingInfo.vue +++ b/src/views/main/BookingLedger/detail/modules/mailingInfo.vue @@ -13,9 +13,26 @@
- +
+ + +
+
发货人
- 保存保存
* @@ -119,8 +141,13 @@ @change="getSelectViewRes" style="flex: 1" > - 保存保存
* @@ -148,7 +175,13 @@
- +
@@ -1144,15 +1177,15 @@ export default { }, SetTOTALNO(SS) { SS = SS.toString() - let i = SS.indexOf('\n') + const i = SS.indexOf('\n') let num = 0 let strKind = '' let enCapital = '' if (i > 0) { - let slist = SS.split('\n') + const slist = SS.split('\n') for (let i = 0; i < slist.length; i += 1) { - let member = slist[i] - let strNum = this.GetStringNum(member) + const member = slist[i] + const strNum = this.GetStringNum(member) if (i == 0) { strKind = member.substring(strNum.length) } @@ -1266,14 +1299,15 @@ export default { } a = a.substring(1) } - if (a.length == 2) - if (a.substr(0, 1) == '0') a = a.substring(1) + if (a.length == 2) { + if (a.substr(0, 1) == '0') a = a.substring(1) else if (a.substr(0, 1) == '1') strRet += arr4[a.substr(1, 2)] else { strRet += arr2[a.substr(0, 1)] if (a.substr(1, 1) != '0') strRet += '-' a = a.substring(1) } +} if (a.length == 1 && a.substr(0, 1) != '0') strRet += arr3[a.substr(0, 1)] return strRet }, diff --git a/src/views/main/BookingLedger/detail/style/mailingInfo.less b/src/views/main/BookingLedger/detail/style/mailingInfo.less index 9f917ce..450428b 100644 --- a/src/views/main/BookingLedger/detail/style/mailingInfo.less +++ b/src/views/main/BookingLedger/detail/style/mailingInfo.less @@ -237,6 +237,23 @@ } } } + .sender{ + position: relative; + .move-btn{ + position: absolute; + height: 20px; + // transform: rotateY(180deg); + top: 5px; + right: 0; + // background: #f99; + z-index: 99; + i{ + display: block; + font-size: 14px; + color: #ff9702; + } + } + } /deep/ .ant-form-item-children-icon .anticon-check-circle { display: none; } diff --git a/src/views/main/BookingLedger/list/index.vue b/src/views/main/BookingLedger/list/index.vue index 8f6cfa7..5aeb1f1 100644 --- a/src/views/main/BookingLedger/list/index.vue +++ b/src/views/main/BookingLedger/list/index.vue @@ -1,5 +1,5 @@ + :style="(advanced && { float: 'right', overflow: 'hidden' }) || {}"> 查询 重置