Kaynağa Gözat

库存预警

shish 3 yıl önce
ebeveyn
işleme
06e7f9c473

+ 1 - 1
ghsApp/src/admin/home/apply.vue

@@ -87,7 +87,7 @@ export default {
                     list:[
                     list:[
                         {name: "调拨出库",img: `${this.$constant.imgUrl}/ghs/home/dbck.png`,url: "/pagesStorehouse/allot/allotEx"},
                         {name: "调拨出库",img: `${this.$constant.imgUrl}/ghs/home/dbck.png`,url: "/pagesStorehouse/allot/allotEx"},
                         {name: "调拨入库",img: `${this.$constant.imgUrl}/ghs/home/dbrk.png`,url: "/pagesStorehouse/allot/allotPut"},
                         {name: "调拨入库",img: `${this.$constant.imgUrl}/ghs/home/dbrk.png`,url: "/pagesStorehouse/allot/allotPut"},
-                        {name: "库存预警",img: `${this.$constant.imgUrl}/ghs/home/kcyjs.png`,url: "/pagesStorehouse/stockWarn/manage"},
+                        {name: "库存预警",img: `${this.$constant.imgUrl}/ghs/home/kcyjs.png`,url: "/admin/item/list?warning=1"},
                         {name: "盘点",img: `${this.$constant.imgUrl}/ghs/home/pandian.png`,url: "/pagesStorehouse/inventory/list"},
                         {name: "盘点",img: `${this.$constant.imgUrl}/ghs/home/pandian.png`,url: "/pagesStorehouse/inventory/list"},
                         {name: "报损单",img: `${this.$constant.imgUrl}/ghs/home/kcyjs.png`,url: "/admin/breakage/list"}
                         {name: "报损单",img: `${this.$constant.imgUrl}/ghs/home/kcyjs.png`,url: "/admin/breakage/list"}
                     ]
                     ]

+ 1 - 1
ghsApp/src/admin/home/workbench.vue

@@ -182,7 +182,7 @@ export default {
 				{name : "结账记录", img : "ghs/home/kcyjs.png", url : "/admin/clear/customList"},
 				{name : "结账记录", img : "ghs/home/kcyjs.png", url : "/admin/clear/customList"},
 				{name : "支出", img : "ghs/home/kcyjs.png", url : "/admin/expend/list"},
 				{name : "支出", img : "ghs/home/kcyjs.png", url : "/admin/expend/list"},
 				{name : "盘点", img : "/ghs/home/pandian.png", url : "/pagesStorehouse/inventory/list"},
 				{name : "盘点", img : "/ghs/home/pandian.png", url : "/pagesStorehouse/inventory/list"},
-				{name : "库存预警", img : "/ghs/home/kcyjs.png", url : "/pagesStorehouse/stockWarn/manage"},
+				{name : "库存预警", img : "/ghs/home/kcyjs.png", url : "/admin/item/list?warning=1"},
 			],
 			],
 			skSrc: `${this.$constant.imgUrl}/ghs/home/kj.png`,
 			skSrc: `${this.$constant.imgUrl}/ghs/home/kj.png`,
 			pfSrc: `${this.$constant.imgUrl}/ghs/home/pf.jpg`,
 			pfSrc: `${this.$constant.imgUrl}/ghs/home/pf.jpg`,

+ 6 - 21
ghsApp/src/admin/item/list.vue

@@ -107,7 +107,8 @@ export default {
 			printLabelShow:false,
 			printLabelShow:false,
 			printNum:'',
 			printNum:'',
 			printFocus:false,
 			printFocus:false,
-			showClassRemind:false
+			showClassRemind:false,
+			warning:0
 		};
 		};
 	},
 	},
 	computed:{
 	computed:{
@@ -122,7 +123,10 @@ export default {
 		if(this.option.delStatus){
 		if(this.option.delStatus){
 			this.delStatus = this.option.delStatus
 			this.delStatus = this.option.delStatus
 		}
 		}
-		this.initData({ type, shopId: this.shopId,status:this.status,delStatus:this.delStatus})
+		if(this.option.warning){
+			this.warning = this.option.warning
+		}
+		this.initData({ type, shopId: this.shopId,status:this.status,delStatus:this.delStatus,warning:this.warning})
 
 
 		let that = this
 		let that = this
 		getWeixinId().then(res => {
 		getWeixinId().then(res => {
@@ -291,30 +295,11 @@ export default {
 			} else {
 			} else {
 			}
 			}
 		},
 		},
-		change(e) {
-			if (this.tabIndex == e.index) {
-				return false;
-			} else {
-				uni.showLoading({
-					title: "加载中"
-				});
-				this.tabIndex = e.index;
-				let type = "";
-				this.initData({ type, shopId: this.shopId,delStatus:this.delStatus })
-			}
-		},
 		scrollTop() {},
 		scrollTop() {},
 		initProductInfo() {
 		initProductInfo() {
 			this.globalClassItemListContrapose = [];
 			this.globalClassItemListContrapose = [];
 			this.page = 1;
 			this.page = 1;
 			this.isMore = true;
 			this.isMore = true;
-		},
-		selectSussess(val) {
-			uni.showLoading({ title: "加载中" })
-			this.initProductInfo();
-			let type = "";
-			this.shopId = val.selectItem.id;
-			this.initData({ type, shopId: this.shopId,delStatus:this.delStatus })
 		}
 		}
 	}
 	}
 };
 };