Browse Source

供应商角色

master_hella_20240701
wangyufei 5 months ago
parent
commit
c59d3a4770
  1. 9
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

9
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

@ -146,7 +146,7 @@
:apiDelete="SupplierinvoiceRequestDetailApi.deleteSupplierinvoiceRequestDetail" :apiDelete="SupplierinvoiceRequestDetailApi.deleteSupplierinvoiceRequestDetail"
:Echo="Echo" :Echo="Echo"
:detailButtonIsShowEdit="true" :detailButtonIsShowEdit="true"
:detailButtonIsShowAddStatusArray="['1','6']" :detailButtonIsShowAddStatusArray="detailButtonIsShowAddStatusArray"
:detailButtonIsShowDelete="true" :detailButtonIsShowDelete="true"
:detailButtonIsShowAdd="true" :detailButtonIsShowAdd="true"
@buttonBaseClick="detailButtonBaseClick" @buttonBaseClick="detailButtonBaseClick"
@ -979,6 +979,7 @@ const importSuccess = () => {
} }
}) })
} }
const detailButtonIsShowAddStatusArray = ref<any>([])
const roleList = ref<string[]>([]) const roleList = ref<string[]>([])
const getLoginUserRoleList = async ()=>{ const getLoginUserRoleList = async ()=>{
let res = await SupplierinvoiceRequestMainApi.getLoginUserRoleList() let res = await SupplierinvoiceRequestMainApi.getLoginUserRoleList()
@ -988,7 +989,13 @@ const importSuccess = () => {
}else{ }else{
roleList.value = [] roleList.value = []
} }
if(roleList.value.indexOf('supplier_operator')>-1){
detailButtonIsShowAddStatusArray.value = ['1','6','7']
}else{
detailButtonIsShowAddStatusArray.value = []
}
} }
/** 初始化 **/ /** 初始化 **/
onMounted(async () => { onMounted(async () => {
getList() getList()

Loading…
Cancel
Save