修改接口访问路径(主要是物料及进销存的接口)
This commit is contained in:
parent
c865bb29ec
commit
5f98eb8229
|
@ -4,14 +4,14 @@ import { useMessage } from "/@/hooks/web/useMessage";
|
||||||
const { createConfirm } = useMessage();
|
const { createConfirm } = useMessage();
|
||||||
|
|
||||||
enum Api {
|
enum Api {
|
||||||
list = '/ConfigMaterial/configMaterialCategory/list',
|
list = '/invoicing/configMaterialCategory/list',
|
||||||
selectMaterialList = '/ConfigMaterial/configMaterialCategory/selectMaterialList',
|
selectMaterialList = '/invoicing/configMaterialCategory/selectMaterialList',
|
||||||
save='/ConfigMaterial/configMaterialCategory/add',
|
save='/invoicing/configMaterialCategory/add',
|
||||||
edit='/ConfigMaterial/configMaterialCategory/edit',
|
edit='/invoicing/configMaterialCategory/edit',
|
||||||
deleteOne = '/ConfigMaterial/configMaterialCategory/delete',
|
deleteOne = '/invoicing/configMaterialCategory/delete',
|
||||||
deleteBatch = '/ConfigMaterial/configMaterialCategory/deleteBatch',
|
deleteBatch = '/invoicing/configMaterialCategory/deleteBatch',
|
||||||
importExcel = '/ConfigMaterial/configMaterialCategory/importExcel',
|
importExcel = '/invoicing/configMaterialCategory/importExcel',
|
||||||
exportXls = '/ConfigMaterial/configMaterialCategory/exportXls',
|
exportXls = '/invoicing/configMaterialCategory/exportXls',
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 导出api
|
* 导出api
|
||||||
|
|
|
@ -4,13 +4,13 @@ import { useMessage } from "/@/hooks/web/useMessage";
|
||||||
const { createConfirm } = useMessage();
|
const { createConfirm } = useMessage();
|
||||||
|
|
||||||
enum Api {
|
enum Api {
|
||||||
list = '/configMaterialInfo/configMaterialInfo/list',
|
list = '/invoicing/configMaterialInfo/list',
|
||||||
save='/configMaterialInfo/configMaterialInfo/add',
|
save='/invoicing/configMaterialInfo/add',
|
||||||
edit='/configMaterialInfo/configMaterialInfo/edit',
|
edit='/invoicing/configMaterialInfo/edit',
|
||||||
deleteOne = '/configMaterialInfo/configMaterialInfo/delete',
|
deleteOne = '/invoicing/configMaterialInfo/delete',
|
||||||
deleteBatch = '/configMaterialInfo/configMaterialInfo/deleteBatch',
|
deleteBatch = '/invoicing/configMaterialInfo/deleteBatch',
|
||||||
importExcel = '/configMaterialInfo/configMaterialInfo/importExcel',
|
importExcel = '/invoicing/configMaterialInfo/importExcel',
|
||||||
exportXls = '/configMaterialInfo/configMaterialInfo/exportXls',
|
exportXls = '/invoicing/configMaterialInfo/exportXls',
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -343,7 +343,7 @@ const getCardStyle = (index,allSize) => {
|
||||||
|
|
||||||
// 自动请求并暴露内部方法
|
// 自动请求并暴露内部方法
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
defHttp.get({url:'/ConfigMaterial/configMaterialCategory/getMaterialTreeData'}).then(res =>{
|
defHttp.get({url:'/invoicing/configMaterialCategory/getMaterialTreeData'}).then(res =>{
|
||||||
treeData.value = res;
|
treeData.value = res;
|
||||||
console.log("🚀 ~ defHttp.get ~ treeData:", treeData)
|
console.log("🚀 ~ defHttp.get ~ treeData:", treeData)
|
||||||
console.log("🚀 ~ defHttp.get ~ res:", res)
|
console.log("🚀 ~ defHttp.get ~ res:", res)
|
||||||
|
|
|
@ -4,13 +4,13 @@ import { useMessage } from "/@/hooks/web/useMessage";
|
||||||
const { createConfirm } = useMessage();
|
const { createConfirm } = useMessage();
|
||||||
|
|
||||||
enum Api {
|
enum Api {
|
||||||
list = '/ConfigMaterial/configMaterialMedication/list',
|
list = '/invoicing/configMaterialMedication/list',
|
||||||
save='/ConfigMaterial/configMaterialMedication/add',
|
save='/invoicing/configMaterialMedication/add',
|
||||||
edit='/ConfigMaterial/configMaterialMedication/edit',
|
edit='/invoicing/configMaterialMedication/edit',
|
||||||
deleteOne = '/ConfigMaterial/configMaterialMedication/delete',
|
deleteOne = '/invoicing/configMaterialMedication/delete',
|
||||||
deleteBatch = '/ConfigMaterial/configMaterialMedication/deleteBatch',
|
deleteBatch = '/invoicing/configMaterialMedication/deleteBatch',
|
||||||
importExcel = '/ConfigMaterial/configMaterialMedication/importExcel',
|
importExcel = '/invoicing/configMaterialMedication/importExcel',
|
||||||
exportXls = '/ConfigMaterial/configMaterialMedication/exportXls',
|
exportXls = '/invoicing/configMaterialMedication/exportXls',
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -4,13 +4,13 @@ import { useMessage } from "/@/hooks/web/useMessage";
|
||||||
const { createConfirm } = useMessage();
|
const { createConfirm } = useMessage();
|
||||||
|
|
||||||
enum Api {
|
enum Api {
|
||||||
list = '/ConfigMaterial/configMaterialType/list',
|
list = '/invoicing/configMaterialType/list',
|
||||||
save='/ConfigMaterial/configMaterialType/add',
|
save='/invoicing/configMaterialType/add',
|
||||||
edit='/ConfigMaterial/configMaterialType/edit',
|
edit='/invoicing/configMaterialType/edit',
|
||||||
deleteOne = '/ConfigMaterial/configMaterialType/delete',
|
deleteOne = '/invoicing/configMaterialType/delete',
|
||||||
deleteBatch = '/ConfigMaterial/configMaterialType/deleteBatch',
|
deleteBatch = '/invoicing/configMaterialType/deleteBatch',
|
||||||
importExcel = '/ConfigMaterial/configMaterialType/importExcel',
|
importExcel = '/invoicing/configMaterialType/importExcel',
|
||||||
exportXls = '/ConfigMaterial/configMaterialType/exportXls',
|
exportXls = '/invoicing/configMaterialType/exportXls',
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
let formData = {};
|
let formData = {};
|
||||||
const queryByIdUrl = '/ConfigMaterial/configMaterialCategory/queryById';
|
const queryByIdUrl = '/invoicing/configMaterialCategory/queryById';
|
||||||
async function initFormData(){
|
async function initFormData(){
|
||||||
let params = {id: props.formData.dataId};
|
let params = {id: props.formData.dataId};
|
||||||
const data = await defHttp.get({url: queryByIdUrl, params});
|
const data = await defHttp.get({url: queryByIdUrl, params});
|
||||||
|
|
|
@ -4,13 +4,13 @@ import { useMessage } from "/@/hooks/web/useMessage";
|
||||||
const { createConfirm } = useMessage();
|
const { createConfirm } = useMessage();
|
||||||
|
|
||||||
enum Api {
|
enum Api {
|
||||||
list = '/configSuppliersInfo/configSuppliersInfo/list',
|
list = '/invoicing/configSuppliersInfo/list',
|
||||||
save='/configSuppliersInfo/configSuppliersInfo/add',
|
save='/invoicing/configSuppliersInfo/add',
|
||||||
edit='/configSuppliersInfo/configSuppliersInfo/edit',
|
edit='/invoicing/configSuppliersInfo/edit',
|
||||||
deleteOne = '/configSuppliersInfo/configSuppliersInfo/delete',
|
deleteOne = '/invoicing/configSuppliersInfo/delete',
|
||||||
deleteBatch = '/configSuppliersInfo/configSuppliersInfo/deleteBatch',
|
deleteBatch = '/invoicing/configSuppliersInfo/deleteBatch',
|
||||||
importExcel = '/configSuppliersInfo/configSuppliersInfo/importExcel',
|
importExcel = '/invoicing/configSuppliersInfo/importExcel',
|
||||||
exportXls = '/configSuppliersInfo/configSuppliersInfo/exportXls',
|
exportXls = '/invoicing/configSuppliersInfo/exportXls',
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 导出api
|
* 导出api
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
let formData = {};
|
let formData = {};
|
||||||
const queryByIdUrl = '/configSuppliersInfo/configSuppliersInfo/queryById';
|
const queryByIdUrl = '/invoicing/configSuppliersInfo/queryById';
|
||||||
async function initFormData(){
|
async function initFormData(){
|
||||||
let params = {id: props.formData.dataId};
|
let params = {id: props.formData.dataId};
|
||||||
const data = await defHttp.get({url: queryByIdUrl, params});
|
const data = await defHttp.get({url: queryByIdUrl, params});
|
||||||
|
|
|
@ -4,13 +4,13 @@ import { useMessage } from "/@/hooks/web/useMessage";
|
||||||
const { createConfirm } = useMessage();
|
const { createConfirm } = useMessage();
|
||||||
|
|
||||||
enum Api {
|
enum Api {
|
||||||
list = '/configMaterialInfo/configMaterialInfo/list',
|
list = '/invoicing/configMaterialInfo/list',
|
||||||
save='/configMaterialInfo/configMaterialInfo/add',
|
save='/invoicing/configMaterialInfo/add',
|
||||||
edit='/configMaterialInfo/configMaterialInfo/edit',
|
edit='/invoicing/configMaterialInfo/edit',
|
||||||
deleteOne = '/configMaterialInfo/configMaterialInfo/delete',
|
deleteOne = '/invoicing/configMaterialInfo/delete',
|
||||||
deleteBatch = '/configMaterialInfo/configMaterialInfo/deleteBatch',
|
deleteBatch = '/invoicing/configMaterialInfo/deleteBatch',
|
||||||
importExcel = '/configMaterialInfo/configMaterialInfo/importExcel',
|
importExcel = '/invoicing/configMaterialInfo/importExcel',
|
||||||
exportXls = '/configMaterialInfo/configMaterialInfo/exportXls',
|
exportXls = '/invoicing/configMaterialInfo/exportXls',
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -46,10 +46,10 @@
|
||||||
import { ref, reactive } from 'vue';
|
import { ref, reactive } from 'vue';
|
||||||
import { BasicTable, useTable, TableAction } from '/@/components/Table';
|
import { BasicTable, useTable, TableAction } from '/@/components/Table';
|
||||||
import { useListPage } from '/@/hooks/system/useListPage';
|
import { useListPage } from '/@/hooks/system/useListPage';
|
||||||
import { columns, superQuerySchema } from './NuInvoicingQgdInfo.data';
|
import { columns, superQuerySchema } from './QgdInfo.data';
|
||||||
import { list, deleteOne, batchDelete, getImportUrl, getExportUrl } from './NuInvoicingQgdInfo.api';
|
import { list, deleteOne, batchDelete, getImportUrl, getExportUrl } from './QgdInfo.api';
|
||||||
import { downloadFile } from '/@/utils/common/renderUtils';
|
import { downloadFile } from '/@/utils/common/renderUtils';
|
||||||
import NuInvoicingQgdInfoModal from './components/NuInvoicingQgdInfoModal.vue'
|
import NuInvoicingQgdInfoModal from './components/QgdInfoModal.vue'
|
||||||
import { useUserStore } from '/@/store/modules/user';
|
import { useUserStore } from '/@/store/modules/user';
|
||||||
|
|
||||||
const formRef = ref();
|
const formRef = ref();
|
|
@ -61,7 +61,7 @@
|
||||||
import { defHttp } from '/@/utils/http/axios';
|
import { defHttp } from '/@/utils/http/axios';
|
||||||
import { useMessage } from '/@/hooks/web/useMessage';
|
import { useMessage } from '/@/hooks/web/useMessage';
|
||||||
import { getValueType } from '/@/utils';
|
import { getValueType } from '/@/utils';
|
||||||
import { saveOrUpdate } from '../NuInvoicingQgdInfo.api';
|
import { saveOrUpdate } from '../QgdInfo.api';
|
||||||
import { Form } from 'ant-design-vue';
|
import { Form } from 'ant-design-vue';
|
||||||
import JFormContainer from '/@/components/Form/src/container/JFormContainer.vue';
|
import JFormContainer from '/@/components/Form/src/container/JFormContainer.vue';
|
||||||
const props = defineProps({
|
const props = defineProps({
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { ref, nextTick, defineExpose } from 'vue';
|
import { ref, nextTick, defineExpose } from 'vue';
|
||||||
import NuInvoicingQgdInfoForm from './NuInvoicingQgdInfoForm.vue'
|
import NuInvoicingQgdInfoForm from './QgdInfoForm.vue'
|
||||||
import JModal from '/@/components/Modal/src/JModal/JModal.vue';
|
import JModal from '/@/components/Modal/src/JModal/JModal.vue';
|
||||||
|
|
||||||
const title = ref<string>('');
|
const title = ref<string>('');
|
|
@ -46,10 +46,10 @@
|
||||||
import { ref, reactive } from 'vue';
|
import { ref, reactive } from 'vue';
|
||||||
import { BasicTable, useTable, TableAction } from '/@/components/Table';
|
import { BasicTable, useTable, TableAction } from '/@/components/Table';
|
||||||
import { useListPage } from '/@/hooks/system/useListPage';
|
import { useListPage } from '/@/hooks/system/useListPage';
|
||||||
import { columns, superQuerySchema } from './NuInvoicingQgdMain.data';
|
import { columns, superQuerySchema } from './QgdMain.data';
|
||||||
import { list, deleteOne, batchDelete, getImportUrl, getExportUrl } from './NuInvoicingQgdMain.api';
|
import { list, deleteOne, batchDelete, getImportUrl, getExportUrl } from './QgdMain.api';
|
||||||
import { downloadFile } from '/@/utils/common/renderUtils';
|
import { downloadFile } from '/@/utils/common/renderUtils';
|
||||||
import NuInvoicingQgdMainModal from './components/NuInvoicingQgdMainModal.vue'
|
import NuInvoicingQgdMainModal from './components/QgdMainModal.vue'
|
||||||
import { useUserStore } from '/@/store/modules/user';
|
import { useUserStore } from '/@/store/modules/user';
|
||||||
|
|
||||||
const formRef = ref();
|
const formRef = ref();
|
|
@ -26,7 +26,7 @@
|
||||||
import { defHttp } from '/@/utils/http/axios';
|
import { defHttp } from '/@/utils/http/axios';
|
||||||
import { useMessage } from '/@/hooks/web/useMessage';
|
import { useMessage } from '/@/hooks/web/useMessage';
|
||||||
import { getValueType } from '/@/utils';
|
import { getValueType } from '/@/utils';
|
||||||
import { saveOrUpdate } from '../NuInvoicingQgdMain.api';
|
import { saveOrUpdate } from '../QgdMain.api';
|
||||||
import { Form } from 'ant-design-vue';
|
import { Form } from 'ant-design-vue';
|
||||||
import JFormContainer from '/@/components/Form/src/container/JFormContainer.vue';
|
import JFormContainer from '/@/components/Form/src/container/JFormContainer.vue';
|
||||||
const props = defineProps({
|
const props = defineProps({
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { ref, nextTick, defineExpose } from 'vue';
|
import { ref, nextTick, defineExpose } from 'vue';
|
||||||
import NuInvoicingQgdMainForm from './NuInvoicingQgdMainForm.vue'
|
import NuInvoicingQgdMainForm from './QgdMainForm.vue'
|
||||||
import JModal from '/@/components/Modal/src/JModal/JModal.vue';
|
import JModal from '/@/components/Modal/src/JModal/JModal.vue';
|
||||||
|
|
||||||
const title = ref<string>('');
|
const title = ref<string>('');
|
Loading…
Reference in New Issue