| | |
| | | <view class="tool_item" @click="toWorkerRecord" v-if="isAdmin"> |
| | | <image src="@/static/image/record.png" mode="aspectFit" class="item_img"></image> |
| | | <view class="tool_label"> |
| | | 工资审核 |
| | | 报酬审核 |
| | | </view> |
| | | </view> |
| | | <view class="tool_item" @click="toSalary" v-if="isAdmin"> |
| | | <image src="@/static/image/salary.png" mode="aspectFit" class="item_img"></image> |
| | | <view class="tool_label"> |
| | | 工资查询 |
| | | 报酬查询 |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | }], |
| | | navList2: [{ |
| | | icon: 'icon-dingdan', |
| | | name: '上班打卡', |
| | | name: '劳务计时', |
| | | cb: this.toMyWork |
| | | }, |
| | | { |
| | | icon: 'icon-fuwutuandui', |
| | | name: '工作记录', |
| | | name: '务工报酬', |
| | | cb: this.toMyRecord |
| | | }, |
| | | { |
| | |
| | | ], |
| | | navList3: [{ |
| | | icon: 'icon-dingdan', |
| | | name: '上班打卡', |
| | | name: '劳务计时', |
| | | cb: this.toMyWork |
| | | }, |
| | | { |
| | | icon: 'icon-fuwutuandui', |
| | | name: '工作记录', |
| | | name: '务工报酬', |
| | | cb: this.toMyRecord |
| | | }, |
| | | { |
| | |
| | | }, |
| | | balance() { |
| | | if (this.identity == 'worker') { |
| | | if (this.userInfo.userWorker) { |
| | | return this.$common.moneySub(this.userInfo.userWorker.tiXianZonge, this.userInfo |
| | | .userWorker |
| | | .yiTiXianJine) |
| | | } else { |
| | | return '0.00' |
| | | } |
| | | // if (this.userInfo.userWorker) { |
| | | // return this.$common.moneySub(this.userInfo.userWorker.tiXianZonge, this.userInfo |
| | | // .userWorker |
| | | // .yiTiXianJine) |
| | | // } else { |
| | | return this.userInfo.userWorker.balance |
| | | // } |
| | | } else { |
| | | if (this.userInfo.userCompany) { |
| | | return this.userInfo.userCompany.chongZhiYue ? this.userInfo.userCompany |