Bläddra i källkod

按钮权限修改

jingbb 2 månader sedan
förälder
incheckning
42cff32913

+ 3 - 3
src/views/cuspCode/SupplierProfile/CuspSupplierProfileList.vue

@@ -6,9 +6,9 @@
       <template #tableTitle>
           <a-button type="primary" v-auth="'cuspCode:cusp_supplier_profile:add'"  @click="handleAdd" preIcon="ant-design:plus-outlined"> 新增(add)</a-button>
           <a-button  type="primary" v-auth="'cuspCode:cusp_supplier_profile:exportXls'"  @click="onExportXls"> 导出(export)</a-button>
-          <a-button  type="primary" v-auth="'cuspCode:cusp_supplier_profile:exportXls'" @click="getCatalog"> 供货目录(supply catalog)</a-button>
-          <a-button  type="primary" v-auth="'cuspCode:cusp_supplier_profile:exportXls'" @click="formallyConverted"> 申请转正式(apply for formal conversion)</a-button>
-          <a-button  type="primary" v-auth="'cuspCode:cusp_supplier_profile:exportXls'" @click="ApprovalFormallyConverted">申请转正式审批 (apply for formal conversion Approval)</a-button>
+          <a-button  type="primary"  @click="getCatalog"> 供货目录(supply catalog)</a-button>
+          <a-button  type="primary"  @click="formallyConverted"> 申请转正式(apply for formal conversion)</a-button>
+          <a-button  type="primary" v-auth="'cuspCode:cusp_supplier_profile:approval'" @click="ApprovalFormallyConverted">申请转正式审批 (apply for formal conversion Approval)</a-button>
           <a-dropdown v-if="selectedRowKeys.length > 0">
               <template #overlay>
                 <a-menu>

+ 2 - 2
src/views/purchase/arrivedGoods/ArriveGoodsList.vue

@@ -134,8 +134,8 @@
         >
         <a-button type="primary" @click="submit"> 提交(submit)</a-button>
         <a-button type="primary" @click="cancelSubmit"> 取消提交(cancelSubmit)</a-button>
-        <a-button type="primary" @click="close"> 关闭(close)</a-button>
-        <a-button type="primary" @click="cancelClose"> 取消关闭(cancel close)</a-button>
+        <a-button type="primary" @click="close" auth="'purCode:pur_delivery_note:close'"> 关闭(close)</a-button>
+        <!-- <a-button type="primary" @click="cancelClose"> 取消关闭(cancel close)</a-button> -->
         <a-dropdown v-if="selectedRowKeys.length > 0">
           <template #overlay>
             <a-menu>

+ 2 - 2
src/views/purchase/freightPurchaseOrder/FreightPurchaseOrderList.vue

@@ -55,8 +55,8 @@
         >
         <a-button type="primary" @click="submit"> 提交(submit)</a-button>
         <a-button type="primary" @click="cancelSubmit"> 取消提交(cancelSubmit)</a-button>
-        <a-button type="primary" @click="close"> 关闭(close)</a-button>
-        <a-button type="primary" @click="cancelClose"> 取消关闭(cancel close)</a-button>
+        <a-button type="primary" @click="close" v-auth="'purCode:pur_shipping_fee:close'"> 关闭(close)</a-button>
+        <!-- <a-button type="primary" @click="cancelClose"> 取消关闭(cancel close)</a-button> -->
         <a-button type="primary" @click="confirm"> 确认(confirm)</a-button>
         <a-button type="primary" @click="cancelConfirm"> 取消确认(cancel confirm)</a-button>
         <a-dropdown v-if="selectedRowKeys.length > 0">

+ 1 - 1
src/views/saleCode/deliveryNotice/deliveryNoticeList.vue

@@ -123,7 +123,7 @@
         >
         <a-button type="primary" @click="submit"> 提交(submit)</a-button>
         <a-button type="primary" @click="cancelSubmit"> 取消提交(cancelSubmit)</a-button>
-        <a-button type="primary" @click="close"> 关闭(close)</a-button>
+        <a-button type="primary" v-auth="'saleCode:sale_delivery:close'" @click="close"> 关闭(close)</a-button>
         <a-dropdown v-if="selectedRowKeys.length > 0">
           <template #overlay>
             <a-menu>

+ 3 - 3
src/views/saleCode/saleContract/SaleContractList.vue

