瀏覽代碼

修改bug

liujun 2 年之前
父節點
當前提交
111aba0d6f
共有 3 個文件被更改,包括 6 次插入4 次删除
  1. 4 3
      pages/sales/bill.vue
  2. 1 0
      pages/sales/chooseCustomerBill.vue
  3. 1 1
      pages/sales/customerList.vue

+ 4 - 3
pages/sales/bill.vue

@@ -221,7 +221,7 @@ export default {
 		
 		// 获取选择客户
 		if (options && options.data) {
-			this.customerObj = JSON.parse(options.data);
+			this.customerObj = JSON.parse(decodeURIComponent(options.data));
 			this.params.targetSn = this.customerObj.customerSn;
 		}
 		uni.$on('customerInfo', res => {
@@ -452,6 +452,7 @@ export default {
 			this.submitLoading = false;
 			let verifyId = Date.now()+this.nanoid();
 			this.verifyIdNum = verifyId
+			let settlement=this.chooseTotalPayPrice - this.backDiscountVal
 			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') {
 				uni.share({
@@ -460,7 +461,7 @@ export default {
 					type: 0,
 					href: url,
 					title: this.customerObj.customerName,
-					summary: '共' + this.settlement + '元,请您查阅',
+					summary: '共' + settlement + '元,请您查阅',
 					imageUrl: '../../static/logo.png',
 					success: (res)=> {
 						this.setBillOrder();
@@ -472,7 +473,7 @@ export default {
 				});
 			} else {
 				uni.shareWithSystem({
-					summary: this.customerObj.customerName + '您好,您有一个对账单共' + this.settlement + '元,请您查阅',
+					summary: this.customerObj.customerName + '您好,您有一个对账单共' + settlement + '元,请您查阅',
 					href: url,
 					success:()=> {
 						this.setBillOrder();

+ 1 - 0
pages/sales/chooseCustomerBill.vue

@@ -53,6 +53,7 @@
 		<!-- 收款方式弹窗 -->
 		<search :showModal="gatherShow" @refresh="refreshList" @close="gatherShow=false"/>
 	</view>
+	
 </template>
 
 <script>

+ 1 - 1
pages/sales/customerList.vue

@@ -113,7 +113,7 @@ export default {
 				uni.navigateBack();
 			}else{
 				uni.navigateTo({
-					url: '/pages/sales/bill?data=' + JSON.stringify(data.customer)
+					url: '/pages/sales/bill?data=' + encodeURIComponent(JSON.stringify(data.customer))
 				})
 			}
 		}