lilei 4 anos atrás
pai
commit
f2d2d03ef7

+ 8 - 0
api/store.js

@@ -7,6 +7,14 @@ export const findStoreList = param => {
 	data: param
   })
 }
+// 查询所有门店
+export const findAllStore = param => {
+  return axios.request({
+    url: `store/findAll`,
+    method: 'post',
+	data: param
+  })
+}
 // 查询门店摄像头流列表
 export const findVsDeviceChannels = param => {
   return axios.request({

+ 1 - 1
pages/spotCheckConfigure/addSpotCheck.vue

@@ -281,7 +281,7 @@ export default {
 		// 考评门店选择
 		openMDpage() {
 			uni.navigateTo({
-				url: '/pages/spotCheckConfigure/evaluateStore?item=' + encodeURIComponent(JSON.stringify(this.form.storeList))
+				url: '/pages/spotCheckConfigure/evaluateStore?item=' + encodeURIComponent(JSON.stringify(this.form.storeList)) + '&isAll=1'
 			});
 		},
 		// 提交

+ 29 - 9
pages/spotCheckConfigure/evaluateStore.vue

@@ -23,7 +23,7 @@
 </template>
 
 <script>
-	import {findStoreList} from '@/api/store'
+	import {findStoreList,findAllStore} from '@/api/store'
 	export default {
 		data() {
 			return {
@@ -43,16 +43,36 @@
 				item.id = item.storeId || item.id
 			})
 			this.type = opts.type || 'checkbox'
-			// 查询门店
-			findStoreList({}).then(res=>{
-				if(res.status == 200){
-					this.list = res.data || []
-				} else {
-					this.noDataText = res.message
-				}
-			})
+			
+			if(opts.isAll == '1'){
+				// 所有门店
+				this.findAllStore()
+			}else{
+				// 查询门店
+				this.findStoreList()
+			}
 		},
 		methods: {
+			// 查询门店
+			findStoreList(){
+				findStoreList({}).then(res=>{
+					if(res.status == 200){
+						this.list = res.data || []
+					} else {
+						this.noDataText = res.message
+					}
+				})
+			},
+			// 查询所有门店
+			findAllStore(){
+				findAllStore({}).then(res=>{
+					if(res.status == 200){
+						this.list = res.data || []
+					} else {
+						this.noDataText = res.message
+					}
+				})
+			},
 			// 选中门店,item 返回的是数组
 			chooseOk(item) {
 				console.log(item)

Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
unpackage/dist/dev/app-plus/app-service.js


Alguns arquivos não foram mostrados porque muitos arquivos mudaram nesse diff