🐛 修复列表二次搜索与结算导入回列表,并完善付款申请多结算单展示
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -272,7 +272,7 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { computed, onMounted, reactive, ref } from 'vue';
|
||||
import { computed, getCurrentInstance, onMounted, reactive, ref } from 'vue';
|
||||
import { useRoute, useRouter } from 'vue-router';
|
||||
import { ElMessage, ElMessageBox } from 'element-plus';
|
||||
import { QuestionFilled } from '@element-plus/icons-vue';
|
||||
@@ -284,6 +284,8 @@ import { downloadXls } from '@/utils/util';
|
||||
|
||||
const route = useRoute();
|
||||
const router = useRouter();
|
||||
const instance = getCurrentInstance();
|
||||
const settlementImportListRefreshKey = 'settlement-import-list-refresh';
|
||||
|
||||
const formRef = ref();
|
||||
const uploadRef = ref();
|
||||
@@ -859,6 +861,12 @@ const goBack = () => {
|
||||
router.push({ path: '/settlement/settlement-import' });
|
||||
};
|
||||
|
||||
const leaveAfterConfirm = () => {
|
||||
sessionStorage.setItem(settlementImportListRefreshKey, '1');
|
||||
instance?.proxy?.$router?.$avueRouter?.closeTag?.();
|
||||
router.push({ path: '/settlement/settlement-import' });
|
||||
};
|
||||
|
||||
const downloadFailureExcel = async failureRows => {
|
||||
const response = await api.exportFailures({
|
||||
feeItemNames: [...feeItemNames.value],
|
||||
@@ -942,7 +950,7 @@ const confirmImport = async () => {
|
||||
const batch = unwrapData(response) || {};
|
||||
if (batch.batchNo) form.batchNo = batch.batchNo;
|
||||
ElMessage.success('确认导入成功');
|
||||
goBack();
|
||||
leaveAfterConfirm();
|
||||
} catch (error) {
|
||||
if (error === 'cancel' || error === 'close') return;
|
||||
ElMessage.error(error?.message || '确认导入失败');
|
||||
|
||||
Reference in New Issue
Block a user