修改划拨福利包接口名

This commit is contained in:
2026-02-15 00:40:23 +08:00
parent 0e676e5737
commit fd7617b09f
2 changed files with 8 additions and 8 deletions

View File

@@ -51,11 +51,11 @@ export const update = (row) => {
}
export function doGivePack(row) {
export function allocatePackage(row) {
return request({
url: '/market/benefit-package-template/doGivePack',
url: '/market/benefit-package-template/allocate-benefit-package',
method: 'post',
data: row
})
data: row,
});
}

View File

@@ -51,7 +51,7 @@
:option="givePackOption"
:data="givePackData"
v-model="givePackFrom"
@submit="givePackSubmit"
@submit="allocatePackageSubmit"
ref="stateCrud"
/>
</el-dialog>
@@ -75,7 +75,7 @@ import {
add,
update,
remove,
doGivePack,
allocatePackage,
} from '@/api/market/marketBenefitPackageTemplate';
import option from '@/option/market/marketBenefitPackageTemplate';
import { mapGetters } from 'vuex';
@@ -320,7 +320,7 @@ export default {
this.givePackFrom.id = row.id;
},
givePackSubmit(form, done) {
allocatePackageSubmit(form, done) {
const data = {
packId: form.id,
phone: form.userPhone,
@@ -328,7 +328,7 @@ export default {
remark: form.remark,
};
doGivePack(data).then(
allocatePackage(data).then(
() => {
this.onLoad(this.page);
this.$message({