From 5cc1ac83a9cc0aa10acffb54a1c4d62b73b595d5 Mon Sep 17 00:00:00 2001
From: yangfeng <wanwan926_4@163.com>
Date: 星期三, 05 七月 2023 16:30:48 +0800
Subject: [PATCH] 服务管理模块和销售管理模块新增及路由配置

---
 src/views/service/orderManage/index.vue |  100 ++++++++++++++++++++++++++++++-------------------
 1 files changed, 61 insertions(+), 39 deletions(-)

diff --git a/src/views/service/orderManage/index.vue b/src/views/service/orderManage/index.vue
index 5054603..8624f48 100644
--- a/src/views/service/orderManage/index.vue
+++ b/src/views/service/orderManage/index.vue
@@ -1,5 +1,14 @@
 <template>
   <div class="sales-lead">
+    <div class="tab-view">
+      <el-tabs v-model="activeName" @tab-click="tabsClick">
+        <el-tab-pane label="鍏ㄩ儴" name="first"></el-tab-pane>
+        <el-tab-pane label="寰呭垎閰�" name="second"></el-tab-pane>
+        <el-tab-pane label="宸插偓鍗�" name="third"></el-tab-pane>
+        <el-tab-pane label="澶勭悊涓�" name="fourth"></el-tab-pane>
+        <el-tab-pane label="宸茬粨鍗�" name="aaa"></el-tab-pane>
+      </el-tabs>
+    </div>
     <SearchCommonView ref="searchCommonView" :query-class-options="queryClassOptions" :search-options="searchOptions" />
     <div class="btn-pager">
       <PublicFunctionBtnView :receive="true" :submit-approval="true" :operates-list="operatesList" />
@@ -14,8 +23,8 @@
         </el-table-column>
       </template>
     </TableCommonView>
-    <!-- 鏂板缓/缂栬緫閿�鍞嚎绱� -->
-    <AddSalesLeadDialog v-if="editSalesLeadConfig.visible" :edit-sales-lead-config="editSalesLeadConfig" />
+    <!-- 鏂板缓/缂栬緫 -->
+    <AddOrderManageDialog v-if="editConfig.visible" :edit-common-config="editConfig" />
   </div>
 </template>
 
@@ -24,7 +33,7 @@
 import PublicFunctionBtnView from "@/components/makepager/PublicFunctionBtnView"
 import PagerView from "@/components/makepager/PagerView"
 import TableCommonView from "@/components/makepager/TableCommonView"
-import AddSalesLeadDialog from "@/views/custom/salesLead/AddSalesLeadDialog"
+import AddOrderManageDialog from "@/views/service/orderManage/AddOrderManageDialog"
 
 export default {
   name: "SalesLead",
@@ -34,7 +43,7 @@
     PublicFunctionBtnView,
     PagerView,
     TableCommonView,
-    AddSalesLeadDialog
+    AddOrderManageDialog
   },
   computed: {
     searchCommonHeight() {
@@ -43,8 +52,15 @@
   },
   data() {
     return {
+      activeName: "first",
       tableList: {},
-      queryClassOptions: [{ value: "1", label: "鍏ㄩ儴" }],
+      queryClassOptions: [
+        { value: "1", label: "鍏ㄩ儴" },
+        { value: "2", label: "灏忕▼搴忔姤淇�" },
+        { value: "3", label: "闈㈣鎶ヤ慨" },
+        { value: "4", label: "浠婃棩鍐呭垱寤�" },
+        { value: "5", label: "涓夊ぉ鍐呭垱寤�" }
+      ],
       searchOptions: [],
       operatesList: [
         { id: "1", name: "鍏变韩" },
@@ -56,7 +72,7 @@
         { id: "7", name: "瀹℃壒璁剧疆" },
         { id: "8", name: "鎭㈠棰勮鍒楀" }
       ],
-      editSalesLeadConfig: {
+      editConfig: {
         visible: false,
         title: "鏂板缓",
         infomation: {}
@@ -96,49 +112,46 @@
         this.searchOptions.push({ value: (i + 1).toString(), label: label })
       }
     },
+    // tab鍒囨崲
+    tabsClick(tab, event) {
+      console.log(tab, event)
+    },
     // 鏂板缓
     addBtnClick() {
-      this.editSalesLeadConfig.visible = true
-      this.editSalesLeadConfig.title = "鏂板缓"
-      this.editSalesLeadConfig.infomation = {
+      this.editConfig.visible = true
+      this.editConfig.title = "鏂板缓"
+      this.editConfig.infomation = {
         customName: "",
-        saleLeadNumber: "LEA50",
+        orderNumber: "CS21",
+        orderName: "",
+        orderType: "",
         contactName: "",
-        contactDuties: "",
-        phoneNumber: "",
-        businessStatus: "鏂板缓",
-        businessSource: "1",
-        owner: "",
-        position: "",
-        map: "",
-        country: "1",
-        province: "1",
-        city: "1",
-        region: "1",
-        address: ""
+        repairSource: "",
+        selSourceOrder: "",
+        problemDesc: "",
+        approvalWorkflow: "",
+        approvalSteps: "",
+        approvalPerson: "",
+        approvalOpinion: ""
       }
     },
     // 缂栬緫
     handleClick(row) {
       console.log(row)
-      this.editSalesLeadConfig.visible = true
-      this.editSalesLeadConfig.title = "缂栬緫"
-      this.editSalesLeadConfig.infomation = {
-        customName: row.customName,
-        saleLeadNumber: row.saleLeadNumber,
+      this.editConfig.visible = true
+      this.editConfig.title = "缂栬緫"
+      this.editConfig.infomation = {
+        orderNumber: row.orderNumber,
+        orderName: row.orderName,
+        orderType: row.orderType,
         contactName: row.contactName,
-        contactDuties: row.contactDuties,
-        phoneNumber: row.phoneNumber,
-        businessStatus: "鏂板缓",
-        businessSource: row.businessSource,
-        owner: row.owner,
-        position: "",
-        map: "",
-        country: "1",
-        province: "1",
-        city: "1",
-        region: "1",
-        address: ""
+        repairSource: row.repairSource,
+        selSourceOrder: row.selSourceOrder,
+        problemDesc: row.problemDesc,
+        approvalWorkflow: "",
+        approvalSteps: "",
+        approvalPerson: "",
+        approvalOpinion: ""
       }
     }
   }
@@ -155,4 +168,13 @@
     }
   }
 }
+::v-deep {
+  .el-tabs--top .el-tabs__item.is-top:nth-child(2) {
+    padding-left: 25px;
+  }
+  .el-tabs__item {
+    padding: 0 25px;
+    height: 45px;
+  }
+}
 </style>

--
Gitblit v1.8.0