diff --git a/src/api/management/goods.js b/src/api/management/goods.js index 40fbd4cd7..245f16864 100644 --- a/src/api/management/goods.js +++ b/src/api/management/goods.js @@ -124,7 +124,8 @@ export function getGoodsByPermissionId(id) { // 创建商品 export function postsPermissionGoods(data) { return request({ - url: `/api/goods`, + // url: `/api/goods`, + url: `/api/goods/create/list`, method: 'post', data: data }); @@ -138,3 +139,12 @@ export function postPermissionIdsGoods(data) { data: data }); } + +// 创建万能权限商品 +export function postCreatePackage(data) { + return request({ + url: `/api/goods/create/package`, + method: 'post', + data: data + }); +} diff --git a/src/api/management/order.js b/src/api/management/order.js index 322ea6a47..80339a328 100644 --- a/src/api/management/order.js +++ b/src/api/management/order.js @@ -107,7 +107,8 @@ export function cancalOrder(orderId) { // 快速创建权限 export function createPermission(data) { return request({ - url: `/api/order/quicklyGenerateOrder`, + // url: `/api/order/quicklyGenerateOrder`, + url: `/api/distribute/createQuickly`, method: 'post', data: data }); diff --git a/src/views/orderauthor/permission/create/edit.vue b/src/views/orderauthor/permission/create/edit.vue new file mode 100644 index 000000000..a0d9f67ed --- /dev/null +++ b/src/views/orderauthor/permission/create/edit.vue @@ -0,0 +1,114 @@ + + + diff --git a/src/views/orderauthor/permission/create/index.vue b/src/views/orderauthor/permission/create/index.vue index d1330659a..c32aa15cc 100644 --- a/src/views/orderauthor/permission/create/index.vue +++ b/src/views/orderauthor/permission/create/index.vue @@ -56,7 +56,7 @@ export default { this.display = 1; }, // 万能权限,走订单路线 - permissionNextOrder(permission, good) { + permissionNextOrder(good) { this.goodsList = [{ isPackage: true, id: good.id, @@ -66,7 +66,6 @@ export default { price: good.price, list: good.list }]; - this.$refs.orderForm.setOrderName(permission, good); this.display = 1; }, orderNext(data) { diff --git a/src/views/orderauthor/permission/create/order.vue b/src/views/orderauthor/permission/create/order.vue index 88cead5a5..8621c34bb 100644 --- a/src/views/orderauthor/permission/create/order.vue +++ b/src/views/orderauthor/permission/create/order.vue @@ -1,12 +1,7 @@