From 94f3bce874a64ff3ed7ea7dbf0182ec9f0331fb4 Mon Sep 17 00:00:00 2001 From: zyy <1787816799@qq.com> Date: Tue, 3 Dec 2019 17:51:39 +0800 Subject: [PATCH 01/15] =?UTF-8?q?desc:=20=20=E4=BF=AE=E6=94=B9=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E6=9D=83=E9=99=90=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/management/goods.js | 12 +- src/api/management/order.js | 3 +- .../orderauthor/permission/create/edit.vue | 114 ++++++++++ .../orderauthor/permission/create/index.vue | 3 +- .../orderauthor/permission/create/order.vue | 113 ++++------ .../permission/create/permission.vue | 197 ++++++++++-------- 6 files changed, 270 insertions(+), 172 deletions(-) create mode 100644 src/views/orderauthor/permission/create/edit.vue 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 @@