tangning 2 سال پیش
والد
کامیت
f7820ab28b

+ 2 - 2
src/api/spares/index.ts

@@ -386,9 +386,9 @@ enum Api {
  });
  export const DownExport = (params) =>
   defHttp.downloadFile<FileStream>({
-    url: Api.export + `?lang=${params.lang}`,
+    url: Api.export,// + `?lang=${params.lang}`,
     params: params,
-    fileName:t('routes.equity.listTitle')+'.xlsx',
+    fileName:'售后订单列表.xlsx',
     // data: params,
     headers: {
       // @ts-ignore

+ 4 - 4
src/views/spares/list.vue

@@ -2,16 +2,16 @@
   <div>
     <BasicTable @register="registerTable">
       <template #toolbar>
-        <a-button type="primary" @click="handleRole" v-if="getCheckPerm('role-add')"> 新增备件类型 </a-button>
-        <a-button type="primary" @click="handleIn" v-if="getCheckPerm('role-add')"> 备件入库 </a-button>
-        <a-button type="primary" @click="handleCreate" v-if="getCheckPerm('role-add')"> 入库记录 </a-button>
+        <a-button type="primary" @click="handleRole" v-if="getCheckPerm('spares_AddType')"> 新增备件类型 </a-button>
+        <a-button type="primary" @click="handleIn" v-if="getCheckPerm('spares_In')"> 备件入库 </a-button>
+        <a-button type="primary" @click="handleCreate" v-if="getCheckPerm('spares_InList')"> 入库记录 </a-button>
       </template>
       <template #action="{ record }">
         <TableAction  v-if="record.id != 1"
           :actions="[
             {
               label: t('common.edit'),
-              ifShow:getCheckPerm('role-update'),
+              ifShow:getCheckPerm('spares_edit'),
               onClick: handleRole.bind(null, record),
             },
           ]"

+ 1 - 1
src/views/system/menu/index.vue

@@ -74,7 +74,7 @@
           totalField: 'total',
         },
         actionColumn: {
-          width: 80,
+          width: 100,
           title: t('common.operating'),
           dataIndex: 'action',
           slots: { customRender: 'action' },

+ 1 - 1
src/views/system/role/index.vue

@@ -78,7 +78,7 @@
         },
         actionColumn: {
           // ifShow: getCheckRole('super'),
-          width: 110,
+          width: 140,
           title: t('common.operating'),
           dataIndex: 'action',
           slots: { customRender: 'action' },

+ 2 - 5
src/views/work/aftermarket.vue

@@ -1,7 +1,7 @@
 <template>
     <BasicTable @register="registerTable">
       <template #toolbar>
-        <a-button type="primary" @click="handleExport"> 导出</a-button>
+        <a-button type="primary" @click="handleExport" v-if="getCheckPerm('aftermarket_export')" > 数据导出</a-button>
       </template>
     </BasicTable>
 </template>
@@ -175,10 +175,7 @@ export default defineComponent({
         title: () => h('span', t('common.reminder')),
         content: () => h('span', t('routes.equity.excelTitle')),
         onOk: async () => {
-          await DownExport({
-            ...apiData,
-            lang:isEn.value?'en':'cn'
-          });
+          await DownExport({});
         },
       });
     }

+ 8 - 6
src/views/work/followedList.vue

@@ -10,7 +10,7 @@
     <div class="desc-wrap-BasicTable">
     <BasicTable @register="registerTable">
       <template #toolbar>
-        <a-button type="primary" @click="handleOrder" v-if="getCheckPerm('invoice-export')"> 录单</a-button>
+        <a-button type="primary" @click="handleOrder" v-if="getCheckPerm('work_Add')"> 录单</a-button>
       </template>
       <template #action="{ record }">
         <TableAction
@@ -18,35 +18,37 @@
           :actions="[  
             {
               label: '详情',
+              ifShow:getCheckPerm('work_detail'),
               onClick: handleDetail.bind(null, record),
             },
             {
               label: '接单',
-              ifShow:record.status == 0,
+              ifShow:getCheckPerm('work_orderTakers') && record.status == 0,
               onClick: handleRecover.bind(null, record),
             },
             {
               label: '报价',
-              ifShow:record.status == 2,
+              ifShow:getCheckPerm('work_quotedPrice') && record.status == 2,
               onClick: handleQuote.bind(null, record),
             },
             {
               label: '修改报价',
-              ifShow:record.status == 3,
+              ifShow:getCheckPerm('work_setPrice') && record.status == 3,
               onClick: handleQuote.bind(null, record),
             },
             {
               label: '付款登记',
-              ifShow:record.status == 9,
+              ifShow:getCheckPerm('work_payments') && record.status == 9,
               onClick: handlePayLog.bind(null, record),
             },
             {
               label: '发货登记',
-              ifShow:record.status == 10,
+              ifShow:getCheckPerm('work_dispatched') && record.status == 10,
               onClick: handleDelivery.bind(null, record),
             },
             {
               label: '备注',
+              ifShow:getCheckPerm('work_mark'),
               onClick: handleRemarks.bind(null, record),
             },
           ]"

