Explorar o código

Merge branch 'redesign‌-260706' of git.huaml.com:zhh/front-end into redesign‌-260706

shizhongqi hai 5 días
pai
achega
d04da179a5

+ 17 - 7
ghsApp/src/admin/home/components/OrderItem.vue

@@ -191,10 +191,10 @@
           <text class="print-log-sn-label">打印机编号</text>
           <text class="print-log-sn-value">{{ printLogData.printSn || '-' }}</text>
         </view>
-        <view class="print-log-head">打印时间 / 打印订单ID</view>
+        <view class="print-log-head">打印时间 / 打印ID</view>
         <view class="print-log-list" v-if="printLogData.list && printLogData.list.length">
           <view class="print-log-item" v-for="(log, idx) in printLogData.list" :key="log.feieOrderId + '_' + idx">
-            <view class="print-log-time">{{ log.printTimeText || '等待回调' }}</view>
+            <view class="print-log-time">{{ log.printTimeText || '待打印' }}</view>
             <view class="print-log-order-id">{{ log.feieOrderId }}</view>
           </view>
         </view>
@@ -218,7 +218,7 @@
         />
         <view class="remark-popup-actions">
           <button class="admin-button-com default remark-popup-btn" @click="closeRemarkPopup">取消</button>
-          <button class="admin-button-com bule remark-popup-btn" @click="confirmRemarkModify">确定</button>
+          <button class="admin-button-com blue remark-popup-btn" @click="confirmRemarkModify">确定</button>
         </view>
       </view>
     </uni-popup>
