zhangwei
2025-03-07 d3e6dd6b3032c119676efa1e9fcee3a8a8043fc5
src/pages/delivergoods/query.vue
@@ -174,11 +174,14 @@
            deliverKeyName: ''
         }
      },
      computed: {
         ...mapGetters(['userInfo']),
         isAdmin() {
            return this.userInfo.userCompany ? this.userInfo.userCompany.isAdmin : false
            if (this.userInfo.oaPermissions) {
               return this.userInfo.oaPermissions.bF_IsDeliverManage ? true : false
            }
            return false
         },
      },
      onShow() {
@@ -187,7 +190,9 @@
      onReady() {
         this.$refs.formRef.setRules(this.rules);
      },
      onLoad() {
      onLoad(options) {
         // this.isAdmin = options.isAdmin
         // console.log(options);
         this.Getdrivers()
         this.getCustomer()
         this.GetDriversOfWithin7days()
@@ -448,8 +453,9 @@
            if (this.deliverKeyID) {
               data.deliverKeyID = this.deliverKeyID
            }
            console.log(this.isAdmin);
            let getListApi = null
            if (this.isAdmmin) {
            if (this.isAdmin) {
               getListApi = this.$api.GetDeliverPlans
            } else {
               getListApi = this.$api.workerGetDeliverPlans