+ 4 - 3
src/views/work/maintenance.vue

@@ -15,21 +15,22 @@
           :actions="[
             {
               label: '详情',
+              ifShow:getCheckPerm('work_detail'),
               onClick: handleDetail.bind(null, record),
             },
             {
               label: '添加备件',
-              ifShow:tableType == 1 && record.status != 6,
+              ifShow:getCheckPerm('maintenance_add') && tableType == 1 && record.status != 6,
               onClick: handleAdd.bind(null, record),
             },
             {
               label: '完成维修',
-              ifShow:tableType == 1,
+              ifShow:getCheckPerm('maintenance_finish') && tableType == 1,
               onClick: handleOut.bind(null, record),
             },
             {
               label: '检测登记',
-              ifShow:tableType == 0,
+              ifShow:getCheckPerm('maintenance_testing') && tableType == 0,
               onClick: handleRecover.bind(null, record),
             },
           ]"

+ 1 - 1
src/views/work/query.vue

@@ -24,7 +24,7 @@
           :actions="[
             {
               label: '详情',
-              color: 'error',
+              ifShow:getCheckPerm('work_detail'),
               onClick: handleDetail.bind(null, record),
             },
           ]"

+ 3 - 5
src/views/work/repairsparesList.vue

@@ -9,25 +9,23 @@
     >
     <div class="desc-wrap-BasicTable">
     <BasicTable @register="registerTable">
-      <template #toolbar>
-        <a-button type="primary" @click="handleOrder" v-if="getCheckPerm('invoice-export')"> 录单</a-button>
-      </template>
       <template #action="{ record }">
         <TableAction
           stopButtonPropagation
           :actions="[
             {
               label: '详情',
+              ifShow:getCheckPerm('work_detail'),
               onClick: handleDetail.bind(null, record),
             },
             {
               label: '备件出库',
-              ifShow: tableType == 0,
+              ifShow: getCheckPerm('repairspares_out') && tableType == 0,
               onClick: handleRecover.bind(null, record),
             },
             {
               label: '备件回收',
-              ifShow: tableType == 2,
+              ifShow: getCheckPerm('repairspares_in') && tableType == 2,
               onClick: handleRecover.bind(null, record),
             },
           ]"

+ 2 - 1
src/views/work/testList.vue

@@ -17,11 +17,12 @@
           :actions="[
             {
               label: '详情',
+              ifShow:getCheckPerm('work_detail'),
               onClick: handleDetail.bind(null, record),
             },
             {
               label: '测试登记',
-              ifShow: tableType == 0,
+              ifShow: getCheckPerm('maintenance_testing') && tableType == 0,
               onClick: handleRecover.bind(null, record),
             },
           ]"