|
@ -159,7 +159,7 @@ export default { |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
</div> |
|
|
</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> |
|
|
<template #header> <span class="el-dialog__title"> {{$t('filter')}} </span> </template> |
|
|
<el-scrollbar> |
|
|
<el-scrollbar> |
|
|
<el-row> |
|
|
<el-row> |
|
@ -184,7 +184,7 @@ export default { |
|
|
</span> |
|
|
</span> |
|
|
</template> |
|
|
</template> |
|
|
</el-drawer> |
|
|
</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> |
|
|
<el-scrollbar> |
|
|
<app-list v-if="subDrawer" :query="subListQuery" :buttons="subListQuery.buttons" :config="subListQuery.config" /> |
|
|
<app-list v-if="subDrawer" :query="subListQuery" :buttons="subListQuery.buttons" :config="subListQuery.config" /> |
|
|
</el-scrollbar> |
|
|
</el-scrollbar> |
|
@ -556,40 +556,7 @@ export default { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
await load(); |
|
|
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") { |
|
|
} else if (item.path === "export") { |
|
|
//export
|
|
|
|
|
|
if (item.meta.pattern === "paged") { |
|
|
if (item.meta.pattern === "paged") { |
|
|
const url = config.edit.exportUrl; |
|
|
const url = config.edit.exportUrl; |
|
|
const method = config.edit.exportMethod; |
|
|
const method = config.edit.exportMethod; |
|
@ -845,23 +812,6 @@ export default { |
|
|
} |
|
|
} |
|
|
return postData; |
|
|
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 () => { |
|
|
onMounted(async () => { |
|
|
if (route.meta.children?.length) { |
|
|
if (route.meta.children?.length) { |
|
|
for (const item of route.meta.children) { |
|
|
for (const item of route.meta.children) { |
|
@ -928,7 +878,6 @@ export default { |
|
|
versions, |
|
|
versions, |
|
|
pushfilterList, |
|
|
pushfilterList, |
|
|
getOperators, |
|
|
getOperators, |
|
|
isNotJit, |
|
|
|
|
|
getFilters, |
|
|
getFilters, |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|