From 81b598345006125145ea0b58536ef9cc12201a14 Mon Sep 17 00:00:00 2001
From: xuxueyang <xuxy@fengyuntec.com>
Date: 星期三, 11 九月 2024 14:35:51 +0800
Subject: [PATCH] update 限制质检人员,查看全部集货仓的
---
sub_pages/partner/delivery/station-delivery.vue | 15 +++++++++++----
sub_pages/supplier/print/print-list.vue | 5 ++++-
2 files changed, 15 insertions(+), 5 deletions(-)
diff --git a/sub_pages/partner/delivery/station-delivery.vue b/sub_pages/partner/delivery/station-delivery.vue
index 96eb007..ee4a0f2 100644
--- a/sub_pages/partner/delivery/station-delivery.vue
+++ b/sub_pages/partner/delivery/station-delivery.vue
@@ -6,7 +6,8 @@
stationId: '',
stationName: '',
},
- list: []
+ list: [],
+ isAdmin: false,
}
},
onLoad(options) {
@@ -34,6 +35,12 @@
this.$message.hideLoading()
if (code == 0) {
this.list = data || []
+ // 如果有总仓类型就显示全部的供应商
+ for (var tmp of this.list) {
+ if (tmp.type === '0') {
+ this.isAdmin = true
+ }
+ }
}
},
@@ -42,7 +49,7 @@
url: `/sub_pages/partner/delivery/delivery?stationId=${item.stationId}&stationName=${item.name}`
})
},
- showAll(){
+ showAll() {
uni.navigateTo({
url: `/sub_pages/partner/delivery/delivery`
})
@@ -63,8 +70,8 @@
</u-input>
</view>
</view>
- <view class="search-container m-t-12 flex">
- <view class="m-l-a m-r-0 w-fit" @click="showAll" >查看全部>></view>
+ <view class="search-container m-t-12 flex" v-if="isAdmin">
+ <view class="m-l-a m-r-0 w-fit" @click="showAll">查看全部>></view>
</view>
diff --git a/sub_pages/supplier/print/print-list.vue b/sub_pages/supplier/print/print-list.vue
index 9bf47d5..db2c79d 100644
--- a/sub_pages/supplier/print/print-list.vue
+++ b/sub_pages/supplier/print/print-list.vue
@@ -674,10 +674,13 @@
characteristicId: that.writeCharaterId,
value: buf,
success: function(res) {
- console.log(res)
+ // console.log(res)
},
fail: function(e) {
console.log(e)
+ // wx.showToast({
+ // title: '打印失败:' + e,
+ // })
},
complete: function() {
currentTime++
--
Gitblit v1.9.3