diff --git a/fuintAdmin/.env.development b/fuintAdmin/.env.development index 4e02a1b7c..de540d4a6 100644 --- a/fuintAdmin/.env.development +++ b/fuintAdmin/.env.development @@ -12,3 +12,4 @@ VUE_APP_PUBLIC_PATH = '/' # 后端接口地址 VUE_APP_SERVER_URL = 'http://192.168.1.6:8008/' + diff --git a/fuintAdmin/src/api/convenienceStore/goods.js b/fuintAdmin/src/api/convenienceStore/goods.js index 2b72147f2..4c3bba41d 100644 --- a/fuintAdmin/src/api/convenienceStore/goods.js +++ b/fuintAdmin/src/api/convenienceStore/goods.js @@ -13,8 +13,8 @@ export function insertCvsGoods(data) { export function selectTree(data) { return request({ url: '/business/cvsGoods/selectTree', - method: 'post', - data: data + method: 'get', + params: data }) } @@ -28,19 +28,27 @@ export function list(data) { } // 根据id查询一级分类 -export function selectParentById(query) { +export function selectParentById(id) { return request({ - url: '/business/cvsGoods', + url: '/business/cvsGoods/'+id, method: 'get', - params: query }) } + +// 修改会员 +export function updateCevGood(data) { + return request({ + url: '/business/cvsGoods', + method: 'put', + data: data + }) +} + // 根据id查询一级分类 export function deleteBYId(id) { return request({ - url: '/business/cvsGoods/detele/'+id, + url: '/business/cvsGoods/'+id, method: 'delete', - }) } diff --git a/fuintAdmin/src/api/convenienceStore/ljgoods.js b/fuintAdmin/src/api/convenienceStore/ljgoods.js new file mode 100644 index 000000000..63fea631f --- /dev/null +++ b/fuintAdmin/src/api/convenienceStore/ljgoods.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询供应商列表 +export function listLJGoods(query) { + return request({ + url: '/business/convenience/goods/list', + method: 'get', + params: query + }) +} + +// 查询供应商详细 +export function getLJGoods(id) { + return request({ + url: '/business/convenience/goods/' + id, + method: 'get' + }) +} + +// 新增供应商 +export function addLJGoods(data) { + return request({ + url: '/business/convenience/goods', + method: 'post', + data: data + }) +} + +// 修改供应商 +export function updateLJGoods(data) { + return request({ + url: '/business/convenience/goods', + method: 'put', + data: data + }) +} + +// 删除供应商 +export function delLJGoods(id) { + return request({ + url: '/business/convenience/goods/' + id, + method: 'delete' + }) +} diff --git a/fuintAdmin/src/api/convenienceStore/supplier.js b/fuintAdmin/src/api/convenienceStore/supplier.js new file mode 100644 index 000000000..5ab053e83 --- /dev/null +++ b/fuintAdmin/src/api/convenienceStore/supplier.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询供应商列表 +export function listSupplier(query) { + return request({ + url: '/business/convenience/supplier/list', + method: 'get', + params: query + }) +} + +// 查询供应商详细 +export function getSupplier(id) { + return request({ + url: '/business/convenience/supplier/' + id, + method: 'get' + }) +} + +// 新增供应商 +export function addSupplier(data) { + return request({ + url: '/business/convenience/supplier', + method: 'post', + data: data + }) +} + +// 修改供应商 +export function updateSupplier(data) { + return request({ + url: '/business/convenience/supplier', + method: 'put', + data: data + }) +} + +// 删除供应商 +export function delSupplier(id) { + return request({ + url: '/business/convenience/supplier/' + id, + method: 'delete' + }) +} diff --git a/fuintAdmin/src/layout/components/Sidebar/index.vue b/fuintAdmin/src/layout/components/Sidebar/index.vue index 3d726fe48..dfecc0fd4 100644 --- a/fuintAdmin/src/layout/components/Sidebar/index.vue +++ b/fuintAdmin/src/layout/components/Sidebar/index.vue @@ -8,7 +8,7 @@ -
- - - - - - - - - - - - - 搜索 - 重置 - - - +
+ + + + + + + + + + + + + + + + + 搜索 + + + - -
分类列表 - 添加分类 -
- - - - - - - - - - - - - - - + + 添加分类 + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - {{ dict.label }} - - - - - + - - - - - - - - - - - - - - - - - - {{ dict.label }} - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + -
- -
+
+ + + + + + + + + + + + + + + + + + {{ dict.label }} + + + + + -
-
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/fuintAdmin/src/views/convenienceStore/supplier.vue b/fuintAdmin/src/views/convenienceStore/supplier.vue new file mode 100644 index 000000000..5cd9a93e3 --- /dev/null +++ b/fuintAdmin/src/views/convenienceStore/supplier.vue @@ -0,0 +1,289 @@ + + + + + diff --git a/fuintAdmin/src/views/member/fixingLevel.vue b/fuintAdmin/src/views/member/fixingLevel.vue index 931581b35..a337fa9cd 100644 --- a/fuintAdmin/src/views/member/fixingLevel.vue +++ b/fuintAdmin/src/views/member/fixingLevel.vue @@ -109,7 +109,7 @@ icon="el-icon-document-copy" @click="handleAddMembers" v-hasPermi="['member:add']" - >新增用户认证 + >批量用户认证 @@ -183,7 +183,11 @@ @selection-change="handleSelectionChange" :default-sort="defaultSort" @sort-change="handleSortChange"> - + + + + + + + diff --git a/fuintCashierWeb/src/views/cashier/NewComponents/homeindex.vue b/fuintCashierWeb/src/views/cashier/NewComponents/homeindex.vue new file mode 100644 index 000000000..f0a5b89a6 --- /dev/null +++ b/fuintCashierWeb/src/views/cashier/NewComponents/homeindex.vue @@ -0,0 +1,552 @@ + + + + + diff --git a/fuintCashierWeb/src/views/cashier/index.vue b/fuintCashierWeb/src/views/cashier/index.vue index 3df9b6c18..1db78e715 100644 --- a/fuintCashierWeb/src/views/cashier/index.vue +++ b/fuintCashierWeb/src/views/cashier/index.vue @@ -176,8 +176,8 @@ +
-
@@ -185,81 +185,18 @@
蓝鲸油站收银
-
{{item.name}}
- +
+
{{item.name}}
+
-
-
-
-
-
-
会员登录
-
-
-
-
油品:¥200.00
-
商品:¥0.52
-
合计: ¥200.52
-
-
-
满减活动
-
-¥2.87
-
-
-
-
扫码支付
-
394.7
-
-
-
找零
-
394.7
-
-
-
加油员
-
加油员名称
-
-
-
-
-
-
支付方式
-
-
-
-
-
¥349.78
-
优惠合计:5.74元
-
-
立即结算
-
-
-
-
-
非油商品
-
- -
-
-
-
清空
-
-
取单
-
挂单
-
-
-
-
-
-
选择油号
-
-
-
新增订单
-
解锁
-
-
+ + +
+
- + +
@@ -278,6 +215,8 @@ import orderList from "./components/orderList"; import memberList from "./components/memberList"; import couponConfirm from "./components/couponConfirm"; import noGoodsCashier from "./components/noGoodsCashier"; +import homeindex from "./NewComponents/homeindex"; +import Recharge from "./NewComponents/Recharge"; export default { name: "Cashier", components: { @@ -290,21 +229,36 @@ export default { orderList, memberList, couponConfirm, - noGoodsCashier + noGoodsCashier, + homeindex, + Recharge, + + + }, data() { return { + activeName: 'second', tabarr:[ - {name:'收银台'}, - {name:'充值'}, - {name:'订单'}, - {name:'会员'}, - {name:'核销'}, - {name:'挂账'}, - {name:'积分'}, - {name:'交班'}, - + {name:'收银台',icon:'el-icon-s-platform'}, + {name:'充值',icon: 'el-icon-s-finance'}, + {name:'订单',icon: 'el-icon-s-order'}, + {name:'会员',icon: 'el-icon-s-custom'}, + {name:'核销',icon: 'el-icon-s-check'}, + {name:'挂账',icon:'el-icon-s-claim'}, + {name:'积分',icon:'el-icon-s-data'}, + {name:'交班',icon: 'el-icon-s-flag'}, ], + leftindex:0, + oilList:[ + {color:'#e5f0ff'}, + {color:'#fff2e5'}, + {color:'#e5edf1'}, + {color:'#ecfae5'}, + {color:'#fafafa'} + ], + num: 1, + // 系统名称 systemName: process.env.VUE_APP_TITLE, // 导航tab @@ -431,6 +385,15 @@ export default { // this.getCartList(); }, methods: { + handleChange(value) { + console.log(value); + }, + handleClick(tab, event) { + console.log(tab, event); + }, + gocomponents(index){ + this.leftindex = index + }, // 初始化数据 initCashier() { const app = this; @@ -867,240 +830,55 @@ export default { background: #f6f8f9; display: flex; } - .app-center{ - width: 100%; - display: flex; - box-sizing: border-box; - padding: 10px; - } - .center-left{ - width: 33%; - border-radius: 8px; - overflow: hidden; - /*height: 70vh;*/ - /*box-sizing: border-box;*/ - /*padding: 10px;*/ - } - .center-app{ - width: 33%; - border-radius: 8px; - overflow: hidden; - /*background: white;*/ - margin: 0px 10px; - } - .center-right{ - width: 33%; - border-radius: 8px; - overflow: hidden; - - - } - .center-top{ - width: 100%; - height: 86vh; - background: white; - margin-bottom: 10px; - box-sizing: border-box; - padding: 10px; - - } - .center-top-title{ - box-sizing: border-box; - padding: 10px 0px; - padding-bottom: 15px; - border-bottom: 1px solid #ececec; - font-size: 22px; - } - .center-top-input{ - width: 100%; - height: 60px; - background: #f8f8f8; - border-radius: 50px; - display: flex; - align-items: center; - justify-content: center; - input{ - border: none; - outline: none; - background-color:transparent; - } - - } - .center-left-top{ - width: 100%; - background: #5393ff; - height: 70px; - display: flex; - align-items: center; - justify-content: center; - } - .center-vh{ - height: 68vh; - } - .center-left-hj{ - background: white; - display: flex; - justify-content: space-between; - align-items: center; - box-sizing: border-box; - padding: 15px; - margin-bottom: 2px; - } - .center-left-th{ - background: white; - box-sizing: border-box; - padding: 15px; - margin: 10px auto; - } - .center-left-wrap{ - display: flex; - justify-content: space-between; - flex-wrap: wrap; - /*margin-top: 280px;*/ - } - .wrap-box{ - width: 31%; - background-color: white; - border-radius: 8px; - height: 80px; - display: flex; - align-items: center; - justify-content: center; - margin-bottom: 10px; - - } - .center-left-bottom{ - width: 100%; - background-color: white; - border-radius: 8px; - box-sizing: border-box; - padding: 10px; - display: flex; - align-items: center; - justify-content: space-between; - } - .bottom-qk{ - border: 1px solid #99a9bf; - box-sizing: border-box; - padding: 14px 20px; - border-radius: 50px; - color: #99a9bf; - margin: 15px 0px ; - } - .bottom-qd{ - border: 1px solid #13ce66; - background: #13ce66; - box-sizing: border-box; - padding: 14px 20px; - border-radius: 50px; - color: #ffffff; - - margin: 15px 10px ; - } - .bottom-gd{ - border: 1px solid #5393ff; - background: #5393ff; - box-sizing: border-box; - padding: 14px 20px; - border-radius: 50px; - color: #ffffff; - - margin: 15px 10px ; - } - - .bottom-price{ - font-size: 26px; - font-weight: bold; - } - .price-red{ - color: red; - } - .center-left-lv{ - width: 60%; - height: 80px; - background-color: #13ce66; - color: white; - border-radius: 50px; - display: flex; - align-items: center; - justify-content: center; - font-size: 22px; - } - .th-box{ - width: 100%; - display: flex; - justify-content: space-between; - align-items: center; - border-bottom: 1px solid #f6f8f9; - box-sizing: border-box; - padding: 10px 0px; - } - .hj-box{ - width: 33%; - display: flex; - align-items: center; - justify-content: center; - } .bule{ font-weight: 700; - color: #5393ff; + color: #5393ff !important; } - .vip-bottom{ - border: 1px solid #ffffff; + .app-left{ + width: 180px; + height: 100vh; + background: #ffffff; + box-shadow: 0 4px 4px 4px rgba(0,21,41,.08); box-sizing: border-box; - padding: 5px 15px; - border-radius: 50px; + padding: 10px; + + } + .app-left-title{ + color: #53a0ff; + font-weight: bold; + } + .app-left-top{ + height: 60px; + width: 100%; display: flex; align-items: center; justify-content: center; - color: white; - cursor: pointer; } - .app-left{ - width: 180px; - height: 100vh; - background: #ffffff; - box-shadow: 0 4px 4px 4px rgba(0,21,41,.08); - box-sizing: border-box; - padding: 10px; - - } - .app-left-title{ - color: #53a0ff; - font-weight: bold; - } - .app-left-top{ - height: 60px; + .app-left-img{ + width: 28px; + height: 24px; + img{ width: 100%; - display: flex; - align-items: center; - justify-content: center; - } - .app-left-img{ - width: 28px; - height: 24px; - img{ - width: 100%; - height: 100%; - } - } - .app-left-box{ - width: 100%; - height: 60px; - box-sizing: border-box; - display: flex; - align-items: center; - justify-content: center; - color: #909399; - } - .container-top{ - width: 100%; - height: 98px; - background: #5393ff; - display: flex; - align-items: center; - justify-content: center; + height: 100%; } + } + .app-left-box{ + width: 100%; + height: 60px; + box-sizing: border-box; + display: flex; + align-items: center; + justify-content: center; + color: #909399; + } + .container-top{ + width: 100%; + height: 98px; + background: #5393ff; + display: flex; + align-items: center; + justify-content: center; + } .main { height: 100%; width: 100%;