|
@@ -71,6 +71,7 @@
|
|
|
>
|
|
|
<a-button type="primary" @click="submit"> 提交(submit)</a-button>
|
|
|
<a-button type="primary" @click="cancelSubmit"> 取消提交(cancelSubmit)</a-button>
|
|
|
+ <a-button type="primary" @click="handleClose"> 关闭(Close)</a-button>
|
|
|
<a-dropdown v-if="selectedRowKeys.length > 0">
|
|
|
<template #overlay>
|
|
|
<a-menu>
|
|
@@ -112,7 +113,8 @@
|
|
|
getExportUrl,
|
|
|
batchSubmit,
|
|
|
cancelBatchSubmit,
|
|
|
- supplierOption
|
|
|
+ supplierOption,
|
|
|
+ batchClose,
|
|
|
} from './commissionContractForm.api';
|
|
|
import { cloneDeep } from 'lodash-es';
|
|
|
import { JDictSelectTag, JInput ,JSelect} from '/@/components/Form';
|
|
@@ -260,8 +262,14 @@
|
|
|
cancelBatchSubmit({ ids: ids }, handleSuccess);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
+ function handleClose(){
|
|
|
+ if (selectedRowKeys.value.length == 0) {
|
|
|
+ message.warning('请选择数据');
|
|
|
+ } else {
|
|
|
+ var ids = selectedRowKeys.value.join(',');
|
|
|
+ batchClose({ ids: ids }, handleSuccess);
|
|
|
+ }
|
|
|
+ }
|
|
|
/* ----------------------以下为原生查询需要添加的-------------------------- */
|
|
|
const toggleSearchStatus = ref<boolean>(false);
|
|
|
const labelCol = reactive({
|