소스 검색

花材列表

shish 2 년 전
부모
커밋
0acd183510
3개의 변경된 파일10개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 1
      ghsApp/src/admin/changePrice/changeStock2.vue
  2. 2 1
      ghsApp/src/admin/changePrice/list2.vue
  3. 6 0
      ghsApp/src/mixins/product2.js

+ 2 - 1
ghsApp/src/admin/changePrice/changeStock2.vue

@@ -6,7 +6,7 @@
 				<button class="admin-button-com middle blue" @click="selectFlowerNumFn()">图片分类</button>
 			</view>
 			<view class="search-bar">
-				<app-search-module v-model="globalPy" ref="globalSearchRef" placeholder="这里搜索" @input="searchFn"/>
+				<app-search-module ref="globalSearchRef" v-model="globalPy" placeholder="这里搜索" @input="globalSearch" />
 			</view>
 		</view>
 
@@ -147,6 +147,7 @@ export default {
 			checkOrderApi({pdType:'',itemInfo:data,remark:'修改库存'}).then(res => {
 				if(res.code == 1){
 					that.clearPrice()
+					that.reGetGlobalProductList()
 				}
 				this.$msg(res.msg)					
 			})

+ 2 - 1
ghsApp/src/admin/changePrice/list2.vue

@@ -6,7 +6,7 @@
 				<button class="admin-button-com middle blue" @click="selectFlowerNumFn()">图片分类</button>
 			</view>
 			<view class="search-bar">
-				<app-search-module v-model="globalPy" ref="globalSearchRef" placeholder="这里搜索" @input="searchFn"/>
+				<app-search-module ref="globalSearchRef" v-model="globalPy" placeholder="这里搜索" @input="globalSearch" />
 			</view>
 			<view style="padding:0 0upx 0 20upx;" >
 				<button class="admin-button-com middle blue" @click="downloadTable()">价格表</button>
@@ -210,6 +210,7 @@ export default {
 			batchChangePrice({data:data,appVersion:1}).then(res => {
 					if(res.code == 1){
 						that.clearPrice()
+						that.reGetGlobalProductList()
 					}
 					uni.showToast({ title: '修改成功', icon: 'success', })
 				})

+ 6 - 0
ghsApp/src/mixins/product2.js

@@ -153,6 +153,12 @@ export default {
 				}
 			})
 		},
+		reGetGlobalProductList(){
+			this.globalGoToTop()
+            this.globalPage = 1
+			this.globalFinishGetItem = 0
+			this.getGlobalProductList()
+		},
         getGlobalProductList(){
             if(this.globalFinishGetItem == 1){
                 return false