lilei %!s(int64=2) %!d(string=hai) anos
pai
achega
f8b276cc06
Modificáronse 1 ficheiros con 5 adicións e 5 borrados
  1. 5 5
      pages/stock/index.vue

+ 5 - 5
pages/stock/index.vue

@@ -29,7 +29,7 @@
 					<u-input type="number" :min="0" :max="999999" v-model.trim="form.maxUnsalableDays" placeholder="截止天数" input-align="right" />
 				</u-form-item>
 				<u-form-item label="只查看有库存"><u-switch slot="right" v-model="form.zeroQtyFlag"></u-switch></u-form-item>
-				<u-form-item label="包括禁用产品"><u-switch slot="right" v-model="form.productEnabledFlag"></u-switch></u-form-item>
+				<u-form-item label="包括禁用产品"><u-switch slot="right" v-model="form.enableFlag"></u-switch></u-form-item>
 			</u-form>
 			<view class="form-footer-btn">
 				<u-button size="medium" shape="circle" hover-class="none" @click="handleClean">清空</u-button>
@@ -61,7 +61,7 @@
 					productTypeSn2: undefined, //  产品分类2
 					productTypeSn3: undefined, //  产品分类3
 					zeroQtyFlag: false ,//  库存情况
-					productEnabledFlag: true, // 显示禁用产品
+					enableFlag: true, // 显示禁用产品
 					minUnsalableDays: undefined, // 滞销天数最小值
 					maxUnsalableDays: undefined // 滞销天数最大值
 				},
@@ -90,7 +90,7 @@
 			}
 		},
 		watch: {
-		  'form.productEnabledFlag' (newValue, oldValue) {
+		  'form.enableFlag' (newValue, oldValue) {
 		    uni.setStorageSync('productEnabledFlag-' + this.$store.state.vuex_userData.orgId, newValue)
 		  },
 		},
@@ -98,7 +98,7 @@
 			// 是否默认包括禁用产品
 			const a = uni.getStorageSync('productEnabledFlag-' + this.$store.state.vuex_userData.orgId)
 			console.log(typeof a == 'boolean')
-			this.form.productEnabledFlag = typeof a == 'boolean' ? a : true
+			this.form.enableFlag = typeof a == 'boolean' ? a : true
 			this.getTotal()
 		},
 		methods: {
@@ -165,7 +165,7 @@
 				if (this.checkValueRange()) {
 					let params = JSON.parse(JSON.stringify(this.form))
 					params.zeroQtyFlag = params.zeroQtyFlag ? '0' : ''
-					params.productEnabledFlag = params.productEnabledFlag ? '' : '1'
+					params.enableFlag = params.enableFlag ? '' : '1'
 					uni.navigateTo({ url: "/pages/stock/stockSearch?data="+JSON.stringify(params) })
 				}
 			},