chenrui 2 éve
szülő
commit
e602a18780

+ 4 - 4
pages/shuntBackManage/addBackOrder.vue

@@ -219,7 +219,7 @@ export default {
 				this.recallBillList.map(item=>{
 				this.recallBillList.map(item=>{
 					item.isChecked = true;
 					item.isChecked = true;
 				})
 				})
-				this.chooseArr = this.chooseArr.concat(this.recallBillList);
+				this.chooseArr = this.recallBillList
 			 }else{
 			 }else{
 				 this.recallBillList.map(item=>{
 				 this.recallBillList.map(item=>{
 				 	item.isChecked = false;
 				 	item.isChecked = false;
@@ -387,18 +387,18 @@ export default {
 			  detailList: arr
 			  detailList: arr
 			}
 			}
 			insert(params).then(res => {
 			insert(params).then(res => {
-				uni.hideLoading()
+				
 				if (res.status == 200) {
 				if (res.status == 200) {
 					uni.showToast({
 					uni.showToast({
 						title:res.message
 						title:res.message
 					})
 					})
 					setTimeout(()=>{
 					setTimeout(()=>{
 						uni.navigateTo({
 						uni.navigateTo({
-							url:'/pages/shuntBackManage/cancellingStocks?sn='+res.data.sn
+							url:'/pages/shuntBackManage/cancellingStocks?sn='+res.data
 						})
 						})
 					},800)
 					},800)
 				}
 				}
-				
+				uni.hideLoading()
 			});
 			});
 		},
 		},
 		// 校验滞销天数数值范围
 		// 校验滞销天数数值范围

+ 2 - 2
pages/shuntBackManage/cancellingStocks.vue

@@ -147,9 +147,9 @@
 			},
 			},
 			// 确认退库 confirm
 			// 确认退库 confirm
 			modalConfirm(){
 			modalConfirm(){
-				// const result =this.$refs.partList.getAllChecked()
+				const result =this.$refs.partList.getAllData()
 				const arr = []
 				const arr = []
-				this.partList.map((item, index) => {
+				result.map((item, index) => {
 					if (item.confirmQty || item.confirmQty == 0) {
 					if (item.confirmQty || item.confirmQty == 0) {
 						arr.push({
 						arr.push({
 							productSn: item.productSn,
 							productSn: item.productSn,

+ 3 - 1
pages/shuntBackManage/detail.vue

@@ -133,7 +133,9 @@
 				   uni.showToast({
 				   uni.showToast({
 				   	title:res.message
 				   	title:res.message
 				   })
 				   })
-				   this.refundModal = false
+				  setTimeout(()=>{
+					   this.refundModal = false
+				  },800)
 				  }else{
 				  }else{
 					 uni.showToast({
 					 uni.showToast({
 					 	title:res.message,
 					 	title:res.message,