diff --git a/apis/interfaces/employees.js b/apis/interfaces/employees.js
index 938e23a..f35fbc3 100644
--- a/apis/interfaces/employees.js
+++ b/apis/interfaces/employees.js
@@ -55,11 +55,19 @@ const employeesPut = (id, data) => {
})
}
+// 员工管理工具 手太欠
+const employeesTool = () => {
+ return request({
+ url: 'companies/employees/permission'
+ })
+}
+
export {
employees,
employeesConfig,
addEmployees,
employeesInfo,
employeesDelete,
- employeesPut
+ employeesPut,
+ employeesTool
}
diff --git a/apis/interfaces/goods.js b/apis/interfaces/goods.js
index 8ffb266..544e24c 100644
--- a/apis/interfaces/goods.js
+++ b/apis/interfaces/goods.js
@@ -100,8 +100,37 @@ const managesCreate = (data) => {
url: 'manages/goods/create',
data
})
-}
-
+}
+
+// 区块链证书
+const managesChain = (id) => {
+ return request({
+ url: 'mall/goods/'+ id + '/chain'
+ })
+}
+
+// 商品认证
+const managesAttestation = (id) => {
+ return request({
+ url: 'mall/goods/'+ id +'/message'
+ })
+}
+
+// 商品溯源
+const managesTracedTo = (id) => {
+ return request({
+ url: 'mall/goods/'+ id +'/trace'
+ })
+}
+
+// 领取优惠券
+const managesCoupons = (id) => {
+ return request({
+ url: 'coupons/'+ id +'/grant',
+ method: 'POST'
+ })
+}
+
export {
mall,
list,
@@ -114,5 +143,9 @@ export {
managesGoodsCreateBefore,
managesGoodsCreate,
managesCategory,
- managesCreate
+ managesCreate,
+ managesChain,
+ managesAttestation,
+ managesTracedTo,
+ managesCoupons
}
diff --git a/components/store-staff/store-staff.vue b/components/store-staff/store-staff.vue
index 9f1a4b7..d9e3fc7 100644
--- a/components/store-staff/store-staff.vue
+++ b/components/store-staff/store-staff.vue
@@ -1,25 +1,61 @@
- 员工啦
-
-
+
+
+
+
+
+ 扫码核销
+
+
+
+
+
+
+ 商品权证
+
+
+
+
+
+
+ 员工管理
+
+
+
+
+
+
+ 发货单管理
+
+
+
+
+
+
+ 退换货管理
+
+
+
+
+
+
+ 部门/门店
+
+
+
+
+
+
+ 优惠券管理
+
+
+
+
+
+ 营销推广码
+
+
@@ -27,46 +63,12 @@
export default {
name:"store-staff",
props:{
- // 店铺统计
- top: {
- type: Object,
- default: ()=> {
- return {
- barter_total: 0,
- trading_day : 0,
- eb_in : 0,
- cash_in : 0
- }
- }
- },
- // 店铺概况
- middle: {
- type: Object,
- default: ()=> {
- return {
- visitors : 0,
- clinch : 0,
- employees: 0,
- sale : 0,
- hold : 0,
- transfer : 0
- }
- }
- },
- // 店铺订单
- order: {
- type: Object,
- default: ()=> {
- return {
- not_shipped : 0,
- already_shipped : 0,
- not_pick : 0,
- already_pick : 0,
- after_sale : 0
- }
- }
- }
- }
+ // 员工数据
+ toolList: {},
+ },
+ created() {
+ // console.log(this.$props.toolList)
+ }
}
@@ -76,7 +78,7 @@
.statistical{
display: flex;
background: $text-price;
- padding: $padding ($padding/2) $padding*5;
+ padding: $padding ($padding/2) $padding*2;
flex-wrap: wrap;
justify-content: space-between;
.item{
@@ -95,15 +97,15 @@
}
// 店铺概况
.general{
- margin: -$margin*4 $margin 0 $margin;
+ margin: -$margin*2 $margin 0 $margin;
.general-box{
background-color: white;
border-radius: $radius/2;
display: flex;
- padding: $padding $padding/2;
+ padding: $padding - 20 $padding/2;
flex-wrap: wrap;
.general-item{
- width: 33.33%;
+ width: 50%;
text-align: center;
padding: $padding/2;
box-sizing: border-box;
@@ -122,27 +124,34 @@
}
// 店铺工具
.tool-flex{
- background: white;
- border-radius: $radius/2;
- padding: $padding/2;
- margin: $margin;
- display: flex;
- flex-wrap: wrap;
+ margin: $margin*2 $margin $margin;
.store-item{
- padding: $padding/2;
- text-align: center;
- width: 25%;
+ background: white;
+ border-radius: $radius/2;
+ padding: $padding/2;
box-sizing: border-box;
+ margin-bottom: $margin;
+ display: flex;
+ position: relative;
.icon{
- width: 68rpx;
- height: 68rpx;
+ width: 54rpx;
+ height: 54rpx;
+ margin-right: $margin - 15;
vertical-align: top;
}
.title{
- font-size: $title-size-sm;
+ line-height: 58rpx;
+ font-size: $title-size-m;
color: $text-gray;
- padding-top: $padding/3;
}
+ .arrow {
+ width: 38rpx;
+ height: 38rpx;
+ filter: brightness(.9);
+ position: absolute;
+ right: $padding - 20;
+ top: $padding - 6;
+ }
}
.order-item{
position: relative;
diff --git a/pages.json b/pages.json
index 4b38ee6..d4246ec 100644
--- a/pages.json
+++ b/pages.json
@@ -246,7 +246,28 @@
"navigationBarTitleText": "发布权证",
"navigationBarBackgroundColor": "#FFFFFF"
}
- }, {
+ },{
+ "path": "pages/goods/chain",
+ "name": "GoodsChain",
+ "style": {
+ "navigationBarTitleText": "区块链证书",
+ "navigationBarBackgroundColor": "#FFFFFF"
+ }
+ },{
+ "path": "pages/goods/attestation",
+ "name": "GoodsAttestation",
+ "style": {
+ "navigationBarTitleText": "商品认证",
+ "navigationBarBackgroundColor": "#FFFFFF"
+ }
+ },{
+ "path": "pages/goods/tracedTo",
+ "name": "GoodstracedTo",
+ "style": {
+ "navigationBarTitleText": "商品溯源",
+ "navigationBarBackgroundColor": "#FFFFFF"
+ }
+ },{
"path": "pages/coupons/index",
"name": "Coupons",
"style": {
diff --git a/pages/goods/attestation.vue b/pages/goods/attestation.vue
new file mode 100644
index 0000000..c427093
--- /dev/null
+++ b/pages/goods/attestation.vue
@@ -0,0 +1,186 @@
+
+
+ 区块链溯源码:{{info.token}}
+
+
+ 商品认证
+
+
+ {{info.goods.type ===1?'商品名称':'项目名称'}}:
+ {{info.goods.name || '暂无数据'}}
+
+
+ 生产批次:
+ {{info.goods.batch || '暂无数据'}}
+
+
+ 项目分类:
+ {{info.goods.category || '暂无数据'}}
+
+
+
+ 规格:
+ {{info.goods.skus[0].unit || '暂无数据'}}
+
+
+ 数量:
+ {{info.goods.skus[0].stock || '暂无数据'}}
+
+
+ 售价:
+ {{info.goods.skus[0].price || '暂无数据'}}
+
+
+ 生产日期:
+ {{info.goods.producted_at || '暂无数据'}}
+
+
+ {{info.goods.type ===1?'保质期':'有效期'}}:
+ {{info.goods.expiried_at || '暂无数据'}}
+
+
+ 生产厂家:
+ {{info.goods.product_name || '暂无数据'}}
+
+
+ 生产地:
+ {{info.goods.product_address || '暂无数据'}}
+
+
+ 供应商:
+ {{info.goods.skus[0].price || '暂无数据'}}
+
+
+ 经营许可证:
+ {{info.goods.lisence || '暂无数据'}}
+
+
+ 实物照片:
+
+ 暂无数据
+
+
+
+
+
+
+ 企业认证
+
+
+ 企业名称:
+ {{info.certification.name || '暂无数据'}}
+
+
+ 企业地址:
+ {{info.certification.address || '暂无数据'}}
+
+
+ 统一信用代码:
+ {{info.certification.certification.code || '暂无数据'}}
+
+
+ 行业:
+ {{info.certification.industry.title || '暂无数据'}}
+
+
+ 经营范围:
+ {{info.certification.range || '暂无数据'}}
+
+
+ 联系电话:
+
+ 暂无数据
+
+
+ 营业执照:
+
+ 暂无数据
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/goods/chain.vue b/pages/goods/chain.vue
new file mode 100644
index 0000000..ae76393
--- /dev/null
+++ b/pages/goods/chain.vue
@@ -0,0 +1,117 @@
+
+
+
+
+
+
+ 易品新境区块链溯源证书
+ 区块链溯源证书:{{info.token}}
+
+ 兹证明:
+
+ {{info.company.name}},产品符合溯源规范,认证内容如下:特授权其产品在易品新境区块链溯源商城出售!
+
+ 交易哈希: {{info.hash}}
+ 区块链高度: {{info.height}}
+
+ 授权时间: {{info.applied_at}}
+ 有效期至: {{info.ended_at}}
+ 易品新境区块链有限公司
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/goods/details.vue b/pages/goods/details.vue
index 2b9969f..a465b69 100644
--- a/pages/goods/details.vue
+++ b/pages/goods/details.vue
@@ -45,15 +45,15 @@
进店
-
+
区块链证书
-
+
商品认证
-
+
商品溯源
@@ -129,7 +129,7 @@
{{item.time.interval}}
-
+
领取
@@ -166,7 +166,7 @@
+
+
\ No newline at end of file
diff --git a/pages/property/index.vue b/pages/property/index.vue
index eb5072c..f7dad07 100644
--- a/pages/property/index.vue
+++ b/pages/property/index.vue
@@ -144,6 +144,11 @@
推广海报
+
+
+
+ 临时退出
+
易品新境 beta 1.0.0
diff --git a/pages/store/index.vue b/pages/store/index.vue
index 5cc4d16..0f63f2c 100644
--- a/pages/store/index.vue
+++ b/pages/store/index.vue
@@ -40,7 +40,7 @@
-
+
@@ -60,6 +60,7 @@