|
@@ -176,12 +176,12 @@
|
|
|
} from './quotationForm.api';
|
|
|
import { cloneDeep } from 'lodash-es';
|
|
|
import { useUserStore } from '/@/store/modules/user';
|
|
|
- import { defHttp } from '/@/utils/http/axios';
|
|
|
import { JDictSelectTag, ApiSelect, JInput } from '/@/components/Form';
|
|
|
- import JSelectInput from '/@/components/Form/src/jeecg/components/JSelectInput.vue';
|
|
|
import quotationFormModal from './components/quotationFormModal.vue';
|
|
|
import ViewHistoryVersionModal from './components/ViewHistoryVersionModal.vue';
|
|
|
import { message } from 'ant-design-vue';
|
|
|
+ import { useMethods } from '/@/hooks/system/useMethods';
|
|
|
+ const { handleExportXlsx, } = useMethods();
|
|
|
const formRef = ref();
|
|
|
const queryParam = reactive<any>({});
|
|
|
const checkedKeys = ref<Array<string | number>>([]);
|
|
@@ -364,22 +364,10 @@
|
|
|
}
|
|
|
}
|
|
|
async function onExportXlsNow(record) {
|
|
|
- queryParam.id = record.id;
|
|
|
- const {onExportXls} = useListPage({
|
|
|
- tableProps: {
|
|
|
- beforeFetch: async (params) => {
|
|
|
- let rangerQuery = await setRangeQuery();
|
|
|
- return Object.assign(params, rangerQuery);
|
|
|
- },
|
|
|
- },
|
|
|
- exportConfig: {
|
|
|
- name: record.billCode,
|
|
|
- url: getExportUrl,
|
|
|
- params: queryParam,
|
|
|
- },
|
|
|
- });
|
|
|
- await onExportXls();
|
|
|
- queryParam.id = '';
|
|
|
+ var obj ={
|
|
|
+ id:record.id
|
|
|
+ }
|
|
|
+ handleExportXlsx(record.billCode, getExportUrl,obj)
|
|
|
}
|
|
|
|
|
|
/* ----------------------以下为原生查询需要添加的-------------------------- */
|