From 831db433efdd06c220a12c2a894742115f1f9396 Mon Sep 17 00:00:00 2001
From: chenhaozhe <cgz@hz-kingdee.com>
Date: 星期三, 27 八月 2025 16:55:22 +0800
Subject: [PATCH] 添加 条码扫码通用模块 根据递入参数的不同访问不同的视图 添加 条码扫码通用模块 条码生成模块 实现 条码批量转存条码主档 条码批量打印
---
pages.json | 1544 ++++++++++++------------
pages/tiaomaguanli/table.vue | 266 ++++
pages/tiaomaguanli/table_son.vue | 919 ++++++++++++++
pages/index/index.vue | 1047 ++++++++--------
4 files changed, 2,485 insertions(+), 1,291 deletions(-)
diff --git a/pages.json b/pages.json
index a01660f..125f5c1 100644
--- a/pages.json
+++ b/pages.json
@@ -1,778 +1,772 @@
{
- "pages": [ //pages鏁扮粍涓涓�椤硅〃绀哄簲鐢ㄥ惎鍔ㄩ〉锛屽弬鑰冿細https://uniapp.dcloud.io/collocation/pages
- {
- "path": "pages/index/login",
+ "pages": [ //pages鏁扮粍涓涓�椤硅〃绀哄簲鐢ㄥ惎鍔ㄩ〉锛屽弬鑰冿細https://uniapp.dcloud.io/collocation/pages
+ {
+ "path": "pages/index/login",
- "style": {
- "navigationBarTitleText": "鐧诲綍",
- "navigationStyle": "custom"
- }
- },
- {
- "path": "pages/index/index",
- "style": {
- "navigationBarTitleText": "棣栭〉",
- "navigationStyle": "custom"
- }
- },
- {
- "path": "pages/index/tab1",
- "style": {
- "navigationBarTitleText": "杞﹂棿宸ュ簭"
- }
- },
- {
- "path": "pages/index/tab2",
- "style": {
- "navigationBarTitleText": "鍗曟嵁鍒楄〃"
- }
- },
- {
- "path": "pages/index/mine",
- "style": {
- "navigationBarTitleText": "涓汉涓績",
- // "navigationStyle": "custom"
- "navigationBarTextStyle": "white",
- "navigationBarBackgroundColor": "#65a2fb"
- }
- },
- {
- "path": "pages/shebeilvli/form",
- "style": {
- "navigationBarTitleText": "璁惧鐘舵�佸垎鏋�"
- }
- },
- {
- "path": "pages/shebeilvli/table",
- "style": {
- "navigationBarTitleText": "璁惧灞ュ巻",
- "enablePullDownRefresh": true
- }
- },
- {
- "path": "pages/shebeilvli/table_son",
- "style": {
- "navigationBarTitleText": "璁惧灞ュ巻瀛愯〃"
- }
- },
- {
- "path": "pages/baoyangjihua/form",
- "style": {
- "navigationBarTitleText": "璁惧淇濆吇璁″垝鍗�"
- }
- },
- {
- "path": "pages/baoyangjihua/table",
- "style": {
- "navigationBarTitleText": "璁惧淇濆吇璁″垝鍗�",
- "enablePullDownRefresh": true
- }
- },
- {
- "path": "pages/baoyangjihua/table_son",
- "style": {
- "navigationBarTitleText": "淇濆吇璁″垝瀛愯〃"
- }
- },
- {
- "path": "pages/baoyangjilu/form",
- "style": {
- "navigationBarTitleText": "璁惧淇濆吇璁板綍鍗�"
- }
- },
- {
- "path": "pages/baoyangjilu/table",
- "style": {
- "navigationBarTitleText": "璁惧淇濆吇璁板綍鍗�",
- "enablePullDownRefresh": true
- }
- },
- {
- "path": "pages/baoyangjilu/table_son",
- "style": {
- "navigationBarTitleText": "淇濆吇璁板綍瀛愯〃"
- }
- },
- {
- "path": "pages/guzhangdengji/form",
- "style": {
- "navigationBarTitleText": "璁惧鏁呴殰鐧昏琛�"
- }
- },
- {
- "path": "pages/guzhangdengji/table",
- "style": {
- "navigationBarTitleText": "璁惧鏁呴殰鐧昏琛�",
- "enablePullDownRefresh": true
- }
- },
- {
- "path": "pages/shebeidangan/form",
- "style": {
- "navigationBarTitleText": "璁惧妗f"
- }
- },
- {
- "path": "pages/shebeidangan/table",
- "style": {
- "navigationBarTitleText": "璁惧妗f",
- "enablePullDownRefresh": true
- }
- },
- {
- "path": "pages/shebeiweixiu/form",
- "style": {
- "navigationBarTitleText": "璁惧缁翠慨璁板綍鍗�"
- }
- },
- {
- "path": "pages/shebeiweixiu/table",
- "style": {
- "navigationBarTitleText": "璁惧缁翠慨璁板綍鍗�",
- "enablePullDownRefresh": true
- }
- },
- {
- "path": "pages/weiwaigxIn/form",
- "style": {
- "navigationBarTitleText": "濮斿宸ュ簭鍙戝嚭鍗�"
- }
- },
- {
- "path": "pages/weiwaigxIn/table",
- "style": {
- "navigationBarTitleText": "濮斿宸ュ簭鍙戝嚭鍗�",
- "enablePullDownRefresh": true
- }
- },
- {
- "path": "pages/weiwaigxOut/form",
- "style": {
- "navigationBarTitleText": "濮斿宸ュ簭鎺ユ敹鍗�"
- }
- },
- {
- "path": "pages/weiwaigxOut/table",
- "style": {
- "navigationBarTitleText": "濮斿宸ュ簭鎺ユ敹鍗�",
- "enablePullDownRefresh": true
- }
- },
- {
- "path": "pages/weiwaigxOut/firstCheck",
- "style": {
- "navigationBarTitleText": "棣栦欢妫�楠屽崟",
- "enablePullDownRefresh": true
- }
- }, {
- "path": "pages/gongxuIn/form",
- "style": {
- "navigationBarTitleText": "宸ュ簭杩涚珯鎺ユ敹鍗�"
- }
- },
- {
- "path": "pages/gongxuIn/table",
- "style": {
- "navigationBarTitleText": "宸ュ簭杩涚珯鎺ユ敹鍗�",
- "enablePullDownRefresh": true
- }
- }, {
- "path": "pages/gongxuOut/form",
- "style": {
- "navigationBarTitleText": "宸ュ簭鍑虹珯姹囨姤鍗�"
- }
- },
- {
- "path": "pages/gongxuOut/table",
- "style": {
- "navigationBarTitleText": "宸ュ簭鍑虹珯姹囨姤鍗�",
- "enablePullDownRefresh": true
- }
- },
- {
- "path": "pages/shebeiguanli/form",
- "style": {
- "navigationBarTitleText": "璁惧绠$悊",
- "enablePullDownRefresh": true
- }
- },
- {
- "path": "pages/shebeiguanli/table",
- "style": {
- "navigationBarTitleText": "璁惧绠$悊",
- "enablePullDownRefresh": true
- }
- },
- {
- "path": "pages/shebeiguanli/list",
- "style": {
- "navigationBarTitleText": "宸ュ崟鍒楄〃",
- "enablePullDownRefresh": true
- }
- },
- {
- "path": "pages/baogong/form",
- "style": {
- "navigationBarTitleText": "浜ч噺姹囨姤鍗�",
- "enablePullDownRefresh": false
- }
- },
- {
- "path": "pages/baogong/table",
- "style": {
- "navigationBarTitleText": "鎶ュ伐骞冲彴",
- "enablePullDownRefresh": true
- }
- },
- {
- "path": "pages/baogong/list",
- "style": {
- "navigationBarTitleText": "宸ュ崟鍒楄〃",
- "enablePullDownRefresh": true
- }
- },
- {
- "path": "pages/baogong/abnormal",
- "style": {
- "navigationBarTitleText": "寮傚父鍙嶉鍗�",
- "enablePullDownRefresh": false
- }
- },
- {
- "path": "pages/yichang/table",
- "style": {
- "navigationBarTitleText": "寮傚父鍙嶉鍗曞垪琛�",
- "enablePullDownRefresh": true
- }
- },
- {
- "path": "pages/yichang/form",
- "style": {
- "navigationBarTitleText": "寮傚父鍙嶉鍗�",
- "enablePullDownRefresh": true
- }
- },
- {
- "path": "pages/yichang/list",
- "style": {
- "navigationBarTitleText": "寮傚父鍙嶉澶勭悊鍗曞垪琛�",
- "enablePullDownRefresh": true
- }
- },
- {
- "path": "pages/caigouruku/form",
- "style": {
- "navigationBarTitleText": "閲囪喘鍏ュ簱鍗�",
- "enablePullDownRefresh": false
- }
- },
- {
- "path": "pages/caigoutuiliao/form",
- "style": {
- "navigationBarTitleText": "閲囪喘閫�鏂欏崟",
- "enablePullDownRefresh": false
- }
- },
- {
- "path": "pages/xiaoshouchuku/table",
- "style": {
- "navigationBarTitleText": "閿�鍞嚭搴撳垪琛�",
- "enablePullDownRefresh": true
- }
- },
- {
- "path": "pages/xiaoshouchuku/form",
- "style": {
- "navigationBarTitleText": "閿�鍞嚭搴撳崟",
- "enablePullDownRefresh": false
- }
- },
- {
- "path": "pages/xiaoshoutuihuo/table",
- "style": {
- "navigationBarTitleText": "閿�鍞��璐у垪琛�",
- "enablePullDownRefresh": true
- }
- },
- {
- "path": "pages/xiaoshoutuihuo/form",
- "style": {
- "navigationBarTitleText": "閿�鍞��璐у崟",
- "enablePullDownRefresh": false
- }
- },
- {
- "path": "pages/shouliaotongzhi/table",
- "style": {
- "navigationBarTitleText": "鏀舵枡閫氱煡鍗�",
- "enablePullDownRefresh": false
- }
- },
- {
- "path": "pages/shouliaotongzhi/table_son",
- "style": {
- "navigationBarTitleText": "鏉$爜鐢熸垚",
- "enablePullDownRefresh": false
- }
- },
- {
- "path": "pages/shengchanlingliao/table",
- "style": {
- "navigationBarTitleText": "鐢熶骇棰嗘枡鏍¢獙鍒楄〃",
- "enablePullDownRefresh": true
- }
- },
- {
- "path": "pages/shengchanlingliao/form",
- "style": {
- "navigationBarTitleText": "鐢熶骇棰嗘枡鍗曟牎楠�",
- "enablePullDownRefresh": false
- }
- },
- {
- "path": "pages/shengchanruku/table",
- "style": {
- "navigationBarTitleText": "鐢熶骇鍏ュ簱鏍¢獙鍒楄〃",
- "enablePullDownRefresh": true
- }
- },
- {
- "path": "pages/shengchanruku/form",
- "style": {
- "navigationBarTitleText": "鐢熶骇鍏ュ簱鍗曟牎楠�",
- "enablePullDownRefresh": false
- }
- },
- {
- "path": "pages/shengchandiaobo/table",
- "style": {
- "navigationBarTitleText": "鐢熶骇璋冩嫧鏍¢獙鍒楄〃",
- "enablePullDownRefresh": true
- }
- },
- {
- "path": "pages/shengchandiaobo/form",
- "style": {
- "navigationBarTitleText": "鐢熶骇璋冩嫧鍗曟牎楠�",
- "enablePullDownRefresh": false
- }
- },
- {
- "path": "pages/labelPrinter/index",
- "style": {
- "navigationBarTitleText": "鏍囩鎵撳嵃"
- }
- },
- {
- "path": "pages/shebeiyunxingzhuangtai/shebeiyunxingzhuangtai",
- "style": {
- "navigationBarTitleText": "璁惧杩愯鐘舵��",
- "enablePullDownRefresh": true
- }
- },
- {
- "path": "pages/shebeiyunxingzhuangtai/detail",
- "style": {
- "navigationBarTitleText": "璁惧杩愯鐘舵�佽鎯�"
- }
- },
- {
- "path": "pages/mujvzhuangtai/mujvzhuangtai",
- "style": {
- "navigationBarTitleText": "妯″叿鐘舵�佸垎甯�",
- "enablePullDownRefresh": true
- }
- },
- {
- "path": "pages/mujvzhuangtai/detail",
- "style": {
- "navigationBarTitleText": "妯″叿鐘舵�佽鎯�"
- }
- },
- {
- "path": "pages/tiaomachaima/tiaomachaima",
- "style": {
- "navigationBarTitleText": "鏉$爜鎷嗙爜"
- }
- },
- {
- "path": "pages/wuliaosaoma/wuliaosaoma",
- "style": {
- "navigationBarTitleText": "鐗╂枡娓呭崟"
- }
- },
- {
- "path": "pages/wuliaosaoma/detail",
- "style": {
- "navigationBarTitleText": "鏉$爜妗f"
- }
- },
- {
- "path": "pages/caigouruku/table",
- "style": {
- "navigationBarTitleText": "閲囪喘鍏ュ簱",
- "enablePullDownRefresh": true
- }
- },
- {
- "path": "pages/caigoutuiliao/table",
- "style": {
- "navigationBarTitleText": "閲囪喘閫�鏂�",
- "enablePullDownRefresh": true
- }
- },
- {
- "path": "pages/caigoutuiliao/form",
- "style": {
- "navigationBarTitleText": "閲囪喘閫�鏂欏崟"
- }
- },
- {
- "path": "pages/xiaoshouchuku/table",
- "style": {
- "navigationBarTitleText": "閿�鍞嚭搴�",
- "enablePullDownRefresh": true
- }
- },
- {
- "path": "pages/xiaoshouchuku/form",
- "style": {
- "navigationBarTitleText": "閿�鍞嚭搴撳崟"
- }
- },
- {
- "path": "pages/xiaoshoutuihuo/table",
- "style": {
- "navigationBarTitleText": "閿�鍞��璐�",
- "enablePullDownRefresh": true
- }
- },
- {
- "path": "pages/xiaoshoutuihuo/form",
- "style": {
- "navigationBarTitleText": "閿�鍞��璐у崟"
- }
- },
- {
- "path": "pages/qitachuku/qitachuku",
- "style": {
- "navigationBarTitleText": "鍏朵粬鍑哄簱",
- "enablePullDownRefresh": true
- }
- },
- {
- "path": "pages/qitachuku/form",
- "style": {
- "navigationBarTitleText": "鍏朵粬鍑哄簱鍗�"
- }
- },
- {
- "path": "pages/qitaruku/qitaruku",
- "style": {
- "navigationBarTitleText": "鍏朵粬鍏ュ簱",
- "enablePullDownRefresh": true
- }
- },
- {
- "path": "pages/qitaruku/form",
- "style": {
- "navigationBarTitleText": "鍏朵粬鍏ュ簱鍗�"
- }
- },
- {
- "path": "pages/tiaomadaying/tiaomadaying",
- "style": {
- "navigationBarTitleText": "閲囪喘鏉$爜鎵撳嵃"
- }
- },
- {
- "path": "pages/caigoudingdan/generate",
- "style": {
- "navigationBarTitleText": "鏉$爜鐢熸垚"
- }
- },
- {
- "path": "pages/caigoudingdan/caigoudingdan",
- "style": {
- "navigationBarTitleText": "閲囪喘璁㈠崟"
- }
- },
- {
- "path": "pages/MJGL/shangmudan/table",
- "style": {
- "navigationBarTitleText": "涓婃ā鍗�"
- }
- },
- {
- "path": "pages/MJGL/shangmudan/form",
- "style": {
- "navigationBarTitleText": "涓婃ā鍗�"
- }
- },
- {
- "path": "pages/qitachukujiaoyan/qitachukujiaoyan",
- "style": {
- "navigationBarTitleText": "鍏朵粬鍑哄簱鏍¢獙",
- "enablePullDownRefresh": true
- }
- },
- {
- "path": "pages/qitachukujiaoyan/detail",
- "style": {
- "navigationBarTitleText": "鍏朵粬鍑哄簱鍗曟牎楠�"
- }
- },
- {
- "path": "pages/shengchanbuliaojiaoyan/CacheList",
- "style": {
- "navigationBarTitleText": "鐢熶骇琛ユ枡鏍¢獙",
- "enablePullDownRefresh": true
- }
- },
- {
- "path": "pages/shengchanbuliaojiaoyan/form",
- "style": {
- "navigationBarTitleText": "鐢熶骇琛ユ枡鍗曟牎楠�"
- }
- },
- {
- "path": "pages/xiaoshouchukujiaoyan/table",
- "style": {
- "navigationBarTitleText": "閿�鍞嚭搴撴牎楠�",
- "enablePullDownRefresh": true
- }
- },
- {
- "path": "pages/xiaoshouchukujiaoyan/form",
- "style": {
- "navigationBarTitleText": "閿�鍞嚭搴撳崟鏍¢獙"
- }
- },
- {
- "path": "pages/weiwailingliaojiaoyan/table",
- "style": {
- "navigationBarTitleText": "濮斿棰嗘枡鏍¢獙",
- "enablePullDownRefresh": true
- }
- },
- {
- "path": "pages/weiwailingliaojiaoyan/form",
- "style": {
- "navigationBarTitleText": "濮斿棰嗘枡鍗曟牎楠�"
- }
- },
- {
- "path": "pages/caigourukujiaoyan/table",
- "style": {
- "navigationBarTitleText": "閲囪喘鍏ュ簱鏍¢獙",
- "enablePullDownRefresh": true
- }
- },
- {
- "path": "pages/caigourukujiaoyan/form",
- "style": {
- "navigationBarTitleText": "閲囪喘鍏ュ簱鍗曟牎楠�",
- "enablePullDownRefresh": true
- }
- },
- {
- "path": "pages/qitarukujiaoyan/table",
- "style": {
- "navigationBarTitleText": "鍏朵粬鍏ュ簱鏍¢獙",
- "enablePullDownRefresh": true
- }
- },
- {
- "path": "pages/qitarukujiaoyan/form",
- "style": {
- "navigationBarTitleText": "鍏朵粬鍏ュ簱鍗曟牎楠�"
- }
- },
- {
- "path": "pages/weiwaibuliaojiaoyan/table",
- "style": {
- "navigationBarTitleText": "濮斿琛ユ枡鏍¢獙",
- "enablePullDownRefresh": true
- }
- },
- {
- "path": "pages/weiwaibuliaojiaoyan/form",
- "style": {
- "navigationBarTitleText": "濮斿琛ユ枡鍗曟牎楠�"
- }
- },
- {
- "path" : "pages/shengchanlingliaoshengdan/table",
- "style" :
- {
- "navigationBarTitleText" : "鐢熶骇棰嗘枡",
- "enablePullDownRefresh": true
- }
- },
- {
- "path" : "pages/shengchanlingliaoshengdan/form",
- "style" :
- {
- "navigationBarTitleText" : "鐢熶骇棰嗘枡鍗�"
- }
- },
- {
- "path" : "pages/weiwailingliao/table",
- "style" :
- {
- "navigationBarTitleText" : "濮斿棰嗘枡",
- "enablePullDownRefresh": true
- }
- },
- {
- "path" : "pages/weiwailingliao/form",
- "style" :
- {
- "navigationBarTitleText" : "濮斿棰嗘枡鍗�"
- }
- },
- {
- "path" : "pages/shengchanrukushengdan/table",
- "style" :
- {
- "navigationBarTitleText" : "鐢熶骇鍏ュ簱",
- "enablePullDownRefresh": true
- }
- },
- {
- "path" : "pages/shengchanrukushengdan/form",
- "style" :
- {
- "navigationBarTitleText" : "鐢熶骇鍏ュ簱鍗�"
- }
- },
- {
- "path" : "pages/shengchanbuliao/table",
- "style" :
- {
- "navigationBarTitleText" : "鐢熶骇琛ユ枡",
- "enablePullDownRefresh": true
- }
- },
- {
- "path" : "pages/shengchanbuliao/form",
- "style" :
- {
- "navigationBarTitleText" : "鐢熶骇琛ユ枡鍗�"
- }
- },
- {
- "path" : "pages/qitaruku_v2/table",
- "style" :
- {
- "navigationBarTitleText" : "鍏朵粬鍏ュ簱",
- "enablePullDownRefresh": true
- }
- },
- {
- "path" : "pages/qitaruku_v2/form",
- "style" :
- {
- "navigationBarTitleText" : "鍏朵粬鍏ュ簱鍗�"
- }
- },
- {
- "path" : "pages/qitachuku_v2/table",
- "style" :
- {
- "navigationBarTitleText" : "鍏朵粬鍑哄簱",
- "enablePullDownRefresh": true
- }
- },
- {
- "path" : "pages/qitachuku_v2/form",
- "style" :
- {
- "navigationBarTitleText" : "鍏朵粬鍑哄簱鍗�"
- }
- },
- {
- "path" : "pages/zhijiediaobo/table",
- "style" :
- {
- "navigationBarTitleText" : "鐩存帴璋冩嫧",
- "enablePullDownRefresh": true
- }
- },
- {
- "path" : "pages/zhijiediaobo/form",
- "style" :
- {
- "navigationBarTitleText" : "鐩存帴璋冩嫧鍗�"
- }
- },
- {
- "path" : "pages/xiugaimima/index",
- "style" :
- {
- "navigationBarTitleText" : "淇敼瀵嗙爜"
- }
- },
- {
- "path" : "pages/jishikucunchaxun/table",
- "style" :
- {
- "navigationBarTitleText" : "ERP鍙婃椂搴撳瓨鏌ヨ"
- // "enablePullDownRefresh": true
- }
- },
- {
- "path" : "pages/weiwairuku/table",
- "style" :
- {
- "navigationBarTitleText" : "濮斿鍏ュ簱"
- }
- },
- {
- "path" : "pages/weiwairuku/form",
- "style" :
- {
- "navigationBarTitleText" : "濮斿鍏ュ簱鍗�"
- }
- }
- ],
- "tabBar": {
- "color": "#888888", //tab 涓婄殑鏂囧瓧榛樿棰滆壊锛屼粎鏀寔鍗佸叚杩涘埗棰滆壊
- "selectedColor": "#2d7dee", //tab 涓婄殑鏂囧瓧閫変腑鏃剁殑棰滆壊锛屼粎鏀寔鍗佸叚杩涘埗棰滆壊
- "borderStyle": "black", //tabbar涓婅竟妗嗙殑棰滆壊锛� 浠呮敮鎸� black / white
- "backgroundColor": "#ffffff", //tab 鐨勮儗鏅壊锛屼粎鏀寔鍗佸叚杩涘埗棰滆壊
- "list": [{
- "pagePath": "pages/index/index",
- "iconPath": "static/tabBar/home.png",
- "selectedIconPath": "static/tabBar/home-default.png",
- "text": "浠撳偍绠$悊"
- },
- {
- "pagePath": "pages/index/tab1",
- "iconPath": "static/tabBar/icon1.png",
- "selectedIconPath": "static/tabBar/icon1-default.png",
- "text": "杞﹂棿宸ュ簭"
- },
- {
- "pagePath": "pages/index/tab2",
- "iconPath": "static/tabBar/icon2.png",
- "selectedIconPath": "static/tabBar/icon2-default.png",
- "text": "鍗曟嵁鍒楄〃"
- },
- {
- "pagePath": "pages/index/mine",
- "iconPath": "static/tabBar/user.png",
- "selectedIconPath": "static/tabBar/user-default.png",
- "text": "鎴戠殑"
- }
- ]
- },
- "globalStyle": {
- "navigationBarTextStyle": "white",
- "navigationBarTitleText": "璁惧绠$悊",
- "navigationBarBackgroundColor": "#3A78FF",
- "backgroundColor": "#F8F8F8",
- "pageOrientation": "default"
- },
- "uniIdRouter": {}
+ "style": {
+ "navigationBarTitleText": "鐧诲綍",
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "pages/index/index",
+ "style": {
+ "navigationBarTitleText": "棣栭〉",
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "pages/index/tab1",
+ "style": {
+ "navigationBarTitleText": "杞﹂棿宸ュ簭"
+ }
+ },
+ {
+ "path": "pages/index/tab2",
+ "style": {
+ "navigationBarTitleText": "鍗曟嵁鍒楄〃"
+ }
+ },
+ {
+ "path": "pages/index/mine",
+ "style": {
+ "navigationBarTitleText": "涓汉涓績",
+ // "navigationStyle": "custom"
+ "navigationBarTextStyle": "white",
+ "navigationBarBackgroundColor": "#65a2fb"
+ }
+ },
+ {
+ "path": "pages/shebeilvli/form",
+ "style": {
+ "navigationBarTitleText": "璁惧鐘舵�佸垎鏋�"
+ }
+ },
+ {
+ "path": "pages/shebeilvli/table",
+ "style": {
+ "navigationBarTitleText": "璁惧灞ュ巻",
+ "enablePullDownRefresh": true
+ }
+ },
+ {
+ "path": "pages/shebeilvli/table_son",
+ "style": {
+ "navigationBarTitleText": "璁惧灞ュ巻瀛愯〃"
+ }
+ },
+ {
+ "path": "pages/baoyangjihua/form",
+ "style": {
+ "navigationBarTitleText": "璁惧淇濆吇璁″垝鍗�"
+ }
+ },
+ {
+ "path": "pages/baoyangjihua/table",
+ "style": {
+ "navigationBarTitleText": "璁惧淇濆吇璁″垝鍗�",
+ "enablePullDownRefresh": true
+ }
+ },
+ {
+ "path": "pages/baoyangjihua/table_son",
+ "style": {
+ "navigationBarTitleText": "淇濆吇璁″垝瀛愯〃"
+ }
+ },
+ {
+ "path": "pages/baoyangjilu/form",
+ "style": {
+ "navigationBarTitleText": "璁惧淇濆吇璁板綍鍗�"
+ }
+ },
+ {
+ "path": "pages/baoyangjilu/table",
+ "style": {
+ "navigationBarTitleText": "璁惧淇濆吇璁板綍鍗�",
+ "enablePullDownRefresh": true
+ }
+ },
+ {
+ "path": "pages/baoyangjilu/table_son",
+ "style": {
+ "navigationBarTitleText": "淇濆吇璁板綍瀛愯〃"
+ }
+ },
+ {
+ "path": "pages/guzhangdengji/form",
+ "style": {
+ "navigationBarTitleText": "璁惧鏁呴殰鐧昏琛�"
+ }
+ },
+ {
+ "path": "pages/guzhangdengji/table",
+ "style": {
+ "navigationBarTitleText": "璁惧鏁呴殰鐧昏琛�",
+ "enablePullDownRefresh": true
+ }
+ },
+ {
+ "path": "pages/shebeidangan/form",
+ "style": {
+ "navigationBarTitleText": "璁惧妗f"
+ }
+ },
+ {
+ "path": "pages/shebeidangan/table",
+ "style": {
+ "navigationBarTitleText": "璁惧妗f",
+ "enablePullDownRefresh": true
+ }
+ },
+ {
+ "path": "pages/shebeiweixiu/form",
+ "style": {
+ "navigationBarTitleText": "璁惧缁翠慨璁板綍鍗�"
+ }
+ },
+ {
+ "path": "pages/shebeiweixiu/table",
+ "style": {
+ "navigationBarTitleText": "璁惧缁翠慨璁板綍鍗�",
+ "enablePullDownRefresh": true
+ }
+ },
+ {
+ "path": "pages/weiwaigxIn/form",
+ "style": {
+ "navigationBarTitleText": "濮斿宸ュ簭鍙戝嚭鍗�"
+ }
+ },
+ {
+ "path": "pages/weiwaigxIn/table",
+ "style": {
+ "navigationBarTitleText": "濮斿宸ュ簭鍙戝嚭鍗�",
+ "enablePullDownRefresh": true
+ }
+ },
+ {
+ "path": "pages/weiwaigxOut/form",
+ "style": {
+ "navigationBarTitleText": "濮斿宸ュ簭鎺ユ敹鍗�"
+ }
+ },
+ {
+ "path": "pages/weiwaigxOut/table",
+ "style": {
+ "navigationBarTitleText": "濮斿宸ュ簭鎺ユ敹鍗�",
+ "enablePullDownRefresh": true
+ }
+ },
+ {
+ "path": "pages/weiwaigxOut/firstCheck",
+ "style": {
+ "navigationBarTitleText": "棣栦欢妫�楠屽崟",
+ "enablePullDownRefresh": true
+ }
+ }, {
+ "path": "pages/gongxuIn/form",
+ "style": {
+ "navigationBarTitleText": "宸ュ簭杩涚珯鎺ユ敹鍗�"
+ }
+ },
+ {
+ "path": "pages/gongxuIn/table",
+ "style": {
+ "navigationBarTitleText": "宸ュ簭杩涚珯鎺ユ敹鍗�",
+ "enablePullDownRefresh": true
+ }
+ }, {
+ "path": "pages/gongxuOut/form",
+ "style": {
+ "navigationBarTitleText": "宸ュ簭鍑虹珯姹囨姤鍗�"
+ }
+ },
+ {
+ "path": "pages/gongxuOut/table",
+ "style": {
+ "navigationBarTitleText": "宸ュ簭鍑虹珯姹囨姤鍗�",
+ "enablePullDownRefresh": true
+ }
+ },
+ {
+ "path": "pages/shebeiguanli/form",
+ "style": {
+ "navigationBarTitleText": "璁惧绠$悊",
+ "enablePullDownRefresh": true
+ }
+ },
+ {
+ "path": "pages/shebeiguanli/table",
+ "style": {
+ "navigationBarTitleText": "璁惧绠$悊",
+ "enablePullDownRefresh": true
+ }
+ },
+ {
+ "path": "pages/shebeiguanli/list",
+ "style": {
+ "navigationBarTitleText": "宸ュ崟鍒楄〃",
+ "enablePullDownRefresh": true
+ }
+ },
+ {
+ "path": "pages/baogong/form",
+ "style": {
+ "navigationBarTitleText": "浜ч噺姹囨姤鍗�",
+ "enablePullDownRefresh": false
+ }
+ },
+ {
+ "path": "pages/baogong/table",
+ "style": {
+ "navigationBarTitleText": "鎶ュ伐骞冲彴",
+ "enablePullDownRefresh": true
+ }
+ },
+ {
+ "path": "pages/baogong/list",
+ "style": {
+ "navigationBarTitleText": "宸ュ崟鍒楄〃",
+ "enablePullDownRefresh": true
+ }
+ },
+ {
+ "path": "pages/baogong/abnormal",
+ "style": {
+ "navigationBarTitleText": "寮傚父鍙嶉鍗�",
+ "enablePullDownRefresh": false
+ }
+ },
+ {
+ "path": "pages/yichang/table",
+ "style": {
+ "navigationBarTitleText": "寮傚父鍙嶉鍗曞垪琛�",
+ "enablePullDownRefresh": true
+ }
+ },
+ {
+ "path": "pages/yichang/form",
+ "style": {
+ "navigationBarTitleText": "寮傚父鍙嶉鍗�",
+ "enablePullDownRefresh": true
+ }
+ },
+ {
+ "path": "pages/yichang/list",
+ "style": {
+ "navigationBarTitleText": "寮傚父鍙嶉澶勭悊鍗曞垪琛�",
+ "enablePullDownRefresh": true
+ }
+ },
+ {
+ "path": "pages/caigouruku/form",
+ "style": {
+ "navigationBarTitleText": "閲囪喘鍏ュ簱鍗�",
+ "enablePullDownRefresh": false
+ }
+ },
+ {
+ "path": "pages/caigoutuiliao/form",
+ "style": {
+ "navigationBarTitleText": "閲囪喘閫�鏂欏崟",
+ "enablePullDownRefresh": false
+ }
+ },
+ {
+ "path": "pages/xiaoshouchuku/table",
+ "style": {
+ "navigationBarTitleText": "閿�鍞嚭搴撳垪琛�",
+ "enablePullDownRefresh": true
+ }
+ },
+ {
+ "path": "pages/xiaoshouchuku/form",
+ "style": {
+ "navigationBarTitleText": "閿�鍞嚭搴撳崟",
+ "enablePullDownRefresh": false
+ }
+ },
+ {
+ "path": "pages/xiaoshoutuihuo/table",
+ "style": {
+ "navigationBarTitleText": "閿�鍞��璐у垪琛�",
+ "enablePullDownRefresh": true
+ }
+ },
+ {
+ "path": "pages/xiaoshoutuihuo/form",
+ "style": {
+ "navigationBarTitleText": "閿�鍞��璐у崟",
+ "enablePullDownRefresh": false
+ }
+ },
+ {
+ "path": "pages/shouliaotongzhi/table",
+ "style": {
+ "navigationBarTitleText": "鏀舵枡閫氱煡鍗�",
+ "enablePullDownRefresh": false
+ }
+ },
+ {
+ "path": "pages/shouliaotongzhi/table_son",
+ "style": {
+ "navigationBarTitleText": "鏉$爜鐢熸垚",
+ "enablePullDownRefresh": false
+ }
+ },
+ {
+ "path": "pages/shengchanlingliao/table",
+ "style": {
+ "navigationBarTitleText": "鐢熶骇棰嗘枡鏍¢獙鍒楄〃",
+ "enablePullDownRefresh": true
+ }
+ },
+ {
+ "path": "pages/shengchanlingliao/form",
+ "style": {
+ "navigationBarTitleText": "鐢熶骇棰嗘枡鍗曟牎楠�",
+ "enablePullDownRefresh": false
+ }
+ },
+ {
+ "path": "pages/shengchanruku/table",
+ "style": {
+ "navigationBarTitleText": "鐢熶骇鍏ュ簱鏍¢獙鍒楄〃",
+ "enablePullDownRefresh": true
+ }
+ },
+ {
+ "path": "pages/shengchanruku/form",
+ "style": {
+ "navigationBarTitleText": "鐢熶骇鍏ュ簱鍗曟牎楠�",
+ "enablePullDownRefresh": false
+ }
+ },
+ {
+ "path": "pages/shengchandiaobo/table",
+ "style": {
+ "navigationBarTitleText": "鐢熶骇璋冩嫧鏍¢獙鍒楄〃",
+ "enablePullDownRefresh": true
+ }
+ },
+ {
+ "path": "pages/shengchandiaobo/form",
+ "style": {
+ "navigationBarTitleText": "鐢熶骇璋冩嫧鍗曟牎楠�",
+ "enablePullDownRefresh": false
+ }
+ },
+ {
+ "path": "pages/labelPrinter/index",
+ "style": {
+ "navigationBarTitleText": "鏍囩鎵撳嵃"
+ }
+ },
+ {
+ "path": "pages/shebeiyunxingzhuangtai/shebeiyunxingzhuangtai",
+ "style": {
+ "navigationBarTitleText": "璁惧杩愯鐘舵��",
+ "enablePullDownRefresh": true
+ }
+ },
+ {
+ "path": "pages/shebeiyunxingzhuangtai/detail",
+ "style": {
+ "navigationBarTitleText": "璁惧杩愯鐘舵�佽鎯�"
+ }
+ },
+ {
+ "path": "pages/mujvzhuangtai/mujvzhuangtai",
+ "style": {
+ "navigationBarTitleText": "妯″叿鐘舵�佸垎甯�",
+ "enablePullDownRefresh": true
+ }
+ },
+ {
+ "path": "pages/mujvzhuangtai/detail",
+ "style": {
+ "navigationBarTitleText": "妯″叿鐘舵�佽鎯�"
+ }
+ },
+ {
+ "path": "pages/tiaomachaima/tiaomachaima",
+ "style": {
+ "navigationBarTitleText": "鏉$爜鎷嗙爜"
+ }
+ },
+ {
+ "path": "pages/wuliaosaoma/wuliaosaoma",
+ "style": {
+ "navigationBarTitleText": "鐗╂枡娓呭崟"
+ }
+ },
+ {
+ "path": "pages/wuliaosaoma/detail",
+ "style": {
+ "navigationBarTitleText": "鏉$爜妗f"
+ }
+ },
+ {
+ "path": "pages/caigouruku/table",
+ "style": {
+ "navigationBarTitleText": "閲囪喘鍏ュ簱",
+ "enablePullDownRefresh": true
+ }
+ },
+ {
+ "path": "pages/caigoutuiliao/table",
+ "style": {
+ "navigationBarTitleText": "閲囪喘閫�鏂�",
+ "enablePullDownRefresh": true
+ }
+ },
+ {
+ "path": "pages/caigoutuiliao/form",
+ "style": {
+ "navigationBarTitleText": "閲囪喘閫�鏂欏崟"
+ }
+ },
+ {
+ "path": "pages/xiaoshouchuku/table",
+ "style": {
+ "navigationBarTitleText": "閿�鍞嚭搴�",
+ "enablePullDownRefresh": true
+ }
+ },
+ {
+ "path": "pages/xiaoshouchuku/form",
+ "style": {
+ "navigationBarTitleText": "閿�鍞嚭搴撳崟"
+ }
+ },
+ {
+ "path": "pages/xiaoshoutuihuo/table",
+ "style": {
+ "navigationBarTitleText": "閿�鍞��璐�",
+ "enablePullDownRefresh": true
+ }
+ },
+ {
+ "path": "pages/xiaoshoutuihuo/form",
+ "style": {
+ "navigationBarTitleText": "閿�鍞��璐у崟"
+ }
+ },
+ {
+ "path": "pages/qitachuku/qitachuku",
+ "style": {
+ "navigationBarTitleText": "鍏朵粬鍑哄簱",
+ "enablePullDownRefresh": true
+ }
+ },
+ {
+ "path": "pages/qitachuku/form",
+ "style": {
+ "navigationBarTitleText": "鍏朵粬鍑哄簱鍗�"
+ }
+ },
+ {
+ "path": "pages/qitaruku/qitaruku",
+ "style": {
+ "navigationBarTitleText": "鍏朵粬鍏ュ簱",
+ "enablePullDownRefresh": true
+ }
+ },
+ {
+ "path": "pages/qitaruku/form",
+ "style": {
+ "navigationBarTitleText": "鍏朵粬鍏ュ簱鍗�"
+ }
+ },
+ {
+ "path": "pages/tiaomadaying/tiaomadaying",
+ "style": {
+ "navigationBarTitleText": "閲囪喘鏉$爜鎵撳嵃"
+ }
+ },
+ {
+ "path": "pages/caigoudingdan/generate",
+ "style": {
+ "navigationBarTitleText": "鏉$爜鐢熸垚"
+ }
+ },
+ {
+ "path": "pages/caigoudingdan/caigoudingdan",
+ "style": {
+ "navigationBarTitleText": "閲囪喘璁㈠崟"
+ }
+ },
+ {
+ "path": "pages/MJGL/shangmudan/table",
+ "style": {
+ "navigationBarTitleText": "涓婃ā鍗�"
+ }
+ },
+ {
+ "path": "pages/MJGL/shangmudan/form",
+ "style": {
+ "navigationBarTitleText": "涓婃ā鍗�"
+ }
+ },
+ {
+ "path": "pages/qitachukujiaoyan/qitachukujiaoyan",
+ "style": {
+ "navigationBarTitleText": "鍏朵粬鍑哄簱鏍¢獙",
+ "enablePullDownRefresh": true
+ }
+ },
+ {
+ "path": "pages/qitachukujiaoyan/detail",
+ "style": {
+ "navigationBarTitleText": "鍏朵粬鍑哄簱鍗曟牎楠�"
+ }
+ },
+ {
+ "path": "pages/shengchanbuliaojiaoyan/CacheList",
+ "style": {
+ "navigationBarTitleText": "鐢熶骇琛ユ枡鏍¢獙",
+ "enablePullDownRefresh": true
+ }
+ },
+ {
+ "path": "pages/shengchanbuliaojiaoyan/form",
+ "style": {
+ "navigationBarTitleText": "鐢熶骇琛ユ枡鍗曟牎楠�"
+ }
+ },
+ {
+ "path": "pages/xiaoshouchukujiaoyan/table",
+ "style": {
+ "navigationBarTitleText": "閿�鍞嚭搴撴牎楠�",
+ "enablePullDownRefresh": true
+ }
+ },
+ {
+ "path": "pages/xiaoshouchukujiaoyan/form",
+ "style": {
+ "navigationBarTitleText": "閿�鍞嚭搴撳崟鏍¢獙"
+ }
+ },
+ {
+ "path": "pages/weiwailingliaojiaoyan/table",
+ "style": {
+ "navigationBarTitleText": "濮斿棰嗘枡鏍¢獙",
+ "enablePullDownRefresh": true
+ }
+ },
+ {
+ "path": "pages/weiwailingliaojiaoyan/form",
+ "style": {
+ "navigationBarTitleText": "濮斿棰嗘枡鍗曟牎楠�"
+ }
+ },
+ {
+ "path": "pages/caigourukujiaoyan/table",
+ "style": {
+ "navigationBarTitleText": "閲囪喘鍏ュ簱鏍¢獙",
+ "enablePullDownRefresh": true
+ }
+ },
+ {
+ "path": "pages/caigourukujiaoyan/form",
+ "style": {
+ "navigationBarTitleText": "閲囪喘鍏ュ簱鍗曟牎楠�",
+ "enablePullDownRefresh": true
+ }
+ },
+ {
+ "path": "pages/qitarukujiaoyan/table",
+ "style": {
+ "navigationBarTitleText": "鍏朵粬鍏ュ簱鏍¢獙",
+ "enablePullDownRefresh": true
+ }
+ },
+ {
+ "path": "pages/qitarukujiaoyan/form",
+ "style": {
+ "navigationBarTitleText": "鍏朵粬鍏ュ簱鍗曟牎楠�"
+ }
+ },
+ {
+ "path": "pages/weiwaibuliaojiaoyan/table",
+ "style": {
+ "navigationBarTitleText": "濮斿琛ユ枡鏍¢獙",
+ "enablePullDownRefresh": true
+ }
+ },
+ {
+ "path": "pages/weiwaibuliaojiaoyan/form",
+ "style": {
+ "navigationBarTitleText": "濮斿琛ユ枡鍗曟牎楠�"
+ }
+ },
+ {
+ "path": "pages/shengchanlingliaoshengdan/table",
+ "style": {
+ "navigationBarTitleText": "鐢熶骇棰嗘枡",
+ "enablePullDownRefresh": true
+ }
+ },
+ {
+ "path": "pages/shengchanlingliaoshengdan/form",
+ "style": {
+ "navigationBarTitleText": "鐢熶骇棰嗘枡鍗�"
+ }
+ },
+ {
+ "path": "pages/weiwailingliao/table",
+ "style": {
+ "navigationBarTitleText": "濮斿棰嗘枡",
+ "enablePullDownRefresh": true
+ }
+ },
+ {
+ "path": "pages/weiwailingliao/form",
+ "style": {
+ "navigationBarTitleText": "濮斿棰嗘枡鍗�"
+ }
+ },
+ {
+ "path": "pages/shengchanrukushengdan/table",
+ "style": {
+ "navigationBarTitleText": "鐢熶骇鍏ュ簱",
+ "enablePullDownRefresh": true
+ }
+ },
+ {
+ "path": "pages/shengchanrukushengdan/form",
+ "style": {
+ "navigationBarTitleText": "鐢熶骇鍏ュ簱鍗�"
+ }
+ },
+ {
+ "path": "pages/shengchanbuliao/table",
+ "style": {
+ "navigationBarTitleText": "鐢熶骇琛ユ枡",
+ "enablePullDownRefresh": true
+ }
+ },
+ {
+ "path": "pages/shengchanbuliao/form",
+ "style": {
+ "navigationBarTitleText": "鐢熶骇琛ユ枡鍗�"
+ }
+ },
+ {
+ "path": "pages/qitaruku_v2/table",
+ "style": {
+ "navigationBarTitleText": "鍏朵粬鍏ュ簱",
+ "enablePullDownRefresh": true
+ }
+ },
+ {
+ "path": "pages/qitaruku_v2/form",
+ "style": {
+ "navigationBarTitleText": "鍏朵粬鍏ュ簱鍗�"
+ }
+ },
+ {
+ "path": "pages/qitachuku_v2/table",
+ "style": {
+ "navigationBarTitleText": "鍏朵粬鍑哄簱",
+ "enablePullDownRefresh": true
+ }
+ },
+ {
+ "path": "pages/qitachuku_v2/form",
+ "style": {
+ "navigationBarTitleText": "鍏朵粬鍑哄簱鍗�"
+ }
+ },
+ {
+ "path": "pages/zhijiediaobo/table",
+ "style": {
+ "navigationBarTitleText": "鐩存帴璋冩嫧",
+ "enablePullDownRefresh": true
+ }
+ },
+ {
+ "path": "pages/zhijiediaobo/form",
+ "style": {
+ "navigationBarTitleText": "鐩存帴璋冩嫧鍗�"
+ }
+ },
+ {
+ "path": "pages/xiugaimima/index",
+ "style": {
+ "navigationBarTitleText": "淇敼瀵嗙爜"
+ }
+ },
+ {
+ "path": "pages/jishikucunchaxun/table",
+ "style": {
+ "navigationBarTitleText": "ERP鍙婃椂搴撳瓨鏌ヨ"
+ // "enablePullDownRefresh": true
+ }
+ },
+ {
+ "path": "pages/weiwairuku/table",
+ "style": {
+ "navigationBarTitleText": "濮斿鍏ュ簱"
+ }
+ },
+ {
+ "path": "pages/weiwairuku/form",
+ "style": {
+ "navigationBarTitleText": "濮斿鍏ュ簱鍗�"
+ }
+ },
+ {
+ "path": "pages/tiaomaguanli/table",
+ "style": {
+ "navigationBarTitleText": "鏉$爜绠$悊"
+ }
+ },
+ {
+ "path": "pages/tiaomaguanli/table_son",
+ "style": {
+ "navigationBarTitleText": "鏉$爜鐢熸垚"
+ }
+ }
+ ],
+ "tabBar": {
+ "color": "#888888", //tab 涓婄殑鏂囧瓧榛樿棰滆壊锛屼粎鏀寔鍗佸叚杩涘埗棰滆壊
+ "selectedColor": "#2d7dee", //tab 涓婄殑鏂囧瓧閫変腑鏃剁殑棰滆壊锛屼粎鏀寔鍗佸叚杩涘埗棰滆壊
+ "borderStyle": "black", //tabbar涓婅竟妗嗙殑棰滆壊锛� 浠呮敮鎸� black / white
+ "backgroundColor": "#ffffff", //tab 鐨勮儗鏅壊锛屼粎鏀寔鍗佸叚杩涘埗棰滆壊
+ "list": [{
+ "pagePath": "pages/index/index",
+ "iconPath": "static/tabBar/home.png",
+ "selectedIconPath": "static/tabBar/home-default.png",
+ "text": "浠撳偍绠$悊"
+ },
+ {
+ "pagePath": "pages/index/tab1",
+ "iconPath": "static/tabBar/icon1.png",
+ "selectedIconPath": "static/tabBar/icon1-default.png",
+ "text": "杞﹂棿宸ュ簭"
+ },
+ {
+ "pagePath": "pages/index/tab2",
+ "iconPath": "static/tabBar/icon2.png",
+ "selectedIconPath": "static/tabBar/icon2-default.png",
+ "text": "鍗曟嵁鍒楄〃"
+ },
+ {
+ "pagePath": "pages/index/mine",
+ "iconPath": "static/tabBar/user.png",
+ "selectedIconPath": "static/tabBar/user-default.png",
+ "text": "鎴戠殑"
+ }
+ ]
+ },
+ "globalStyle": {
+ "navigationBarTextStyle": "white",
+ "navigationBarTitleText": "璁惧绠$悊",
+ "navigationBarBackgroundColor": "#3A78FF",
+ "backgroundColor": "#F8F8F8",
+ "pageOrientation": "default"
+ },
+ "uniIdRouter": {}
}
\ No newline at end of file
diff --git a/pages/index/index.vue b/pages/index/index.vue
index de74cfa..d5ac64a 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -1,531 +1,546 @@
<template>
- <view class="content">
- <view class="header">鏅轰簯L-MES鍒堕�犳墽琛岀郴缁�
- <view class="switch-button">
- <uni-icons type="loop" @click="switchIconsModeHandler"></uni-icons>
- </view>
- </view>
- <view class="mains">
- <view v-if="!canEdit" :hidden="item.hidden" class="box" v-for="(item,index) in itemData" :key="index" @tap="toUrl(item)">
- <image :src="item.img" mode=""></image>
- <view class="texts">
- {{item.text}}
- </view>
- </view>
- <view :enable-hidden="item.hidden" v-if="canEdit" class="box edit" v-for="(item,index) in itemData"
- :key="index" @tap="switchHidden(index)">
- <uni-icons class="edit-mark" color="red" type="closeempty"></uni-icons>
- <image :src="item.img" mode=""></image>
- <view class="texts">
- {{item.text}}
- </view>
- </view>
- </view>
+ <view class="content">
+ <view class="header">鏅轰簯L-MES鍒堕�犳墽琛岀郴缁�
+ <view class="switch-button">
+ <uni-icons type="loop" @click="switchIconsModeHandler"></uni-icons>
+ </view>
+ </view>
+ <view class="mains">
+ <view v-if="!canEdit" :hidden="item.hidden" class="box" v-for="(item,index) in itemData" :key="index"
+ @tap="toUrl(item)">
+ <image :src="item.img" mode=""></image>
+ <view class="texts">
+ {{item.text}}
+ </view>
+ </view>
+ <view :enable-hidden="item.hidden" v-if="canEdit" class="box edit" v-for="(item,index) in itemData"
+ :key="index" @tap="switchHidden(index)">
+ <uni-icons class="edit-mark" color="red" type="closeempty"></uni-icons>
+ <image :src="item.img" mode=""></image>
+ <view class="texts">
+ {{item.text}}
+ </view>
+ </view>
+ </view>
- <vers></vers>
- </view>
+ <vers></vers>
+ </view>
</template>
<script>
- import vers from './vers.vue';
- import { setMenuList, getMenuList } from '../../utils/menuListApp';
- import { CommonUtils } from '../../utils/common';
- import { getUserInfo } from '../../utils/auth';
- export default {
- components: {
- vers,
- },
- data() {
- return {
- updateCount: 0,
- menuListName: 'index',
- canEdit: false,
- serverUrl: uni.getStorageSync('serverUrl') || 'http://47.96.97.237/API',
- itemData: [{
- img: '../../static/icon/icon8.png',
- text: '閲囪喘璁㈠崟鏍囩',
- url: '/pages/caigoudingdan/caigoudingdan',
- id: 1,
- hidden: false,
- }, {
- img: '../../static/icon/icon4.png',
- text: '閲囪喘璁㈠崟瀛愭爣绛�',
- url: '/pages/tiaomadaying/tiaomadaying',
- id: 2,
- hidden: false,
- }, {
- img: '../../static/icon/icon11.png',
- text: '鏀舵枡閫氱煡鍗曟爣绛�',
- url: '/pages/shouliaotongzhi/table',
- id: 3,
- hidden: false,
- }, {
- img: '../../static/icon/icon17.png',
- text: '閲囪喘鍏ュ簱鏂板',
- url: '/pages/caigouruku/form?OperationType=1',
- id: 4,
- hidden: false,
- }, {
- img: '../../static/icon/icon20.png',
- text: '閲囪喘閫�鏂欐柊澧�',
- url: '/pages/caigoutuiliao/form?OperationType=1',
- id: 5,
- hidden: false,
- }, {
- img: '../../static/icon/icon32.png',
- text: '鐩存帴璋冩嫧鏂板',
- url: '/pages/zhijiediaobo/form?OperationType=1',
- id: 6,
- hidden: false,
- }, {
- img: '../../static/icon/icon30.png',
- text: '鐢熶骇棰嗘枡鏂板',
- url: '/pages/shengchanlingliaoshengdan/form?OperationType=1',
- id: 7,
- hidden: false,
- }, {
- img: '../../static/icon/icon31.png',
- text: '鐢熶骇琛ユ枡鏂板',
- url: '/pages/shengchanbuliao/form?OperationType=1',
- id: 8,
- hidden: false,
- }, {
- img: '../../static/icon/icon17.png',
- text: '鐢熶骇鍏ュ簱鏂板',
- url: '/pages/shengchanrukushengdan/form?OperationType=1',
- id: 9,
- hidden: false,
- }, {
- img: '../../static/icon/icon30.png',
- text: '濮斿棰嗘枡鏂板',
- url: '/pages/weiwailingliao/form?OperationType=1',
- id: 10,
- hidden: false,
- }, {
- img: '../../static/icon/icon17.png',
- text: '鍏朵粬鍏ュ簱鏂板',
- url: '/pages/qitaruku_v2/form?OperationType=1',
- id: 11,
- hidden: false,
- }, {
- img: '../../static/icon/icon18.png',
- text: '鍏朵粬鍑哄簱鏂板',
- url: '/pages/qitachuku_v2/form?OperationType=1',
- id: 12,
- hidden: false,
- }, {
- img: '../../static/icon/icon18.png',
- text: '閿�鍞嚭搴撴柊澧�',
- url: '/pages/xiaoshouchuku/form?OperationType=1',
- id: 13,
- hidden: false,
- }, {
- img: '../../static/icon/icon19.png',
- text: '閿�鍞��璐ф柊澧�',
- url: '/pages/xiaoshoutuihuo/form?OperationType=1',
- id: 14,
- hidden: false,
- },{
- img: '../../static/icon/icon19.png',
- text: '濮斿鍏ュ簱鏂板',
- url: '/pages/weiwairuku/form?OperationType=1',
- id: 15,
- hidden: false,
- }, {
- img: '../../static/icon/icon30.png',
- text: '鐢熶骇棰嗘枡妫�楠�',
- url: '/pages/shengchanlingliao/form?OperationType=1',
- id: 16,
- hidden: false,
- }, {
- img: '../../static/icon/icon31.png',
- text: '鐢熶骇琛ユ枡鏍¢獙',
- url: '/pages/shengchanbuliaojiaoyan/form?OperationType=1',
- id: 17,
- hidden: false,
- }, {
- img: '../../static/icon/icon32.png',
- text: '鐢熶骇璋冩嫧鏍¢獙',
- url: '/pages/shengchandiaobo/form?OperationType=1',
- id: 18,
- hidden: false,
- }, {
- img: '../../static/icon/icon18.png',
- text: '鍏朵粬鍑哄簱鏍¢獙',
- url: '/pages/qitachukujiaoyan/detail?OperationType=1',
- id: 19,
- hidden: false,
- }, {
- img: '../../static/icon/icon17.png',
- text: '鐢熶骇鍏ュ簱鏍¢獙',
- url: '/pages/shengchanruku/form?OperationType=1',
- id: 20,
- hidden: false,
- }, {
- img: '../../static/icon/icon18.png',
- text: '閿�鍞嚭搴撴牎楠�',
- url: '/pages/xiaoshouchukujiaoyan/form?OperationType=1',
- id: 21,
- hidden: false,
- }, {
- img: '../../static/icon/icon30.png',
- text: '濮斿棰嗘枡鏍¢獙',
- url: '/pages/weiwailingliaojiaoyan/form?OperationType=1',
- id: 22,
- hidden: false,
- }],
- // itemData: [{
- // img: '../../static/icon/icon1.png',
- // text: '璁惧妗f',
- // url: '/pages/shebeidangan/table',
- // id: 1
- // }, {
- // img: '../../static/icon/icon8.png',
- // text: '璁惧灞ュ巻',
- // url: '/pages/shebeilvli/table',
- // id: 0,
- // }, {
- // img: '../../static/icon/icon2.png',
- // text: '璁惧淇濆吇璁″垝鍗�',
- // url: '/pages/baoyangjihua/table',
- // id: 2
- // }, {
- // img: '../../static/icon/icon3.png',
- // text: '璁惧淇濆吇璁板綍鍗�',
- // url: '/pages/baoyangjilu/table',
- // id: 3
- // }, {
- // img: '../../static/icon/icon4.png',
- // text: '璁惧鐐规璁″垝鍗�',
- // url: '',
- // id: 4
- // }, {
- // img: '../../static/icon/icon5.png',
- // text: '璁惧鐐规璁板綍鍗�',
- // url: '',
- // id: 5,
- // }, {
- // img: '../../static/icon/icon6.png',
- // text: '璁惧鏁呴殰鐧昏琛�',
- // url: '/pages/guzhangdengji/table',
- // id: 6
- // }, {
- // img: '../../static/icon/icon7.png',
- // text: '璁惧缁翠慨璁板綍鍗�',
- // url: '/pages/shebeiweixiu/table',
- // id: 7,
- // // },{
- // // img:'../../static/icon/icon8.png',
- // // text:'璁惧灞ュ巻',
- // // url:'/pages/shebeilvli/table',
- // // id:8,
- // }, {
- // img: '../../static/icon/icon9.png',
- // text: '宸ュ簭杩涚珯鎺ユ敹鍗�',
- // url: '/pages/gongxuIn/table',
- // id: 9,
- // }, {
- // img: '../../static/icon/icon10.png',
- // text: '宸ュ簭鍑虹珯姹囨姤鍗�',
- // url: '/pages/gongxuOut/table',
- // id: 10,
- // }, {
- // img: '../../static/icon/icon11.png',
- // text: '宸ュ簭濮斿鍙戝嚭鍗�',
- // url: '/pages/weiwaigxIn/table',
- // id: 11,
- // }, {
- // img: '../../static/icon/icon12.png',
- // text: '宸ュ簭濮斿鎺ユ敹鍗�',
- // url: '/pages/weiwaigxOut/table',
- // id: 12,
- // // }, {
- // // img: '../../static/icon/icon13.png',
- // // text: '璁惧绠$悊',
- // // url: '/pages/shebeiguanli/table',
- // // id: 13,
- // }, {
- // img: '../../static/icon/icon14.png',
- // text: '鎶ュ伐骞冲彴',
- // url: '/pages/baogong/table',
- // id: 14,
- // }, {
- // img: '../../static/icon/icon15.png',
- // text: '寮傚父鍙嶉鍗�',
- // url: '/pages/yichang/table',
- // id: 15,
- // }, {
- // img: '../../static/icon/icon16.png',
- // text: '寮傚父鍙嶉澶勭悊鍗�',
- // url: '/pages/yichang/list',
- // id: 16,
- // }, {
- // img: '../../static/icon/icon17.png',
- // text: '閲囪喘鍏ュ簱',
- // url: '/pages/caigouruku/table',
- // id: 17,
- // }, {
- // img: '../../static/icon/icon18.png',
- // text: '閲囪喘閫�鏂�',
- // url: '/pages/caigoutuiliao/table',
- // id: 18,
- // }, {
- // img: '../../static/icon/icon19.png',
- // text: '閿�鍞嚭搴�',
- // url: '/pages/xiaoshouchuku/table',
- // id: 19,
- // }, {
- // img: '../../static/icon/icon20.png',
- // text: '閿�鍞��璐�',
- // url: '/pages/xiaoshoutuihuo/table',
- // id: 20,
- // }, {
- // img: '../../static/icon/icon21.png',
- // text: '鏀舵枡閫氱煡鍗�',
- // url: '/pages/shouliaotongzhi/table',
- // id: 21,
- // },{
- // img: '../../static/icon/icon30.png',
- // text: '鐢熶骇棰嗘枡鏍¢獙',
- // url: '/pages/shengchanlingliao/table',
- // id: 30,
- // },{
- // img: '../../static/icon/icon31.png',
- // text: '鐢熶骇鍏ュ簱鏍¢獙',
- // url: '/pages/shengchanruku/table',
- // id: 31,
- // },{
- // img: '../../static/icon/icon32.png',
- // text: '鐢熶骇璋冩嫧鏍¢獙',
- // url: '/pages/shengchandiaobo/table',
- // id: 32,
- // },
- // {
- // img: '../../static/icon/icon16.png',
- // text: '鏍囩鎵撳嵃',
- // url: '/pages/labelPrinter/index',
- // id: 22,
- // },
- // {
- // img: '../../static/icon/icon16.png',
- // text: '璁惧杩愯鐘舵��',
- // url: '/pages/shebeiyunxingzhuangtai/shebeiyunxingzhuangtai',
- // id: 23,
- // },
- // {
- // img: '../../static/icon/icon16.png',
- // text: '妯″叿杩愯鐘舵��',
- // url: '/pages/mujvzhuangtai/mujvzhuangtai',
- // id: 24,
- // },
- // {
- // img: '../../static/icon/icon16.png',
- // text: '鏉$爜鎷嗙爜',
- // url: '/pages/tiaomachaima/tiaomachaima',
- // id: 25,
- // },
- // {
- // img: '../../static/icon/icon16.png',
- // text: '鍏朵粬鍏ュ簱',
- // url: '/pages/qitaruku/qitaruku',
- // id: 26,
- // },
- // {
- // img: '../../static/icon/icon16.png',
- // text: '鍏朵粬鍑哄簱',
- // url: '/pages/qitachuku/qitachuku',
- // id: 27,
- // },
- // {
- // img: '../../static/icon/icon16.png',
- // text: '鏉ユ枡鏉$爜鎵撳嵃',
- // url: '/pages/tiaomadaying/tiaomadaying',
- // id: 28,
- // },
- // {
- // img: '../../static/icon/icon16.png',
- // text: '涓婃ā鍗�',
- // url: '/pages/MJGL/shangmudan/table',
- // id: 29,
- // },
- // {
- // img: '../../static/icon/icon16.png',
- // text: '閲囪喘璁㈠崟',
- // url: '/pages/caigoudingdan/caigoudingdan',
- // id: 30,
- // },
- // {
- // img: '../../static/icon/icon16.png',
- // text: '鍏朵粬鍑哄簱鏍¢獙',
- // url: '/pages/qitachukujiaoyan/qitachukujiaoyan',
- // id: 31,
- // },
- // {
- // img: '../../static/icon/icon16.png',
- // text: '鐢熶骇琛ユ枡鏍¢獙',
- // url: '/pages/shengchanbuliaojiaoyan/CacheList',
- // id: 32,
- // },
- // {
- // img: '../../static/icon/icon16.png',
- // text: '閿�鍞嚭搴撴牎楠�',
- // url: '/pages/xiaoshouchukujiaoyan/table',
- // id: 33,
- // },
- // {
- // img: '../../static/icon/icon16.png',
- // text: '濮斿棰嗘枡鏍¢獙',
- // url: '/pages/weiwailingliaojiaoyan/table',
- // id: 34,
- // },
- // {
- // img: '../../static/icon/icon16.png',
- // text: '閲囪喘鍏ュ簱鏍¢獙',
- // url: '/pages/caigourukujiaoyan/table',
- // id: 35,
- // },
- // {
- // img: '../../static/icon/icon16.png',
- // text: '鍏朵粬鍏ュ簱鏍¢獙',
- // url: '/pages/qitarukujiaoyan/table',
- // id: 36,
- // },
- // {
- // img: '../../static/icon/icon16.png',
- // text: '濮斿琛ユ枡鏍¢獙',
- // url: '/pages/weiwaibuliaojiaoyan/table',
- // id: 37,
- // },
- // {
- // img: '../../static/icon/icon17.png',
- // text: '鐢熶骇棰嗘枡',
- // url: '/pages/shengchanlingliaoshengdan/table',
- // id: 38,
- // },
- // ]
- }
- },
- onLoad() {
- this.getHiddenItem()
- },
- methods: {
- checkCardShow(item) {
- if(item.HMaker && item.HMaker != getUserInfo()['Czymc'] && item.hidden == true){
- return false
- }
- return true
- },
- async getHiddenItem() {
- // let itemCache = uni.getStorageSync('HIndexItemData') || ''
- // console.log('itemCache: ',itemCache);
- // if(itemCache !== '') {
- // this.itemData = itemCache
- // }
-
- let data = await getMenuList({
- menuName: this.menuListName
- })
- Array.from(data).forEach(e => {
- this.itemData[e["HIndex"]].hidden = !CommonUtils.stringToBoolean(e["HShowMode"])
- this.itemData[e["HIndex"]].HMaker = e["HMaker"]
- })
- },
- switchHidden(index) {
- this.updateCount ++;
- this.itemData[index].hidden = !this.itemData[index].hidden
- },
- switchIconsModeHandler() {
- this.canEdit = !this.canEdit
- if(this.canEdit == false && this.updateCount > 0) {
- this.$nextTick(() => {
- // uni.setStorageSync("HIndexItemData", this.itemData)
- setMenuList({
- menuName: this.menuListName,
- payload: this.itemData
- })
-
- this.updateCount = 0
- })
- }
- this.$forceUpdate()
- },
- toUrl(item) {
- if (item.url) {
- uni.navigateTo({
- url: item.url
- })
- } else {
- uni.showToast({
- title: '鍔熻兘寮�鍙戜腑銆傘�傘��',
- icon: 'none'
- })
- }
- }
- }
- }
+ import vers from './vers.vue';
+ import {
+ setMenuList,
+ getMenuList
+ } from '../../utils/menuListApp';
+ import {
+ CommonUtils
+ } from '../../utils/common';
+ import {
+ getUserInfo
+ } from '../../utils/auth';
+ export default {
+ components: {
+ vers,
+ },
+ data() {
+ return {
+ updateCount: 0,
+ menuListName: 'index',
+ canEdit: false,
+ serverUrl: uni.getStorageSync('serverUrl') || 'http://47.96.97.237/API',
+ itemData: [{
+ img: '../../static/icon/icon8.png',
+ text: '鏉$爜绠$悊-鏀舵枡閫氱煡鍗�',
+ url: '/pages/tiaomaguanli/table?HBillType=1103',
+ id: 1,
+ hidden: false,
+ }, {
+ img: '../../static/icon/icon8.png',
+ text: '閲囪喘璁㈠崟鏍囩',
+ url: '/pages/caigoudingdan/caigoudingdan',
+ id: 1,
+ hidden: false,
+ }, {
+ img: '../../static/icon/icon4.png',
+ text: '閲囪喘璁㈠崟瀛愭爣绛�',
+ url: '/pages/tiaomadaying/tiaomadaying',
+ id: 2,
+ hidden: false,
+ }, {
+ img: '../../static/icon/icon11.png',
+ text: '鏀舵枡閫氱煡鍗曟爣绛�',
+ url: '/pages/shouliaotongzhi/table',
+ id: 3,
+ hidden: false,
+ }, {
+ img: '../../static/icon/icon17.png',
+ text: '閲囪喘鍏ュ簱鏂板',
+ url: '/pages/caigouruku/form?OperationType=1',
+ id: 4,
+ hidden: false,
+ }, {
+ img: '../../static/icon/icon20.png',
+ text: '閲囪喘閫�鏂欐柊澧�',
+ url: '/pages/caigoutuiliao/form?OperationType=1',
+ id: 5,
+ hidden: false,
+ }, {
+ img: '../../static/icon/icon32.png',
+ text: '鐩存帴璋冩嫧鏂板',
+ url: '/pages/zhijiediaobo/form?OperationType=1',
+ id: 6,
+ hidden: false,
+ }, {
+ img: '../../static/icon/icon30.png',
+ text: '鐢熶骇棰嗘枡鏂板',
+ url: '/pages/shengchanlingliaoshengdan/form?OperationType=1',
+ id: 7,
+ hidden: false,
+ }, {
+ img: '../../static/icon/icon31.png',
+ text: '鐢熶骇琛ユ枡鏂板',
+ url: '/pages/shengchanbuliao/form?OperationType=1',
+ id: 8,
+ hidden: false,
+ }, {
+ img: '../../static/icon/icon17.png',
+ text: '鐢熶骇鍏ュ簱鏂板',
+ url: '/pages/shengchanrukushengdan/form?OperationType=1',
+ id: 9,
+ hidden: false,
+ }, {
+ img: '../../static/icon/icon30.png',
+ text: '濮斿棰嗘枡鏂板',
+ url: '/pages/weiwailingliao/form?OperationType=1',
+ id: 10,
+ hidden: false,
+ }, {
+ img: '../../static/icon/icon17.png',
+ text: '鍏朵粬鍏ュ簱鏂板',
+ url: '/pages/qitaruku_v2/form?OperationType=1',
+ id: 11,
+ hidden: false,
+ }, {
+ img: '../../static/icon/icon18.png',
+ text: '鍏朵粬鍑哄簱鏂板',
+ url: '/pages/qitachuku_v2/form?OperationType=1',
+ id: 12,
+ hidden: false,
+ }, {
+ img: '../../static/icon/icon18.png',
+ text: '閿�鍞嚭搴撴柊澧�',
+ url: '/pages/xiaoshouchuku/form?OperationType=1',
+ id: 13,
+ hidden: false,
+ }, {
+ img: '../../static/icon/icon19.png',
+ text: '閿�鍞��璐ф柊澧�',
+ url: '/pages/xiaoshoutuihuo/form?OperationType=1',
+ id: 14,
+ hidden: false,
+ }, {
+ img: '../../static/icon/icon19.png',
+ text: '濮斿鍏ュ簱鏂板',
+ url: '/pages/weiwairuku/form?OperationType=1',
+ id: 15,
+ hidden: false,
+ }, {
+ img: '../../static/icon/icon30.png',
+ text: '鐢熶骇棰嗘枡妫�楠�',
+ url: '/pages/shengchanlingliao/form?OperationType=1',
+ id: 16,
+ hidden: false,
+ }, {
+ img: '../../static/icon/icon31.png',
+ text: '鐢熶骇琛ユ枡鏍¢獙',
+ url: '/pages/shengchanbuliaojiaoyan/form?OperationType=1',
+ id: 17,
+ hidden: false,
+ }, {
+ img: '../../static/icon/icon32.png',
+ text: '鐢熶骇璋冩嫧鏍¢獙',
+ url: '/pages/shengchandiaobo/form?OperationType=1',
+ id: 18,
+ hidden: false,
+ }, {
+ img: '../../static/icon/icon18.png',
+ text: '鍏朵粬鍑哄簱鏍¢獙',
+ url: '/pages/qitachukujiaoyan/detail?OperationType=1',
+ id: 19,
+ hidden: false,
+ }, {
+ img: '../../static/icon/icon17.png',
+ text: '鐢熶骇鍏ュ簱鏍¢獙',
+ url: '/pages/shengchanruku/form?OperationType=1',
+ id: 20,
+ hidden: false,
+ }, {
+ img: '../../static/icon/icon18.png',
+ text: '閿�鍞嚭搴撴牎楠�',
+ url: '/pages/xiaoshouchukujiaoyan/form?OperationType=1',
+ id: 21,
+ hidden: false,
+ }, {
+ img: '../../static/icon/icon30.png',
+ text: '濮斿棰嗘枡鏍¢獙',
+ url: '/pages/weiwailingliaojiaoyan/form?OperationType=1',
+ id: 22,
+ hidden: false,
+ }],
+ // itemData: [{
+ // img: '../../static/icon/icon1.png',
+ // text: '璁惧妗f',
+ // url: '/pages/shebeidangan/table',
+ // id: 1
+ // }, {
+ // img: '../../static/icon/icon8.png',
+ // text: '璁惧灞ュ巻',
+ // url: '/pages/shebeilvli/table',
+ // id: 0,
+ // }, {
+ // img: '../../static/icon/icon2.png',
+ // text: '璁惧淇濆吇璁″垝鍗�',
+ // url: '/pages/baoyangjihua/table',
+ // id: 2
+ // }, {
+ // img: '../../static/icon/icon3.png',
+ // text: '璁惧淇濆吇璁板綍鍗�',
+ // url: '/pages/baoyangjilu/table',
+ // id: 3
+ // }, {
+ // img: '../../static/icon/icon4.png',
+ // text: '璁惧鐐规璁″垝鍗�',
+ // url: '',
+ // id: 4
+ // }, {
+ // img: '../../static/icon/icon5.png',
+ // text: '璁惧鐐规璁板綍鍗�',
+ // url: '',
+ // id: 5,
+ // }, {
+ // img: '../../static/icon/icon6.png',
+ // text: '璁惧鏁呴殰鐧昏琛�',
+ // url: '/pages/guzhangdengji/table',
+ // id: 6
+ // }, {
+ // img: '../../static/icon/icon7.png',
+ // text: '璁惧缁翠慨璁板綍鍗�',
+ // url: '/pages/shebeiweixiu/table',
+ // id: 7,
+ // // },{
+ // // img:'../../static/icon/icon8.png',
+ // // text:'璁惧灞ュ巻',
+ // // url:'/pages/shebeilvli/table',
+ // // id:8,
+ // }, {
+ // img: '../../static/icon/icon9.png',
+ // text: '宸ュ簭杩涚珯鎺ユ敹鍗�',
+ // url: '/pages/gongxuIn/table',
+ // id: 9,
+ // }, {
+ // img: '../../static/icon/icon10.png',
+ // text: '宸ュ簭鍑虹珯姹囨姤鍗�',
+ // url: '/pages/gongxuOut/table',
+ // id: 10,
+ // }, {
+ // img: '../../static/icon/icon11.png',
+ // text: '宸ュ簭濮斿鍙戝嚭鍗�',
+ // url: '/pages/weiwaigxIn/table',
+ // id: 11,
+ // }, {
+ // img: '../../static/icon/icon12.png',
+ // text: '宸ュ簭濮斿鎺ユ敹鍗�',
+ // url: '/pages/weiwaigxOut/table',
+ // id: 12,
+ // // }, {
+ // // img: '../../static/icon/icon13.png',
+ // // text: '璁惧绠$悊',
+ // // url: '/pages/shebeiguanli/table',
+ // // id: 13,
+ // }, {
+ // img: '../../static/icon/icon14.png',
+ // text: '鎶ュ伐骞冲彴',
+ // url: '/pages/baogong/table',
+ // id: 14,
+ // }, {
+ // img: '../../static/icon/icon15.png',
+ // text: '寮傚父鍙嶉鍗�',
+ // url: '/pages/yichang/table',
+ // id: 15,
+ // }, {
+ // img: '../../static/icon/icon16.png',
+ // text: '寮傚父鍙嶉澶勭悊鍗�',
+ // url: '/pages/yichang/list',
+ // id: 16,
+ // }, {
+ // img: '../../static/icon/icon17.png',
+ // text: '閲囪喘鍏ュ簱',
+ // url: '/pages/caigouruku/table',
+ // id: 17,
+ // }, {
+ // img: '../../static/icon/icon18.png',
+ // text: '閲囪喘閫�鏂�',
+ // url: '/pages/caigoutuiliao/table',
+ // id: 18,
+ // }, {
+ // img: '../../static/icon/icon19.png',
+ // text: '閿�鍞嚭搴�',
+ // url: '/pages/xiaoshouchuku/table',
+ // id: 19,
+ // }, {
+ // img: '../../static/icon/icon20.png',
+ // text: '閿�鍞��璐�',
+ // url: '/pages/xiaoshoutuihuo/table',
+ // id: 20,
+ // }, {
+ // img: '../../static/icon/icon21.png',
+ // text: '鏀舵枡閫氱煡鍗�',
+ // url: '/pages/shouliaotongzhi/table',
+ // id: 21,
+ // },{
+ // img: '../../static/icon/icon30.png',
+ // text: '鐢熶骇棰嗘枡鏍¢獙',
+ // url: '/pages/shengchanlingliao/table',
+ // id: 30,
+ // },{
+ // img: '../../static/icon/icon31.png',
+ // text: '鐢熶骇鍏ュ簱鏍¢獙',
+ // url: '/pages/shengchanruku/table',
+ // id: 31,
+ // },{
+ // img: '../../static/icon/icon32.png',
+ // text: '鐢熶骇璋冩嫧鏍¢獙',
+ // url: '/pages/shengchandiaobo/table',
+ // id: 32,
+ // },
+ // {
+ // img: '../../static/icon/icon16.png',
+ // text: '鏍囩鎵撳嵃',
+ // url: '/pages/labelPrinter/index',
+ // id: 22,
+ // },
+ // {
+ // img: '../../static/icon/icon16.png',
+ // text: '璁惧杩愯鐘舵��',
+ // url: '/pages/shebeiyunxingzhuangtai/shebeiyunxingzhuangtai',
+ // id: 23,
+ // },
+ // {
+ // img: '../../static/icon/icon16.png',
+ // text: '妯″叿杩愯鐘舵��',
+ // url: '/pages/mujvzhuangtai/mujvzhuangtai',
+ // id: 24,
+ // },
+ // {
+ // img: '../../static/icon/icon16.png',
+ // text: '鏉$爜鎷嗙爜',
+ // url: '/pages/tiaomachaima/tiaomachaima',
+ // id: 25,
+ // },
+ // {
+ // img: '../../static/icon/icon16.png',
+ // text: '鍏朵粬鍏ュ簱',
+ // url: '/pages/qitaruku/qitaruku',
+ // id: 26,
+ // },
+ // {
+ // img: '../../static/icon/icon16.png',
+ // text: '鍏朵粬鍑哄簱',
+ // url: '/pages/qitachuku/qitachuku',
+ // id: 27,
+ // },
+ // {
+ // img: '../../static/icon/icon16.png',
+ // text: '鏉ユ枡鏉$爜鎵撳嵃',
+ // url: '/pages/tiaomadaying/tiaomadaying',
+ // id: 28,
+ // },
+ // {
+ // img: '../../static/icon/icon16.png',
+ // text: '涓婃ā鍗�',
+ // url: '/pages/MJGL/shangmudan/table',
+ // id: 29,
+ // },
+ // {
+ // img: '../../static/icon/icon16.png',
+ // text: '閲囪喘璁㈠崟',
+ // url: '/pages/caigoudingdan/caigoudingdan',
+ // id: 30,
+ // },
+ // {
+ // img: '../../static/icon/icon16.png',
+ // text: '鍏朵粬鍑哄簱鏍¢獙',
+ // url: '/pages/qitachukujiaoyan/qitachukujiaoyan',
+ // id: 31,
+ // },
+ // {
+ // img: '../../static/icon/icon16.png',
+ // text: '鐢熶骇琛ユ枡鏍¢獙',
+ // url: '/pages/shengchanbuliaojiaoyan/CacheList',
+ // id: 32,
+ // },
+ // {
+ // img: '../../static/icon/icon16.png',
+ // text: '閿�鍞嚭搴撴牎楠�',
+ // url: '/pages/xiaoshouchukujiaoyan/table',
+ // id: 33,
+ // },
+ // {
+ // img: '../../static/icon/icon16.png',
+ // text: '濮斿棰嗘枡鏍¢獙',
+ // url: '/pages/weiwailingliaojiaoyan/table',
+ // id: 34,
+ // },
+ // {
+ // img: '../../static/icon/icon16.png',
+ // text: '閲囪喘鍏ュ簱鏍¢獙',
+ // url: '/pages/caigourukujiaoyan/table',
+ // id: 35,
+ // },
+ // {
+ // img: '../../static/icon/icon16.png',
+ // text: '鍏朵粬鍏ュ簱鏍¢獙',
+ // url: '/pages/qitarukujiaoyan/table',
+ // id: 36,
+ // },
+ // {
+ // img: '../../static/icon/icon16.png',
+ // text: '濮斿琛ユ枡鏍¢獙',
+ // url: '/pages/weiwaibuliaojiaoyan/table',
+ // id: 37,
+ // },
+ // {
+ // img: '../../static/icon/icon17.png',
+ // text: '鐢熶骇棰嗘枡',
+ // url: '/pages/shengchanlingliaoshengdan/table',
+ // id: 38,
+ // },
+ // ]
+ }
+ },
+ onLoad() {
+ this.getHiddenItem()
+ },
+ methods: {
+ checkCardShow(item) {
+ if (item.HMaker && item.HMaker != getUserInfo()['Czymc'] && item.hidden == true) {
+ return false
+ }
+ return true
+ },
+ async getHiddenItem() {
+ // let itemCache = uni.getStorageSync('HIndexItemData') || ''
+ // console.log('itemCache: ',itemCache);
+ // if(itemCache !== '') {
+ // this.itemData = itemCache
+ // }
+
+ let data = await getMenuList({
+ menuName: this.menuListName
+ })
+ Array.from(data).forEach(e => {
+ this.itemData[e["HIndex"]].hidden = !CommonUtils.stringToBoolean(e["HShowMode"])
+ this.itemData[e["HIndex"]].HMaker = e["HMaker"]
+ })
+ },
+ switchHidden(index) {
+ this.updateCount++;
+ this.itemData[index].hidden = !this.itemData[index].hidden
+ },
+ switchIconsModeHandler() {
+ this.canEdit = !this.canEdit
+ if (this.canEdit == false && this.updateCount > 0) {
+ this.$nextTick(() => {
+ // uni.setStorageSync("HIndexItemData", this.itemData)
+ setMenuList({
+ menuName: this.menuListName,
+ payload: this.itemData
+ })
+
+ this.updateCount = 0
+ })
+ }
+ this.$forceUpdate()
+ },
+ toUrl(item) {
+ if (item.url) {
+ uni.navigateTo({
+ url: item.url
+ })
+ } else {
+ uni.showToast({
+ title: '鍔熻兘寮�鍙戜腑銆傘�傘��',
+ icon: 'none'
+ })
+ }
+ }
+ }
+ }
</script>
<style lang="scss" scoped>
- .header {
- width: 750rpx;
- background: linear-gradient(0deg, #71AFFC 0%, #3A78FF 100%);
- font-size: 47rpx;
- font-weight: bold;
- color: #FFFFFF;
- text-align: center;
- padding: 9vh 0 6vh 0;
- position: relative;
- }
+ .header {
+ width: 750rpx;
+ background: linear-gradient(0deg, #71AFFC 0%, #3A78FF 100%);
+ font-size: 47rpx;
+ font-weight: bold;
+ color: #FFFFFF;
+ text-align: center;
+ padding: 9vh 0 6vh 0;
+ position: relative;
+ }
- .switch-button {
- position: absolute;
- right: 10rpx;
- bottom: 0;
- }
+ .switch-button {
+ position: absolute;
+ right: 10rpx;
+ bottom: 0;
+ }
- .mains {
- width: 720rpx;
- margin: 0 auto;
- display: flex;
- flex-wrap: wrap;
- margin-top: 3vh;
- padding-bottom: 5vh;
+ .mains {
+ width: 720rpx;
+ margin: 0 auto;
+ display: flex;
+ flex-wrap: wrap;
+ margin-top: 3vh;
+ padding-bottom: 5vh;
- .box {
- width: 25%;
- margin-top: 2.5vh;
- text-align: center;
+ .box {
+ width: 25%;
+ margin-top: 2.5vh;
+ text-align: center;
- image {
- width: 18vw;
- height: 18vw;
- }
+ image {
+ width: 18vw;
+ height: 18vw;
+ }
- .texts {
- width: 120rpx;
- margin: 0 auto;
- font-size: 29rpx;
- font-weight: normal;
- color: #333333;
- margin-top: .2vh;
- }
- }
-
- .edit {
- position: relative;
- }
-
- .edit-mark {
- position: absolute;
- top: 0;
- right: 0;
- }
+ .texts {
+ width: 120rpx;
+ margin: 0 auto;
+ font-size: 29rpx;
+ font-weight: normal;
+ color: #333333;
+ margin-top: .2vh;
+ }
+ }
- view[enable-hidden] {
- opacity: .4 !important;
- }
- view[hidden] {
- display: none;
- }
- }
+ .edit {
+ position: relative;
+ }
+
+ .edit-mark {
+ position: absolute;
+ top: 0;
+ right: 0;
+ }
+
+ view[enable-hidden] {
+ opacity: .4 !important;
+ }
+
+ view[hidden] {
+ display: none;
+ }
+ }
</style>
\ No newline at end of file
diff --git a/pages/tiaomaguanli/table.vue b/pages/tiaomaguanli/table.vue
new file mode 100644
index 0000000..c1cc9e9
--- /dev/null
+++ b/pages/tiaomaguanli/table.vue
@@ -0,0 +1,266 @@
+<template>
+ <view class="content">
+ <view class="form">
+ <view class="form-item">
+ <view class="title"><text>*</text>鏉$爜:</view>
+ <view class="right" style="width: 380rpx;">
+ <input :focus="HBarCodeFocus" v-model="HBarCode" placeholder="璇锋壂鎻�(鎴栬緭鍏�)鏉$爜" @confirm="getCode(HBarCode)"/>
+ </view>
+ <uni-icons type="scan" style="margin-left: 10rpx;background-color: #3A78FF;padding: 6rpx;color: #fff;border-radius: 100%;" size="20" @click="toScanCode"></uni-icons>
+ </view>
+ <view class="form-item">
+ <view class="title">鍗曟嵁鍙�:</view>
+ <view class="righton">
+ <input v-model="baseInfo.HBillNo" disabled/>
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">渚涘簲鍟�:</view>
+ <view class="righton">
+ <input v-model="baseInfo.HSupName" disabled/>
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">閮ㄩ棬:</view>
+ <view class="righton">
+ <input v-model="baseInfo.HDeptName" disabled/>
+ </view>
+ </view>
+ </view>
+
+ <view style="width: 100%;height: 16rpx;background-color: #e5e5e5;"></view>
+
+ <view class="list" v-for="(item,index) in listData" :key="index" @tap="toSon(item)">
+ <uni-card :title="item.鐗╂枡浠g爜" :extra="'No. ' + Number(index+1)" style="margin: 10px;">
+ <view class="card-detail">
+ <view class="detail">
+ <text>鐗╂枡鍚嶇О锛�</text>{{item.鐗╂枡鍚嶇О}}
+ </view>
+ <view class="detail">
+ <text>瑙勬牸鍨嬪彿锛�</text>{{item.瑙勬牸鍨嬪彿}}
+ </view>
+ <view class="detail">
+ <text>璁㈠崟鏁伴噺锛�</text>{{item.鏁伴噺}}
+ </view>
+ </view>
+
+ </uni-card>
+ </view>
+
+ <view class="over" v-if="listData.length == 0">鏆傛棤鏁版嵁</view>
+ <view class="over" v-if="listData.length != 0">宸插埌搴�</view>
+ </view>
+</template>
+
+<script>
+ import { CommonUtils } from "../../utils/common";
+import { getUserInfo } from "@/utils/auth.js";
+ export default {
+ data() {
+ return {
+ HBarCodeFocus: false,
+
+ userInfo:getUserInfo(),
+ serverUrl: uni.getStorageSync('serverUrl')||'http://47.96.97.237/API',
+ HBarCode:'',
+ baseInfo:{
+ HBillNo:'',
+ HSupName:'',
+ HDeptName:'',
+ HInterID:'',
+ HBillType: 0,
+ },
+ sWhere:'',
+ listData:[],
+ }
+ },
+ onLoad(params) {
+ this.HBarCodeFocus = true
+ if(!CommonUtils.isEmpty(params.HBillType)) {
+ this.baseInfo.HBillType = params.HBillType
+ }
+ console.log(this.baseInfo.HBillType)
+ },
+ methods: {
+ async refreshBarCodeState() {
+ this.HBarCodeFocus = false
+ await this.$nextTick(() => {
+ this.HBarCodeFocus = true
+ this.HBarCode = ""
+ })
+ },
+ playSound(e){
+ const innerAudioContext = uni.createInnerAudioContext();
+ if(e == 1){
+ innerAudioContext.src = '/static/success.wav';
+ }else{
+ innerAudioContext.src = '/static/jingbao.wav';
+ }
+ innerAudioContext.play(); // 鎾斁闊抽
+ },
+ //鎵爜
+ toScanCode(){
+ var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
+ mpaasScanModule.mpaasScan({
+ 'hideAlbum': true,
+ 'timeoutInterval':'10', //瓒呮椂鏃堕棿
+ 'timeoutText':'鏈瘑鍒埌浜岀淮鐮�' //瓒呮椂鎻愰啋
+ },(ret) => {
+ console.log(ret.resp_result)
+ this.HBarCode = ret.resp_result
+ this.getCode(this.HBarCode)
+ })
+ },
+ //鎵潯鐮佸鐞�
+ getCode(HBarCode){
+ if(!HBarCode){
+ this.playSound(0)
+ this.refreshBarCodeState()
+ uni.showToast({
+ title:'鏉$爜涓嶈兘涓虹┖',
+ icon:'none'
+ })
+ }else{
+ let [HBarCodeBillNo] = HBarCode.split("@") //绗竴涓弬鏁拌〃绀哄崟鎹彿
+ let HBillType = this.baseInfo.HBillType
+ uni.request({
+ url: this.serverUrl + '/Web/GetBillInfo',
+ data: { HBillno: HBarCodeBillNo, HBillType: HBillType , HStockOrgID: uni.getStorageSync("OrganizationID") },
+ success: (res) => {
+ console.log('鎵爜杩斿洖',res.data.data);
+ this.HBarCode = ''
+ if(res.data.count == 1){
+ this.playSound(1)
+ var data = res.data.data
+ this.baseInfo = {
+ HBillNo:data[0].鍗曟嵁鍙�,
+ HSupName:data[0].渚涘簲鍟�,
+ HDeptName:data[0].閮ㄩ棬,
+ HInterID:data[0].hmainid,
+ HBillType: this.baseInfo.HBillType
+ }
+ this.listData = data
+ }else{
+ this.playSound(0)
+ this.refreshBarCodeState()
+ uni.showToast({
+ title:res.data.Message,
+ icon:'none'
+ })
+ }
+ },
+ fail: (res) => {
+ this.playSound(0)
+ this.refreshBarCodeState()
+ console.log(res);
+ uni.showToast({
+ title:'鎺ュ彛璇锋眰澶辫触',
+ icon:'none'
+ })
+ },
+ });
+ }
+ },
+ toSon(item){
+ uni.navigateTo({
+ url:'./table_son?OperationType=1&closeType=1&linterid=' + item.hmainid + '&hsubid=' + item.hsubid
+ })
+ }
+ }
+ }
+</script>
+
+<style lang="scss" scoped>
+ .form{
+ width: 640rpx;
+ margin: 20rpx auto;
+ }
+ .form-item{
+ display: flex;
+ align-items: center;
+ font-size: 28rpx;
+ padding: 6rpx 0;
+ .title{
+ width: 180rpx;
+ text{
+ color: red;
+ font-weight: bold;
+ }
+ }
+ .right{
+ width: 450rpx;
+ border-radius: 22rpx;
+ border: 1px solid #acacac;
+ }
+ .righton{
+ width: 450rpx;
+ border-radius: 22rpx;
+ border: 1px solid #e4e4e4;
+ background-color: #e4e4e4;
+ }
+ input{
+ width: 100%;
+ padding: 8rpx 20rpx;
+ font-size: 30rpx;
+ }
+ }
+ .buttons{
+ width: 100%;
+ display: flex;
+ justify-content: center;
+ margin-top: 20rpx;
+ button{
+ border-radius: 50rpx;
+ width: 180rpx;
+ height: 66rpx;
+ line-height: 66rpx;
+ font-size: 28rpx;
+ }
+ .btn-a{
+ background-color: #acacac;
+ color: #fff;
+ }
+ .btn-b{
+ background-color: #41a863;
+ color: #fff;
+ }
+ .btn-c{
+ background-color: #3a78ff;
+ color: #fff;
+ }
+ }
+
+ .list{
+ width: 100%;
+ .card-detail{
+ width: 100%;
+ display: flex;
+ flex-wrap: wrap;
+ justify-content: space-between;
+ line-height: 120%;
+ .detail{
+ // width: 50%;
+ font-size: 26rpx;
+ margin-bottom: 12rpx;
+ color: #555;
+ margin-right: 20rpx;
+ text{
+ color: #999;
+ font-size: 26rpx;
+ }
+ }
+ }
+ .more{
+ color: #888;
+ font-size: 24rpx;
+ display: flex;
+ border-top: 1px solid #eee;
+ padding-top: 20rpx;
+ .part{
+ width: 50%;
+ text-align: center;
+ }
+ }
+ }
+
+</style>
diff --git a/pages/tiaomaguanli/table_son.vue b/pages/tiaomaguanli/table_son.vue
new file mode 100644
index 0000000..5b785f6
--- /dev/null
+++ b/pages/tiaomaguanli/table_son.vue
@@ -0,0 +1,919 @@
+<template>
+ <view class="content">
+ <view class="form">
+ <view class="form-item">
+ <view class="title">鏀舵枡鍗曞彿:</view>
+ <view class="righton">
+ <input v-model="baseInfo.HBillNo" disabled />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">閲囪喘鍗曞彿:</view>
+ <view class="righton">
+ <input v-model="baseInfo.HInnerBillNo" disabled />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">鐗╂枡缂栫爜:</view>
+ <view class="righton">
+ <input v-model="baseInfo.HMaterNumber" disabled />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">鐗╂枡鍚嶇О:</view>
+ <view class="righton">
+ <input v-model="baseInfo.HMaterName" disabled />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">瑙勬牸鍨嬪彿:</view>
+ <view class="righton">
+ <input v-model="baseInfo.HMaterModel" disabled />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">鏀舵枡鏁伴噺:</view>
+ <view class="righton">
+ <input v-model="baseInfo.HQty" disabled />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">姣忕鏁伴噺:</view>
+ <view class="right">
+ <input v-model="baseInfo.HMinQty" type="number" placeholder="璇疯緭鍏ユ暟閲�" @confirm="getNum()"
+ @blur="getNum()" />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">绠辨暟:</view>
+ <view class="righton">
+ <input v-model="baseInfo.HBQty" disabled />
+ </view>
+ </view>
+ <view class="buttons">
+ <button class="btn-b" size="mini" type="default" @tap="getList()">鏉$爜鐢熸垚</button>
+ <!-- <button class="btn-c" size="mini" type="default" @tap="searchLabelPrinter()">鎼滅储鎵撳嵃鏈�</button> -->
+ <!-- :disabled="codeGenComplete == false" -->
+ <button :class="codeGenComplete == false? 'btn-a': 'btn-c'" size="mini" type="default"
+ @tap="search">鎵撳嵃</button>
+ </view>
+ </view>
+
+ <view style="width: 100%;height: 16rpx;background-color: #e5e5e5;"></view>
+
+ <view class="list" v-for="(item,index) in listData" :key="index">
+ <uni-card :title="item.鐗╂枡浠g爜" :extra="'No. ' + Number(index+1)" style="margin: 10px;">
+ <view class="card-detail">
+ <view class="detail">
+ <text>鐗╂枡鍚嶇О锛�</text>{{item.HMaterName || item['鐗╂枡鍚嶇О']}}
+ </view>
+ <view class="detail">
+ <text>瑙勬牸鍨嬪彿锛�</text>{{item.HMaterModel|| item['瑙勬牸鍨嬪彿']}}
+ </view>
+ <view class="detail">
+ <text>鏁伴噺锛�</text>{{item.HQty || item['鏁伴噺']}}
+ </view>
+ <view class="detail" style="width: 100%;">
+ <text>鏉$爜缂栧彿锛�</text>{{item.HBarCodeNo}}
+ </view>
+ </view>
+ <!-- <view class="detail" style="text-align: right;" @tap.stop="labelPrint(item)"><text
+ style="color: orange;">鐐瑰嚮鎵撳嵃鏉$爜</text></view> -->
+ </uni-card>
+ </view>
+
+ <view class="over" v-if="listData.length == 0">鏆傛棤鏁版嵁</view>
+ <view class="over" v-if="listData.length != 0">宸插埌搴�</view>
+
+ <labelPrinterComponentVue ref="labelPrinter" :printInfo="printInfo" :printMode="'cpcl'">
+ </labelPrinterComponentVue>
+
+ <!-- 鎵撳嵃鏈洪�夋嫨鍒楄〃 -->
+ <view v-if="maskShow" class="uni-mask" @tap="maskShow = false">
+ <scroll-view class="uni-scroll_box" scroll-y>
+ <view class="uni-list-box" v-for="(device, index) in discoveredDevices" :key="index"
+ @tap="connectBT(device)">
+ <view class="uni-list_name">鍚嶇О锛歿{ device.name }}</view>
+ <view class="uni-list_item">{{ connectedDeviceId === device.address?'宸茶繛鎺�':'鏈繛鎺�' }}</view>
+ </view>
+ </scroll-view>
+ </view>
+ </view>
+</template>
+
+<script>
+ import {
+ getUserInfo
+ } from "@/utils/auth.js";
+ import labelPrinterComponentVue from "@/components/labelPrinterComponent/labelPrinterComponent.vue"
+ import {
+ CommonUtils
+ } from "../../utils/common";
+ // import bluetoothTool from '@/plugins/BluetoothTool.js'
+ // import permission from '@/plugins/permission.js'
+ // import {
+ // InputImage
+ // } from '@psdk/frame-imageb';
+ // import {
+ // ConnectedDevice,
+ // Lifecycle,
+ // Raw,
+ // FakeConnectedDevice,
+ // WriteOptions,
+ // } from '@psdk/frame-father';
+ // import {
+ // CBar,
+ // CBox,
+ // CForm,
+ // CImage,
+ // CLine,
+ // CCodeRotation,
+ // CCodeType,
+ // CPage,
+ // CText,
+ // CFont,
+ // CBold,
+ // CRotation,
+ // CInverse,
+ // CMag,
+ // CQRCode,
+ // CCorrectLevel,
+ // CSN,
+ // CStatus,
+ // } from "@psdk/cpcl";
+ // import {
+ // EImage
+ // } from "@psdk/esc";
+ export default {
+ components: {
+ labelPrinterComponentVue
+ },
+ data() {
+ return {
+ codeGenComplete: false,
+ userInfo: getUserInfo(),
+ serverUrl: uni.getStorageSync('serverUrl') || 'http://47.96.97.237/API',
+ OperationType: 1, //鏁版嵁绫诲瀷 1娣诲姞 淇濆瓨 2澶嶅埗 3 缂栬緫
+ linterid: '',
+ HEntryID: '',
+ baseInfo: {
+ HMainID: '',
+ HSubID: '',
+ HBillNo: '',
+ HMaterID: '',
+ HMaterNumber: '',
+ HMaterName: '',
+ HMaterModel: '',
+ HQty: '',
+ HMinQty: '',
+ HSupID: '',
+ SHdate: '',
+ HMTONo: '',
+ HBatchNo: '',
+ HBQty: '',
+ HSupID: '',
+ HSupNumber: '',
+ HSupName: '',
+ HUnitID: '',
+ HPcsName: '',
+ HSupNameShort: '',
+ HMTONo: '',
+ HDate: '',
+ HSourceBillNo: '',
+ HMaker: getUserInfo()["Czymc"],
+ HCoilNO: '',
+ HFurnaceNO: '',
+ HFactory: '',
+ HSupMaterNumber: '',
+ HInterID: '',
+ },
+ sWhere: '',
+ listData: [],
+ printItem: '',
+
+ printInfo: "",
+ maskShow: false,
+ discoveredDevices: [], // 鏌ヨ鍒扮殑璁惧
+ connectedDeviceId: ""
+ }
+ },
+ onLoad(e) {
+ this.OperationType = e.OperationType
+ this.linterid = e.linterid
+ this.HEntryID = e.hsubid
+ this.getData()
+
+ // //#ifdef APP-PLUS
+ // // 钃濈墮
+ // bluetoothTool.init({
+ // listenBTStatusCallback: (state) => {
+ // if (state == 'STATE_ON') {
+ // console.log(state);
+ // }
+ // },
+ // discoveryDeviceCallback: this.onDevice,
+ // discoveryFinishedCallback: function() {
+ // console.log("鎼滅储瀹屾垚");
+ // },
+ // readDataCallback: function(dataByteArr) {
+ // /* if(that.receiveDataArr.length >= 200) {
+ // that.receiveDataArr = [];
+ // }
+ // that.receiveDataArr.push.apply(that.receiveDataArr, dataByteArr); */
+ // console.log("璇诲彇瀹屾垚" + dataByteArr);
+ // },
+ // connExceptionCallback: function(e) {
+ // console.log(e);
+ // }
+ // });
+ // //#endif
+ },
+ methods: {
+ getData() {
+ uni.request({
+ url: this.serverUrl + '/Cg_POInStockBill/loadCg_POInStockBill_Push',
+ data: {
+ HInterID: this.linterid,
+ HSubID: this.HEntryID
+ },
+ success: (res) => {
+ if (res.data.count == 1) {
+ var data = res.data.data
+ this.baseInfo = Object.assign(this.baseInfo, {
+ HMainID: data[0].linterid,
+ HSubID: data[0].hsubid,
+ HBillNo: data[0].鍗曟嵁鍙�,
+ HSourceBillNo: data[0].鍗曟嵁鍙�,
+ HInnerBillNo: data[0].閲囪喘璁㈠崟鍙�,
+ HMaterID: data[0].HMaterID,
+ HMaterNumber: data[0].鐗╂枡浠g爜,
+ HMaterName: data[0].鐗╂枡鍚嶇О,
+ HMaterModel: data[0].瑙勬牸鍨嬪彿,
+ HQty: data[0].鏁伴噺,
+ HMinQty: data[0].鏁伴噺,
+ HSupID: data[0].HSupID,
+ SHdate: data[0].瀹℃牳鏃ユ湡,
+ HBatchNo: data[0]['鎵瑰彿'],
+ HSupID: data[0]['HSupID'],
+ HSupNumber: data[0]['渚涘簲鍟嗕唬鐮�'],
+ HSupName: data[0]['渚涘簲鍟�'],
+ HSupMaterNumber: data[0]['渚涘簲鍟嗙墿鏂欑紪鐮�'],
+ HUnitID: data[0]['HUnitID'],
+ HPcsName: data[0]['璁¢噺鍗曚綅'],
+ HSupNameShort: data[0]['渚涘簲鍟嗙畝绉�'],
+ HMTONo: data[0]['璁″垝璺熻釜鍙�'].trim(),
+ HDate: data[0]['鏃ユ湡'],
+ HCoilNO: data[0]['娆惧彿'],
+ HFurnaceNO: data[0]['鍒嗙粍'],
+ HFactory: data[0]['瀹㈡埛缂栧彿'],
+ })
+
+ this.baseInfo.HBQty = Math.ceil(this.baseInfo.HQty / this.baseInfo.HMinQty)
+
+ this.listData = data
+ } else {
+ uni.showToast({
+ title: res.data.Message,
+ icon: 'none'
+ })
+ }
+ },
+ fail: (res) => {
+ console.log(res);
+ uni.showToast({
+ title: '鎺ュ彛璇锋眰澶辫触',
+ icon: 'none'
+ })
+ },
+ });
+ },
+ getNum(e) {
+ if (this.baseInfo.HMinQty && this.baseInfo.HMinQty > 0) {
+ var a = Number(this.baseInfo.HQty) / Number(this.baseInfo.HMinQty)
+ this.baseInfo.HBQty = Math.ceil(Number(this.baseInfo.HQty) / Number(this.baseInfo.HMinQty))
+ this.$forceUpdate()
+ } else {
+ uni.showToast({
+ title: '璇疯緭鍏ュぇ浜�0鐨勫悎鐞嗘暟閲�',
+ icon: "none"
+ })
+ }
+ },
+ getList() {
+ let HBarCodeNoStrs = []
+ var sMain = []
+ // sMain = this.baseInfo
+ // var sMainStr = JSON.stringify(sMain);
+ //鑾峰彇閫夋嫨鐨勭粍缁�
+ var HOrgType = uni.getStorageSync('Organization');
+ //鑾峰彇閫夋嫨鐨勫伐鍘備唬鐮�
+ var CampanyName = "xxx";
+ //鑾峰彇閫夋嫨鐨勬簮鍗曠被鍨�
+ var HSourceBillType = "鏀舵枡閫氱煡鍗�";
+ //鑾峰彇閫夋嫨鐨勬潯鐮佺被鍨�
+ var HSelectBarCodeType = "鍝佺鏉$爜";
+ //鑾峰彇褰撳墠鐧诲綍浜哄憳
+ var UserName = uni.getStorageSync('HUserName');
+ let listDataTemp = []
+ for (let receiveQty = this.baseInfo.HQty; receiveQty > 0; receiveQty -= this.baseInfo.HMinQty) {
+ let baseInfoClone = JSON.parse(JSON.stringify(this.baseInfo))
+ let barCodeNo = ''
+ if (receiveQty - this.baseInfo.HMinQty >= 0) {
+ listDataTemp.push(Object.assign(baseInfoClone, {
+ HQty: this.baseInfo.HMinQty,
+ HInterID: this.receiveQty,
+ }))
+ } else {
+ listDataTemp.push(Object.assign(baseInfoClone, {
+ HQty: receiveQty % this.baseInfo.HMinQty,
+ HInterID: this.receiveQty,
+ }))
+ }
+ barCodeNo =
+ `${baseInfoClone.HBillNo}@${baseInfoClone.HSubID}@${baseInfoClone.HMaterNumber || ''}@${baseInfoClone.HMTONo || ''}@${baseInfoClone.HQty || 0}`
+ listDataTemp[listDataTemp.length - 1]['HBarCodeNo'] = barCodeNo
+ HBarCodeNoStrs.push(
+ barCodeNo
+ )
+
+ }
+
+ this.listData = listDataTemp
+ HBarCodeNoStrs = JSON.stringify(HBarCodeNoStrs)
+ sMain = listDataTemp
+ let sMainStr = JSON.stringify(listDataTemp)
+ let sMainSub = sMainStr + ';' + HOrgType + ';' + HSourceBillType + ';' + HSelectBarCodeType + ';' +
+ CampanyName + ';' + UserName + ';' + HBarCodeNoStrs + ';' + this.baseInfo.HFactory + ';' + this
+ .baseInfo.HCoilNO + ';' + this.baseInfo.HFurnaceNO + '';
+ uni.showLoading()
+ uni.request({
+ url: this.serverUrl + '/Sc_BarCode/SaveBarCode_NoGenerate_Batch',
+ method: 'POST',
+ data: {
+ msg: sMainSub,
+ CampanyName: CampanyName
+ },
+ success: (res) => {
+ if (res.data.count == 1) {
+ this.codeGenComplete = true
+ console.log(this.listData)
+ uni.showToast({
+ title: res.data.Message,
+ icon: 'none'
+ })
+ } else {
+ uni.showToast({
+ title: res.data.Message,
+ icon: 'none'
+ })
+ }
+ },
+ fail: (res) => {
+ console.log(res);
+ uni.showToast({
+ title: '鎺ュ彛璇锋眰澶辫触',
+ icon: 'none'
+ })
+ },
+ complete() {
+ uni.hideLoading()
+ }
+ });
+ },
+ async checkPermission() { // 鎺堟潈
+ try {
+ let checkResult = await permission.androidPermissionCheck("bluetooth");
+ console.log("妫�娴嬩俊鎭細", checkResult);
+ if (checkResult.code == 1) {
+ let result = checkResult.data;
+ if (result == 1) {
+ console.log("鎺堟潈鎴愬姛!");
+ }
+ if (result == 0) {
+ console.log("鎺堟潈宸叉嫆缁�!");
+ }
+ if (result == -1) {
+ console.log("鎮ㄥ凡姘镐箙鎷掔粷鏉冮檺锛岃鍦ㄥ簲鐢ㄨ缃腑鎵嬪姩鎵撳紑!");
+ }
+ }
+ } catch (err) {
+ console.log("鎺堟潈澶辫触锛�", err);
+ }
+ },
+ async search() {
+ // #ifndef APP-PLUS
+ uni.showModal({
+ content: "涓嶆敮鎸佽摑鐗欐墦鍗板姛鑳斤紝璇峰垏鎹㈢Щ鍔ㄨ澶�...",
+ })
+ return
+ // #endif
+ if (this.$printer.isConnected() === false) {
+ this.$refs.labelPrinter.openPopup()
+ } else {
+ let printContent = []
+ let printInfoBuffer = []
+ let count = 0
+ uni.showLoading()
+ for (let listOne of this.listData) {
+ // let pcsInfo = this.baseInfo.HPcsName ? '(' + this.baseInfo.HPcsName + ')' : ''
+ // let HFurnaceNO = this.baseInfo.HFurnaceNO.split('.')
+ // printContent.push(`! 0 200 200 400 1
+ // PAGE-WIDTH 608
+ // SETQRVER 3
+ // B QR 475 15 Q 0 U 3
+ // LA,${listOne.HBarCodeNo}
+ // ENDQR
+ // T 24 0 0 30 渚涘簲鍟�: ${listOne.HSupNameShort}
+ // T 55 0 0 55 (Supplier)
+ // T 24 0 200 30 瀹㈡埛缂栧彿: ${listOne.HFactory || ''}
+ // T 55 0 200 55 (Consumer No.)
+ // T 24 0 0 75 鐗╂枡缂栫爜: ${listOne.HMaterNumber}
+ // T 55 0 0 100 (Material Number)
+ // T 24 0 0 120 鐗╂枡鍚嶇О: ${listOne.HMaterName}
+ // T 55 0 0 145 (Material Code)
+ // T 24 0 0 165 娆惧彿: ${listOne.HCoilNO || ''}
+ // T 55 0 0 190 (Style No.)
+ // T 24 0 300 165 渚涘簲鍟嗘枡鍙�: ${listOne.HSupMaterNumber}
+ // T 55 0 300 190 (Supplier Sku No.)
+ // T 24 0 0 210 鍒嗙粍: ${HFurnaceNO[1] || HFurnaceNO[0] || ''}
+ // T 55 0 0 235 (Group)
+ // T 24 0 300 210 瑙勬牸: ${listOne.HMaterModel}
+ // T 55 0 300 235 (SKU NO.)
+ // T 24 0 0 255 鏁伴噺: ${ parseFloat(listOne.HQty || 0).toFixed(0) } ${pcsInfo}
+ // T 55 0 0 280 (Quantity)
+ // T 24 0 300 255 鏃ユ湡: ${listOne.HDate || ''}
+ // T 55 0 300 280 (Date)
+ // T 24 0 0 300 妫�楠屽憳:
+ // L 80 325 250 325 3
+ // T 55 0 0 325 (QC)
+ // T 24 0 300 300 閲囪喘鍗曞彿: ${listOne.HInnerBillNo || ''}
+ // T 55 0 300 325 (Purchase Order No.)
+ // T 24 0 0 345 妫�楠岀粨鏋�:
+ // T 55 0 0 370 (Inspection status)
+ // BOX 240 345 260 365 4
+ // T 24 0 270 345 鍚堟牸
+ // T 55 0 250 370 (Pass)
+ // BOX 340 345 360 365 4
+ // T 24 0 370 345 涓嶅悎鏍�
+ // T 55 0 370 370 (Fail)
+ // BOX 460 345 480 365 4
+ // T 24 0 490 345 鐗归噰
+ // T 55 0 440 370 (Spec. accepted)
+ // FORM
+ // PRINT`)
+ let Message = await this.getPrintTemplate()
+ printContent.push(Message)
+ count++;
+ if (count == 10) {
+ printInfoBuffer.push(printContent.join("\r\n"))
+ count = 0
+ printContent = []
+ }
+ }
+ uni.hideLoading()
+ printInfoBuffer.push(printContent.join("\r\n"))
+ this.printInfo = JSON.stringify(printInfoBuffer)
+ printInfoBuffer = []
+
+ await this.$nextTick(() => {
+ this.$refs.labelPrinter.execPrint()
+ })
+ }
+ },
+ async getPrintTemplate() {
+ return new Promise((resolve, reject) => {
+ CommonUtils.doRequest2({
+ url: "/Sc_BarCode/Get_BarCodePrintCode_CPCL",
+ data: {
+ HOrginationName: uni.getStorageSync("Organization"),
+ HBillInterID: this.linterid,
+ HBillEntryID: this.HEntryID,
+ HViewName: 'h_v_IF_POInStockBillList',
+ HBillSubType: '1203'
+ },
+ resFunction: (res) => {
+ let {
+ Message,
+ count
+ } = res.data
+ if (count == 1) {
+ resolve(Message)
+ } else {
+ uni.showToast({
+ icon: 'none',
+ title: Message
+ })
+ reject();
+ }
+ },
+ errFunction: (err) => {
+ reject();
+ },
+
+ })
+ })
+ },
+ async searchLabelPrinter() {
+ // 鏌ユ壘鎵撳嵃鏈�
+ var that = this
+ // 浣跨敤openBluetoothAdapter 鎺ュ彛锛屽厤鍘讳富鍔ㄧ敵璇锋潈闄愮殑楹荤儲
+ uni.openBluetoothAdapter({
+ success: async (res) => {
+ await this.checkPermission();
+ console.log('start discovery devices');
+ this.discoveredDevices = [];
+ console.log(res)
+ bluetoothTool.discoveryNewDevice();
+ this.maskShow = true
+ },
+ fail: async (e) => {
+ console.error(e)
+ switch (e.code) {
+ case "10009":
+ this.showToast("姝よ澶囦笉鏀寔璁惧鎼滅储鍔熻兘!");
+ break;
+ default:
+ console.error(e);
+ }
+ }
+ })
+
+ },
+ onDevice(device) {
+ console.log("鐩戝惉瀵绘壘鍒版柊璁惧鐨勪簨浠�---------------")
+ console.log(device)
+ if (typeof device === 'undefined') return;
+ if (typeof device.name === 'undefined') return;
+ console.log(device.name);
+ if (device.name === '') return;
+ if (device.name === null) return;
+ if (device.name.toUpperCase().endsWith('_BLE') ||
+ device.name.toUpperCase().endsWith('-LE') ||
+ device.name.toUpperCase().endsWith('-BLE')) return;
+ const isDuplicate = this.discoveredDevices.find(item => item.address === device.address);
+ if (isDuplicate) return;
+ this.discoveredDevices.push(device);
+ },
+ connectBT(device) {
+ const vm = this;
+ uni.showLoading({
+ title: '杩炴帴涓�'
+ });
+ bluetoothTool.connDevice(device.address, (result) => {
+ console.log(result)
+ uni.hideLoading()
+ if (result) {
+ // // console.log(result);
+ bluetoothTool.cancelDiscovery();
+ // console.log(vm.$printer)
+ vm.$printer.init(new FakeConnectedDevice());
+ vm.connectedDeviceId = device.address;
+ uni.showToast({
+ icon: 'none',
+ title: '杩炴帴鎴愬姛'
+ })
+ this.maskShow = false
+ } else {
+ uni.showToast({
+ icon: 'none',
+ title: '杩炴帴澶辫触'
+ })
+ }
+ });
+ },
+ stopSearchBT() {
+ console.log("鍋滄鎼滃闄勮繎鐨勮摑鐗欏鍥磋澶�---------------")
+ bluetoothTool.cancelDiscovery();
+ },
+ closeBluetooth() {
+ console.log("鍋滄钃濈墮杩炴帴")
+ const vm = this;
+ if (vm.connectedDeviceId != '') {
+ bluetoothTool.closeBtSocket();
+ vm.connectedDeviceId = "";
+ }
+ },
+ async labelPrint(item) {
+ // 鎵撳嵃
+ this.printItem = item
+ if (this.$printer.isConnected() === false) {
+ this.$refs.labelPrinter.openPopup()
+ } else {
+ this.printInfo = `! 0 200 200 300 1
+ PAGE-WIDTH 608
+ SETQRVER 3
+ B QR 450 30 M 2 U 5
+ LA,` + this.printItem.鏉$爜缂栧彿 + `
+ ENDQR
+ T 24 0 24 40 瀹℃牳鏃ユ湡:` + this.baseInfo.SHdate + `
+ T 24 0 24 80 鐗╂枡缂栫爜:` + this.printItem.鐗╂枡浠g爜 + `
+ T 24 0 24 120 鐗╂枡鍚嶇О:` + this.printItem.鐗╂枡鍚嶇О + `
+ T 24 0 24 160 瑙勬牸鍨嬪彿:` + this.printItem.瑙勬牸鍨嬪彿 + `
+ T 24 0 24 200 鐗╂枡鏁伴噺:` + this.baseInfo.HQty + `
+ T 24 0 24 240 鏉$爜鏁伴噺:` + this.printItem.鏁伴噺 + `
+ FORM
+ PRINT`
+ await this.$nextTick(() => {
+ this.$refs.labelPrinter.execPrint()
+ })
+ }
+
+ // // 妫�鏌ヨ摑鐗欒繛鎺�
+ // let btStatus = bluetoothTool.getBluetoothStatus()
+ // if(btStatus != true) {
+ // this.showToast("钃濈墮杩炴帴寮傚父!")
+ // return
+ // }
+
+ // // 妫�鏌ユ槸鍚﹁繛鎺ヨ澶�
+ // let pairedDevices = bluetoothTool.getPairedDevices()
+ // if(pairedDevices.length < 1) {
+ // this.showToast("鏃犺澶囪繛鎺�!")
+ // return
+ // }
+
+ // // 妫�鏌ヨ〃鍗曢」鏄惁鏈夌┖鍊�
+ // for (var key in this.hform) {
+ // if (this.hform[key] == "") {
+ // // todo 鎻愮ず琛ㄥ崟椤逛笉鑳戒负绌�
+ // this.showToast("琛ㄥ崟涓嶈兘鏈夌┖鍊�!")
+ // return
+ // }
+ // }
+ // this.printWrite()
+ },
+ // showToast(msg, status = "none") {
+ // uni.showToast({
+ // title: msg,
+ // icon: status,
+ // duration: 2000
+ // });
+ // },
+ // ///杞垚瀹夊崜鏈夌鍙风殑
+ // uint8ArrayToSignedArray(uint8Array) {
+ // let signedArray = new Array(uint8Array.length);
+ // for (let i = 0; i < uint8Array.length; i++) {
+ // if (uint8Array[i] >= 128) {
+ // signedArray[i] = uint8Array[i] - 256;
+ // } else {
+ // signedArray[i] = uint8Array[i];
+ // }
+ // }
+ // return signedArray;
+ // },
+ // async printWrite(type = "cpcl") {
+ // const vm = this;
+ // console.log("寮�濮嬫墦鍗�------------------")
+ // switch (type) {
+ // case "cpcl":
+ // await vm.writeCpclModel();
+ // break;
+ // }
+ // },
+ // async writeCpclModel() {
+ // const vm = this;
+ // try {
+ // const cpcl = await vm.$printer.cpcl().clear()
+ // .page(new CPage({
+ // width: 608,
+ // height: 300
+ // }))
+ // .qrcode(new CQRCode({
+ // x: 450,
+ // y: 30,
+ // width: 5,
+ // content: vm.printItem.鏉$爜缂栧彿,
+ // codeRotation: CCodeRotation.ROTATION_0,
+ // level: CCorrectLevel.L
+ // }))
+ // .text(new CText({
+ // x: 24,
+ // y: 40,
+ // content: vm.baseInfo.SHdate?"瀹℃牳鏃ユ湡: " + vm.baseInfo.SHdate : "瀹℃牳鏃ユ湡: ",
+ // font: CFont.TSS24
+ // }))
+ // .text(new CText({
+ // x: 24,
+ // y: 80,
+ // content: "鐗╂枡缂栫爜: " + vm.printItem.鐗╂枡浠g爜,
+ // font: CFont.TSS24
+ // }))
+ // .text(new CText({
+ // x: 24,
+ // y: 120,
+ // content: "鐗╂枡鍚嶇О: " + vm.printItem.鐗╂枡鍚嶇О,
+ // font: CFont.TSS24
+ // }))
+ // .text(new CText({
+ // x: 24,
+ // y: 160,
+ // content: "瑙勬牸鍨嬪彿: " + vm.printItem.瑙勬牸鍨嬪彿,
+ // font: CFont.TSS24
+ // }))
+ // .text(new CText({
+ // x: 24,
+ // y: 200,
+ // content: "鐗╂枡鏁伴噺: " + vm.baseInfo.HQty,
+ // font: CFont.TSS24
+ // }))
+ // .text(new CText({
+ // x: 24,
+ // y: 240,
+ // content: "鏉$爜鏁伴噺: " + vm.printItem.鏁伴噺,
+ // font: CFont.TSS24
+ // }))
+
+ // .form(new CForm()) //鏍囩绾搁渶瑕佸姞瀹氫綅鎸囦护
+ // .print();
+ // console.log(cpcl.command().string());
+ // var binary = cpcl.command().binary();
+ // await this.sendMessage(Array.from(this.uint8ArrayToSignedArray(binary)));
+ // } catch (e) {
+ // console.error(e);
+ // uni.showToast({
+ // title: '澶辫触',
+ // });
+ // }
+ // },
+ // async sendMessage(cmd) {
+ // console.log(cmd);
+ // const result = bluetoothTool.sendByteData(cmd);
+ // uni.showToast({
+ // icon: 'none',
+ // title: result ? '鍙戦�佹垚鍔燂紒' : '鍙戦�佸け璐�...'
+ // })
+ // },
+ }
+ }
+</script>
+
+<style lang="scss" scoped>
+ .form {
+ width: 640rpx;
+ margin: 20rpx auto;
+ }
+
+ .form-item {
+ display: flex;
+ align-items: center;
+ font-size: 28rpx;
+ padding: 6rpx 0;
+
+ .title {
+ width: 180rpx;
+
+ text {
+ color: red;
+ font-weight: bold;
+ }
+ }
+
+ .right {
+ width: 450rpx;
+ border-radius: 22rpx;
+ border: 1px solid #acacac;
+ }
+
+ .righton {
+ width: 450rpx;
+ border-radius: 22rpx;
+ border: 1px solid #e4e4e4;
+ background-color: #e4e4e4;
+ }
+
+ input {
+ width: 100%;
+ padding: 8rpx 20rpx;
+ font-size: 30rpx;
+ }
+ }
+
+ .buttons {
+ width: 100%;
+ display: flex;
+ justify-content: center;
+ margin-top: 20rpx;
+
+ button {
+ border-radius: 50rpx;
+ width: 220rpx;
+ height: 66rpx;
+ line-height: 66rpx;
+ font-size: 28rpx;
+ }
+
+ .btn-a {
+ background-color: #acacac;
+ color: #fff;
+ }
+
+ .btn-b {
+ background-color: #41a863;
+ color: #fff;
+ }
+
+ .btn-c {
+ background-color: #3a78ff;
+ color: #fff;
+ }
+ }
+
+ .list {
+ width: 100%;
+
+ .card-detail {
+ width: 100%;
+ display: flex;
+ flex-wrap: wrap;
+ justify-content: space-between;
+ line-height: 120%;
+
+ .detail {
+ // width: 50%;
+ font-size: 26rpx;
+ margin-bottom: 12rpx;
+ color: #555;
+ margin-right: 20rpx;
+ word-break: break-all;
+
+ text {
+ color: #999;
+ font-size: 26rpx;
+
+ }
+ }
+ }
+
+ .more {
+ color: #888;
+ font-size: 24rpx;
+ display: flex;
+ border-top: 1px solid #eee;
+ padding-top: 20rpx;
+
+ .part {
+ width: 50%;
+ text-align: center;
+ }
+ }
+ }
+
+ .uni-mask {
+ position: fixed;
+ top: 0;
+ left: 0;
+ bottom: 0;
+ z-index: 9999;
+ display: flex;
+ align-items: center;
+ width: 100%;
+ background: rgba(0, 0, 0, 0.6);
+ padding: 0 30rpx;
+ box-sizing: border-box;
+ }
+
+ .uni-scroll_box {
+ height: 60%;
+ background: #fff;
+ border-radius: 20rpx;
+ }
+
+ .uni-list-box {
+ margin: 0 20rpx;
+ padding: 15rpx 0;
+ border-bottom: 1px #f5f5f5 solid;
+ box-sizing: border-box;
+ }
+
+ .uni-list:last-child {
+ border: none;
+ }
+
+ .uni-list_name {
+ font-size: 30rpx;
+ color: #333;
+ }
+
+ .uni-list_item {
+ font-size: 24rpx;
+ color: #555;
+ line-height: 1.5;
+ }
+
+ .operation-zone {
+ display: flex;
+ justify-content: space-around;
+ margin-top: 10rpx;
+
+ .op1 {
+ border: 1px solid #41a863;
+ color: #41a863;
+ }
+
+ .op4 {
+ border: 1px solid #da0000;
+ color: #da0000;
+ }
+
+ }
+</style>
\ No newline at end of file
--
Gitblit v1.9.1