From 46ed69e3b72658140a40127f4bae16bef9a02d56 Mon Sep 17 00:00:00 2001
From: yangfeng <wanwan926_4@163.com>
Date: 星期一, 21 八月 2023 11:23:34 +0800
Subject: [PATCH] bug修复

---
 src/views/service/clientServiceOrder/AddCientServiceOrderDialog.vue |   41 +++++++++++++++++++++++++++++++----------
 1 files changed, 31 insertions(+), 10 deletions(-)

diff --git a/src/views/service/clientServiceOrder/AddCientServiceOrderDialog.vue b/src/views/service/clientServiceOrder/AddCientServiceOrderDialog.vue
index 5450cbc..3b1b54c 100644
--- a/src/views/service/clientServiceOrder/AddCientServiceOrderDialog.vue
+++ b/src/views/service/clientServiceOrder/AddCientServiceOrderDialog.vue
@@ -338,9 +338,9 @@
               <el-col :span="12">
                 <el-form-item label="瀹為檯澶勭悊鏃堕棿" prop="realTime">
                   <el-date-picker
-                    v-model="editConfig.infomation.startTime"
+                    v-model="editConfig.infomation.realTime"
                     value-format="yyyy-MM-dd HH:mm:ss"
-                    type="realTime"
+                    type="datetime"
                     placeholder="閫夋嫨鏃堕棿"
                   >
                   </el-date-picker>
@@ -408,7 +408,16 @@
             <el-row>
               <el-col :span="12">
                 <el-form-item label="甯歌闂" prop="faqId">
-                  <el-input v-model="editConfig.infomation.faqId"></el-input>
+                  <!-- <el-input v-model="editConfig.infomation.faqId"></el-input> -->
+                  <el-select
+                    v-model="editConfig.infomation.faqId"
+                    placeholder="璇烽�夋嫨"
+                    class="common-select-sel"
+                    size="mini"
+                  >
+                    <el-option v-for="item in faqOptions" :key="item.id" :label="item.name" :value="item.id">
+                    </el-option>
+                  </el-select>
                 </el-form-item>
               </el-col>
               <el-col :span="24">
@@ -569,6 +578,7 @@
 import SelectCommonDialog from "@/views/other/commonDialog/SelectCommonDialog"
 import SelectContactDialog from "@/views/other/commonDialog/SelectContactDialog"
 import SelectChanceDialog from "@/views/other/commonDialog/SelectChanceDialog"
+import { getFaqList } from "@/api/common/other"
 import {
   getFaultTypeList,
   getServiceTypeList,
@@ -639,6 +649,7 @@
       priorityLevelOptions: [], // 浼樺厛绾у埆
       statusOptions: Status.processStatus, // 澶勭悊鐘舵��
       timeSpentOptions: [], // 鑺辫垂鏃堕棿
+      faqOptions: [], // 甯歌闂
       editSelectClientConfig: {
         editVisible: false,
         title: "",
@@ -677,7 +688,7 @@
       contactId: this.editCommonConfig.infomation.contactId,
       serviceContractId: this.editCommonConfig.infomation.serviceContractId,
       SalesDetailsId: this.editCommonConfig.infomation.SalesDetailsId,
-      productNameId: this.editCommonConfig.infomation.productId,
+      productName: this.editCommonConfig.infomation.productName,
       saleChanceId: this.editCommonConfig.infomation.saleChanceId
     }
   },
@@ -719,6 +730,16 @@
         this.reportSourceOptions = res.data.reportSource
       })
       this.getServiceTypeList()
+      this.getFaqList()
+    },
+    // 鑾峰彇甯歌闂鍒楄〃
+    async getFaqList() {
+      await getFaqList().then((res) => {
+        console.log(res)
+        if (res.data.code === 200) {
+          this.faqOptions = res.data.data.data
+        }
+      })
     },
     // 淇濆瓨
     saveClick(formName) {
@@ -769,7 +790,8 @@
         SalesDetailsId: this.SalesDetailsId || 0,
         priorityLevelId: data.priorityLevelId || 0,
         problemDesc: data.problemDesc || "",
-        productId: this.productNameId,
+        productName: this.productName,
+        productTypeName: "",
         realTime: data.realTime || "",
         remark: data.remark || "",
         saleChanceId: this.saleChanceId || 0,
@@ -798,7 +820,6 @@
       } else if (value === "contract") {
         restaurants = this.salesDetailsList
       } else if (value === "productName") {
-        console.log(this.productList)
         restaurants = this.productList
       } else if (value === "contact") {
         restaurants = this.contactNamelist
@@ -827,7 +848,7 @@
       } else if (value === "contract") {
         this.SalesDetailsId = item.id
       } else if (value === "productName") {
-        this.productNameId = item.Number
+        this.productName = item.Name
       } else if (value === "contact") {
         this.contactId = item.id
       } else if (value === "chance") {
@@ -862,14 +883,14 @@
         this.editConfig.infomation.client_name = row.name
         this.clientId = row.id
       } else if (value === "serviceContract") {
-        this.editConfig.infomation.service_number = row.number
+        this.editConfig.infomation.serviceContract_Number = row.number
         this.serviceContractId = row.id
       } else if (value === "contract") {
         this.editConfig.infomation.number = row.number
         this.SalesDetailsId = row.id
       } else if (value === "productName") {
         this.editConfig.infomation.product_name = row.Name
-        this.productNameId = row.Number
+        this.productName = row.Name
       } else if (value === "chance") {
         this.editConfig.infomation.sale_chance_name = row.name
         this.saleChanceId = row.id
@@ -888,7 +909,7 @@
         this.SalesDetailsId = 0
       } else if (value === "productName") {
         this.editConfig.infomation.product_name = ""
-        this.productNameId = 0
+        this.productName = ""
       } else if (value === "contact") {
         this.editConfig.infomation.contact_name = ""
         this.contactId = 0

--
Gitblit v1.8.0