Browse Source

花材显示问题

shish 5 years ago
parent
commit
646d2b8427

+ 2 - 2
ghsApp/src/admin/item/list.vue

@@ -82,12 +82,12 @@ export default {
 	onShow(){
 	onShow(){
 		this.shopId = this.getMyShopInfo.id;
 		this.shopId = this.getMyShopInfo.id;
 		let type = '';
 		let type = '';
-		this.initData({ type, shopId: this.shopId });
+		this.initData({ type, shopId: this.shopId,delStatus:2 });
 	},
 	},
 	onLoad() {
 	onLoad() {
 		this.shopId = this.getMyShopInfo.id;
 		this.shopId = this.getMyShopInfo.id;
 		let type = '';
 		let type = '';
-		this.initData({ type, shopId: this.shopId });
+		this.initData({ type, shopId: this.shopId,delStatus:2 });
 	},
 	},
 
 
 	methods: {
 	methods: {

+ 16 - 4
ghsApp/src/pagesPurchase/add.vue

@@ -129,7 +129,7 @@ import CommodityPurchase from "./components/CommodityPurchase";
 import ModalModule from "@/components/plugin/modal";
 import ModalModule from "@/components/plugin/modal";
 import FooterCart from "@/components/module/app-footer-cart";
 import FooterCart from "@/components/module/app-footer-cart";
 import productMins from "@/mixins/product";
 import productMins from "@/mixins/product";
-
+import { mapGetters } from "vuex";
 // import allMoreSelectInput from "@/components/module/allMoreSelectInput";
 // import allMoreSelectInput from "@/components/module/allMoreSelectInput";
 // import allMoreSelectInputMins from "@/mixins/allMoreSelectInput";
 // import allMoreSelectInputMins from "@/mixins/allMoreSelectInput";
 
 
@@ -165,10 +165,23 @@ export default {
 				itemPrice: null,
 				itemPrice: null,
 				weight:null,
 				weight:null,
 				realityWeight:null,
 				realityWeight:null,
-			}
+			},
+			autoLoad: false, //不自动请求数据  自定义请求
 		};
 		};
 	},
 	},
-	onLoad() {},
+	computed:{
+		...mapGetters(["getMyShopInfo","getLoginInfo"]),
+	},
+	onShow(){
+		this.shopId = this.getMyShopInfo.id;
+		let type = '';
+		this.initData({ type, shopId: this.shopId,delStatus:2 });
+	},
+	onLoad() {
+		this.shopId = this.getMyShopInfo.id;
+		let type = '';
+		this.initData({ type, shopId: this.shopId,delStatus:2 });
+	},
 	methods: {
 	methods: {
 		// 计算重量
 		// 计算重量
 		countWeight(){
 		countWeight(){
@@ -305,7 +318,6 @@ export default {
 				this.customData.smallCount = Math.floor(num % ratioNum);
 				this.customData.smallCount = Math.floor(num % ratioNum);
 			}
 			}
 		},
 		},
-
 		scrollTop() {}
 		scrollTop() {}
 	}
 	}
 };
 };

+ 18 - 7
ghsApp/src/pagesStorehouse/inventory/select.vue

@@ -131,6 +131,7 @@ import ModalModule from "@/components/plugin/modal";
 import productMins from "@/mixins/product";
 import productMins from "@/mixins/product";
 import allMoreSelectInput from "@/components/module/allMoreSelectInput";
 import allMoreSelectInput from "@/components/module/allMoreSelectInput";
 import allMoreSelectInputMins from "@/mixins/allMoreSelectInput";
 import allMoreSelectInputMins from "@/mixins/allMoreSelectInput";
+import { mapGetters } from "vuex";
 export default {
 export default {
 	name: "allotEx", // 开单
 	name: "allotEx", // 开单
 	components: {
 	components: {
@@ -167,17 +168,29 @@ export default {
 				bigCount: 0,
 				bigCount: 0,
 				smallCount: 0
 				smallCount: 0
 			},
 			},
-			showSubmitModel: false
+			showSubmitModel: false,
+			autoLoad: false, //不自动请求数据  自定义请求
 		};
 		};
 	},
 	},
 	computed: {
 	computed: {
 		confirmContent() {
 		confirmContent() {
 			let content = "确认下一步?";
 			let content = "确认下一步?";
-
 			return content;
 			return content;
 		}
 		}
 	},
 	},
-
+	computed:{
+		...mapGetters(["getMyShopInfo","getLoginInfo"]),
+	},
+	onShow(){
+		this.shopId = this.getMyShopInfo.id;
+		let type = '';
+		this.initData({ type, shopId: this.shopId,delStatus:2 });
+	},
+	onLoad() {
+		this.shopId = this.getMyShopInfo.id;
+		let type = '';
+		this.initData({ type, shopId: this.shopId,delStatus:2 });
+	},
 	methods: {
 	methods: {
 		//自定义数量
 		//自定义数量
 		customNum(info) {
 		customNum(info) {
@@ -191,7 +204,6 @@ export default {
 				this.isFocus = true;
 				this.isFocus = true;
 			})
 			})
 
 
-
 			// this.$nextTick(()=>{
 			// this.$nextTick(()=>{
 			// 	this.initAllInput();
 			// 	this.initAllInput();
 			// })
 			// })
@@ -199,7 +211,8 @@ export default {
 		modalCancel() {
 		modalCancel() {
 			this.isModel = false;
 			this.isModel = false;
 			this.customData = {};
 			this.customData = {};
-		}, // 取消 确认
+		},
+		// 取消 确认
 		affirm(val) {
 		affirm(val) {
 			this.isFocus = false;
 			this.isFocus = false;
 			this.isFocusOne = false;
 			this.isFocusOne = false;
@@ -223,9 +236,7 @@ export default {
 				}
 				}
 				this.updateItemEvent(this.customData);
 				this.updateItemEvent(this.customData);
 				this.modalCancel();
 				this.modalCancel();
-				
 			})
 			})
-
 		},
 		},
 		cancelEvent() {
 		cancelEvent() {
 			this.showSubmitModel = false;
 			this.showSubmitModel = false;

+ 2 - 2
ghsApp/src/pagesStorehouse/stockWarn/manage.vue

@@ -131,7 +131,7 @@ export default {
 		if(type=="waring"){
 		if(type=="waring"){
 			this.initDataContrapose({ type, shopId: this.shopId });
 			this.initDataContrapose({ type, shopId: this.shopId });
 		}else{
 		}else{
-			this.initData({ type, shopId: this.shopId });
+			this.initData({ type, shopId: this.shopId,delStatus:2});
 		}
 		}
 
 
 	},
 	},
@@ -158,7 +158,7 @@ export default {
 					uni.hideLoading();
 					uni.hideLoading();
 					// this.initDataContrapose({ type, shopId: this.shopId });
 					// this.initDataContrapose({ type, shopId: this.shopId });
 				}else{
 				}else{
-					this.initData({ type, shopId: this.shopId });
+					this.initData({ type, shopId: this.shopId,delStatus:2 });
 				}
 				}
 			}
 			}
 		},
 		},