|
|
@ -159,7 +159,7 @@ export default { |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</div> |
|
|
|
<el-drawer v-model="filterDrawer" destroy-on-close @close="tableRef.doLayout()"> |
|
|
|
<el-drawer v-model="filterDrawer" :close-on-click-modal="false" destroy-on-close @close="tableRef.doLayout()"> |
|
|
|
<template #header> <span class="el-dialog__title"> {{$t('filter')}} </span> </template> |
|
|
|
<el-scrollbar> |
|
|
|
<el-row> |
|
|
@ -184,7 +184,7 @@ export default { |
|
|
|
</span> |
|
|
|
</template> |
|
|
|
</el-drawer> |
|
|
|
<el-drawer v-model="subDrawer" destroy-on-close size="50%"> |
|
|
|
<el-drawer :close-on-click-modal="false" v-model="subDrawer" destroy-on-close size="50%"> |
|
|
|
<el-scrollbar> |
|
|
|
<app-list v-if="subDrawer" :query="subListQuery" :buttons="subListQuery.buttons" :config="subListQuery.config" /> |
|
|
|
</el-scrollbar> |
|
|
@ -556,40 +556,7 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
await load(); |
|
|
|
} else if (item.path === "check") { |
|
|
|
const urls = new Map(); |
|
|
|
urls.set("JisBBAC", "settleaccount/bbac_ba_service/generate-invoice"); |
|
|
|
urls.set("JisHBPO", "settleaccount/hbpo_ba_service/generate-invoice"); |
|
|
|
urls.set("ZhiGongJianBBAC", "settleaccount/pub_ba_service/generate-invoice"); |
|
|
|
urls.set("ZhiGongJianHBPO", "settleaccount/pub_ba_service/generate-invoice"); |
|
|
|
urls.set("MaiDanJianHBPO", "settleaccount/pub_ba_service/generate-invoice"); |
|
|
|
urls.set("BeiJian", "settleaccount/pub_ba_service/generate-invoice"); |
|
|
|
urls.set("YinDuJian", "settleaccount/pub_ba_service/generate-invoice"); |
|
|
|
try { |
|
|
|
await ElMessageBox.confirm(format("确认审核通过选中的%s行数据吗?", rows.length), "提示", { |
|
|
|
type: "warning", |
|
|
|
}); |
|
|
|
const response = await request( |
|
|
|
urls.get(config.query.schema.properties.businessType?.default), |
|
|
|
rows.map((o) => o.id), |
|
|
|
{ method: "POST" } |
|
|
|
); |
|
|
|
if (!response.errors) { |
|
|
|
ElMessage({ |
|
|
|
type: "info", |
|
|
|
message: "操作完毕", |
|
|
|
}); |
|
|
|
} |
|
|
|
} catch (error) { |
|
|
|
if (error === "cancel") { |
|
|
|
ElMessage({ |
|
|
|
type: "info", |
|
|
|
message: "操作取消", |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
} else if (item.path === "export") { |
|
|
|
//export
|
|
|
|
if (item.meta.pattern === "paged") { |
|
|
|
const url = config.edit.exportUrl; |
|
|
|
const method = config.edit.exportMethod; |
|
|
@ -845,23 +812,6 @@ export default { |
|
|
|
} |
|
|
|
return postData; |
|
|
|
} |
|
|
|
function buildImport() { |
|
|
|
importModel.value.maxResultCount = pageModel.pageSize; |
|
|
|
importModel.value.skipCount = (pageModel.pageIndex - 1) * pageModel.pageSize; |
|
|
|
//
|
|
|
|
const postData = JSON.parse(JSON.stringify(importModel.value)); |
|
|
|
postData.filters = filterList.value.filter((o) => o.column && o.action && (o.value || o.value === false)); |
|
|
|
if (postData.items) { |
|
|
|
delete postData["items"]; |
|
|
|
} |
|
|
|
if (postData.import?.id) { |
|
|
|
delete postData.import["id"]; |
|
|
|
} |
|
|
|
return postData; |
|
|
|
} |
|
|
|
function isNotJit() { |
|
|
|
return route.meta.businessType !== 3 || route.meta.businessType !== 4 || route.meta.businessType !== 7 || route.meta.businessType !== 8; |
|
|
|
} |
|
|
|
onMounted(async () => { |
|
|
|
if (route.meta.children?.length) { |
|
|
|
for (const item of route.meta.children) { |
|
|
@ -928,7 +878,6 @@ export default { |
|
|
|
versions, |
|
|
|
pushfilterList, |
|
|
|
getOperators, |
|
|
|
isNotJit, |
|
|
|
getFilters, |
|
|
|
}; |
|
|
|
}, |
|
|
|