diff --git a/src/api/modular/main/BookingLedger.js b/src/api/modular/main/BookingLedger.js
index 63919f8..0625b4b 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,11 @@ export function seaeEdiCustEDI(parameter) {
data: parameter
})
}
+
+export function downloadBookingConfirm(parameter) {
+ return axios({
+ url: '/BookingValueAdded/DownloadBookingConfirm',
+ method: 'post',
+ data: parameter
+ })
+}
diff --git a/src/components/Table/index.js b/src/components/Table/index.js
index 33f75c5..e42b8a4 100644
--- a/src/components/Table/index.js
+++ b/src/components/Table/index.js
@@ -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,7 +129,7 @@ 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 + '条'
}
@@ -134,16 +138,16 @@ export default {
this.needTotalList = this.initTotalList(this.columns)
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
}
@@ -178,7 +182,9 @@ export default {
* @param {Object} sorter 排序条件
*/
loadData(pagination, filters, sorter) {
+ console.log(pagination)
this.localLoading = true
+
const parameter = Object.assign(
{
pageNo:
@@ -188,20 +194,17 @@ export default {
(this.showPagination && this.localPagination.pageSize) ||
this.pageSize
},
- (sorter &&
- sorter.field && {
- sortField: sorter.field
- }) ||
- {},
- (sorter &&
- sorter.order && {
- sortOrder: sorter.order
- }) ||
- {},
+ (sorter && sorter.field && { SortField: sorter.field }) || {},
+ (sorter && sorter.order && { sortOrder: sorter.order }) || {},
{
...filters
}
)
+ if (sorter && sorter.order === 'descend') {
+ parameter.DescSort = true
+ } else {
+ parameter.DescSort = false
+ }
const result = this.data(parameter)
// 对接自己的通用数据接口需要修改下方代码中的 r.pageNo, r.totalCount, r.data
// eslint-disable-next-line
@@ -379,7 +382,7 @@ export default {
title: '列设置',
isDropdown: true,
menu: () => {
- //return
{{ item.fieldName }}:
{{ item.reqVal }}
@@ -358,18 +398,34 @@
-