xuxueyang
2024-09-11 81b598345006125145ea0b58536ef9cc12201a14
update 限制质检人员,查看全部集货仓的
已修改2个文件
20 ■■■■ 文件已修改
sub_pages/partner/delivery/station-delivery.vue 15 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
sub_pages/supplier/print/print-list.vue 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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>
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++