qymljy преди 2 години
родител
ревизия
e77a587ca3

+ 149 - 2
src/HManagement/addressList/addressBook/detail/index.vue

@@ -8,9 +8,11 @@
       idname="sys_phonebookid"
       :pageChange="true"
       :tabs="['详细信息','关联客户','关联项目']"
+      @teamList="teamList"
       >
     <template slot="customOperation">
-      <edit :data="mainData" :group="group" :tagList="tagList"></edit>
+      <edit class="inline-16" v-if="tool.checkAuth($route.name,'update')" :data="mainData" :group="group" :tagList="tagList" :disabled="mainData.disabled"  @onEditSuccess="queryMainData();$refs.detailsRef.$refs.tag.queryTag()"></edit>
+      <el-button class="inline-16" v-if="tool.checkAuth($route.name,'delete')"  :type="!mainData.disabled?'':'primary'" size="mini"  @click="onDel" :disabled="!mainData.disabled">删 除</el-button>
     </template>
     <div slot="slot0" >
       <detailed :detailData="mainData"></detailed>
@@ -29,6 +31,7 @@ import detailed from '../modules/detailsData'
 import customerData from '../modules/customerData'
 import projectData from '../modules/projectData'
 import edit from '../modules/edit'
+import {mapGetters} from "vuex";
 export default {
   name: "index",
   components:{detailed,customerData,projectData,edit},
@@ -50,10 +53,72 @@ export default {
         }
       },
       group:[],
