shish 3 lat temu
rodzic
commit
cd2eaaaf0b

+ 2 - 2
ghsApp/src/pagesGys/details.vue

@@ -126,9 +126,9 @@ export default {
 	watch: {
 		selectList () {
 			if (this.selectList.length === this.detailsList.length) {
-			this.isAllCheck = true
+				this.isAllCheck = true
 			} else {
-			this.isAllCheck = false
+				this.isAllCheck = false
 			}
 		}
 	},

+ 27 - 7
ghsApp/src/pagesGys/search.vue

@@ -24,14 +24,14 @@
         <AppSearchModule placeholder="输入编号" @input="searchFn"/>
       </view>
       <view style="padding:0 10upx 0 20upx;" >
-				<button class="admin-button-com middle blue" @click="">清空</button>
+			<button class="admin-button-com middle blue" @click="clearData()">清空</button>
 		</view>
     </view>
 	<view class="order-page">
 		<view scroll-y class="shop-list">
 			<block v-if="!$util.isEmpty(selectDataList)">
 				<block v-for="(item, index) in selectDataList" :key="index">
-					<view style="margin-bottom:10upx;font-size:30upx;">
+					<view style="margin-bottom:15upx;font-size:32upx;">
 						ID:{{item}}
 					</view>
 				</block>
@@ -44,7 +44,7 @@
 			<template>
 				<view class="info-view">
 					<view class="details-select">
-						
+						<text class="price">总共 {{ totalOrderNum }} 笔</text>
 					</view>
 				</view>
 			</template>
@@ -80,9 +80,23 @@ export default {
 			payWay:0
 		};
 	},
-	computed: {
+	computed:{
+		totalOrderNum(){
+			let num = 0
+			if (!this.$util.isEmpty(this.selectDataList)) {
+				num = this.selectDataList.length
+			}
+			return num
+		},
 	},
 	methods: {
+		clearData(){
+			let that = this
+			this.$util.confirmModal({content:'确认清空?'},() => {
+				that.selectDataList = []
+				uni.removeStorageSync('select_ghs_clear_'+this.option.id)
+			})
+		},
 		addData(item){
 			if (this.$util.isEmpty(this.selectDataList)) {
 				this.selectDataList.push(item.id)
@@ -122,10 +136,16 @@ export default {
 		},
 		init(){
 			let cache = uni.getStorageSync('select_ghs_clear_'+this.option.id)
-			console.log(cache)
+			if (!this.$util.isEmpty(cache)) {
+				this.selectDataList = cache
+			}
 		},
 		nextStep(){
-
+			if(this.totalOrderNum <= 0){
+				this.$msg('没有订单')
+				return false
+			}
+			this.$util.pageTo({url: "/pagesGys/details?id="+this.option.id+'&type=search'})
 		}
 	}
 };
@@ -246,7 +266,7 @@ export default {
 		}
 	}
 	.details-select {
-		font-size:30upx;
+		font-size:32upx;
 		margin-right: 20upx;
 		display: inline-block;
 		.iconweixuanzhong,

+ 1 - 1
ghsApp/src/pagesPurchase/supplier.vue

@@ -279,7 +279,7 @@ export default {
             background: #2ca99d;
             position: absolute;
             top:-80upx;
-            right:0upx;
+            right:40upx;
         }
         .cg-button{
             display: inline-block;