Browse Source

app蓝牙打印

shish 4 years ago
parent
commit
282a505541

+ 1 - 1
ghsApp/src/admin/billing/affirm.vue

@@ -382,7 +382,7 @@ export default {
           if(this.form.hasPay == 0){
             this.$util.pageTo({ url: '/admin/billing/toPay',type:2,query: {orderId:id,orderSn:orderSn,actPrice:actPrice}})
           }else{
-            this.$util.pageTo({ url: '/admin/billing/result',type:2,query: {orderId:id,orderSn:orderSn}})
+            this.$util.pageTo({ url: '/admin/billing/result',type:2,query: {orderId:id,orderSn:orderSn,title:'开单成功'}})
           }
         }
       })

+ 29 - 1
ghsApp/src/admin/billing/result.vue

@@ -6,7 +6,7 @@
 </template>
 <script>
 import appResult from "@/components/app-result";
-import { getDetail} from "@/api/order/index";
+import { getDetail,getPayVoice} from "@/api/order/index";
 import BLE from "@/mixins/BLE";
 export default {
   name: "BillingResult",
@@ -34,6 +34,34 @@ export default {
     },
     async init() {
       if (this.option.title != "报损成功") {
+
+          // #ifdef APP-PLUS
+          //商米收银台
+          //if(plus.device.vendor == 'SUNMI'){
+            // getPayVoice({id:this.option.orderId}).then(res=>{
+            //     let url = res.data.url
+            //     //没有库存声音提醒
+            //     const innerAudioContext = uni.createInnerAudioContext();
+            //     innerAudioContext.autoplay = true;
+            //     innerAudioContext.src = url;
+            //     innerAudioContext.volume = 0.5
+            //     innerAudioContext.onPlay(() => {
+            //       //console.log('开始播放');
+            //     });
+            //     innerAudioContext.onError((res) => {
+            //       //console.log(res.errMsg);
+            //       //console.log(res.errCode);
+            //     });
+            //     innerAudioContext.onPause(function() {
+            //       //console.log('end');
+            //       innerAudioContext.destroy();
+            //     })
+
+            //   })
+          //}
+          // #endif
+
+
         const res = await getDetail({
           id: this.option.orderId,
         });

+ 5 - 1
ghsApp/src/admin/billing/toPay.vue

@@ -18,7 +18,8 @@
           <view class="balance">请出示付款码</view>
           <view class="call-one-btn">
               <button class="button-com default" @click="checkResult()">查询支付结果</button>
-              <view class="mobile-scan" @click="mobileScan()">手机扫码</view>
+              <!-- <view class="mobile-scan" @click="mobileScan()">手机扫码</view> -->
+              <!-- <view class="mobile-scan" @click="handPay()">手动</view> -->
           </view>
         </block>
       </view>
@@ -76,6 +77,9 @@ export default {
           that.requestCodePay(code)
         }
       })
+    },
+    handPay(){
+      this.requestCodePay('123')
     }
   },
 };

+ 4 - 0
ghsApp/src/admin/home/me.vue

@@ -72,6 +72,10 @@
               <div class="tui-title">充值记录</div>
             </tui-list-cell>
 
+            <tui-list-cell @click="pageTo({ url: '/admin/tools/blue' })" class="line-cell" :hover="false" :arrow="true">
+              <div class="tui-title">蓝牙管理</div>
+            </tui-list-cell>
+
             <tui-list-cell @click="pageTo({ url: '/admin/book/index' })" class="line-cell" :hover="false" :arrow="true">
               <div class="tui-title">使用手册</div>
             </tui-list-cell>

+ 10 - 1
ghsApp/src/admin/item/components/ItemStock.vue

@@ -21,6 +21,7 @@
 	<text class="bottom-button" @click.stop="goToOrderDetail(info.id)">销售记录</text>
 	<text class="bottom-button" @click.stop="goToStockDetail(info.id)">库存明细</text>
 	<text class="bottom-button" @click.stop="goToProduct(info.id)">分享</text>
+	<text class="bottom-button" @click.stop="moreToDo(info)">更多</text>
 </view>
 </template>
 <script>