@@ -830,6 +830,9 @@ export default {
     width: 210upx;
     height: 80upx;
     line-height: 80upx;
+    padding: 0;
+    box-sizing: border-box;
+    text-align: center;
     font-size: 29upx;
   }
   .text-center:last-child .admin-button-com {
@@ -856,13 +859,13 @@ export default {
 }
 
 .print-log-sn-label {
-  font-size: 30upx;
+  font-size: 36upx;
   color: #333;
   flex-shrink: 0;
 }
 
 .print-log-sn-value {
-  font-size: 34upx;
+  font-size: 36upx;
   color: #333;
   font-weight: bold;
   margin-left: 16upx;
@@ -870,7 +873,7 @@ export default {
 
 .print-log-head {
   color: #3385ff;
-  font-size: 33upx;
+  font-size: 36upx;
   margin-bottom: 20upx;
 }
 
@@ -892,7 +895,7 @@ export default {
 
 .print-log-order-id {
   color: #2e7d32;
-  font-size: 28upx;
+  font-size: 29upx;
   word-break: break-all;
 }
 
@@ -909,6 +912,9 @@ export default {
     width: 210upx;
     height: 80upx;
     line-height: 80upx;
+    padding: 0;
+    box-sizing: border-box;
+    text-align: center;
     font-size: 29upx;
   }
 }
@@ -946,11 +952,15 @@ export default {
   margin-top: 30upx;
 }
 
+/* 覆盖 admin-button-com 的 padding/line-height:1,保证文字垂直居中 */
 .remark-popup-btn {
   width: 45%;
   height: 80upx;
   line-height: 80upx;
   margin: 0;
+  padding: 0;
+  box-sizing: border-box;
+  text-align: center;
 }
 
 .express-popup-body,

+ 16 - 6
ghsApp/src/admin/home/order.vue

@@ -29,11 +29,11 @@
         <view v-if="customId != 0" class="search-clear-overlay" @click.stop="clearSearch">清空</view>
       </view>
       <view class="filter-btn-wrap">
-        <button class="admin-button-com big filter-btn" @click="openFilterPanel">筛选</button>
+        <button class="admin-button-com filter-btn" @click="openFilterPanel">筛选</button>
         <view v-if="hasActiveFilters" class="filter-dot"></view>
       </view>
-      <view>
-        <button class="admin-button-com big" style="width: 120upx; margin-left:16upx;margin-top:10upx;" @click="getMore()">更多</button>
+      <view class="more-btn-wrap">
+        <button class="admin-button-com more-btn" @click="getMore()">更多</button>
       </view>
     </view>
     <view class="app-tabs">
@@ -795,13 +795,23 @@ page {
   border: 1upx solid #3385FF;
   background-color: rgba(255, 255, 255, 0.9);
 }
-.filter-btn-wrap {
+.filter-btn-wrap,
+.more-btn-wrap {
   position: relative;
   margin-left: 16upx;
-  margin-top: 10upx;
+  flex-shrink: 0;
 }
-.filter-btn {
+/* 与搜索框输入区同高 80upx,去掉 big 的上下 padding,文字水平垂直居中 */
+.filter-btn,
+.more-btn {
   width: 120upx;
+  height: 80upx;
+  line-height: 80upx;
+  padding: 0;
+  margin: 0;
+  box-sizing: border-box;
+  text-align: center;
+  font-size: 28upx;
 }
 .filter-dot {
   position: absolute;

+ 2 - 2
ghsApp/src/manifest.json

@@ -2,8 +2,8 @@
     "name" : "销花宝",
     "appid" : "__UNI__BD781B0",
     "description" : "鲜花批发销售管理系统",
-    "versionName" : "1.3.15",
-    "versionCode" : 1315,
+    "versionName" : "1.3.19",
+    "versionCode" : 1319,
     "transformPx" : true,
     /* 5+App特有相关 */
     "app-plus" : {

+ 9 - 6
ghsApp/src/pagesOrder/detail.vue

@@ -645,10 +645,10 @@
 					<text class="print-log-sn-label">打印机编号</text>
 					<text class="print-log-sn-value">{{ printLogData.printSn || '-' }}</text>
 				</view>
-				<view class="print-log-head">打印时间 / 打印订单ID</view>
+				<view class="print-log-head">打印时间 / 打印ID</view>
 				<view class="print-log-list" v-if="printLogData.list && printLogData.list.length">
 					<view class="print-log-item" v-for="(log, idx) in printLogData.list" :key="log.feieOrderId + '_' + idx">
-						<view class="print-log-time">{{ log.printTimeText || '等待回调' }}</view>
+						<view class="print-log-time">{{ log.printTimeText || '待打印'}}</view>
 						<view class="print-log-order-id">{{ log.feieOrderId }}</view>
 					</view>
 				</view>
@@ -2537,13 +2537,13 @@ export default {
 }
 
 .print-log-sn-label {
-	font-size: 30upx;
+	font-size: 36upx;
 	color: #333;
 	flex-shrink: 0;
 }
 
 .print-log-sn-value {
-	font-size: 34upx;
+	font-size: 36upx;
 	color: #333;
 	font-weight: bold;
 	margin-left: 16upx;
@@ -2551,7 +2551,7 @@ export default {
 
 .print-log-head {
 	color: #3385ff;
-	font-size: 33upx;
+	font-size: 36upx;
 	margin-bottom: 20upx;
 }
 
@@ -2573,7 +2573,7 @@ export default {
 
 .print-log-order-id {
 	color: #2e7d32;
-	font-size: 28upx;
+	font-size: 29upx;
 	word-break: break-all;
 }
 
@@ -2592,6 +2592,9 @@ export default {
 		width: 210upx;
 		height: 80upx;
 		line-height: 80upx;
+		padding: 0;
+		box-sizing: border-box;
+		text-align: center;
 		font-size: 29upx;
 	}
 }

+ 1 - 1
hdApp/src/admin/billing/affirmDn.vue

@@ -1112,7 +1112,7 @@ export default {
 			}
 		},
 		gobackEvent() {
-			this.$util.pageTo({url: "/pagesPurchase/ghsProduct?id="+this.options.id,type: 2})
+			this.$util.pageTo({url: "/pagesPurchase/ghsProduct?id="+this.options.id+'&ghsId='+this.options.id,type: 2})
 		}
 	}
 };

+ 1 - 1
hdApp/src/admin/billing/affirmGhs.vue

@@ -1230,7 +1230,7 @@ export default {
 			}
 		},
 		gobackEvent() {
-			this.$util.pageTo({url: "/pagesPurchase/ghsProduct?id="+this.options.id,type: 2})
+			this.$util.pageTo({url: "/pagesPurchase/ghsProduct?id="+this.options.id+'&ghsId='+this.options.id,type: 2})
 		}
 	}
 };

+ 145 - 61
hdApp/src/admin/billing/affirmSh.vue

@@ -101,12 +101,13 @@
 							</view>
 						</tui-list-cell>
 
-						<!-- 未达标提示:加运费/加包装费/不能下单 -->
-						<tui-list-cell class="line-cell" :hover="false" :arrow="false" v-if="showShMethodUnMeetWarning">
-							<view>
-								<text style="color: red;width:100%;font-weight: bold;font-size: 30upx;text-decoration: underline;">{{ shMethodUnMeetWarningText }}</text>
+						<!-- 未达标提示:还差扎数/金额,引导加购或说明加收费用 -->
+						<view class="unmeet-warning" v-if="showShMethodUnMeetWarning">
+							<view class="unmeet-warning-inner">
+								<text class="unmeet-warning-badge">!</text>
+								<text class="unmeet-warning-text">{{ shMethodUnMeetWarningText }}</text>
 							</view>
-						</tui-list-cell>
+						</view>
 
 						<!-- 配送地址状态提示 -->
 						<tui-list-cell v-if="form.sendType == 2 && ghsInfo.openIntraCity != 1" class="line-cell" :hover="false" :arrow="false">
@@ -168,14 +169,22 @@
 							<view>
 								<text :class="isFreePt ? 'delivery-price-free' : 'delivery-price-normal'">¥{{ form.sendCost }}</text>
 								<text v-if="isFreePt" class="free-delivery-tag">¥0</text>
-								<!-- 展示最接近的免运费差额提示;右侧问号提示可点击查看全部条件 -->
-								<view v-if="!isFreePt" class="delivery-policy-link" @click="showDeliveryPolicyModal">
-									<text>{{ nearestDeliveryPolicyText }}</text>
-									<text class="policy-icon">?</text>
-								</view>
 							</view>
 						</tui-list-cell>
 
+						<!-- 免跑腿费差额提示:单独成条,点击可看全部条件 -->
+						<view
+							v-if="form.sendType == 2 && !isFreePt && showDeliveryPolicy"
+							class="free-pt-tip"
+							@click="showDeliveryPolicyModal"
+						>
+							<view class="free-pt-tip-inner">
+								<text class="free-pt-tip-badge">惠</text>
+								<text class="free-pt-tip-text">{{ nearestDeliveryPolicyText }}</text>
+								<text class="free-pt-tip-action">?</text>
+							</view>
+						</view>
+
 						<!-- 额外费用(包装费/运费) -->
 						<tui-list-cell class="line-cell" :hover="false" v-if="showShMethodExtraFee">
 							<view class="tui-title">{{ shMethodExtraFeeLabel }}</view>
@@ -447,31 +456,25 @@ export default {
 			const method = this.currentShMethod
 			return parseFloat(Number(method && method.unMeetFee) || 0)
 		},
-		/** 未达标红色文案:加运费/包装费金额,或不能下单 */
+		/**
+		 * 未达标红色文案:用「还差」差额引导加购,比写绝对门槛更易懂
+		 * 例:还差2扎50元,免10元包装费 / 还差2扎,即可下单
+		 */
 		shMethodUnMeetWarningText() {
 			const method = this.currentShMethod
 			if (!method) {
 				return ""
 			}
-			const tips = []
-			const minAmount = Number(method.minAmount) || 0
-			const minNum = Number(method.minNum) || 0
-			if (minAmount > 0) {
-				tips.push("未满" + minAmount + "元")
-			}
-			if (minNum > 0) {
-				tips.push("未满" + minNum + "扎")
-			}
-			const conditionText = tips.length > 0 ? tips.join("并且") : "未达最低消费"
+			const lackText = this.buildShMethodLackTip(method)
 			const unMeet = Number(method.unMeet) || 0
-			// unMeet=2:未满最低消费时引导加购,文案避免生硬的「不能下单」
+			// unMeet=2:凑齐差额即可下单
 			if (unMeet === 2) {
-				return conditionText + ",请再加购后下单"
+				return lackText + ",即可下单"
 			}
-			// unMeet=0 加运费;unMeet=1 加包装费,并写出具体金额
+			// unMeet=0/1:凑齐后可免掉这笔运费/包装费
 			const fee = parseFloat(Number(method.unMeetFee) || 0)
 			const feeLabel = unMeet === 1 ? "包装费" : "运费"
-			return conditionText + ",加" + feeLabel + fee + "元"
+			return lackText + ",免" + fee + "元" + feeLabel
 		},
 		currentMethodExplains() {
 			const method = this.currentShMethod
@@ -641,6 +644,30 @@ export default {
 			const bigLength = Number(this.allCountFun.bigLength) || 0
 			return (minAmount > 0 && allPrice < minAmount) || (minNum > 0 && bigLength < minNum)
 		},
+		/**
+		 * 相对配送方式最低消费,拼出「还差x扎x元」文案(只写仍未达到的维度)
+		 * @param {Object} method - 当前配送方式
+		 * @returns {string}
+		 */
+		buildShMethodLackTip(method) {
+			const minAmount = Number(method && method.minAmount) || 0
+			const minNum = Number(method && method.minNum) || 0
+			const count = Number(this.allCountFun.bigLength) || 0
+			const price = Number(this.allPriceFun) || 0
+			const lackNum = minNum > 0 ? Math.max(0, minNum - count) : 0
+			const lackAmount = minAmount > 0 ? Math.max(0, parseFloat((minAmount - price).toFixed(2))) : 0
+			const parts = []
+			if (lackNum > 0) {
+				parts.push(lackNum + "扎")
+			}
+			if (lackAmount > 0) {
+				parts.push(lackAmount + "元")
+			}
+			if (!parts.length) {
+				return "未达最低消费"
+			}
+			return "还差" + parts.join("和")
+		},
 		/** 按列表下标切换配送方式,并同步 sendType 供下单与条件展示 */
 		selectMethodByIndex(index) {
 			const list = this.visibleMethodList
@@ -749,15 +776,15 @@ export default {
 			const lackNum = meetNum > 0 ? Math.max(0, meetNum - count) : 0
 			const lackAmount = meetAmount > 0 ? Math.max(0, parseFloat((meetAmount - price).toFixed(2))) : 0
 			if (lackNum <= 0 && lackAmount <= 0) {
-				return "免费"
+				return "免跑腿费"
 			}
 			if (lackNum > 0 && lackAmount > 0) {
-				return `差${lackNum}扎${lackAmount}元免运费`
+				return `差${lackAmount}元和${lackNum}扎 免跑腿费`
 			}
 			if (lackNum > 0) {
-				return `差${lackNum}扎免运费`
+				return `差${lackNum}扎 免跑腿费`
 			}
-			return `差${lackAmount}元免运费`
+			return `差${lackAmount}元 免跑腿费`
 		},
 		// 展示包配送政策弹窗
 		showDeliveryPolicyModal() {
@@ -1107,18 +1134,8 @@ export default {
 				}
 				const method = this.currentShMethod
 				if (method && Number(method.unMeet) === 2 && this.checkShMethodBelowMinimum(method)) {
-					// 未满最低消费且不可下单时,提示具体需要的最低金额与数量
-					const minAmount = Number(method.minAmount) || 0
-					const minNum = Number(method.minNum) || 0
-					const tips = []
-					if (minAmount > 0) {
-						tips.push(`满${minAmount}元`)
-					}
-					if (minNum > 0) {
-						tips.push(`满${minNum}扎`)
-					}
-					const tipStr = tips.length > 0 ? `${tips.join("并且")},请加购后下单` : "未达到最低消费,请再加购后下单"
-					this.$msg(tipStr)
+					// 与页面红色提示一致:用还差差额引导加购
+					this.$msg(this.buildShMethodLackTip(method) + ",即可下单")
 					return false
 				}
 				
@@ -1271,7 +1288,7 @@ export default {
 			}
 		},
 		gobackEvent() {
-			this.$util.pageTo({url: "/pagesPurchase/ghsProduct?id="+this.options.id,type: 2})
+			this.$util.pageTo({url: "/pagesPurchase/ghsProduct?id="+this.options.id+'&ghsId='+this.options.id,type: 2})
 		}
 	}
 };
@@ -1675,6 +1692,46 @@ export default {
 	}
 }
 
+/* 未达标提示条:浅红底 + 左侧强调,比纯红下划线更醒目且易读 */
+.unmeet-warning {
+	padding: 0 24upx 16upx;
+	background-color: #fff;
+}
+.unmeet-warning-inner {
+	display: flex;
+	flex-direction: row;
+	align-items: flex-start;
+	padding: 20upx 24upx;
+	background-color: #fff5f5;
+	border: 2upx solid #ffd0d0;
+	border-left-width: 8upx;
+	border-left-color: #e64545;
+	border-radius: 12upx;
+	box-sizing: border-box;
+}
+.unmeet-warning-badge {
+	flex-shrink: 0;
+	width: 36upx;
+	height: 36upx;
+	margin-right: 16upx;
+	margin-top: 2upx;
+	border-radius: 50%;
+	background-color: #e64545;
+	color: #fff;
+	font-size: 24upx;
+	font-weight: bold;
+	line-height: 36upx;
+	text-align: center;
+}
+.unmeet-warning-text {
+	flex: 1;
+	color: #c62828;
+	font-size: 30upx;
+	font-weight: bold;
+	line-height: 1.45;
+	word-break: break-all;
+}
+
 /* 跑腿费价格样式 */
 .delivery-price-normal {
 	color: #3385FF;
@@ -1690,30 +1747,57 @@ export default {
 	margin-left: 20upx;
 }
 
-.delivery-policy-link {
-	display: inline-flex;
-	align-items: center;
-	color: rgb(201, 52, 52);
-	font-size: 32upx;
-	margin-left: 20upx;
-	font-weight: bold;
+/* 免跑腿费提示条:跑腿费下方独立展示,橙色系与红色未达标提示区分 */
+.free-pt-tip {
+	padding: 0 24upx 16upx;
+	background-color: #fff;
 }
-
-/* 右侧问号提示符:表明文案可点击查看全部免运费条件 */
-.policy-icon {
-	display: inline-flex;
+.free-pt-tip-inner {
+	display: flex;
+	flex-direction: row;
 	align-items: center;
-	justify-content: center;
-	width: 28upx;
-	height: 28upx;
-	margin-left: 8upx;
+	padding: 20upx 24upx;
+	background-color: #fff8ef;
+	border: 2upx solid #ffe0b8;
+	border-left-width: 8upx;
+	border-left-color: #f0a020;
+	border-radius: 12upx;
+	box-sizing: border-box;
+}
+.free-pt-tip-badge {
+	flex-shrink: 0;
+	width: 40upx;
+	height: 40upx;
+	margin-right: 16upx;
+	border-radius: 8upx;
+	background-color: #f0a020;
+	color: #fff;
 	font-size: 22upx;
 	font-weight: bold;
-	line-height: 28upx;
-	color: rgb(201, 52, 52);
-	background-color: transparent;
-	border: 2upx solid rgb(201, 52, 52);
+	line-height: 40upx;
+	text-align: center;
+}
+.free-pt-tip-text {
+	flex: 1;
+	color: #c56a00;
+	font-size: 30upx;
+	font-weight: bold;
+	line-height: 1.45;
+	word-break: break-all;
+}
+/* 右侧问号:提示可点击查看全部免运费条件 */
+.free-pt-tip-action {
+	flex-shrink: 0;
+	width: 32upx;
+	height: 32upx;
+	margin-left: 12upx;
 	border-radius: 50%;
+	border: 2upx solid #f0a020;
+	color: #f0a020;
+	font-size: 22upx;
+	font-weight: bold;
+	line-height: 32upx;
+	text-align: center;
 	box-sizing: border-box;
 }
 

+ 1 - 1
hdApp/src/admin/coupon/couponList.vue

@@ -125,7 +125,7 @@ export default {
 		},
 		// 去使用
 		useHb(item) {
-			this.$util.pageTo({url: '/pagesPurchase/ghsProduct?id='+item.ghsId, type: 2})
+			this.$util.pageTo({url: '/pagesPurchase/ghsProduct?id='+item.ghsId+'&ghsId='+item.ghsId, type: 2})
 		}
 	}
 }

+ 1 - 1
hdApp/src/admin/ghs/pay.vue

@@ -343,7 +343,7 @@
 					this.$msg('供货商信息加载中,请稍后再试')
 					return
 				}
-				this.pageTo({ url: `/pagesPurchase/gathering?id=${this.id}&salt=${this.salt}`, type: 2 })
+				this.pageTo({ url: `/pagesPurchase/gathering?id=${this.id}&salt=${this.salt}&ghsId=${this.id}`, type: 2 })
 			},
 			downloadImg() {
 				if (!this.imgUrl) {

+ 10 - 1
hdApp/src/admin/ghsProduct/components/sel-popup.vue

@@ -13,7 +13,8 @@
           <div class="tui-popup-price">
             <div class="goods-tit app-bold">{{ info.name }}</div>
             <div class="tui-amount tui-bold">¥{{ info.price?parseFloat(info.price):0 }}</div>
-            <text style="position:absolute;top:70upx;color:#333333;width:400upx;">剩{{ info.stock ? parseFloat(info.stock) : 0 }}{{ info.bigUnit }}</text>
+            <!-- showStock 为 0 时供货商不展示库存,隐藏「剩 x」 -->
+            <text v-if="showStock" style="position:absolute;top:70upx;color:#333333;width:400upx;">剩{{ info.stock ? parseFloat(info.stock) : 0 }}{{ info.bigUnit }}</text>
           </div>
         </div>
         <scroll-view scroll-y class="tui-popup-scroll">
@@ -80,6 +81,14 @@ export default {
     actionType: {
       type: String,
       default: 'buy'
+    },
+    /**
+     * 是否展示库存文案「剩 x」
+     * 对应供货商 ghsInfo.showStock,为 0 时不展示
+     */
+    showStock: {
+      type: Boolean,
+      default: true
     }
   },
   data() {

+ 30 - 3
hdApp/src/admin/ghsProduct/detail.vue

@@ -54,6 +54,7 @@
       :info="productInfo"
       :buyNum="buyNum"
       :action-type="popupAction"
+      :show-stock="Number(ghsInfo.showStock) !== 0"
       @change="changeNum"
       @close="hidePopup"
       @nextFn="onPopupConfirm"
@@ -197,7 +198,7 @@ export default {
       }
     },
     goShopIndex() {
-      this.$util.pageTo({ url: `/pagesPurchase/ghsProduct?id=${this.option.ghsId}`, type: 2 })
+      this.$util.pageTo({ url: `/pagesPurchase/ghsProduct?id=${this.option.ghsId}&ghsId=${this.option.ghsId}`, type: 2 })
     },
     goCartPage() {
       if (!this.checkLogin()) {
@@ -307,6 +308,7 @@ export default {
           that.$msg('二维码有问题')
         }
 			}else{
+        // 店铺内进入常同时带 ghsId + shopId,必须互斥,否则 productDetail 会请求两次
         if(this.option.ghsId){
           this.isShare = false
           getGhsDataApi({id: this.option.ghsId}).then(res => {
@@ -316,8 +318,8 @@ export default {
               that.productDetail(this.option.id,shopId)
             }
           })
-        }
-        if(this.option.shopId){
+        } else if(this.option.shopId){
+          // 群分享等仅有 shopId:换当前客户 ghsId 后再拉详情
           ghsInfo({shopId: this.option.shopId}).then(res => {
             let ghsId = res.data.id;
             this.ghsInfo = res.data
@@ -361,9 +363,34 @@ export default {
             pagePath: `admin/ghsProduct/detail?id=${id}&shopId=${shopId}`
           };
           that.jweixinFn(shareParams)
+
+          // 此时 option.ghsId 已由 init 用 shopId 换成当前客户自己的供货商 ID
+          // 从本地恢复该供货商购物车,避免分享逐个打开商品时以空列表覆盖已选
+          that.restoreCartByCurrentGhs()
         }
       })
     },
+    /**
+     * 按当前客户 ghsId 恢复本地购物车到 Vuex(须在 ghsId 就绪后调用)
+     */
+    restoreCartByCurrentGhs() {
+      const ghsId = this.getGhsId()
+      if (ghsId <= 0) {
+        return
+      }
+      // Vuex 里已有数据则不覆盖,防止同页重复拉取把进行中的选择冲掉
+      if (!this.$util.isEmpty(this.selectList)) {
+        return
+      }
+      const currentInfo = uni.getStorageSync('selectList' + this.pageType + '_ghs_' + ghsId)
+      if (this.$util.isEmpty(currentInfo)) {
+        return
+      }
+      const mergedInfo = this._mergeDuplicateSelectRows
+        ? this._mergeDuplicateSelectRows(currentInfo)
+        : currentInfo
+      this.setSelectInfoByType({ type: this.pageType, info: mergedInfo })
+    },
     onShareAppMessage(res) {
       return {
         title: this.title,

+ 2 - 2
hdApp/src/admin/home/components/purchase-ghs-panel.vue

@@ -499,10 +499,10 @@ export default {
         this.$msg('已休店,请选择其它门店')
         return false
       }
-      that.pageTo({ url: '/pagesPurchase/ghsProduct?id=' + item.id })
+      that.pageTo({ url: '/pagesPurchase/ghsProduct?id=' + item.id +'&ghsId=' + item.id})
     },
     settleAccounts(item) {
-      this.pageTo({ url: '/pagesPurchase/gathering?id=' + item.id })
+      this.pageTo({ url: '/pagesPurchase/gathering?id=' + item.id +'&ghsId=' + item.id})
     },
     getGHSList() {
       return ghsList().then(res => {

+ 1 - 1
hdApp/src/mixins/cgProduct.js

@@ -228,7 +228,7 @@ export default {
 			if (opt.ghsId && Number(opt.ghsId) > 0) {
 				return Number(opt.ghsId);
 			}
-			//这条有用,不能删除。ghsProduct.vue里使用到
+			//这条有用,不能删除。ghsProduct.vue里使用到。这个还是去不成,很多地方有用到,包括affirmSh等
 			if (opt.id && Number(opt.id) > 0) {
 				return Number(opt.id);
 			}

+ 4 - 4
hdApp/src/pagesPurchase/ghsProduct.vue

@@ -508,7 +508,7 @@ export default {
 			// #endif
 			// #ifdef MP-WEIXIN
 			if(Number(this.ghsId)>0){
-				uni.reLaunch({url: '/pagesPurchase/ghsProduct?id='+this.ghsId})
+				uni.reLaunch({url: '/pagesPurchase/ghsProduct?id='+this.ghsId+'&ghsId='+this.ghsId})
 			}else{
 				this.$util.confirmModal({content:'没有登录,请先登录'},() => {
 					this.pageTo({url: '/admin/home/login'})
@@ -798,12 +798,12 @@ export default {
 		goNext(){
 			let id = this.options.id||0
 			if(this.ghsInfo && this.ghsInfo.pfLevel == 1){
-				this.pageTo({url: '/admin/billing/affirmDn?id='+id,type: 2})
+				this.pageTo({url: '/admin/billing/affirmDn?id='+id+'&ghsId='+id,type: 2})
 			}else{
 				if(this.ghsInfo && this.ghsInfo.useNewShMethod == 1){
-					this.pageTo({url: '/admin/billing/affirmSh?id='+id,type: 2})
+					this.pageTo({url: '/admin/billing/affirmSh?id='+id+'&ghsId='+id,type: 2})
 				}else{
-					this.pageTo({url: '/admin/billing/affirmGhs?id='+id,type: 2})
+					this.pageTo({url: '/admin/billing/affirmGhs?id='+id+'&ghsId='+id,type: 2})
 				}
 			}
 		}

+ 1 - 1
hdApp/src/pagesPurchase/pb.vue

@@ -123,7 +123,7 @@ export default {
       })
     },
     settleAccounts (item) {
-      this.pageTo({ url: '/pagesPurchase/gathering?id='+item.id})
+      this.pageTo({ url: '/pagesPurchase/gathering?id='+item.id+'&ghsId='+item.id})
     },
     gotoDetails (val) {
       this.pageTo({ url: '/pagesPurchase/purDetails?status=' + val.status + '&id=' + val.id, type:2 })

+ 1 - 1
hdApp/src/pagesPurchase/purDetails.vue

@@ -541,7 +541,7 @@ export default {
 		},
     //跳转到结账页
     goToSettle (item) {
-      this.pageTo({url: '/pagesPurchase/gathering?id='+item.supplierId+'&salt='+item.ghsSalt})
+      this.pageTo({url: '/pagesPurchase/gathering?id='+item.supplierId+'&salt='+item.ghsSalt+'&ghsId='+item.supplierId})
     },
     goClearBill(item) {
       let salt = item.salt ? item.salt : ''

+ 2 - 2
开发http/ghsApp/src/manifest.json

@@ -2,8 +2,8 @@
     "name" : "销花宝",
     "appid" : "__UNI__BD781B0",
     "description" : "鲜花批发销售管理系统",
-    "versionName" : "1.3.15",
-    "versionCode" : 1315,
+    "versionName" : "1.3.18",
+    "versionCode" : 1319,
     "transformPx" : true,
     /* 5+App特有相关 */
     "app-plus" : {

+ 2 - 2
开发https/ghsApp/src/manifest.json

@@ -2,8 +2,8 @@
     "name" : "销花宝",
     "appid" : "__UNI__BD781B0",
     "description" : "鲜花批发销售管理系统",
-    "versionName" : "1.3.15",
-    "versionCode" : 1315,
+    "versionName" : "1.3.19",
+    "versionCode" : 1319,
     "transformPx" : true,
     /* 5+App特有相关 */
     "app-plus" : {

+ 2 - 2
线上/ghsApp/src/manifest.json

@@ -2,8 +2,8 @@
     "name" : "销花宝",
     "appid" : "__UNI__BD781B0",
     "description" : "鲜花批发销售管理系统",
-    "versionName" : "1.3.15",
-    "versionCode" : 1315,
+    "versionName" : "1.3.19",
+    "versionCode" : 1319,
     "transformPx" : true,
     /* 5+App特有相关 */
     "app-plus" : {