Browse Source

森语-单证跳转

jbb 2 years ago
parent
commit
99b51fac25

+ 4 - 0
src/config/router.config.js

@@ -390,5 +390,9 @@ export const constantRouterMap = [
     path: '/roleViewList',
     component: () => import(/* webpackChunkName: "fail" */ '../views/system/RoleUserList.vue')
   },
+  {//////////////事故处理单路径
+    path: '/IncidentTicketModalDetail',
+    component: () => import(/* webpackChunkName: "fail" */ '../views/oa/modules/IncidentTicketModalDetail.vue')
+  },
 
 ]

+ 1 - 0
src/views/oa/IncidentTicketList.vue

@@ -397,6 +397,7 @@ import moment from 'moment'
             // this.$refs.modalForm.defultMethods = 'edit'
         }else{
           this.$refs.IncidentTicketModalDetail.visible = true
+          this.$refs.IncidentTicketModalDetail.showFooter = true
             this.$refs.IncidentTicketModalDetail.getHeaderList(record.id)
         }
       }

+ 20 - 8
src/views/oa/modules/IncidentTicketModalDetail.vue

@@ -7,22 +7,22 @@
     :confirmLoading="confirmLoading"
     @cancel="handleCancel"
     destroyOnClose
-    >
+    > 
     <template #footer>
-        <a-button  @click="handleCancel" style="margin-left: 8px;">取消</a-button>
-        <a-button @click="handlePrint" style="margin-left: 8px;">打印</a-button>
-        <a-button  type="primary"  @click="addNotice" style="margin-left: 8px;" :disabled="!(formState.state=='1')">通知</a-button>
+        <a-button  v-if="showFooter" @click="handleCancel" style="margin-left: 8px;">取消</a-button>
+        <a-button  v-if="showFooter" @click="handlePrint" style="margin-left: 8px;">打印</a-button>
+        <a-button  v-if="showFooter"  type="primary"  @click="addNotice" style="margin-left: 8px;" :disabled="!(formState.state=='1')">通知</a-button>
         <a-popconfirm title="确定反馈通知吗?" ok-text="是" cancel-text="否" @confirm="feedbackNotice" @cancel="handleCancelPop('visibleFk')" :visible="visibleFk">
-          <a-button  type="primary"   style="margin-left: 8px;" :disabled="!(formState.state=='2')" @click="()=>visibleFk = true">反馈通知</a-button>
+          <a-button  v-if="showFooter" type="primary"   style="margin-left: 8px;" :disabled="!(formState.state=='2')" @click="()=>visibleFk = true">反馈通知</a-button>
         </a-popconfirm>
         <a-popconfirm title="确定推送吗?" ok-text="是" cancel-text="否" @confirm="push" @cancel="handleCancelPop('visibleTs')" :visible="visibleTs">
-          <a-button  type="primary"   style="margin-left: 8px;" :disabled="!(formState.state=='3'&&!confirmLoading)" @click="()=>visibleTs = true">推送</a-button>
+          <a-button  v-if="showFooter" type="primary"   style="margin-left: 8px;" :disabled="!(formState.state=='3'&&!confirmLoading)" @click="()=>visibleTs = true">推送</a-button>
         </a-popconfirm>
         <a-popconfirm title="确定提交吗?" ok-text="是" cancel-text="否" @confirm="end"   @cancel="handleCancelPop('visibleTj')" :visible="visibleTj">
-          <a-button  type="primary"   style="margin-left: 8px;" :disabled="!(formState.state=='3'|| formState.state=='4')" @click="()=>visibleTj = true">提交</a-button>
+          <a-button  v-if="showFooter" type="primary"   style="margin-left: 8px;" :disabled="!(formState.state=='3'|| formState.state=='4')" @click="()=>visibleTj = true">提交</a-button>
         </a-popconfirm>
         <a-popconfirm title="确定完结吗?" ok-text="是" cancel-text="否" @confirm="finish"   @cancel="handleCancelPop('visibleWj')" :visible="visibleWj">
-          <a-button  type="primary"   style="margin-left: 8px;" :disabled="!(formState.state=='5')" @click="()=>visibleWj = true">完结</a-button>
+          <a-button  v-if="showFooter" type="primary"   style="margin-left: 8px;" :disabled="!(formState.state=='5')" @click="()=>visibleWj = true">完结</a-button>
         </a-popconfirm>
       </template>
       <a-spin :spinning="confirmLoading">
@@ -459,6 +459,9 @@
         visibleTs:false,
         visibleTj:false,
         visibleWj:false,
+        visible:false,
+        showFooter:false,
+        apply:'',
         accessory2:[],
         accessory:[],
         factorySignature:[],
@@ -654,6 +657,14 @@
         }
       }
     },
+    created() {
+      var ccode =  this.$route.query.id; 
+    if (ccode != undefined && ccode != ""){
+      this.visible=true
+      this.showFooter=false
+      this.getHeaderList(ccode)
+    }
+  },
     methods: {
       addNotice(){   
         // this.$refs.JSelectBizComponent.visible = true
@@ -810,6 +821,7 @@
         this.visibleTj = false
         this.visibleTs = false
         this.visibleFk = false
+        this.showFooter=false
         this.$emit('close')
       },
       // 关闭提示框