用户操作权限添加
This commit is contained in:
@ -57,9 +57,9 @@
|
||||
<span class="allTxt">{{ item.accountStatus?.label }}</span>
|
||||
</div>
|
||||
<div class="rightBtn">
|
||||
<button class="btn" v-if="queryType == 1" @click="handleAccounting(item)">记账</button>
|
||||
<button class="btn" v-if="queryType == 3" @click="handleAccounting(item)">{{item.accountStatus.code == 3 ? '重新记账' : '记账'}}</button>
|
||||
<button class="btn" v-if="queryType == 5" @click="handleAccounting(item)">重新记账</button>
|
||||
<button class="btn" v-if="queryType == 1 && permissonList.includes('supplierRecordOperation')" @click="handleAccounting(item)">记账</button>
|
||||
<button class="btn" v-if="queryType == 3 && permissonList.includes('supplierRecordOperation')" @click="handleAccounting(item)">{{item.accountStatus.code == 3 ? '重新记账' : '记账'}}</button>
|
||||
<button class="btn" v-if="queryType == 5 && permissonList.includes('supplierRecordOperation')" @click="handleAccounting(item)">重新记账</button>
|
||||
<button class="btn" v-if="queryType == 7" @click="goPageDetail(item)">查看详情</button>
|
||||
</div>
|
||||
</div>
|
||||
@ -74,7 +74,7 @@
|
||||
|
||||
<script>
|
||||
import {myMixins} from "@/utils/myMixins"
|
||||
import {accountRecordList} from "@/api/mine"
|
||||
import {accountRecordList,userOperationPermissions} from "@/api/mine"
|
||||
import {timeFormat} from "@/utils/common"
|
||||
export default {
|
||||
name: "workOrderReconciliation",
|
||||
@ -93,6 +93,7 @@ export default {
|
||||
currentDate: new Date(),
|
||||
ymTime: '',//默认显示时间为当年当月
|
||||
isLoading:"",
|
||||
permissonList:[]
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
@ -100,6 +101,7 @@ export default {
|
||||
this.queryType=this.$route.params?.queryType || this.queryType
|
||||
this.initIndex()
|
||||
this.initSelectTime();
|
||||
this.getPermissions();
|
||||
this.getList();
|
||||
},
|
||||
computed:{
|
||||
@ -134,6 +136,12 @@ export default {
|
||||
this.orderList = res.data;
|
||||
}
|
||||
},
|
||||
async getPermissions(){
|
||||
let res = await userOperationPermissions();
|
||||
this.permissonList = res.data
|
||||
console.log("1122",this.permissonList)
|
||||
// console.log('工单对账',this.permissonList.includes('supplierRecordOperation'))
|
||||
},
|
||||
handleAccounting(item){
|
||||
this.$router.push({
|
||||
name: 'accountingView', // 目标路由的名称
|
||||
|
Reference in New Issue
Block a user