|
|
|
@ -82,7 +82,7 @@
|
|
|
|
|
</template>
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
|
import { ref } from 'vue'
|
|
|
|
|
import { GetList} from './api.js'
|
|
|
|
|
import { GetList,InvoiceApplicationDelete} from './api.js'
|
|
|
|
|
import { BasicTable, useTable, TableAction } from '/@/components/Table'
|
|
|
|
|
import { columns, searchFormSchema, billTypeData } from './columns'
|
|
|
|
|
import { GetOpenPrintModuleList } from '/@/views/operation/seaexport/api/BookingLedger.js'
|
|
|
|
@ -90,6 +90,7 @@
|
|
|
|
|
import DsPrint from '/@/components/Print/index.vue'
|
|
|
|
|
import { useMessage } from '/@/hooks/web/useMessage'
|
|
|
|
|
const { notification } = useMessage()
|
|
|
|
|
const { createMessage } = useMessage()
|
|
|
|
|
import { useGo } from '/@/hooks/web/usePage'
|
|
|
|
|
const go = useGo()
|
|
|
|
|
// 引入处理入参方法
|
|
|
|
@ -97,7 +98,7 @@
|
|
|
|
|
import { useAppStore } from '/@/store/modules/app'
|
|
|
|
|
const appStore = useAppStore()
|
|
|
|
|
// 表格
|
|
|
|
|
const [registerTable, { getForm, getPaginationRef, getSelectRows, getRawDataSource }] = useTable({
|
|
|
|
|
const [registerTable, { reload, getPaginationRef, getSelectRows, getRawDataSource }] = useTable({
|
|
|
|
|
title: '',
|
|
|
|
|
api: async (p) => {
|
|
|
|
|
const res: API.DataResult = await GetList(p)
|
|
|
|
@ -144,7 +145,15 @@
|
|
|
|
|
}
|
|
|
|
|
// 删除
|
|
|
|
|
function FnDel() {
|
|
|
|
|
notification.warning({ message: '待开发', duration: 3 })
|
|
|
|
|
const ids = getSelectRows().map((item) => {
|
|
|
|
|
return item.id
|
|
|
|
|
})
|
|
|
|
|
InvoiceApplicationDelete({ids:ids}).then(res=>{
|
|
|
|
|
if(res.succeeded){
|
|
|
|
|
createMessage.success('删除成功')
|
|
|
|
|
reload()
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|