Browse Source

修改bug

liujun 2 years ago
parent
commit
7800676d2e
3 changed files with 7 additions and 9 deletions
  1. 5 7
      pages/sales/bill.vue
  2. 1 1
      pages/sales/billListComponent.vue
  3. 1 1
      pages/sales/chooseCustomerBill.vue

+ 5 - 7
pages/sales/bill.vue

@@ -195,7 +195,8 @@ export default {
 			verifySn:'',
 			verifySn:'',
 			backDiscountPrice:null,
 			backDiscountPrice:null,
 			backDiscountVal: 0,
 			backDiscountVal: 0,
-			cycleNameShow:''
+			cycleNameShow:'',
+			verifyIdNum:''
 		};
 		};
 	},
 	},
 	onReady() {
 	onReady() {
@@ -434,12 +435,8 @@ export default {
 			} else {
 			} else {
 				if (row.checked) {
 				if (row.checked) {
 					this.chooseList.push(row);
 					this.chooseList.push(row);
+					this.backDiscountVal = 0
 				}
 				}
-			}
-			if(this.settlement *1 <0){
-				this.backDiscountVal = 0
-			}else{
-				this.backDiscountVal = this.discountVal
 			}
 			}
 			 this.backDiscountPrice = this.settlement
 			 this.backDiscountPrice = this.settlement
 			 
 			 
@@ -454,6 +451,7 @@ export default {
 		handleShare() {
 		handleShare() {
 			this.submitLoading = false;
 			this.submitLoading = false;
 			let verifyId = Date.now()+this.nanoid();
 			let verifyId = Date.now()+this.nanoid();
+			this.verifyIdNum = verifyId
 			let url = 'http://p.iscm.360arrow.com/dzd/index.html?userSn=' + this.userData.orgSn + '&verifySn='+verifyId + '&name='+this.userData.orgName;
 			let url = 'http://p.iscm.360arrow.com/dzd/index.html?userSn=' + this.userData.orgSn + '&verifySn='+verifyId + '&name='+this.userData.orgName;
 			if (uni.getSystemInfoSync().platform == 'ios') {
 			if (uni.getSystemInfoSync().platform == 'ios') {
 				uni.share({
 				uni.share({
@@ -494,7 +492,7 @@ export default {
 				discountAmount: this.backDiscountVal || 0,
 				discountAmount: this.backDiscountVal || 0,
 				settleAmount: this.chooseTotalPayPrice - this.backDiscountVal ,
 				settleAmount: this.chooseTotalPayPrice - this.backDiscountVal ,
 				detailList: this.chooseList,
 				detailList: this.chooseList,
-				verifySn:Date.now()+this.nanoid()
+				verifySn:this.verifyIdNum
 			};
 			};
 			let ajaxData = Object.assign(this.params, obj);
 			let ajaxData = Object.assign(this.params, obj);
 			insert(ajaxData).then(res => {
 			insert(ajaxData).then(res => {

+ 1 - 1
pages/sales/billListComponent.vue

@@ -9,7 +9,7 @@
 						<view v-if="item.bizStatusDictValue">{{item.bizStatusDictValue}}</view>
 						<view v-if="item.bizStatusDictValue">{{item.bizStatusDictValue}}</view>
 						<view v-if="item.bizSourceTypeDictValue && item.bizSourceTypeDictValue!='自建'">{{item.bizSourceTypeDictValue}}</view>
 						<view v-if="item.bizSourceTypeDictValue && item.bizSourceTypeDictValue!='自建'">{{item.bizSourceTypeDictValue}}</view>
 					</view>
 					</view>
-					<view class="billOrder" v-if="item.distributionFlag && item.distributionFlag == 1">{{item.bizNo}}</view>
+					<view class="billOrder" v-if="item.distributionFlag && item.distributionFlag == 0">{{item.bizNo}}</view>
 				</view>
 				</view>
 				<view class="rigth_b u-flex u-row-between">
 				<view class="rigth_b u-flex u-row-between">
 					<view>应收:¥{{toThousands(item.bizAmount||0,2)}}</view>
 					<view>应收:¥{{toThousands(item.bizAmount||0,2)}}</view>

+ 1 - 1
pages/sales/chooseCustomerBill.vue

@@ -162,7 +162,7 @@ export default {
 				this.clearTime();
 				this.clearTime();
 				this.$refs.customer.getList(1);
 				this.$refs.customer.getList(1);
 			}else{
 			}else{
-				this.momentTime(0)
+				this.momentTime(this.chooseNum)
 				this.keyword = ''
 				this.keyword = ''
 				this.params.customer.queryWord = ''
 				this.params.customer.queryWord = ''
 			}
 			}