|
|
@ -130,7 +130,12 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
|
|
<script lang="ts" setup>
|
|
|
|
import { ref } from 'vue'
|
|
|
|
import { ref } from 'vue'
|
|
|
|
import { GetCheckBillList, CheckBillLocking, CheckBillUnLocking } from './api.js'
|
|
|
|
import {
|
|
|
|
|
|
|
|
GetCheckBillList,
|
|
|
|
|
|
|
|
CheckBillLocking,
|
|
|
|
|
|
|
|
CheckBillUnLocking,
|
|
|
|
|
|
|
|
BatchDelCheckBill,
|
|
|
|
|
|
|
|
} from './api.js'
|
|
|
|
import { BasicTable, useTable, TableAction } from '/@/components/Table'
|
|
|
|
import { BasicTable, useTable, TableAction } from '/@/components/Table'
|
|
|
|
import { columns, searchFormSchema, billTypeData } from './columns'
|
|
|
|
import { columns, searchFormSchema, billTypeData } from './columns'
|
|
|
|
import { GetOpenPrintModuleList } from '/@/views/operation/seaexport/api/BookingLedger.js'
|
|
|
|
import { GetOpenPrintModuleList } from '/@/views/operation/seaexport/api/BookingLedger.js'
|
|
|
@ -146,86 +151,87 @@
|
|
|
|
import { useAppStore } from '/@/store/modules/app'
|
|
|
|
import { useAppStore } from '/@/store/modules/app'
|
|
|
|
const appStore = useAppStore()
|
|
|
|
const appStore = useAppStore()
|
|
|
|
// 表格
|
|
|
|
// 表格
|
|
|
|
const [registerTable, { getForm, getPaginationRef, getSelectRows, getRawDataSource }] = useTable({
|
|
|
|
const [registerTable, { reload, getForm, getPaginationRef, getSelectRows, getRawDataSource }] =
|
|
|
|
title: '',
|
|
|
|
useTable({
|
|
|
|
api: async (p) => {
|
|
|
|
title: '',
|
|
|
|
const res: API.DataResult = await GetCheckBillList(p)
|
|
|
|
api: async (p) => {
|
|
|
|
calcData.value = [res.data?.dataTotal]
|
|
|
|
const res: API.DataResult = await GetCheckBillList(p)
|
|
|
|
return new Promise((resolve) => {
|
|
|
|
calcData.value = [res.data?.dataTotal]
|
|
|
|
if (res.data?.list) {
|
|
|
|
return new Promise((resolve) => {
|
|
|
|
const ids = res.data.list.map((item) => {
|
|
|
|
if (res.data?.list) {
|
|
|
|
return item.id
|
|
|
|
const ids = res.data.list.map((item) => {
|
|
|
|
})
|
|
|
|
return item.id
|
|
|
|
appStore.setIds(ids, 'khdz')
|
|
|
|
})
|
|
|
|
}
|
|
|
|
appStore.setIds(ids, 'khdz')
|
|
|
|
resolve({ data: [...res.data.list], total: res.count })
|
|
|
|
}
|
|
|
|
})
|
|
|
|
resolve({ data: [...res.data.list], total: res.count })
|
|
|
|
},
|
|
|
|
})
|
|
|
|
// 请求前的参数格式化
|
|
|
|
},
|
|
|
|
beforeFetch: (p) => {
|
|
|
|
// 请求前的参数格式化
|
|
|
|
return formatParams(p)
|
|
|
|
beforeFetch: (p) => {
|
|
|
|
},
|
|
|
|
return formatParams(p)
|
|
|
|
// beforeFetch: () => {
|
|
|
|
},
|
|
|
|
// var currentPageInfo: any = getPaginationRef()
|
|
|
|
// beforeFetch: () => {
|
|
|
|
// var data = getForm().getFieldsValue()
|
|
|
|
// var currentPageInfo: any = getPaginationRef()
|
|
|
|
// const postParam: API.PageRequest = {
|
|
|
|
// var data = getForm().getFieldsValue()
|
|
|
|
// queryCondition: '',
|
|
|
|
// const postParam: API.PageRequest = {
|
|
|
|
// pageCondition: {
|
|
|
|
// queryCondition: '',
|
|
|
|
// pageIndex: currentPageInfo.current,
|
|
|
|
// pageCondition: {
|
|
|
|
// pageSize: currentPageInfo.pageSize,
|
|
|
|
// pageIndex: currentPageInfo.current,
|
|
|
|
// sortConditions: [],
|
|
|
|
// pageSize: currentPageInfo.pageSize,
|
|
|
|
// },
|
|
|
|
// sortConditions: [],
|
|
|
|
// }
|
|
|
|
// },
|
|
|
|
// postParam.pageCondition.sortConditions.push({
|
|
|
|
// }
|
|
|
|
// sortField: 'createTime',
|
|
|
|
// postParam.pageCondition.sortConditions.push({
|
|
|
|
// listSortDirection: 1,
|
|
|
|
// sortField: 'createTime',
|
|
|
|
// })
|
|
|
|
// listSortDirection: 1,
|
|
|
|
// let condition: API.ConditionItem[] = []
|
|
|
|
// })
|
|
|
|
// if (!!data.billNo) {
|
|
|
|
// let condition: API.ConditionItem[] = []
|
|
|
|
// condition.push({
|
|
|
|
// if (!!data.billNo) {
|
|
|
|
// FieldName: 'billNo',
|
|
|
|
// condition.push({
|
|
|
|
// FieldValue: data.billNo,
|
|
|
|
// FieldName: 'billNo',
|
|
|
|
// ConditionalType: 1,
|
|
|
|
// FieldValue: data.billNo,
|
|
|
|
// })
|
|
|
|
// ConditionalType: 1,
|
|
|
|
// }
|
|
|
|
// })
|
|
|
|
// if (!!data.customerName) {
|
|
|
|
// }
|
|
|
|
// condition.push({
|
|
|
|
// if (!!data.customerName) {
|
|
|
|
// FieldName: 'customerName',
|
|
|
|
// condition.push({
|
|
|
|
// FieldValue: data.customerName,
|
|
|
|
// FieldName: 'customerName',
|
|
|
|
// ConditionalType: 1,
|
|
|
|
// FieldValue: data.customerName,
|
|
|
|
// })
|
|
|
|
// ConditionalType: 1,
|
|
|
|
// }
|
|
|
|
// })
|
|
|
|
// postParam.queryCondition = JSON.stringify(condition)
|
|
|
|
// }
|
|
|
|
// return postParam
|
|
|
|
// postParam.queryCondition = JSON.stringify(condition)
|
|
|
|
// },
|
|
|
|
// return postParam
|
|
|
|
columns,
|
|
|
|
// },
|
|
|
|
formConfig: {
|
|
|
|
columns,
|
|
|
|
labelWidth: 120,
|
|
|
|
formConfig: {
|
|
|
|
// 表格表单需要的过滤字段集合
|
|
|
|
labelWidth: 120,
|
|
|
|
schemas: searchFormSchema,
|
|
|
|
// 表格表单需要的过滤字段集合
|
|
|
|
// 是否显示高级查询(默认否)
|
|
|
|
schemas: searchFormSchema,
|
|
|
|
useAdvancedSearch: true,
|
|
|
|
// 是否显示高级查询(默认否)
|
|
|
|
},
|
|
|
|
useAdvancedSearch: true,
|
|
|
|
isTreeTable: false,
|
|
|
|
},
|
|
|
|
pagination: true,
|
|
|
|
isTreeTable: false,
|
|
|
|
striped: true,
|
|
|
|
pagination: true,
|
|
|
|
useSearchForm: true,
|
|
|
|
striped: true,
|
|
|
|
showTableSetting: true,
|
|
|
|
useSearchForm: true,
|
|
|
|
bordered: true,
|
|
|
|
showTableSetting: true,
|
|
|
|
showIndexColumn: true,
|
|
|
|
bordered: true,
|
|
|
|
indexColumnProps: {
|
|
|
|
showIndexColumn: true,
|
|
|
|
width: 60,
|
|
|
|
indexColumnProps: {
|
|
|
|
},
|
|
|
|
width: 60,
|
|
|
|
canResize: true,
|
|
|
|
},
|
|
|
|
resizeHeightOffset: 90,
|
|
|
|
canResize: true,
|
|
|
|
immediate: true,
|
|
|
|
resizeHeightOffset: 90,
|
|
|
|
actionColumn: {
|
|
|
|
immediate: true,
|
|
|
|
width: 80,
|
|
|
|
actionColumn: {
|
|
|
|
title: '操作',
|
|
|
|
width: 80,
|
|
|
|
dataIndex: 'action',
|
|
|
|
title: '操作',
|
|
|
|
fixed: 'right',
|
|
|
|
dataIndex: 'action',
|
|
|
|
},
|
|
|
|
fixed: 'right',
|
|
|
|
})
|
|
|
|
},
|
|
|
|
|
|
|
|
})
|
|
|
|
// 复制对账编号
|
|
|
|
// 复制对账编号
|
|
|
|
function FnCopy(data) {
|
|
|
|
function FnCopy(data) {
|
|
|
|
const el = document.createElement('input')
|
|
|
|
const el = document.createElement('input')
|
|
|
@ -246,7 +252,25 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 删除
|
|
|
|
// 删除
|
|
|
|
function FnDel() {
|
|
|
|
function FnDel() {
|
|
|
|
notification.warning({ message: '待开发', duration: 3 })
|
|
|
|
const select = getSelectRows()
|
|
|
|
|
|
|
|
let ApiData: any = {
|
|
|
|
|
|
|
|
ids: [],
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (select.length === 0) {
|
|
|
|
|
|
|
|
notification.warning({ message: '请至少选择一条数据', duration: 3 })
|
|
|
|
|
|
|
|
return false
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
ApiData.ids = select.map((item) => {
|
|
|
|
|
|
|
|
return item.id
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BatchDelCheckBill(ApiData).then((res) => {
|
|
|
|
|
|
|
|
notification.success({ message: res.message, duration: 3 })
|
|
|
|
|
|
|
|
reload()
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// notification.warning({ message: '待开发', duration: 3 })
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 锁定
|
|
|
|
// 锁定
|
|
|
|
function Lock() {
|
|
|
|
function Lock() {
|
|
|
|