-      tagList:[]
+      tagList:[],
+      teamData:[],
+      userInfo:JSON.parse(window.sessionStorage.getItem('active_account')),
+      agentData:[]
+    }
+  },
+  watch:{
+    async teamData(val){
+      if (this.mainData.groupname == '客户联系人'){
+        const agent = await this.$api.requested({
+          "id":20230329122604,
+          "content": {
+            "ownertable":"sys_enterprise_contacts",
+            "ownerid":this.mainData.contactsid
+          }
+        })
+        this.agentData = agent.data
+      }else if (this.mainData.groupname == '项目联系人'){
+        const agent = await this.$api.requested({
+          "id":20230329122604,
+          "content": {
+            "ownertable":"sa_project_contacts",
+            "ownerid":this.mainData.sa_project_contactsid
+          }
+        })
+        this.agentData = agent.data
+      }else {
+        const agent = await this.$api.requested({
+          "id":20230329122604,
+          "content": {
+            "ownertable":"sys_phonebook",
+            "ownerid":this.$route.query.id
+          }
+        })
+        this.agentData = agent.data
+      }
+      if (this.mainData.leader.length !== 0){
+        if (JSON.parse(window.sessionStorage.getItem('active_account')).userid === this.mainData.leader[0].userid){
+
+          this.mainData.disabled = true
+        }else {
+          let flag = 0
+          for (var i=0;i<val[0].team.length;i++){
+            if (val[0].team[i].userid === JSON.parse(window.sessionStorage.getItem('active_account')).userid){
+              if (val[0].team[i].editable === 1){
+                this.mainData.disabled = true
+                flag =1
+                break
+              }else {
+                flag = 0
+                break
+              }
+            }
+          }
+
+          flag === 0?this.agentData.editable === 0?this.mainData.disabled = false:this.mainData.disabled = true:this.mainData.disabled = true
+          this.$refs.detailsRef.$refs.group.editdataleader = this.agentData.editdataleader
+        }
+        console.log(this.mainData.disabled,'权限结果')
+      }
     }
   },
   methods:{
+    async teamList(val){
+      this.teamData = val
+    },
     async queryMainData(){
       const res = await this.$api.requested({
         "id": "20220914135203",
@@ -128,6 +193,88 @@ export default {
       })
       this.tagList = res.data.option
     },
+    onDel(){
+
+
+      if (this.mainData.groupname === '客户联系人'){
+        this.$confirm('是否确认删除当前客户的联系人?', '提示', {
+          confirmButtonText: '确定',
+          cancelButtonText: '取消',
+          closeOnClickModal:false,
+          type: 'warning'
+        }).then(async () => {
+          const res = await this.$api.requested({
+            "id": "20221018145502",
+            "content": {
+              "contactsid":this.mainData.contactsid,
+              "ownerid":this.mainData.sa_customersid,
+              "ownertable":"sa_customers",
+              "sys_enterpriseid":this.mainData.sys_enterpriseid
+            }
+          })
+          this.tool.showMessage(res,()=>{
+            this.$store.dispatch('changeDetailDrawer',false)
+            this.$emit('delSuccess')
+          })
+        }).catch(() => {
+          this.$message({
+            type: 'info',
+            message: '已取消删除'
+          });
+        });
+      }else if (this.mainData.groupname === '项目联系人') {
+        this.$confirm('是否确认删除当前项目的联系人?', '提示', {
+          confirmButtonText: '确定',
+          cancelButtonText: '取消',
+          closeOnClickModal:false,
+          type: 'warning'
+        }).then(async () => {
+
+          const  res = await this.$api.requested({
+            "id": "20221111130904",
+            "content": {
+              "ownerid":this.mainData.sa_projectid,
+              "ownertable":"sa_project",
+              "sa_project_contactsids":[this.mainData.sa_project_contactsid]
+            }
+          })
+          this.tool.showMessage(res,()=>{
+            this.$store.dispatch('changeDetailDrawer',false)
+            this.$emit('delSuccess')
+          })
+        }).catch(() => {
+          this.$message({
+            type: 'info',
+            message: '已取消删除'
+          });
+        });
+      }else {
+        this.$confirm('是否确认删除当前联系人?', '提示', {
+          confirmButtonText: '确定',
+          cancelButtonText: '取消',
+          closeOnClickModal:false,
+          type: 'warning'
+        }).then(async () => {
+
+          const  res = await this.$api.requested({
+            "id": "20220831164703",
+            "content": {
+              "sys_phonebookid":this.mainData.sys_phonebookid
+            }
+          })
+          this.tool.showMessage(res,()=>{
+            this.$store.dispatch('changeDetailDrawer',false)
+            this.$emit('delSuccess')
+          })
+        }).catch(() => {
+          this.$message({
+            type: 'info',
+            message: '已取消删除'
+          });
+        });
+      }
+
+    }
   },
   mounted() {
     this.groupList()

+ 25 - 8
src/HManagement/addressList/addressBook/index.vue

@@ -6,9 +6,11 @@
         idName="sys_phonebookid"
         :apiId="{query:20231220085804,del:''}"
         :autoQuery="false"
+        @onSuccess="selectChange"
+        :detailPath="{path:'/phonebookDetail'}"
     >
       <template #titleLight>
-        <addContact :tagList="tagList" v-if="tool.checkAuth($route.name,'addContact')" slot="addContact" :group="group" @onAddSuccess="onAddSuccess"></addContact>
+        <addContact :tagList="tagList" v-if="tool.checkAuth($route.name,'addContact')" slot="addContact" :group="group" @onAddSuccess="selectChange"></addContact>
       </template>
       <template #custom>
         <div class="mt-10" v-if="usertype === 0">
@@ -53,7 +55,7 @@
       </template>
       <template #tableLeft style="padding: 0">
         <div style="margin: 0;padding: 0;min-width: 320px;max-width: 320px;">
-          <myGroup ref="groupRef" @clickGroup="clickGroup" @groupList="groupList"></myGroup>
+          <myGroup ref="groupRef" @clickGroup="clickGroup" @groupList="groupList" :typeTab="tabName" @delGroup="onReset"></myGroup>
         </div>
       </template>
       <template v-slot:tbList="scope">
@@ -76,7 +78,7 @@
         </div>
       </template>
       <template v-slot:tbOpreation="scope">
-        <el-button size="text" @click="onGoto(scope.data.data)">详 情</el-button>
+<!--        <el-button size="text" @click="onGoto(scope.data.data)" >详 情</el-button>-->
       </template>
     </normalBook>
   </div>
@@ -166,7 +168,7 @@ export default {
     async listData(id){
       console.log(id,'tabname')
       /*const res = await this.$api.requested(this.param)*/
-      this.$refs.basicLayout.param.content.type = id
+      this.$refs.basicLayout.param.content.type = this.tabName
       this.$refs.basicLayout.listData()
     },
     /*任务页面跳转*/
@@ -197,26 +199,37 @@ export default {
       this.$refs.basicLayout.param.content.type = this.tabName
       this.$refs.basicLayout.param.content.where.tag = this.tags
       this.$refs.basicLayout.listData()
+      this.$refs.groupRef.param.content.type = this.tabName
+      this.$refs.groupRef.listData()
     },
     onReset(){
+      this.tags = []
       this.tabName = 1
       this.$refs.basicLayout.param.content.type = 1
       this.param.content.where.tag = []
       this.$refs.basicLayout.param.content.where.condition = ''
+      this.$refs.basicLayout.param.content.groupname = ''
+      this.$refs.basicLayout.param.content.sys_phonebookgroupid = ''
+      this.$refs.groupRef.param.content.type = 1
+      this.$refs.groupRef.param.content.where.groupname = ''
+      this.$refs.groupRef.$refs.grouplist.active = 0
+      /*this.$refs.groupRef.listData()*/
       this.selectChange()
     },
     clearSearch(){
       this.$refs.basicLayout.listData()
     },
-    clickGroup(val){
+    clickGroup(val,type){
+      console.log(this.tabName,'tabName22222')
+      console.log(type,'1111')
       this.$refs.basicLayout.param.content.groupname = val.groupname
       this.$refs.basicLayout.param.content.sys_phonebookgroupid = val.sys_phonebookgroupid
       this.listData()
     },
-    onAddSuccess () {
-      /*this.listData()*/
+    /*onAddSuccess () {
+      this.listData()
       this.$refs.groupRef.listData()
-    },
+    },*/
     hasDisabledTag (item) {
       let arr = []
       let arr2 = []
@@ -257,6 +270,10 @@ export default {
         }
       }
       console.log(this.group,'groupList')
+    },
+    onDelSuccess(){
+      console.log('抽屉关闭')
+      /*this.onReset()*/
     }
   },
   mounted() {

+ 88 - 0
src/HManagement/addressList/addressBook/modules/del.vue

@@ -0,0 +1,88 @@
+<template>
+  <div class="inline-16">
+    <el-button v-if="data.groupname === '项目联系人' || data.groupname === '客户联系人'" type="primary" size="small" style="color:#333" @click="onDel">删 除</el-button>
+<!--    <el-popconfirm
+        v-else
+      title="确定删除当前联系人吗?"
+      @confirm="deleteRow()">
+      <el-button slot="reference" type="text" icon="el-icon-delete" size="small" style="color:#333">删 除</el-button>
+    </el-popconfirm>-->
+  </div>
+</template>
+
+<script>
+export default {
+  props:['data'],
+  methods:{
+    async deleteRow () {
+      const res = await this.$api.requested({
+        "id": "20220831164703",
+        "content": {
+          "sys_phonebookid":this.data.sys_phonebookid
+        }
+      })
+      this.tool.showMessage(res,()=>{
+        this.$emit('onDelSuccess',this.data.sys_phonebookid)
+      })
+    },
+    onDel(){
+      if (this.data.groupname === '客户联系人'){
+        this.$confirm('是否确认删除当前客户的联系人?', '提示', {
+          confirmButtonText: '确定',
+          cancelButtonText: '取消',
+          closeOnClickModal:false,
+          type: 'warning'
+        }).then(async () => {
+
+          const res = await this.$api.requested({
+            "id": "20221018145502",
+            "content": {
+              "contactsid":this.data.contactsid,
+              "ownerid":this.data.sa_customersid,
+              "ownertable":"sa_customers",
+              "sys_enterpriseid":this.data.sys_enterpriseid
+            }
+          })
+          this.tool.showMessage(res,()=>{
+            this.$emit('onDelSuccess',this.data.sys_phonebookid)
+          })
+        }).catch(() => {
+          this.$message({
+            type: 'info',
+            message: '已取消删除'
+          });
+        });
+      }else {
+        this.$confirm('是否确认删除当前项目的联系人?', '提示', {
+          confirmButtonText: '确定',
+          cancelButtonText: '取消',
+          closeOnClickModal:false,
+          type: 'warning'
+        }).then(async () => {
+
+          const  res = await this.$api.requested({
+            "id": "20221111130904",
+            "content": {
+              "ownerid":this.data.sa_projectid,
+              "ownertable":"sa_project",
+              "sa_project_contactsids":[this.data.sa_project_contactsid]
+            }
+          })
+          this.tool.showMessage(res,()=>{
+            this.$emit('onDelSuccess',this.data.sys_phonebookid)
+          })
+        }).catch(() => {
+          this.$message({
+            type: 'info',
+            message: '已取消删除'
+          });
+        });
+      }
+
+    }
+  }
+}
+
+</script>
+<style scoped>
+</style>

+ 13 - 5
src/HManagement/addressList/addressBook/modules/edit.vue

@@ -1,6 +1,6 @@
 <template>
   <div>
-    <el-button  size="small" type="primary"  @click="onShow" >编 辑</el-button>
+    <el-button  size="mini"  :type="!disabled?'':'primary'" @click="onShow" :disabled="!disabled">编 辑</el-button>
     <el-drawer title="编辑联系人" append-to-body :visible.sync="dialogFormVisible" size="664px">
       <div class="drawer__panel">
         <el-row :gutter="20">
@@ -103,7 +103,7 @@
                 </el-select>
 
                 <el-select v-model="form.sys_phonebookgroupid" style="width:100%" v-else>
-                  <el-option v-for="item in group" :key="item.index" :value="item.sys_phonebookgroupid" :label="item.groupname"></el-option>
+                  <el-option v-for="item in groupList" :key="item.index" :value="item.sys_phonebookgroupid" :label="item.groupname"></el-option>
                 </el-select>
 
               </el-form-item>
@@ -145,7 +145,7 @@ import {mapGetters} from 'vuex'
 import {i18nGetResources} from "@wangeditor/editor";
 
 export default {
-  props:['data','tagList','allGroup','tagsList','group'],
+  props:['data','tagList','allGroup','tagsList','group','disabled'],
   data () {
     var telephone = (rule,value,callback) =>{
       if (this.form.areaCode === '' && this.form.telephone === ''){
@@ -187,6 +187,7 @@ export default {
           { required: true, validator: telephone, trigger: 'change' }
         ],
       },
+      groupList:[]
     }
   },
   computed:{
@@ -197,6 +198,7 @@ export default {
   methods:{
     onShow () {
       this.dialogFormVisible = true
+      this.queryGroup()
       this.form = Object.assign({},this.form,this.data)
       console.log(this.form,'form可编辑')
       this.form.tag = this.data.tag1
@@ -212,8 +214,6 @@ export default {
       }
     },
     addGroup () {
-      console.log(this.form,'form')
-      console.log(this.data,'data')
       this.$refs['form'].validate(async (valid) => {
         if (!valid)  return false;
         this.tags = this.form.tag
@@ -290,6 +290,14 @@ export default {
       let _isSame = arr2.some(tag=>item.tag === tag)
       return _isSame
     },
+    async queryGroup(){
+      const res = await this.$api.requested({
+        "id": 20240102153304,
+        "content": {
+        }
+      })
+      this.groupList = res.data
+    }
 
   },
   mounted () {

+ 6 - 4
src/HManagement/addressList/mycontact/index.vue

@@ -54,6 +54,7 @@ export default {
     editGroup,
     delGroup
   },
+  props:['typeTab'],
   data () {
     return {
       usertype:JSON.parse(sessionStorage.getItem('active_account')).usertype,
@@ -80,6 +81,7 @@ export default {
         "id": "20220831164303",
         "content": {
           "nocache":true,
+          "type":'1',
           "where":{
             "condition":"",
             "groupname":"",
@@ -99,7 +101,7 @@ export default {
   },
   methods:{
     async listData(){
-      console.log(this.tag,'tag编辑结果')
+      /*this.param.content.type = this.typeTab*/
       const res = await this.$api.requested(this.param)
       console.log(res.data,'新增列表群组')
       this.$emit('groupList',res.data)
@@ -111,8 +113,8 @@ export default {
 
     },
     onAddSuccess () {
-      this.listData()
-
+      /*this.listData()*/
+      this.$emit('delGroup')
     },
     onEditSuccess (form) {
 
@@ -127,7 +129,7 @@ export default {
 
     },
     clickGroup (val) {
-      this.$emit('clickGroup',val)
+      this.$emit('clickGroup',val,this.typeTab)
      /* this.$refs.contacts.condition = ''
       this.$refs.contacts.tag = ''
       this.editIndex = ''

+ 12 - 2
src/HManagement/addressList/mycontact/modules/addContact.vue

@@ -98,7 +98,7 @@
             <el-col :span="24">
               <el-form-item label="群组" prop="sys_phonebookgroupid">
                 <el-select v-model="form.sys_phonebookgroupid" style="width:100%" >
-                  <el-option v-for="item in group" :key="item.index" :value="item.sys_phonebookgroupid" :label="item.groupname"></el-option>
+                  <el-option v-for="item in groupList" :key="item.index" :value="item.sys_phonebookgroupid" :label="item.groupname"></el-option>
                 </el-select>
               </el-form-item>
             </el-col>
@@ -177,7 +177,8 @@ export default {
          /* { required: true, message: '请输入座机电话', trigger: 'change' },
           { pattern:/^0\d{2,3}-\d{7,8}$/, message: '请输入正确座机电话',trigger: 'change' }*/
         ],
-      }
+      },
+      groupList:[]
     }
   },
   watch: {
@@ -194,6 +195,7 @@ export default {
   methods:{
     onShow () {
       this.dialogFormVisible = true
+      this.queryGroup()
       console.log(this.tagList,'tagList')
       console.log(this.group,'group')
     },
@@ -287,6 +289,14 @@ export default {
       }else {
         this.form.phonenumber = ''
       }
+    },
+    async queryGroup(){
+      const res = await this.$api.requested({
+        "id": 20240102153304,
+        "content": {
+        }
+      })
+      this.groupList = res.data
     }
   },
   mounted () {

+ 0 - 2
src/HManagement/addressList/mycontact/modules/group.vue

@@ -62,7 +62,6 @@ export default {
         element.tag = element.tag1
       });})
       this.allData = this.data*/
-      console.log(this.data,'22222')
       this.sysGroup = this.data.filter(e=>{
         if(e.sys_phonebookgroupid === 0)
           return e
@@ -79,7 +78,6 @@ export default {
     },
 
     clickGroup (item) {
-      console.log(item,'选择的群组')
       this.active = item.rowindex
       this.$emit('clickGroup',item)
     }

+ 1 - 1
src/SDrpManagement/QuotedPrice/detail/components/check.vue

@@ -1,6 +1,6 @@
 <template>
   <div>
-    <el-button slot="reference" size="mini" style="width:100%" @click="onShow" :type="status === '审核' && quotedpricerecheck == '1'?'primary':''" :disabled="status !== '审核' || quotedpricerecheck == '0'">复 核</el-button>
+    <el-button slot="reference" size="mini" style="width:100%" @click="onShow" :type="status === '提交' && quotedpricerecheck == '1'?'primary':''" :disabled="status !== '提交' || quotedpricerecheck == '0'">复 核</el-button>
   </div>
 </template>
 

+ 3 - 2
src/SDrpManagement/QuotedPrice/detail/index.vue

@@ -20,9 +20,10 @@
         <!-- 此区域提供了自定义操作按钮 -->
         <submit_to class="inline-16" v-if="tool.checkAuth($route.name,'submit') && mainData.status === '新建'" :disabled="disabledFlag.disabled" :sa_quotedpriceid="mainData.sa_quotedpriceid" @onSubmit="onSuccess"></submit_to>
         <revoke class="inline-16" v-if="tool.checkAuth($route.name,'revoke') && mainData.status === '提交'" :disabled="disabledFlag.disabled" :sa_quotedpriceid="mainData.sa_quotedpriceid" @onRevoke="onSuccess"></revoke>
-        <examine_to class="inline-16" v-if="tool.checkAuth($route.name,'toExamine') && mainData.status === '提交'" :disabled="disabledFlag.disabled" :sa_quotedpriceid="mainData.sa_quotedpriceid" @onExamine="onSuccess"></examine_to>
+        <examine_to class="inline-16" v-if="tool.checkAuth($route.name,'toExamine') && mainData.status === '复核' && mainData.specialoffer == '1'" :disabled="disabledFlag.disabled" :sa_quotedpriceid="mainData.sa_quotedpriceid" @onExamine="onSuccess"></examine_to>
+        <examine_to class="inline-16" v-if="tool.checkAuth($route.name,'toExamine') && mainData.status === '提交' && mainData.specialoffer != '1'" :disabled="disabledFlag.disabled" :sa_quotedpriceid="mainData.sa_quotedpriceid" @onExamine="onSuccess"></examine_to>
         <deApprove class="inline-16" v-if="tool.checkAuth($route.name,'deApprove') && mainData.status === '审核'" :disabled="disabledFlag.disabled" :data="mainData" @onDeApprove="onSuccess"></deApprove>
-        <check class="inline-16" v-if="tool.checkAuth($route.name,'check') && mainData.specialoffer == '1' && mainData.status === '审核'" :status="mainData.status" :quotedpricerecheck="quotedpricerecheck" @onCheck="onSuccess"></check>
+        <check class="inline-16" v-if="tool.checkAuth($route.name,'check') && mainData.specialoffer == '1' &&  mainData.status === '提交'" :status="mainData.status" :quotedpricerecheck="quotedpricerecheck" @onCheck="onSuccess"></check>
         <recheck class="inline-16" v-if="tool.checkAuth($route.name,'recheck') && mainData.specialoffer == '1' && mainData.status === '复核'"  :status="mainData.status" :quotedpricerecheck="quotedpricerecheck" @onReCheck="onSuccess"></recheck>
         <copyTo class="inline-16" v-if="tool.checkAuth($route.name,'copyTo') " :data="mainData.sa_quotedpriceid" :disabled="disabledFlag.disabled"></copyTo>
         <toVoid class="inline-16" v-if="tool.checkAuth($route.name,'toVoid') && mainData.status === '新建'" :disabled="disabledFlag.disabled" :data="mainData.sa_quotedpriceid" ></toVoid>

+ 2 - 1
src/SDrpManagement/QuotedPrice/index.vue

@@ -13,7 +13,8 @@
         :detail-path="{path:'/quotedPriceDetail'}"
       >
       <template #titleRight>
-        <el-button type="primary" size="small" @click="onExport" plain>导 出</el-button>
+<!--        <el-button type="primary" size="small" @click="onExport" plain>导 出</el-button>-->
+
       </template>
       <template #custom >
         <div class="mt-10">

+ 1 - 0
src/components/normal-basic-layout/drawerDetail/drawer.vue

@@ -30,6 +30,7 @@ export default {
   },
   watch:{
     closeDrawerTemp (val) {
+      console.log(val,'关闭了弹窗查询')
       val === false ? this.$emit('onSuccess'):''
       val === false ? this.$store.dispatch('setHistoryRouter',null):""
     }

+ 46 - 0
src/components/normal-basic-layout/drawerDetail/index1.vue

@@ -0,0 +1,46 @@
+<template>
+  <div>
+    <el-button size="small" type="text" @click="onShow" >详 情</el-button>
+  </div>
+</template>
+
+<script>
+export default {
+  props:['data','detailPath','idName'],
+  components:{
+  },
+  computed:{
+	},
+  data () {
+    return {
+    }
+  },
+  methods:{
+    onShow () {
+      let key = ''
+      if (this.idName instanceof Array) {
+        key = this.idName[1]
+      } else {
+        key = this.idName
+      }
+      let query = {id:this.data[key],rowindex:this.data.rowindex - 1,sa_project_contactsid:this.data.sa_project_contactsid,contactsid:this.data.contactsid}
+      this.$router.push({path:this.detailPath.path,query:Object.assign({},query,this.detailPath.param)})
+      this.$store.dispatch('changeDetailDrawer',true)
+    },
+  },
+  watch:{
+  }
+}
+
+</script>
+<style>
+</style>
+<style scoped>
+.detail__panel{
+  background:#f1f2f3;
+  overflow-y: scroll;
+  font-size: 14px;
+  color:#666;
+  height:100vh;
+}
+</style>

+ 9 - 3
src/components/normal-basic-layout/normalBook.vue

@@ -58,7 +58,7 @@
 
               <template v-slot:opreation="scope">
 
-                <drawerTemp class="inline-16" v-if="detailPath && checkRowStatus(scope.data.status)" :data="scope.data" :detailPath="detailPath" :idName="idName" @onSuccess="listData"></drawerTemp>
+                <drawerTemp class="inline-16" v-if="detailPath && checkRowStatus(scope.data.status)" :data="scope.data" :detailPath="detailPath" :idName="idName" @onSuccess="listData" @delSuccess="delSuccess"></drawerTemp>
                 <slot :data="scope" name="tbOpreation"></slot>
                 <!--systemappid != 163 排除报表应用-->
                 <reportCenter class="inline-16"  size="mini" :data="reportCenterLsit.filter(item => item.type == 'printinfo')" v-if="reportCenterLsit.filter(item => item.type == 'printinfo').length > 0 && systemappid != 163">
@@ -91,7 +91,7 @@
 
       </div>
     </div>
-    <drawer :drawerWidth="drawerWidth" @onSuccess="listData"></drawer>
+    <drawer :drawerWidth="drawerWidth" @onSuccess="onSuccess"></drawer>
   </div>
 </template>
 
@@ -107,7 +107,7 @@ export default {
     cpAdd: () => import('./modules/cpAdd'),
     cpEdit: () => import('./modules/cpEdit'),
     setFixed: () => import('./modules/setFixed'),
-    drawerTemp:() =>  import('./drawerDetail/index'),
+    drawerTemp:() =>  import('./drawerDetail/index1'),
     excel:() =>  import('@/components/export_excel/index.vue'),
     cardTemp:() => import('./modules/cardList.vue'),
     drawer:() =>  import('./drawerDetail/drawer'),
@@ -158,6 +158,9 @@ export default {
       this.$store.state.searchValue = ''
       this.listData(this.param.content.pageNumber = 1)
     },
+    onSuccess(){
+      this.$emit('onSuccess')
+    },
     async listData () {
       this.searchValue?this.param.content.where.condition = this.searchValue:''
       this.param.id = this.apiId.query
@@ -171,6 +174,9 @@ export default {
       // 保存一下列表数据用于翻页
       this.$store.dispatch('saveListData',{listData:this.list,param:this.param,pageTotal:res.pageTotal})
     },
+    delSuccess(){
+      console.log("删除成功")
+    },
     selectChange () {
       this.param.content.pageNumber = 1
       this.param.content.where.status = this.select