Ver código fonte

核销记录处理

kk.shi 3 anos atrás
pai
commit
bbbe6c5a52
1 arquivos alterados com 13 adições e 7 exclusões
  1. 13 7
      pages/welfareMall/writeOff/writeOff.js

+ 13 - 7
pages/welfareMall/writeOff/writeOff.js

@@ -171,13 +171,19 @@ userstoreListView: function(data) {
     this.setData({
         index: e.detail.value
     })
-  },
-  //选择门店号
-  bindStoreNoChange: function (e) {
-    console.log(e)
-    this.setData({
-        index: e.detail.value
-    })
+    let storeList = this.data.storeList
+    if(storeList != null && storeList.length > 0){
+      for(var i=0; i<storeList.length;i++){
+        if(e.detail.value == i){
+          // console.log(e.detail.value+'?'+i+'====='+storeList[i].storeNo)
+          this.setData({
+            storeNo: storeList[i].storeNo
+        })
+        break;
+        }
+      }
+    }
+    this.getHexiaoList();
   },
   //选择日期
   bindDateChange: function (e) {