From 1d26a9f1fb88afca75782013feb3d8cc83726761 Mon Sep 17 00:00:00 2001
From: zyy <1787816799@qq.com>
Date: Wed, 18 Sep 2019 18:39:55 +0800
Subject: [PATCH] =?UTF-8?q?desc:=20=E6=96=B0=E5=A2=9E=E5=88=9B=E5=BB=BA?=
=?UTF-8?q?=E6=9D=83=E9=99=90=E6=B5=81=E7=A8=8B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/management/goods.js | 9 +
src/api/management/order.js | 20 ++
src/i18n/langs/zh/orderAuthor.js | 5 +-
src/i18n/langs/zh/permission.js | 9 +-
src/views/orderauthor/order/addGoods.vue | 17 +-
.../permission/create/createGood.vue | 151 ---------
.../orderauthor/permission/create/goods.vue | 172 ----------
.../orderauthor/permission/create/index.vue | 81 ++---
.../orderauthor/permission/create/list.vue | 100 ++++++
.../orderauthor/permission/create/order.vue | 222 +++++++++----
.../permission/create/permission.vue | 308 ++++++++++++++----
.../orderauthor/permission/create/qCode.vue | 63 ++++
src/views/orderauthor/permission/index.vue | 2 +-
13 files changed, 653 insertions(+), 506 deletions(-)
delete mode 100644 src/views/orderauthor/permission/create/createGood.vue
delete mode 100644 src/views/orderauthor/permission/create/goods.vue
create mode 100644 src/views/orderauthor/permission/create/list.vue
create mode 100644 src/views/orderauthor/permission/create/qCode.vue
diff --git a/src/api/management/goods.js b/src/api/management/goods.js
index 6bb413c1b..82803f4aa 100644
--- a/src/api/management/goods.js
+++ b/src/api/management/goods.js
@@ -117,3 +117,12 @@ export function getPermissionGoods(id) {
method: 'get'
});
}
+
+// 创建商品
+export function postsPermissionGoods(data) {
+ return request({
+ url: `/api/goods`,
+ method: 'post',
+ data: data
+ });
+}
diff --git a/src/api/management/order.js b/src/api/management/order.js
index beced069a..4ce0acf14 100644
--- a/src/api/management/order.js
+++ b/src/api/management/order.js
@@ -103,3 +103,23 @@ export function cancalOrder(orderId) {
method: 'put'
});
}
+
+// 快速创建权限
+export function createPermission(data) {
+ return request({
+ url: `/api/order/quicklyGenerateOrder`,
+ method: 'post',
+ data: data
+ });
+}
+
+// 校验是否存在所选择权限对应的权限包
+export function postFindPermission(ids) {
+ return request({
+ url: `/api/permission/findPermission`,
+ method: 'post',
+ data: {
+ relPermissions: ids
+ }
+ });
+}
diff --git a/src/i18n/langs/zh/orderAuthor.js b/src/i18n/langs/zh/orderAuthor.js
index b3b8c4467..4158c26e9 100644
--- a/src/i18n/langs/zh/orderAuthor.js
+++ b/src/i18n/langs/zh/orderAuthor.js
@@ -86,6 +86,7 @@ export default {
select: '选择',
chooseGoods: '选择商品',
permissionName: '权限名称',
+ permissionGoodName: '权限商品名称',
receivingPermission: '领取权限',
isPackage: '是否权限包',
modifyPermissionContent: '修改权限内容',
@@ -101,5 +102,7 @@ export default {
orderSelectionItem: '订单选择商品',
orderDetails: '订单详情',
statusType: '状态类型',
- createPackage: '创建权限'
+ createPackage: '创建权限',
+ package: '权限包',
+ basePackage: '基础权限'
};
diff --git a/src/i18n/langs/zh/permission.js b/src/i18n/langs/zh/permission.js
index 1706eac16..f4dbe7e41 100644
--- a/src/i18n/langs/zh/permission.js
+++ b/src/i18n/langs/zh/permission.js
@@ -29,5 +29,12 @@ export default {
pleaseSelectTransferPermission: '选择转赠权限',
permissionName: '权限名称',
private: '专用',
- public: '公用'
+ public: '公用',
+ selectPermission: '选择权限',
+ createOrder: '创建订单',
+ checkCode: '查看二维码',
+ goodsName: '商品名称',
+ price: '价格',
+ permissionList: '查看权限列表',
+ lastShep: '上一步'
};
diff --git a/src/views/orderauthor/order/addGoods.vue b/src/views/orderauthor/order/addGoods.vue
index 397381d15..c3c5340ef 100644
--- a/src/views/orderauthor/order/addGoods.vue
+++ b/src/views/orderauthor/order/addGoods.vue
@@ -49,13 +49,16 @@ export default {
type: 'text',
label: this.$t('orderAuthor.name')
},
- // productType: {
- // type: 'select',
- // label: this.$t('orderAuthor.productType'),
- // config: {
- // data: []
- // }
- // },
+ isPackage: {
+ type: 'select',
+ label: this.$t('orderAuthor.package'),
+ config: {
+ data: [
+ { value: true, label: this.$t('orderAuthor.package') },
+ { value: false, label: this.$t('orderAuthor.basePackage') }
+ ]
+ }
+ },
mapId: {
type: 'select',
label: this.$t('orderAuthor.map'),
diff --git a/src/views/orderauthor/permission/create/createGood.vue b/src/views/orderauthor/permission/create/createGood.vue
deleted file mode 100644
index 838a361e5..000000000
--- a/src/views/orderauthor/permission/create/createGood.vue
+++ /dev/null
@@ -1,151 +0,0 @@
-
-