@@ -6,9 +6,9 @@
       <template #tableTitle>
           <a-button type="primary" v-auth="'saleCode:sale_contract:add'"  @click="handleAdd" preIcon="ant-design:plus-outlined"> 新增(add)</a-button>
           <a-button  type="primary" v-auth="'saleCode:sale_contract:exportXls'"  preIcon="ant-design:export-outlined" @click="onExportXls"> 导出(export)</a-button>
-          <a-button  type="primary" v-auth="'saleCode:sale_contract:exportXls'"  @click="submit"> 提交(submit)</a-button>
-          <a-button  type="primary" v-auth="'saleCode:sale_contract:exportXls'"   @click="cancelSubmit"> 取消提交(cancel submit)</a-button>
-          <a-button  type="primary" v-auth="'saleCode:sale_contract:exportXls'"   @click="closeBillData"> 关闭(close)</a-button>
+          <a-button  type="primary" v-auth="'saleCode:sale_contract:submit'"  @click="submit"> 提交(submit)</a-button>
+          <a-button  type="primary" v-auth="'saleCode:sale_contract:returnSubmit'" @click="cancelSubmit"> 取消提交(cancel submit)</a-button>
+          <a-button  type="primary" v-auth="'saleCode:sale_contract:close'"   @click="closeBillData"> 关闭(close)</a-button>
           <a-dropdown v-if="selectedRowKeys.length > 0">
               <template #overlay>
                 <a-menu>

+ 1 - 1
src/views/saleCode/saleInquiryForm/SaleInquiryFormList.vue

@@ -175,7 +175,7 @@
         <a-button type="primary" v-auth="'saleCode:sale_inquiry_form:exportXls'" preIcon="ant-design:export-outlined" @click="onExportXls">
           导出(export)</a-button
         >
-        <a-button type="primary" @click="setStatus"> 设置其他状态(set other status)</a-button>
+        <a-button type="primary" @click="setStatus" v-auth="'saleCode:sale_inquiry_form:other'"> 设置其他状态(set other status)</a-button>
         <a-button type="primary" @click="SubmitBatch" v-auth="'saleCode:sale_inquiry_form:submitBatch'"> 提交(batch submit)</a-button>
         <a-button type="primary" @click="cancelSubmit" v-auth="'saleCode:sale_inquiry_form:returnSubmitBatch'"> 取消提交(cancelSubmit)</a-button>
         <a-dropdown v-if="selectedRowKeys.length > 0">

+ 1 - 1
src/views/saleCode/salesInvoice/salesInvoiceList.vue

@@ -78,7 +78,7 @@
         >
         <a-button type="primary" @click="submit"> 提交(submit)</a-button>
         <a-button type="primary" @click="cancelSubmit"> 取消提交(cancelSubmit)</a-button>
-        <a-button type="primary" @click="handleNullify"> 作废(nullify)</a-button>
+        <a-button type="primary" v-auth="'saleCode:sale_invoice:nullify'" @click="handleNullify"> 作废(nullify)</a-button>
         <a-dropdown v-if="selectedRowKeys.length > 0">
           <template #overlay>
             <a-menu>

+ 3 - 3
src/views/saleCode/salesOrder/SaleOrderFormList.vue

@@ -169,10 +169,10 @@
         >
         <a-button type="primary" @click="submit"> 提交(submit)</a-button>
         <a-button type="primary" @click="cancelSubmit"> 取消提交(cancelSubmit)</a-button>
-        <a-button type="primary" @click="close"> 关闭(close)</a-button>
+        <a-button type="primary" @click="close" v-auth="'saleCode:sale_order:close'"> 关闭(close)</a-button>
         <!-- <a-button type="primary" @click="cancelClose"> 取消关闭(cancel close)</a-button> -->
-        <a-button type="primary" @click="confirm"> 确认(confirm)</a-button>
-        <a-button type="primary" @click="cancelConfirm"> 取消确认(cancel confirm)</a-button>
+        <a-button type="primary" @click="confirm" v-auth="'saleCode:sale_order:confirm'"> 确认(confirm)</a-button>
+        <a-button type="primary" @click="cancelConfirm" v-auth="'saleCode:sale_order:cancelConfirm'"> 取消确认(cancel confirm)</a-button>
         <a-dropdown v-if="selectedRowKeys.length > 0">
           <template #overlay>
             <a-menu>