@@ -48,6 +49,14 @@ export default {
 		};
 	},
 	methods: {
+		moreToDo(item){
+			// #ifdef MP-WEIXIN
+			this.$msg('请在app上操作')
+			// #endif
+			// #ifdef APP-PLUS
+			this.$emit('moreToDo', item)
+			// #endif
+		},
 		goToOrderDetail(id){
 			this.$util.pageTo({url: "/admin/order/itemOrder?id="+id})
 		},
@@ -83,7 +92,7 @@ export default {
 	font-size:22upx;
 	border-radius: 20upx;
 	padding:6upx 22upx 6upx 22upx;
-	margin:0 26upx 0 0;
+	margin:0 15upx 0 0;
 	float:right;
 	color:#aaa9a9;
 }

+ 80 - 1
ghsApp/src/admin/item/list.vue

@@ -27,7 +27,7 @@
 						<view class="item_list_title" v-if="!$util.isEmpty(classItem.child)"> {{ classItem.className }}</view>
 						<template v-for="(productItem, productIndex) in classItem.child">
 							<view style="height:240upx" :id="`class_${classIndex}`" :key="productIndex">
-								<ItemStock v-if="classItem.isActive" :isPrice="false" :info="productItem" @goToProduct="goToProduct" ></ItemStock>
+								<ItemStock v-if="classItem.isActive" :isPrice="false" :info="productItem" @goToProduct="goToProduct" @moreToDo="moreToDo" ></ItemStock>
 							</view>
 						</template>
 					</view>
@@ -55,6 +55,9 @@ import { mapGetters } from "vuex";
 import DorpdownSelect from "@/components/module/shopSelect";
 import { getWeixinId } from "@/api/invite/index";
 import { generatePriceTable,generateBarcodeTable } from '@/api/product/index'
+// #ifdef APP-PLUS
+const plug= uni.requireNativePlugin('Html5app-Gprinter')
+// #endif
 export default {
 	name: "item_list",
 	components: {
@@ -90,6 +93,82 @@ export default {
 
 	},
 	methods: {
+		// #ifdef APP-PLUS
+		moreToDo(item){
+			//查询是否已经连接蓝牙
+			let _this=this;
+
+			plug.state({},ret=>{
+				if(ret.code == 1){
+
+
+				uni.showModal({
+					title: '提示',
+					content: '您还没有连接蓝牙,请先链接',
+					success: function (res) {
+						if (res.confirm) {
+							_this.pageTo({url:'/admin/tools/blue'})
+						}
+					}
+				})
+
+				}else{
+					let doList = ['打印标签', '打印标签2个', '打印标签5个','打印标签10个','打印标签20个']
+					let doNum = [1,2,5,10,20]
+					uni.showActionSheet({
+						itemList: doList,
+						success: function (respond) {
+							let index = respond.tapIndex
+							let currentNum = Number(doNum[index])
+							console.log(currentNum)
+							for (let i = 0; i < currentNum; i++) {
+								plug.printer({"TSC":_this.OrderLable(item.name,item.id)},ret=>{
+									uni.showToast({ title: JSON.stringify(ret), duration: 5000 })
+								})
+							}
+						}
+					})
+				}
+			})
+		},
+		// #endif
+		OrderLable(itemName,itemId){
+			
+			//制作标签格式, 
+			var data=[];  //定义一个数组
+			var line={};  //每添加一个,代表一行字
+			
+			//设置标签纸大小
+			line={};
+			line.width=30; //mm
+			line.height=20; //mm
+			line.gap=2; //标签纸之间,间隙长度 mm
+			line.page=1; //打印几份
+			data.push(line); //每添加一个,代表一行字
+
+				//添加文字
+			line={};
+			line.text= itemName;
+			line.rotation=0;
+			line.x=35;
+			line.y=20;
+			line.xscal=1;
+			line.yscal=1;
+			data.push(line); //每添加一个,代表一行字
+
+			//添加条型码
+			line={};
+			line.barcode=itemId;
+			line.x=35;
+			line.y=55;
+			line.type="CODE128";
+			line.height=50;
+			line.readable=true;
+			line.rotation=0;
+			data.push(line);
+
+			return data;
+		},
 		downPriceTable(){
 			// #ifdef MP-WEIXIN
 			let isWindows = false

+ 437 - 0
ghsApp/src/admin/tools/blue.vue

@@ -0,0 +1,437 @@
+<template>
+	<view class="content">
+		<view>
+			<button @click="openDefault" >连接蓝牙</button>
+			<!-- <button @click="open" >打开自定义蓝牙搜索页面</button>
+			<button @click="connectIP" >端口ip连接打印机</button>
+			<button @click="connectUSB" >USB 连接打印机</button> -->
+			<!-- <button @click="printer" >打印小票</button> -->
+			<button @click="printerLable" >打印样签</button>	
+			<!-- <button @click="writePDFToTsc" >标签打印PDF</button>
+			<button @click="writePDFToEsc" >小票打印PDF</button>
+			<button @click="writeTSC" >tsc指令打印</button> -->
+			<button @click="state" >打印机状态</button>		
+			<button @click="dis" >断开打印机</button>
+			<text>{{tip}}</text>
+		</view>
+	</view>
+</template>
+
+
+<script>
+
+	const plug= uni.requireNativePlugin('Html5app-Gprinter');
+	export default {
+		data() {
+			return {
+				tip: ''
+			}
+		},
+		onLoad() {
+
+		},
+		methods: {
+			openDefault()
+			{
+				//蓝牙连接打印机
+				const _this=this;
+				plug.BluetoothPort({setBackgroundColor:"#2088d2"},result=>{
+					
+					_this.tip=JSON.stringify(result);
+					
+				});
+				
+			},
+			open(){
+				
+				uni.navigateTo({
+					"url":"./Bluetooth"
+				});
+				
+			},
+			connectIP()
+			{
+				//端口网络连接
+				let _this=this;
+				plug.connectIP({},ret=>{	
+					
+					_this.tip=JSON.stringify(ret);
+					console.log(_this.tip);
+					
+					
+				});
+				
+			},
+			connectUSB()
+			{
+				//USB网络连接
+				let _this=this;
+				plug.connectUSB({setBackgroundColor:"#2088d2"},ret=>{	
+					
+					_this.tip=JSON.stringify(ret);
+					console.log(_this.tip);
+	
+				});
+				
+			},
+			state(){
+				
+				//查询打印机状态
+				let _this=this;
+				plug.state({},ret=>{
+					
+					_this.tip=JSON.stringify(ret);
+					console.log(_this.tip);
+					
+				});
+				
+			},
+			dis()
+			{
+				//断开打印机
+				let _this=this;
+				plug.disconnect({},ret=>{	
+					_this.tip=JSON.stringify(ret);
+				});
+				
+			},
+			printer(){
+				//打印机小票
+				const _this=this;
+				
+				console.log(JSON.stringify(_this.setDate()));
+				
+				plug.printer({"ESC":_this.setDate()},ret=>{
+					
+					_this.tip=JSON.stringify(ret);
+					console.log(_this.tip);
+				});
+				
+			},
+			printerLable(){
+				//打印标签
+				const _this=this;
+				plug.printer({"TSC":_this.OrderLable('粉红雪山','11054')},ret=>{
+					_this.tip=JSON.stringify(ret);
+				})
+			},
+			writePDFToTsc()
+			{
+				//打印pdf 档标签文件
+				let filePath=plus.io.convertLocalFileSystemURL("static/pdfFile.pdf");
+				plug.writePDFToTsc({filePath:filePath,width:400},ret=>{
+				
+				});
+				
+			},
+			writePDFToEsc()
+			{
+				//打印pdf 档小票文件
+				let filePath=plus.io.convertLocalFileSystemURL("static/pdfFile.pdf");
+				plug.writePDFToEsc({filePath:filePath,width:400},ret=>{
+				
+				});
+				
+			},
+			writeTSC()
+			{
+				//打印图片和文字
+			  	let image=plus.io.convertLocalFileSystemURL("static/gprinter.png");
+				
+				//图片指令,BITMAP x,y,宽度,图片路径 ,四个参数组成
+				
+			  	const _this=this;
+			  	let str="SIZE 40 mm,15 mm \n";
+			  	    str+="GAP 2 mm,0 mm \n";
+			  		str+"SET RESPONSE NO \n";
+			  		str+="CLS \n";
+			  		str+="TEXT 50,50,\"3\",0,1,1,\"DEMO FOR TEXT\" \n";
+			  		str+="BITMAP 20,20,100,"+image+" \n";
+			  		str+=" PRINT 1 \n";
+			  	
+			  	plug.writeTSC({"tsc":str},function(e){
+			  		
+			  		 console.log(JSON.stringify(e));
+			  		 _this.tip=JSON.stringify(e);
+			  	});
+				
+			},
+			setDate()
+			{
+				//打印小票
+				const _this=this;
+				
+				//制作小票格式, 
+				var data=[];  //定义一个数组
+				var line={};  //每添加一个,代表一行字
+				
+				var filePath=plus.io.convertLocalFileSystemURL("static/gprinter.png");
+				//加入logo图片
+				var Path=filePath; 
+				line.image=Path;
+				line.width="350";
+				line.center="center";
+				line.bottom="1";
+				data.push(line);
+				
+				line={};
+				line.text="万达广场欢迎您";
+				line.center="center";
+				line.font="max";
+				line.bottom="3";
+				data.push(line); //每添加一个,代表一行字
+	
+				line={};
+				line.text="收银员:00056";
+				line.center="left";
+				line.font="bold";
+				line.bottom="2";
+				data.push(line);
+				
+				line={};  
+				line.text="单号:00256933";
+				line.center="left";
+				line.font="normal";
+				line.bottom="2";
+				data.push(line);
+				
+				line={};  
+				line.text="业务日期:2019-05-30 18:15:25";
+				line.center="left";
+				line.font="normal";
+				line.bottom="1";
+				data.push(line);
+				
+				line={};
+				line.text="------------------------------";
+				line.center="left";
+				line.font="normal";
+				line.bottom="1";
+				data.push(line);
+				
+				//商品列表,示例
+				for(let i=0;i<4;i++)
+				{
+				               
+				line={};
+				line.text="商品名称:小黑瓶眼霜";
+				line.center="left";
+				line.font="normal";
+				line.bottom="1";
+				data.push(line);
+				
+				line={};
+				line.title=["数量:1","单价:305","金额:305"];
+				line.left=[0,30,60];
+				line.center="left";
+				line.font="normal";
+				line.bottom="2";
+				data.push(line);
+									
+				}
+				
+				line={}; //清空一下
+				
+				line.text="------------------------------";
+				line.center="left";
+				line.font="normal";
+				line.bottom="2";
+				data.push(line);
+				
+				line={};
+				line.text="数量:4 ,金额:¥1220.00";
+				line.center="left";
+				line.font="bold";
+				line.bottom="1";
+				data.push(line);
+				
+				line={};
+				line.text="实收金额:¥1220.00";
+				line.center="left";
+				line.font="bold";
+				line.bottom="2";
+				data.push(line);
+				
+				line={};
+				line.text="活动期间满500送100";
+				line.center="left";
+				line.font="normal";
+				line.bottom="1";
+				data.push(line);
+				line={};
+				line.text="折让金额500";
+				line.center="left";
+				line.font="normal";
+				line.bottom="1";
+				data.push(line);
+				line={};
+				line.text="折后金额2029";
+				line.center="left";
+				line.font="normal";
+				line.bottom="3";
+				data.push(line);
+				
+				line={};
+				line.text="30天内可凭小票换开发票";
+				line.center="left";
+				line.font="normal";
+				line.bottom="2";
+				data.push(line);
+				line={};
+				line.text="活动商品,不退不换";
+				line.center="left";
+				line.font="normal";
+				line.bottom="2";
+				data.push(line);
+				
+				//加入条型码
+				line={};
+				line.barcode="2019563352660";
+				line.type="CODE128";
+				line.height="100";
+				line.position="BELOW";
+				line.width="2";
+				line.center="center";
+				line.bottom="2";
+				data.push(line);
+				
+				
+				 //加入二维码
+				line={};
+				line.qrcode="d68242b5e540aa7f21173c2d65b2c5ad";
+				line.size="10";
+				line.center="center";
+				line.bottom="0";
+				line.errorlevel="L";
+				
+				
+				data.push(line);
+				
+				// line={};
+				// //加入图片
+				// line.image="http://www.html5-app.com/uploads/file/20190307/20190307172436572807.png";
+				// line.width="150";
+				// line.center="center";
+				// line.bottom="3";
+				// data.push(line);
+				
+				console.log("printdata:"+JSON.stringify(data));
+				
+				return data;
+				
+			},
+			OrderLable(itemName,itemId){
+				
+				//制作标签格式, 
+				var data=[];  //定义一个数组
+				var line={};  //每添加一个,代表一行字
+				
+				//设置标签纸大小
+				line={};
+				line.width=30; //mm
+				line.height=20; //mm
+				line.gap=2; //标签纸之间,间隙长度 mm
+				line.page=1; //打印几份
+				data.push(line); //每添加一个,代表一行字
+
+					//添加文字
+				line={};
+				line.text= itemName;
+				line.rotation=0;
+				line.x=35;
+				line.y=20;
+				line.xscal=1;
+				line.yscal=1;
+				data.push(line); //每添加一个,代表一行字
+
+				//添加条型码
+				line={};
+				line.barcode=itemId;
+				line.x=35;
+				line.y=55;
+				line.type="CODE128";
+				line.height=50;
+				line.readable=true;
+				line.rotation=0;
+				data.push(line);
+
+				return data;
+			},
+			Lable(){
+				
+				//制作标签格式, 
+				var data=[];  //定义一个数组
+				var line={};  //每添加一个,代表一行字
+				
+				//设置标签纸大小
+				line={};
+				line.width=40; //mm
+				line.height=30; //mm
+				line.gap=3; //标签纸之间,间隙长度 mm
+				line.page=1; //打印几份
+				data.push(line); //每添加一个,代表一行字
+
+				//添加图片
+				line={};
+				line.image="http://www.html5-app.com/gprinter.png";
+				line.x=30;
+				line.y=20;
+				line.width=70;
+				data.push(line);
+				
+				
+					//添加文字
+				line={};
+				line.text="HTML5+混合APP开发社区";
+				line.rotation=0;
+				line.x=30;
+				line.y=90;
+				line.xscal=1;
+				line.yscal=1;
+				data.push(line); //每添加一个,代表一行字
+				
+				//添加条型码
+				line={};
+				line.barcode="2019563352660";
+				line.x=30;
+				line.y=130;
+				line.type="CODE128";
+				line.height=50;
+				line.readable=true;
+				line.rotation=0;
+				data.push(line);
+				
+				 //加入二维码
+				line={};
+				line.qrcode="1234566";	
+				line.x=190;
+				line.y=20;
+				line.width=3
+				line.rotation=0;
+				data.push(line);
+				
+				//添加黑块
+				line={};
+				line.addBar={x:25,y:2,width:300,height:3};
+				data.push(line);
+				
+				//添加方框
+				line={};
+				line.addBox={x:25,y:15,xend:300,yend:120,thickness:2};
+				data.push(line);
+				
+				return data;
+			}
+			
+
+		}
+	}
+</script>
+
+<style>
+	.content {
+		margin: 10px;
+		margin-top:30px;
+	}
+	button{ margin-bottom: 25px;}
+</style>

+ 4 - 1
ghsApp/src/api/order/index.js

@@ -190,4 +190,7 @@ export const cancel = data => https.get("/order/cancel", data);
 export const codePay = data => https.get("/order/code-pay", data);
 
 //微信和支付宝付款码支付复查
-export const codePayCheck = data => https.get("/order/code-pay-check", data);
+export const codePayCheck = data => https.get("/order/code-pay-check", data);
+
+//收款语音播报
+export const getPayVoice = data => https.get("/order/get-pay-voice", data);

+ 14 - 0
ghsApp/src/manifest.json

@@ -96,6 +96,20 @@
                     "pid" : "3514",
                     "parameters" : {}
                 }
+            },
+            "Html5app-Gprinter" : {
+                "__plugin_info__" : {
+                    "name" : "Android 和 IOS 佳博 蓝牙小票 标签 打印插件 - [试用版,仅用于自定义调试基座]",
+                    "description" : "Android / IOS 佳博小票 、标签 打印机插件,QQ交流群:891416757",
+                    "platforms" : "Android,iOS",
+                    "url" : "https://ext.dcloud.net.cn/plugin?id=462",
+                    "android_package_name" : "",
+                    "ios_bundle_id" : "",
+                    "isCloud" : true,
+                    "bought" : 0,
+                    "pid" : "462",
+                    "parameters" : {}
+                }
             }
         }
     },

+ 1 - 1
ghsApp/src/mixins/globalMixins.js

@@ -152,7 +152,7 @@ export default {
           let that = this
 
           //商米D1s收银台
-          if(plus.device.vendor == 'SUNMI' && plus.device.model == 'D1s'){
+          if(plus.device.vendor == 'SUNMI'){
             //https://ext.dcloud.net.cn/plugin?id=3514
             //初始化
             shangMiPrint.init()

+ 20 - 92
ghsApp/src/pages.json

@@ -14,6 +14,12 @@
 		{"path": "common/pageSuccess","style": {"navigationBarBackgroundColor": "#ffffff","navigationBarTextStyle": "black"}}
 	],
 	"subPackages": [
+		{
+			"root": "admin/tools",
+			"pages": [
+				{"path": "blue","style": {"navigationBarTitleText": "蓝牙管理"}}
+			]
+		},
 		{
 			"root": "admin/ptItem",
 			"pages": [
@@ -224,113 +230,35 @@
 		{
 			"root": "pagesStorehouse/inventory/",
 			"pages": [
-				{
-					"path": "list",
-					"style": {
-						"navigationBarTitleText": "盘点",
-						"enablePullDownRefresh": true
-					}
-				},
-				{
-					"path": "details",
-					"style": {
-						"navigationBarTitleText": "盘点详情"
-					}
-				},
-				{
-					"path": "update",
-					"style": {
-						"navigationBarTitleText": "新增"
-					}
-				},
-				{
-					"path": "select",
-					"style": {
-						"navigationBarTitleText": "盘点花材"
-					}
-				}
+				{ "path": "list", "style": { "navigationBarTitleText": "盘点", "enablePullDownRefresh": true } },
+				{ "path": "details", "style": { "navigationBarTitleText": "盘点详情" } },
+				{ "path": "update", "style": { "navigationBarTitleText": "新增" } },
+				{ "path": "select", "style": { "navigationBarTitleText": "盘点花材" } }
 			]
 		},
 		{
 			"root": "pagesStorehouse/allot/",
 			"pages": [
-				{
-					"path": "exDetails",
-					"style": {
-						"navigationBarTitleText": "出库详情"
-					}
-				},
-				{
-					"path": "addExDetails",
-					"style": {
-						"navigationBarTitleText": "新增"
-					}
-				},
-				{
-					"path": "allotEx",
-					"style": {
-						"navigationBarTitleText": "调拨出库",
-						"enablePullDownRefresh": true
-					}
-				},
-				{
-					"path": "exSelect",
-					"style": {
-						"navigationBarTitleText": "选择商品",
-						"enablePullDownRefresh": true
-					}
-				},
-				{
-					"path": "putDetails",
-					"style": {
-						"navigationBarTitleText": "入库详情"
-					}
-				},
-				{
-					"path": "allotPut",
-					"style": {
-						"navigationBarTitleText": "调拨入库",
-						"enablePullDownRefresh": true
-					}
-				}
+				{ "path": "exDetails", "style": { "navigationBarTitleText": "出库详情" } },
+				{ "path": "addExDetails", "style": { "navigationBarTitleText": "新增" } },
+				{ "path": "allotEx", "style": { "navigationBarTitleText": "调拨出库", "enablePullDownRefresh": true } },
+				{ "path": "exSelect", "style": { "navigationBarTitleText": "选择商品", "enablePullDownRefresh": true } },
+				{ "path": "putDetails", "style": { "navigationBarTitleText": "入库详情" } },
+				{ "path": "allotPut", "style": { "navigationBarTitleText": "调拨入库", "enablePullDownRefresh": true } }
 			]
 		},
 		{
 			"root": "pagesStorehouse/flower/",
 			"pages": [
-				{
-					"path": "category",
-					"style": {
-						"navigationBarTitleText": "花材管理",
-						"enablePullDownRefresh": true
-					}
-				},
-				{
-					"path": "manage",
-					"style": {
-						"navigationBarTitleText": "花材",
-						"enablePullDownRefresh": true
-					}
-				}
+				{ "path": "category", "style": { "navigationBarTitleText": "花材管理", "enablePullDownRefresh": true } },
+				{ "path": "manage", "style": { "navigationBarTitleText": "花材", "enablePullDownRefresh": true } }
 			]
 		},
 		{
 			"root": "pagesStorehouse/stockWarn/",
 			"pages": [
-				{
-					"path": "manage",
-					"style": {
-						"navigationBarTitleText": "库存预警",
-						"enablePullDownRefresh": true
-					}
-				},
-				{
-					"path": "detailed",
-					"style": {
-						"navigationBarTitleText": "库存明细",
-						"enablePullDownRefresh": true
-					}
-				}
+				{ "path": "manage", "style": { "navigationBarTitleText": "库存预警", "enablePullDownRefresh": true } },
+				{ "path": "detailed", "style": { "navigationBarTitleText": "库存明细", "enablePullDownRefresh": true } }
 			]
 		},
 		{