lilei 2 gadi atpakaļ
vecāks
revīzija
0dbab98597

+ 1 - 1
pages/morePage/morePage.vue

@@ -54,7 +54,7 @@
 				</u-cell-item>
 			</u-cell-group>
 			<u-cell-group :border="false">
-				<u-cell-item title="价格显示设置" v-if="$hasPermissions('M_roleSetting_mini')" @click="toPage('/pages/storeManage/priceSetting/priceSetting')" :title-style="{fontSize:'1em'}">
+				<u-cell-item title="价格显示设置" v-if="$hasPermissions('M_priceShow_mini')" @click="toPage('/pages/storeManage/priceSetting/priceSetting')" :title-style="{fontSize:'1em'}">
 					<text slot="icon"></text>
 				</u-cell-item>
 			</u-cell-group>

+ 1 - 1
pages/queryByCode/confirmQh.vue

@@ -32,7 +32,7 @@
 			}
 		},
 		onLoad(options) {
-			 this.nowData = JSON.parse(decodeURIComponent(options.data));
+			 this.nowData = this.$store.state.vuex_tempData
 		},
 		methods: {
 			onSubmit(){

+ 6 - 3
pages/queryByCode/queryByCode.vue

@@ -77,9 +77,13 @@
 			//取货
 			toEdit(item){
 				if(item.currentInven){
-					const params = {shelfSn: this.shelfSn, billSource: 'product_code', productSn: item.productSn}
+					const params = {
+						shelfSn: this.shelfSn, 
+						billSource: 'product_code'
+					}
+					this.$store.state.vuex_tempData = Object.assign(params, item)
 					uni.navigateTo({
-						url: '/pages/queryByCode/confirmQh?data='+ encodeURIComponent(JSON.stringify(params))
+						url: '/pages/queryByCode/confirmQh'
 					})
 				}else{
 					uni.showToast({
@@ -93,7 +97,6 @@
 				this.queryWord = ''
 				this.pageNo = 1
 				this.partList = []
-				this.getpartList()
 			},
 			change(v){
 				if(v==''){

+ 2 - 1
store/index.js

@@ -59,7 +59,8 @@ const store = new Vuex.Store({
 		vuex_nowRoleInfo: null, // 角色
 		vuex_vinScanNums:null, // 扫描次数
 		vuex_scanMaxNums: 10, // 最大扫描次数
-		vuex_storeAuthInfo: null // 门店认证状态信息
+		vuex_storeAuthInfo: null ,// 门店认证状态信息
+		vuex_tempData: null, // 临时数据
     },
 	getters:{
 		getOpeid(state){