xiongchao 3 년 전
부모
커밋
8e597fec3f

+ 1 - 1
src/router/generator-platform-routers.js

@@ -170,7 +170,7 @@ const constantRouterComponents = {
   // 调拨详情
   'TransferStoreDetail': () => import('@/views/store/transferstoredetail/TransferStoreDetail'),
   // 报修单
-  // 'RepairApplicationForm': () => import('@/views/repair/application-form/RepairApplicationForm'),
+  'RepairApplicationForm': () => import('@/views/repair/application-form/RepairApplicationForm'),
   // 报修单待审核
   // 'RepairApplicationFormExamining': () => import('@/views/repair/application-form/RepairApplicationFormExamining'),
   // 报修单已审核

+ 1 - 1
src/views/repair/application-form/RepairForm.vue

@@ -93,7 +93,7 @@
               v-if="DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.NOT_ALLOCATED === record.status && $auth('repair-application-forms-dispatch')"
               @click="handleDispatching(record)" >派工</operation-button>-->
             <operation-button
-              v-if="DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.NOT_ALLOCATED === record.status && $auth('repair-application-forms-edit')"
+              v-if="DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.NOT_ALLOCATED === record.status && $auth('repair-application-forms-dispatch')"
               @click="handleAssign(record)" >派工</operation-button>
           </template>
         </span>

+ 0 - 2
src/views/repair/application-form/modules/Detail.vue

@@ -4,8 +4,6 @@
       <a-row :gutter="48" slot="extra">
         <a-col :md="48" :sm="48">
           <span class="table-page-search-submitButtons" style="float: right">
-            <a-button v-if="$auth('repair-application-forms-approve') && DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.NOT_ACCEPTANCE === model.status" style="margin-left: 8px" type="primary" @click="handleApprove()">审核</a-button>
-            <a-button v-if="$auth('repair-application-forms-reback') && DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.NOT_ACCEPTANCE === model.status" style="margin-left: 8px" type="danger" @click="handleReturn()">驳回</a-button>
             <a-button style="margin-left: 8px" @click="handleCancel">返回</a-button>
           </span>
         </a-col>

+ 6 - 6
src/views/repair/application-form/modules/DetailRepair.vue

@@ -4,10 +4,10 @@
       <a-row :gutter="48" slot="extra">
         <a-col :md="48" :sm="48">
           <span class="table-page-search-submitButtons" style="float: right">
-            <a-button v-if="showSbFlag" style="margin-left: 16px" type="default" @ok="handleOk" @click="handleViewBom()">备件BOM</a-button>
-            <a-button v-if="showSbFlag" style="margin-left: 16px" type="default" @ok="handleOk" @click="handleViewCheck()">保养项目</a-button>
-            <a-button v-if="$auth('repair-application-forms-assign') && DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.NOT_ALLOCATED === model.status" type="primary" @click="handleAssign">派工</a-button>
-            <a-popconfirm v-if="$auth('repair-application-forms-deal') &&  DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.REBACK === model.status" title="是否要接收?" @confirm="receive">
+            <a-button v-if="$auth('repair-application-forms-finish')" style="margin-left: 16px" type="default" @ok="handleOk" @click="handleViewBom()">备件BOM</a-button>
+            <a-button v-if="$auth('repair-application-forms-finish')" style="margin-left: 16px" type="default" @ok="handleOk" @click="handleViewCheck()">保养项目</a-button>
+            <a-button v-if="$auth('repair-application-forms-assign') && DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.NOT_ALLOCATED === model.status &&  DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.REBACK === model.status" type="primary" @click="handleAssign">派工</a-button>
+            <a-popconfirm v-if="$auth('repair-application-forms-deal') && DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.NOT_ALLOCATED === model.status &&  DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.REBACK === model.status" title="是否要接收?" @confirm="receive">
               <a-button style="margin-left: 8px">接收</a-button>
             </a-popconfirm>
             <a-button v-if="$auth('repair-application-forms-out') && (DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.PROCESSING >= model.status) && model.type != 2" style="margin-left: 8px" type="primary" @click="handleOut">委外</a-button>
@@ -111,7 +111,7 @@
         </span>
       </a-table>
       <title-divider title="费用清单" width="90px"></title-divider>
-      <div class="table-operator">
+      <div class="table-operator"  v-if="$auth('repair-application-forms-finish')">
         <a-button type="primary" @click="handleAddFee">
           <a-icon type="plus"/>
           添加
@@ -134,7 +134,7 @@
         </span>
       </a-table>
       <title-divider title="原因分析" width="90px"></title-divider>
-      <div class="table-operator">
+      <div class="table-operator"  v-if="$auth('repair-application-forms-finish')">
         <a-button type="primary" @click="handleAddReason">
           <a-icon type="plus"/>
           添加