Ver Fonte

bug 修复

lilei há 2 anos atrás
pai
commit
e702c7513b
3 ficheiros alterados com 12 adições e 15 exclusões
  1. 2 2
      main.js
  2. 9 9
      pages/common/partList.vue
  3. 1 4
      pages/shelfSetting/shelfSet.vue

+ 2 - 2
main.js

@@ -44,12 +44,12 @@ Vue.prototype.$hasPermissions = function (value) {
 /*
 * 提示信息
 */ 
-Vue.prototype.toashMsg = function (title) {
+Vue.prototype.toashMsg = function (title,duration) {
 	title = title == undefined ? "系统繁忙" : title;
 	uni.showToast({
 		title:title,
 		icon:'none',
-		duration: 4000
+		duration: duration||4000
 	})
 }
 Vue.prototype.showLoading = function (title) {

+ 9 - 9
pages/common/partList.vue

@@ -27,18 +27,18 @@
 								</view>
 								<view v-if="pageType=='replenishmentSign'||pageType=='manualPrint'||pageType=='scanCodePrint'">
 									{{item.billState == 'FINISH'?'签收数量':'补货数量'}}:
-									<text class="pnums">{{item.confirmQty||item.confirmQty==0?item.confirmQty:'--'}}{{item.product&&item.product.unit?item.product.unit:'--'}}</text>
+									<text class="pnums">{{item.qty||item.qty==0?item.qty:'--'}}{{item.product&&item.product.unit?item.product.unit:'--'}}</text>
 								</view>
 								<view v-if="pageType=='replenishmentOut'">
-								   补货数量<text class="pnums">{{item.confirmQty||item.confirmQty==0?item.confirmQty:'--'}}{{item.product&&item.product.unit?item.product.unit:'--'}}</text>
+								   补货数量<text class="pnums">{{item.qty||item.qty==0?item.qty:'--'}}{{item.product&&item.product.unit?item.product.unit:'--'}}</text>
 								</view>
 								<view v-if="pageType=='replenishmentDetail'">
-									补货<text class="pnums">{{item.confirmQty||item.confirmQty==0?item.confirmQty:'--'}}</text>/
+									补货<text class="pnums">{{item.qty||item.qty==0?item.qty:'--'}}</text>/
 									签收<text class="pnums">{{item.putQty||item.putQty==0?item.putQty:'--'}}</text>
 									({{item.product&&item.product.unit?item.product.unit:'--'}})
 								</view>
 								<view v-if="pageType=='sendOutGoods'">
-									补货<text class="pnums">{{item.confirmQty||item.confirmQty==0?item.confirmQty:'--'}}</text>
+									补货<text class="pnums">{{item.qty||item.qty==0?item.qty:'--'}}</text>
 									/已扫<text class="pnums">{{item.scanQty||item.scanQty==0?item.scanQty:'--'}}</text>
 									({{item.product&&item.product.unit?item.product.unit:'--'}})
 								</view>
@@ -131,21 +131,21 @@
 				this.pageType = this.fromPage
 				newValue.map(item => {
 					if(_this.pageType=='replenishmentSign'){  // 补货签收
-						this.totalNums = this.totalNums + item.confirmQty
+						this.totalNums = this.totalNums + item.qty
 					}else if(_this.pageType=='replenishmentOut'||_this.pageType=='sendOutGoods'){  // 补货出库
-						this.totalNums = this.totalNums + item.confirmQty
+						this.totalNums = this.totalNums + item.qty
 					}else if(_this.pageType=='manualPrint'){  // 补货-手动打印
-						this.totalNums = this.totalNums + item.confirmQty
+						this.totalNums = this.totalNums + item.qty
 						item.printQty = item.printQty ? item.printQty : 1
 					}else if(_this.pageType=='scanCodePrint'){  // 补货-扫码打印
-						this.totalNums = this.totalNums + item.confirmQty
+						this.totalNums = this.totalNums + item.qty
 						item.printQty = item.printQty ? item.printQty : 1
 					}else if(_this.pageType=='replenishmentDetail'){  // 补货详情-已完成
 						this.totalNums = this.totalNums + item.putQty
 					}else if(_this.pageType=='replenishmentDetailc'){  // 补货详情-已取消
 						this.totalNums = this.totalNums + item.qty
 					}else if(_this.pageType=='shuntBackDetail'){  // 调回详情-已完成
-						this.totalNums = this.totalNums + item.confirmQty
+						this.totalNums = this.totalNums + item.qty
 					}else{
 						this.totalNums = this.totalNums + item.qty
 					}

+ 1 - 4
pages/shelfSetting/shelfSet.vue

@@ -301,10 +301,7 @@
 				}
 				shelfSave(params).then(res => {
 					 if (res.status == 200) {
-					  uni.showToast({
-						icon: 'none',
-						title: res.message
-					  })
+					  this.toashMsg(res.message)
 					  this.getShelfDetal()
 					 }
 				})