Browse Source

预收款-权限赋值

jingbb 4 months ago
parent
commit
d29dfd63dc
1 changed files with 6 additions and 9 deletions
  1. 6 9
      src/views/saleCode/advancePayment/advancePaymentList.vue

+ 6 - 9
src/views/saleCode/advancePayment/advancePaymentList.vue

@@ -67,20 +67,20 @@
      <BasicTable @register="registerTable" :rowSelection="rowSelection" size="small" >
        <!--插槽:table标题-->
         <template #tableTitle>
-            <a-button type="primary" v-auth="'saleCode:sale_order:add'"  @click="handleAdd" preIcon="ant-design:plus-outlined"> 新增(add)</a-button>
-            <a-button  type="primary" v-auth="'saleCode:sale_order:exportXls'"  preIcon="ant-design:export-outlined" @click="onExportXls"> 导出(export)</a-button>
+            <a-button type="primary" v-auth="'saleCode:sale_advance_payment:add'"  @click="handleAdd" preIcon="ant-design:plus-outlined"> 新增(add)</a-button>
+            <a-button  type="primary" v-auth="'saleCode:sale_advance_payment:exportXls'"  preIcon="ant-design:export-outlined" @click="onExportXls"> 导出(export)</a-button>
             <a-button  type="primary"  @click="submit" > 提交(submit)</a-button>
             <a-button  type="primary"  @click="cancelSubmit"> 取消提交(cancelSubmit)</a-button>
             <a-dropdown v-if="selectedRowKeys.length > 0">
                 <template #overlay>
                   <a-menu>
-                    <a-menu-item key="1" @click="batchHandleDelete"  v-auth="'saleCode:sale_order_form:deleteBatch'">
+                    <a-menu-item key="1" @click="batchHandleDelete"  v-auth="'saleCode:sale_advance_payment:deleteBatch'">
                       <Icon icon="ant-design:delete-outlined"></Icon>
                       删除(delete)
                     </a-menu-item>
                   </a-menu>
                 </template>
-                <a-button v-auth="'saleCode:sale_order:delete'">批量操作
+                <a-button v-auth="'saleCode:sale_advance_payment:deleteBatch'">批量操作
                   <Icon icon="mdi:chevron-down"></Icon>
                 </a-button>
           </a-dropdown>
@@ -109,9 +109,6 @@
     import { defHttp } from '/@/utils/http/axios';
     import { JDictSelectTag} from '/@/components/Form';
     import advancePaymentFormModal from './components/advancePaymentFormModal.vue';
-    import JSelectInput from '/@/components/Form/src/jeecg/components/JSelectInput.vue';
-    import JSelectUser from '/@/components/Form/src/jeecg/components/JSelectUser.vue';
-    import JSelectDept from '/@/components/Form/src/jeecg/components/JSelectDept.vue';
     import { message } from 'ant-design-vue';
     const formRef = ref();
     const queryParam = reactive<any>({});
@@ -208,7 +205,7 @@
            {
              label: '编辑(edit)',
              onClick: handleEdit.bind(null, record),
-             auth: 'saleCode:sale_order:edit',
+             auth: 'saleCode:sale_advance_payment:edit',
              ifShow: record.submit=='0'||!record.submit
            },
            {
@@ -235,7 +232,7 @@
                confirm: handleDelete.bind(null, record),
                placement: 'topLeft'
              },
-             auth: 'saleCode:sale_order:delete',
+             auth: 'saleCode:sale_advance_payment:delete',
              ifShow: record.submit=='0'||!record.submit
            }
          ]