diff --git a/src/components/inventory/apply/AddApply.vue b/src/components/inventory/apply/AddApply.vue index 6bbc11d..4f1b635 100644 --- a/src/components/inventory/apply/AddApply.vue +++ b/src/components/inventory/apply/AddApply.vue @@ -226,7 +226,7 @@ interface childCheck { } const addLine = (row: any) => { - post('inventory/goods/getListByIds', {idList: row.selectList}).then((list: any) => { + post(API.Inventory.Goods.ListByIds, {idList: row.selectList}).then((list: any) => { let children = []; for (let i = 0; i < list.length; i++) { let inventoryGoods = list[i]; diff --git a/src/components/inventory/apply/DetailApply.vue b/src/components/inventory/apply/DetailApply.vue index 0b4b75a..a7da8c9 100644 --- a/src/components/inventory/apply/DetailApply.vue +++ b/src/components/inventory/apply/DetailApply.vue @@ -175,7 +175,7 @@ interface childCheck { } const addLine = (row: any) => { - post('inventory/goods/getListByIds', {idList: row.selectList}).then((list: any) => { + post(API.Inventory.Goods.ListByIds, {idList: row.selectList}).then((list: any) => { let children = []; for (let i = 0; i < list.length; i++) { let inventoryGoods = list[i]; diff --git a/src/components/member/memberProfile/Grant.vue b/src/components/member/memberProfile/Grant.vue index 7721768..ace1ad3 100644 --- a/src/components/member/memberProfile/Grant.vue +++ b/src/components/member/memberProfile/Grant.vue @@ -56,6 +56,7 @@ import {ref, defineEmits, defineProps, onMounted} from 'vue' import {post} from "@/utils/request.ts"; import {ElFormItem, ElMessage} from "element-plus"; import Mask from "@/components/common/Mask.vue"; +import {API} from "@/assets/config/API.ts"; const isGrant = defineModel() const emit = defineEmits(['close']) @@ -85,7 +86,7 @@ const grant = async () => { ruleFormRef.value?.validate((valid: any) => { if (!valid) return data.value.vipId = props.info.id - post('vip/integral/add', data.value).then((res: any) => { + post(API.Patient.Integral.Add, data.value).then((res: any) => { ElMessage.success('已发放') close() })