| | |
| | | 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() { |
| | |
| | | onReady() { |
| | | this.$refs.formRef.setRules(this.rules); |
| | | }, |
| | | onLoad() { |
| | | onLoad(options) { |
| | | // this.isAdmin = options.isAdmin |
| | | // console.log(options); |
| | | this.Getdrivers() |
| | | this.getCustomer() |
| | | this.GetDriversOfWithin7days() |
| | |
| | | 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 |