diff --git a/src/views/mdm/asset/Form.vue b/src/views/mdm/asset/Form.vue index 210d43e..e4aa217 100644 --- a/src/views/mdm/asset/Form.vue +++ b/src/views/mdm/asset/Form.vue @@ -262,7 +262,7 @@ :style="{ width: '100%' }" :showSearch="false" :field="'supplier_id'" - modelId="/api/bcm/Suppinfo/getList" + modelId="/api/bcm/Supplier/getList" :columnOptions="optionsObj.supplier_idcolumnOptions" relationField="company_name" popupWidth="1000px" diff --git a/src/views/mdm/lpc/Detail.vue b/src/views/mdm/corporation/Detail.vue similarity index 100% rename from src/views/mdm/lpc/Detail.vue rename to src/views/mdm/corporation/Detail.vue diff --git a/src/views/mdm/lpc/Form.vue b/src/views/mdm/corporation/Form.vue similarity index 100% rename from src/views/mdm/lpc/Form.vue rename to src/views/mdm/corporation/Form.vue diff --git a/src/views/mdm/corporation/helper/api.ts b/src/views/mdm/corporation/helper/api.ts new file mode 100644 index 0000000..c6b235c --- /dev/null +++ b/src/views/mdm/corporation/helper/api.ts @@ -0,0 +1,34 @@ +import { defHttp } from '@/utils/http/axios'; + +// 获取列表 +export function getList(data) { + return defHttp.post({ url: '/api/bcm/Corporation/getList', data }); +} +// 新建 +export function create(data) { + return defHttp.post({ url:'/api/bcm/Corporation', data }); +} +// 修改 +export function update(data) { + return defHttp.put({ url: '/api/bcm/Corporation/'+ data.id, data }); +} +// 详情(无转换数据) +export function getInfo(id) { + return defHttp.get({ url: '/api/bcm/Corporation/' + id }); +} +// 获取(转换数据) +export function getDetailInfo(id) { + return defHttp.get({ url: '/api/bcm/Corporation/detail/' + id }); +} +// 删除 +export function del(id) { + return defHttp.delete({ url: '/api/bcm/Corporation/' + id }); +} +// 批量删除数据 +export function batchDelete(data) { + return defHttp.delete({ url: '/api/bcm/Corporation/batchRemove', data }); +} +// 导出 +export function exportData(data) { + return defHttp.post({ url: '/api/bcm/Corporation/Actions/Export', data }); +} diff --git a/src/views/mdm/lpc/helper/columnList.ts b/src/views/mdm/corporation/helper/columnList.ts similarity index 100% rename from src/views/mdm/lpc/helper/columnList.ts rename to src/views/mdm/corporation/helper/columnList.ts diff --git a/src/views/mdm/lpc/helper/searchList.ts b/src/views/mdm/corporation/helper/searchList.ts similarity index 100% rename from src/views/mdm/lpc/helper/searchList.ts rename to src/views/mdm/corporation/helper/searchList.ts diff --git a/src/views/mdm/lpc/helper/superQueryJson.ts b/src/views/mdm/corporation/helper/superQueryJson.ts similarity index 100% rename from src/views/mdm/lpc/helper/superQueryJson.ts rename to src/views/mdm/corporation/helper/superQueryJson.ts diff --git a/src/views/mdm/lpc/index.vue b/src/views/mdm/corporation/index.vue similarity index 100% rename from src/views/mdm/lpc/index.vue rename to src/views/mdm/corporation/index.vue diff --git a/src/views/mdm/custinfo/helper/api.ts b/src/views/mdm/custinfo/helper/api.ts deleted file mode 100644 index 0f3a87b..0000000 --- a/src/views/mdm/custinfo/helper/api.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { defHttp } from '@/utils/http/axios'; - -// 获取列表 -export function getList(data) { - return defHttp.post({ url: '/api/bcm/Custinfo/getList', data }); -} -// 新建 -export function create(data) { - return defHttp.post({ url:'/api/bcm/Custinfo', data }); -} -// 修改 -export function update(data) { - return defHttp.put({ url: '/api/bcm/Custinfo/'+ data.id, data }); -} -// 详情(无转换数据) -export function getInfo(id) { - return defHttp.get({ url: '/api/bcm/Custinfo/' + id }); -} -// 获取(转换数据) -export function getDetailInfo(id) { - return defHttp.get({ url: '/api/bcm/Custinfo/detail/' + id }); -} -// 删除 -export function del(id) { - return defHttp.delete({ url: '/api/bcm/Custinfo/' + id }); -} -// 批量删除数据 -export function batchDelete(data) { - return defHttp.delete({ url: '/api/bcm/Custinfo/batchRemove', data }); -} -// 导出 -export function exportData(data) { - return defHttp.post({ url: '/api/bcm/Custinfo/Actions/Export', data }); -} diff --git a/src/views/mdm/custinfo/Detail.vue b/src/views/mdm/customer/Detail.vue similarity index 100% rename from src/views/mdm/custinfo/Detail.vue rename to src/views/mdm/customer/Detail.vue diff --git a/src/views/mdm/custinfo/Form.vue b/src/views/mdm/customer/Form.vue similarity index 100% rename from src/views/mdm/custinfo/Form.vue rename to src/views/mdm/customer/Form.vue diff --git a/src/views/mdm/customer/helper/api.ts b/src/views/mdm/customer/helper/api.ts new file mode 100644 index 0000000..9496def --- /dev/null +++ b/src/views/mdm/customer/helper/api.ts @@ -0,0 +1,34 @@ +import { defHttp } from '@/utils/http/axios'; + +// 获取列表 +export function getList(data) { + return defHttp.post({ url: '/api/bcm/Customer/getList', data }); +} +// 新建 +export function create(data) { + return defHttp.post({ url:'/api/bcm/Customer', data }); +} +// 修改 +export function update(data) { + return defHttp.put({ url: '/api/bcm/Customer/'+ data.id, data }); +} +// 详情(无转换数据) +export function getInfo(id) { + return defHttp.get({ url: '/api/bcm/Customer/' + id }); +} +// 获取(转换数据) +export function getDetailInfo(id) { + return defHttp.get({ url: '/api/bcm/Customer/detail/' + id }); +} +// 删除 +export function del(id) { + return defHttp.delete({ url: '/api/bcm/Customer/' + id }); +} +// 批量删除数据 +export function batchDelete(data) { + return defHttp.delete({ url: '/api/bcm/Customer/batchRemove', data }); +} +// 导出 +export function exportData(data) { + return defHttp.post({ url: '/api/bcm/Customer/Actions/Export', data }); +} diff --git a/src/views/mdm/custinfo/helper/columnList.ts b/src/views/mdm/customer/helper/columnList.ts similarity index 100% rename from src/views/mdm/custinfo/helper/columnList.ts rename to src/views/mdm/customer/helper/columnList.ts diff --git a/src/views/mdm/custinfo/helper/searchList.ts b/src/views/mdm/customer/helper/searchList.ts similarity index 100% rename from src/views/mdm/custinfo/helper/searchList.ts rename to src/views/mdm/customer/helper/searchList.ts diff --git a/src/views/mdm/custinfo/helper/superQueryJson.ts b/src/views/mdm/customer/helper/superQueryJson.ts similarity index 100% rename from src/views/mdm/custinfo/helper/superQueryJson.ts rename to src/views/mdm/customer/helper/superQueryJson.ts diff --git a/src/views/mdm/custinfo/index.vue b/src/views/mdm/customer/index.vue similarity index 99% rename from src/views/mdm/custinfo/index.vue rename to src/views/mdm/customer/index.vue index d98e3a8..7ca7d44 100644 --- a/src/views/mdm/custinfo/index.vue +++ b/src/views/mdm/customer/index.vue @@ -16,7 +16,7 @@ {{t('common.exportText','导出')}} {{t('common.importText','导入')}} + @click="openImportModal(true, { url: 'bcm/Customer', menuId: searchInfo.menuId })"> {{t('common.importText','导入')}}