|
@@ -11,7 +11,7 @@
|
|
|
<!-- <j-upload-button type="primary" v-auth="'saleCode:sale_interface_sync:importExcel'" preIcon="ant-design:import-outlined" @click="onImportXls"
|
|
|
>导入</j-upload-button
|
|
|
> -->
|
|
|
-
|
|
|
+
|
|
|
<a-dropdown >
|
|
|
<template #overlay>
|
|
|
<a-menu>
|
|
@@ -52,7 +52,7 @@
|
|
|
<Icon icon="mdi:chevron-down" />
|
|
|
</a-button>
|
|
|
</a-dropdown>
|
|
|
-
|
|
|
+
|
|
|
<!-- 高级查询 -->
|
|
|
<!-- <super-query :config="superQueryConfig" @search="handleSuperQuery" /> -->
|
|
|
<!-- 获取接口数据 -->
|
|
@@ -85,7 +85,7 @@
|
|
|
<Icon icon="mdi:chevron-down" />
|
|
|
</a-button>
|
|
|
</a-dropdown>
|
|
|
-
|
|
|
+
|
|
|
</template>
|
|
|
<!--操作栏-->
|
|
|
<template #action="{ record }">
|
|
@@ -150,17 +150,17 @@
|
|
|
import { columns, searchFormSchema, superQuerySchema } from './SaleInterfaceSync.data';
|
|
|
import { list, deleteOne, batchDelete, getImportUrl, getExportUrl
|
|
|
, getData
|
|
|
- , getSyncOrder
|
|
|
- , submitBatch
|
|
|
- , returnSubmitBatch
|
|
|
+ , getSyncOrder
|
|
|
+ , submitBatch
|
|
|
+ , returnSubmitBatch
|
|
|
, submitClose } from './SaleInterfaceSync.api';
|
|
|
import { downloadFile } from '/@/utils/common/renderUtils';
|
|
|
import { message } from 'ant-design-vue';
|
|
|
-
|
|
|
+
|
|
|
import { useMethods } from '/@/hooks/system/useMethods';
|
|
|
import { useUserStore } from '/@/store/modules/user';
|
|
|
import { useMessage } from '/@/hooks/web/useMessage';
|
|
|
-
|
|
|
+
|
|
|
const { handleExportXls, handleImportXls } = useMethods();
|
|
|
const { createConfirm } = useMessage();
|
|
|
const queryParam = reactive<any>({});
|
|
@@ -402,12 +402,12 @@
|
|
|
closeVisiable.value = true;
|
|
|
};
|
|
|
const handleSyncOk = () => {
|
|
|
-
|
|
|
+
|
|
|
syncFormRef.value.validate().then(() => {
|
|
|
-
|
|
|
+
|
|
|
message.info('数据信息获取中,请稍后!');
|
|
|
syncVisiable.value = false;
|
|
|
-
|
|
|
+
|
|
|
getData(syncForm.value).then((res) => {
|
|
|
syncVisiable.value = false;
|
|
|
handleSuccess();
|
|
@@ -431,24 +431,24 @@
|
|
|
},
|
|
|
});
|
|
|
};
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* 批量关闭事件
|
|
|
*/
|
|
|
async function batchSubmitClose() {
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
if (selectedRowKeys.value.length == 0) {
|
|
|
message.warning('请选择数据');
|
|
|
} else {
|
|
|
var ids = selectedRowKeys.value.join(',');
|
|
|
-
|
|
|
+
|
|
|
closeFormRef.value.validate().then(() => {
|
|
|
submitClose({ ids: ids,closeInfo:closeForm.value.closeInfo}, handleSuccess);
|
|
|
closeVisiable.value = false;
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
// await submitClose({ ids: ids }, handleSuccess);
|
|
|
}
|
|
|
// // await submitClose({ ids: selectedRowKeys.value }, handleSuccess);
|