Browse Source

销售线索、公海线索、线索管理bug修复优化

qymljy 3 weeks ago
parent
commit
3c272b0e7f

+ 17 - 2
src/HManagement/clueManage/clue_private/modules/contactPerson.vue

@@ -3,7 +3,7 @@
     <add class="inline-16" :data="data" @insertSuccess="listData(param.content.pageNUmber = 1)"></add>
     <el-input  style="width:200px;" :placeholder="$t('搜索')" :suffix-icon="param.content.where.condition?param.content.where.condition.length > 0?'':'':'el-icon-search'" v-model="param.content.where.condition" @keyup.native.enter="listData(param.content.pageNumber = 1)" @clear="clearSearchValue" size="small" class="input-with-select inline-16 layout_search__panel" clearable>
     </el-input>
-    <tableNewLayout :layout="tablecols" :data="list" :opwidth="200" height="calc(100vh - 426px)" :width="true" :custom="true" fixedName="operation" style="margin-top: 10px">
+    <tableNewLayout :layout="tablecols" :data="list" :opwidth="200" height="calc(100vh - 426px)" :width="true" :custom="true" fixedName="operation" style="margin-top: 15px">
       <template v-slot:customcol="scope">
         <div v-if="scope.column.columnname === 'tag'">
           <el-tag
@@ -23,6 +23,7 @@
         </div>
       </template>
       <template v-slot:opreation="scope">
+        <el-button class="inline-16" size="mini" type="text" @click="detailGo(scope.data)">{{$t('详 情')}}</el-button>
         <edit class="inline-16" :data="scope.data" @updateSuccess="listData(param.content.pageNUmber = 1)"></edit>
         <btnDelete message="确定要删除该联系人吗?" :is-number="true" name-id="2025042110012902" name-key="sat_orderclue_contactsid" :id="scope.data.sat_orderclue_contactsid" @deleteSuccess="listData(param.content.pageNUmber = 1)"></btnDelete>
       </template>
