diff --git a/src/store/modules/configOptions.ts b/src/store/modules/configOptions.ts index 09d6855f..63b8cfd1 100644 --- a/src/store/modules/configOptions.ts +++ b/src/store/modules/configOptions.ts @@ -140,7 +140,6 @@ export default { // 币别 GetFeeCurrencySelectList: () => { return GetFeeCurrencySelectList().then((res) => { - console.log(res.data) return res.data }) }, diff --git a/src/views/finance/paymentSettlement/api.ts b/src/views/finance/paymentSettlement/api.ts index cae309af..7dc77524 100644 --- a/src/views/finance/paymentSettlement/api.ts +++ b/src/views/finance/paymentSettlement/api.ts @@ -11,6 +11,7 @@ enum Api { Save = '/feeApi/PaymentSettlement/Save', info = '/feeApi/PaymentSettlement/Get', delete = '/feeApi/PaymentSettlement/Delete', + DeleteDetail = '/feeApi/PaymentSettlement/DeleteDetail', GetApplicationList = '/feeApi/PaymentSettlement/GetApplicationList', GetApplicationDetailsById = '/feeApi/PaymentSettlement/GetApplicationDetailsById', GetExchanges = '/feeApi/PaymentSettlement/GetExchanges' @@ -49,6 +50,14 @@ export function Delete(data: PageRequest) { }) } +// 删除申请单明细 +export function DeleteDetail(data: PageRequest) { + return request({ + url: Api.DeleteDetail, + method: 'post', + data + }) +} // 付费申请通过列表 export function GetApplicationList(data: PageRequest) { return request({ diff --git a/src/views/finance/paymentSettlement/detail/components/applyInfo.vue b/src/views/finance/paymentSettlement/detail/components/applyInfo.vue index ea1a1a3d..c6f7ea1c 100644 --- a/src/views/finance/paymentSettlement/detail/components/applyInfo.vue +++ b/src/views/finance/paymentSettlement/detail/components/applyInfo.vue @@ -70,7 +70,7 @@ // 引入附近上传组件 import DsFile from "/@/components/File/index.vue" import { Divider } from 'ant-design-vue' - // import { BatchDelMappingYard } from '../../api' + import { DeleteDetail } from '../../api' import { exportExcelByData } from '/@/hooks/web/common' import { useMessage } from '/@/hooks/web/useMessage' import feeTable from './feeTable.vue' @@ -128,12 +128,12 @@ ids } deleteFlag.value = false - // BatchDelMappingYard(postData).then(res => { - // if (res.succeeded) { - // createMessage.success('删除成功!') - // emit('del') - // } - // }) + DeleteDetail(postData).then(res => { + if (res.succeeded) { + createMessage.success('删除成功!') + emit('del') + } + }) } // 导出 const exportExcel = () => { @@ -162,12 +162,8 @@ setTableData([...list]) } ) - onMounted(() => { - //初始化 - reload() - }) defineExpose({ - reload + getSelectRows }) diff --git a/src/views/finance/paymentSettlement/detail/index.vue b/src/views/finance/paymentSettlement/detail/index.vue index 86106db6..9a099342 100644 --- a/src/views/finance/paymentSettlement/detail/index.vue +++ b/src/views/finance/paymentSettlement/detail/index.vue @@ -5,79 +5,79 @@ -->