Parcourir la source

供货商查询

shish il y a 1 an
Parent
commit
833b88926a
2 fichiers modifiés avec 5 ajouts et 1 suppressions
  1. 1 1
      hdApp/src/admin/home/workbench.vue
  2. 4 0
      hdApp/src/pagesPurchase/shopping.vue

+ 1 - 1
hdApp/src/admin/home/workbench.vue

@@ -209,7 +209,7 @@
           <view class="box_9">
             <view class="tag_2" @click="pageTo({ url: '/admin/ghs/debtChange?ghsId='+ghsInfo.id})"> <text>欠款变动记录</text> </view>
             <view class="tag_2" @click="pageTo({ url: '/admin/clear/list?ghsId='+ghsInfo.id})"> <text>结账记录</text> </view>
-            <view class="tag_2" @click="pageTo({url:'/pagesPurchase/shopping'})"> <text>买花记录</text> </view>
+            <view class="tag_2" @click="pageTo({url:'/pagesPurchase/shopping?ghsId='+ghsInfo.id+'&ghsName='+ghsInfo.name})"> <text>买花记录</text> </view>
             <view class="tag_2" @click.stop="callUp(ghsInfo)" style="color:green;font-weight:bold;"> <text>联系我们</text> </view>
           </view>
           <view class="box_6 flex-row" @click="settleAccounts(ghsInfo)" v-if="Number(ghsInfo.debtAmount)>0">

+ 4 - 0
hdApp/src/pagesPurchase/shopping.vue

@@ -140,6 +140,10 @@ export default {
 			}
 		},
     init() {
+      if(this.option.ghsId){
+        this.ghsId = this.option.ghsId?this.option.ghsId:0
+        this.ghsName = this.option.ghsName?this.option.ghsName:''
+      }
       this.getMyPurchase()
     },
     getMyPurchase () {