@@ -89,7 +90,21 @@ export default {
     clearSearchValue(){
       this.$store.dispatch('clearSearchValue')
       this.listData(this.param.content.pageNumber = 1)
-    }
+    },
+    detailGo(row){
+      let route = this.$route
+      if (route.path !== '/phonebookDetail') {
+        this.oldRoute = {path:route.path,query:route.query}
+        this.$store.dispatch('setHistoryRouter',this.oldRoute)
+      }
+      this.$router.push({
+        path:'/phonebookDetail',
+        query:{
+          id:row.sys_phonebookid,
+          rowindex:row.rowindex,
+        }
+      })
+    },
   },
   mounted() {
     this.listData()

+ 4 - 4
src/HManagement/clueManage/clue_private/modules/detail.vue

@@ -59,18 +59,18 @@
           :status="mainData.status"
         ></restore>
       </div>
-      <div slot="slot0" class="container normal-panel" style="padding: 10px">
+      <div slot="slot0" class="normal-panel" style="padding: 10px">
         <followDetail ref="followDetail" :disabled="true" />
       </div>
-      <div slot="slot1" class="container normal-panel">
+      <div slot="slot1" class="normal-panel">
         <contactPerson v-if="tool.checkAuth($route.name,'contactPerson')" :data="mainData"></contactPerson>
         <BaseInfo v-else :detailInfo="detailInfo" />
       </div>
-      <div slot="slot2" class="container normal-panel">
+      <div slot="slot2" class="normal-panel">
         <sourceClues v-if="tool.checkAuth($route.name,'contactPerson')"></sourceClues>
         <sourceClues v-else></sourceClues>
       </div>
-      <div slot="slot3" class="container normal-panel">
+      <div slot="slot3" class="normal-panel">
         <sourceClues></sourceClues>
       </div>
     </basicDetails>

+ 1 - 7
src/HManagement/clueManage/clue_private/modules/editContact.vue

@@ -24,13 +24,7 @@
           >
             <el-col :span="24">
               <el-form-item :label="$t(`姓名`) + ':'" prop="name">
-                <contactsNewTemplate
-                   :is-param="true"
-                   :new-param="contactParam"
-                   :name="form.name"
-                   @contactData="contactData"
-                   @inputChange="inputChange"
-                ></contactsNewTemplate>
+                <el-input    autosize v-model="form.name" :placeholder="$t('请填写联系人')" ></el-input>
               </el-form-item>
             </el-col>
             <el-col :span="24">

+ 17 - 2
src/HManagement/clueManage/clue_public/modules/contactPerson.vue

@@ -3,7 +3,7 @@
     <add class="inline-16" :data="data" @insertSuccess="listData(param.content.pageNUmber = 1)"></add>
     <el-input  style="width:200px;" :placeholder="$t('搜索')" :suffix-icon="param.content.where.condition?param.content.where.condition.length > 0?'':'':'el-icon-search'" v-model="param.content.where.condition" @keyup.native.enter="listData(param.content.pageNumber = 1)" @clear="clearSearchValue" size="small" class="input-with-select inline-16 layout_search__panel" clearable>
     </el-input>
-    <tableNewLayout :layout="tablecols" :data="list" :opwidth="200" height="calc(100vh - 426px)" :width="true" :custom="true" fixedName="operation" style="margin-top: 10px">
+    <tableNewLayout :layout="tablecols" :data="list" :opwidth="200" height="calc(100vh - 426px)" :width="true" :custom="true" fixedName="operation" style="margin-top: 15px">
       <template v-slot:customcol="scope">
         <div v-if="scope.column.columnname === 'tag'">
           <el-tag
@@ -23,6 +23,7 @@
         </div>
       </template>
       <template v-slot:opreation="scope">
+        <el-button class="inline-16" size="mini" type="text" @click="detailGo(scope.data)">{{$t('详 情')}}</el-button>
         <edit class="inline-16" :data="scope.data" @updateSuccess="listData(param.content.pageNUmber = 1)"></edit>
         <btnDelete message="确定要删除该联系人吗?" :is-number="true" name-id="2025042110012902" name-key="sat_orderclue_contactsid" :id="scope.data.sat_orderclue_contactsid" @deleteSuccess="listData(param.content.pageNUmber = 1)"></btnDelete>
       </template>
@@ -89,7 +90,21 @@ export default {
     clearSearchValue(){
       this.$store.dispatch('clearSearchValue')
       this.listData(this.param.content.pageNumber = 1)
-    }
+    },
+    detailGo(row){
+      let route = this.$route
+      if (route.path !== '/phonebookDetail') {
+        this.oldRoute = {path:route.path,query:route.query}
+        this.$store.dispatch('setHistoryRouter',this.oldRoute)
+      }
+      this.$router.push({
+        path:'/phonebookDetail',
+        query:{
+          id:row.sys_phonebookid,
+          rowindex:row.rowindex,
+        }
+      })
+    },
   },
   mounted() {
     this.listData()

+ 3 - 3
src/HManagement/clueManage/clue_public/modules/detail.vue

@@ -23,14 +23,14 @@
         <restore v-if="tool.checkAuth($route.name,'restore')" class="inline-16" @restSuccess="queryMainData" :status="mainData.status"></restore>
         <!-- <recall v-if="tool.checkAuth($route.name,'recall')" :data="mainData" @onSuccess="queryMainData"></recall> -->
       </div>
-      <div slot="slot0" class="container normal-panel" style="padding: 10px">
+      <div slot="slot0" class="normal-panel" style="padding: 10px">
         <followDetail ref="followDetail" :disabled="!isHandle || mainData.status === '已无效' || mainData.status === '已过期'"/>
       </div>
-      <div slot="slot1" class="container normal-panel">
+      <div slot="slot1" class="normal-panel">
         <contactPerson v-if="tool.checkAuth($route.name,'contactPerson')" :data="mainData"></contactPerson>
         <BaseInfo v-else :detailInfo="detailInfo"/>
       </div>
-      <div slot="slot2" class="container normal-panel">
+      <div slot="slot2" class="normal-panel">
         <BaseInfo v-if="tool.checkAuth($route.name,'contactPerson')" :detailInfo="detailInfo"/>
         <sourceClues v-else></sourceClues>
       </div>

+ 1 - 7
src/HManagement/clueManage/clue_public/modules/editContact.vue

@@ -24,13 +24,7 @@
           >
             <el-col :span="24">
               <el-form-item :label="$t(`姓名`) + ':'" prop="name">
-                <contactsNewTemplate
-                   :is-param="true"
-                   :new-param="contactParam"
-                   :name="form.name"
-                   @contactData="contactData"
-                   @inputChange="inputChange"
-                ></contactsNewTemplate>
+                <el-input  autosize v-model="form.name" :placeholder="$t('请填写联系人')" ></el-input>
               </el-form-item>
             </el-col>
             <el-col :span="24">

+ 2 - 0
src/SManagement/orderclue/components/follow.vue

@@ -46,6 +46,8 @@
             ref="upload"
             :folderid="folderid"
             @onSuccess="onSuccess"
+            @startLoad="loading = true"
+            @endLoad="loading = false"
             :bindData="bindData"
             type="button">
           </upload>

+ 2 - 4
src/SManagement/orderclue/components/upload.vue

@@ -57,8 +57,7 @@ export default {
   methods: {
     onChange (file,filelist) {
       this.fileList.push(file)
-      console.log(this.fileList);
-
+      this.$emit('startLoad')
       this.beforeUpload(file.raw)
     },
     beforeUpload (file) {
@@ -76,8 +75,8 @@ export default {
 
         that.fileLinkList.push(that.fileType.fileList([{document:file.name,url:result,type:file.type,name:file.name,postfix:postfix}])[0])
         console.log(that.fileLinkList);
-
       }
+      this.$emit('endLoad')
     },
     handleRemove (index) {
       this.fileList = this.fileList.filter((e,idx)=>{
@@ -102,7 +101,6 @@ export default {
         this.params.content.filetype = ext
         this.getUploadUrl(file, ext,callback)
       })
-
     },
 
     // 获取华为云上传地址

+ 17 - 2
src/SManagement/orderclue_detail/components/contactPerson.vue

@@ -3,7 +3,7 @@
     <add class="inline-16" :data="data" @insertSuccess="listData(param.content.pageNUmber = 1)"></add>
     <el-input  style="width:200px;" :placeholder="$t('搜索')" :suffix-icon="param.content.where.condition?param.content.where.condition.length > 0?'':'':'el-icon-search'" v-model="param.content.where.condition" @keyup.native.enter="listData(param.content.pageNumber = 1)" @clear="clearSearchValue" size="small" class="input-with-select inline-16 layout_search__panel" clearable>
     </el-input>
-    <tableNewLayout :layout="tablecols" :data="list" :opwidth="200" height="calc(100vh - 426px)" :width="true" :custom="true" fixedName="operation" style="margin-top: 10px">
+    <tableNewLayout :layout="tablecols" :data="list" :opwidth="200" height="calc(100vh - 426px)" :width="true" :custom="true" fixedName="operation" style="margin-top: 15px">
       <template v-slot:customcol="scope">
         <div v-if="scope.column.columnname === 'tag'">
           <div v-if="scope.column.data.tag1 && scope.column.data.tag1.length > 0">
@@ -26,6 +26,7 @@
         </div>
       </template>
       <template v-slot:opreation="scope">
+        <el-button class="inline-16" size="mini" type="text" @click="detailGo(scope.data)">{{$t('详 情')}}</el-button>
         <edit class="inline-16" :data="scope.data" @updateSuccess="listData(param.content.pageNUmber = 1)"></edit>
         <btnDelete message="确定要删除该联系人吗?" :is-number="true" name-id="2025042110012902" name-key="sat_orderclue_contactsid" :id="scope.data.sat_orderclue_contactsid" @deleteSuccess="listData(param.content.pageNUmber = 1)"></btnDelete>
       </template>
@@ -92,7 +93,21 @@ export default {
     clearSearchValue(){
       this.$store.dispatch('clearSearchValue')
       this.listData(this.param.content.pageNumber = 1)
-    }
+    },
+    detailGo(row){
+      let route = this.$route
+      if (route.path !== '/phonebookDetail') {
+        this.oldRoute = {path:route.path,query:route.query}
+        this.$store.dispatch('setHistoryRouter',this.oldRoute)
+      }
+      this.$router.push({
+        path:'/phonebookDetail',
+        query:{
+          id:row.sys_phonebookid,
+          rowindex:row.rowindex,
+        }
+      })
+    },
   },
   mounted() {
     this.listData()

+ 1 - 7
src/SManagement/orderclue_detail/components/editContact.vue

@@ -24,13 +24,7 @@
           >
             <el-col :span="24">
               <el-form-item :label="$t(`姓名`) + ':'" prop="name">
-                <contactsNewTemplate
-                   :is-param="true"
-                   :new-param="contactParam"
-                   :name="form.name"
-                   @contactData="contactData"
-                   @inputChange="inputChange"
-                ></contactsNewTemplate>
+                <el-input    autosize v-model="form.name" :placeholder="$t('请填写联系人')" ></el-input>
               </el-form-item>
             </el-col>
             <el-col :span="24">

+ 4 - 4
src/SManagement/orderclue_detail/index.vue

@@ -35,17 +35,17 @@
         <Del v-if="tool.checkAuth($route.name,'toVoid') " class="inline-16" :data="mainData" :disabled="!isHandle" :idName="20221123193702" @onSuccess="$store.dispatch('changeDetailDrawer',false);$router.replace('/orderclue')" :id="mainData.sat_orderclueid" idKey="sat_orderclueids"/>
         <changeSite v-if="tool.checkAuth($route.name,'changeSite')" class="inline-16"></changeSite>
       </div>
-      <div slot="slot2" class="container normal-panel">
+      <div slot="slot2" class="normal-panel">
         <BaseInfo v-if="tool.checkAuth($route.name,'contactPerson')" :detailInfo="detailInfo"/>
         <sourceClues v-else></sourceClues>
       </div>
-      <div slot="slot0" class="container normal-panel" style="padding: 10px">
+      <div slot="slot0" class="normal-panel" style="padding: 10px">
         <followDetail :data="mainData" ref="followDetail" :disabled="!isHandle || mainData.status === '已无效' || mainData.status === '已过期'" @onSuccess="queryMainData"/>
       </div>
-      <div slot="slot3" class="container normal-panel">
+      <div slot="slot3" class="normal-panel">
         <sourceClues></sourceClues>
       </div>
-      <div slot="slot1" class="container normal-panel">
+      <div slot="slot1" class="normal-panel">
         <contactPerson v-if="tool.checkAuth($route.name,'contactPerson')" :data="mainData"></contactPerson>
         <BaseInfo v-else :detailInfo="detailInfo"/>
       </div>