|  |  | 
 |  |  |         :model="editConfig.infomation" | 
 |  |  |         :rules="rules" | 
 |  |  |         label-position="right" | 
 |  |  |         label-width="308px" | 
 |  |  |         label-width="168px" | 
 |  |  |         size="mini" | 
 |  |  |         style="height: 60vh; overflow-x: hidden" | 
 |  |  |       > | 
 |  |  | 
 |  |  |           <div class="basic-info-title">基本信息</div> | 
 |  |  |           <div class="basic-info-view"> | 
 |  |  |             <el-row> | 
 |  |  |               <el-col :span="12"> | 
 |  |  |                 <el-form-item label="服务单编号" prop="serviceNumber"> | 
 |  |  |                   <el-input | 
 |  |  |                     v-if=" | 
 |  |  |                       editConfig.title == '编辑' || | 
 |  |  |                       (editConfig.title == '新建' && codenumer && (explain != '' || isIdDisabled)) | 
 |  |  |                     " | 
 |  |  |                     :disabled="editConfig.title == '编辑'" | 
 |  |  |                     v-model="editConfig.infomation.serviceNumber" | 
 |  |  |                     placeholder="请输入编码" | 
 |  |  |                   > | 
 |  |  |                   </el-input> | 
 |  |  |                   <span v-else-if="editConfig.title == '新建'" style="color: #f56c6c" | 
 |  |  |                     >请优先配置编码规范 <el-button type="text" @click="numberClick"> 配置规范 </el-button></span | 
 |  |  |                   > | 
 |  |  |                   <!-- <WordInput | 
 |  |  |                     v-if="codenumer && (explain != '' || isIdDisabled) && method == 0" | 
 |  |  |                     :codenumer="codenumer" | 
 |  |  |                     :sum="sum" | 
 |  |  |                     :disabled="editConfig.title !== '新建' || isIdDisabled" | 
 |  |  |                     :inputValue="inputValue" | 
 |  |  |                     @codeList="codeList" | 
 |  |  |                   /> | 
 |  |  |                   <span v-else-if="method == 0" style="color: #f56c6c" | 
 |  |  |                     >请优先配置编码规范 <el-button type="text" @click="numberClick"> 配置规范 </el-button></span | 
 |  |  |                   > | 
 |  |  |                   <span v-else>{{ | 
 |  |  |                     editConfig.title === "新建" ? "自动生成" : editConfig.infomation.serviceNumber | 
 |  |  |                   }}</span> --> | 
 |  |  |                 </el-form-item> | 
 |  |  |               </el-col> | 
 |  |  |               <el-col :span="12"> | 
 |  |  |                 <el-form-item label="客户名称" prop="client_name"> | 
 |  |  |                   <div class="custom-name"> | 
 |  |  | 
 |  |  |                       " | 
 |  |  |                       value-key="name" | 
 |  |  |                       @select="handleSelectClient('client', $event)" | 
 |  |  |                       style="width: 100%" | 
 |  |  |                     ></el-autocomplete> | 
 |  |  |                     <div class="common-select-btn" @click="selClientClick('client')"> | 
 |  |  |                       <i class="el-icon-circle-plus-outline" title="选择"></i> | 
 |  |  |                     </div> | 
 |  |  |                     <div class="common-select-btn" @click="clearupClient('client')"> | 
 |  |  |                       <i class="el-icon-edit-outline" title="清除"></i> | 
 |  |  |                     <div | 
 |  |  |                       v-if="editConfig.infomation.client_name && editConfig.infomation.client_name.length > 0" | 
 |  |  |                       class="common-select-btn" | 
 |  |  |                       @click="clearupClient('client')" | 
 |  |  |                     > | 
 |  |  |                       <i class="el-icon-remove-outline" title="清除"></i> | 
 |  |  |                     </div> | 
 |  |  |                   </div> | 
 |  |  |                 </el-form-item> | 
 |  |  |               </el-col> | 
 |  |  |               <el-col :span="12"> | 
 |  |  |                 <el-form-item label="服务单编号" prop="serviceNumber"> | 
 |  |  |                   <el-input v-model="editConfig.infomation.serviceNumber"></el-input> | 
 |  |  |                 </el-form-item> | 
 |  |  |               </el-col> | 
 |  |  |  | 
 |  |  |               <el-col :span="12"> | 
 |  |  |                 <el-form-item label="服务合同"> | 
 |  |  |                   <div class="custom-name"> | 
 |  |  | 
 |  |  |                       " | 
 |  |  |                       value-key="number" | 
 |  |  |                       @select="handleSelectClient('serviceContract', $event)" | 
 |  |  |                       style="width: 100%" | 
 |  |  |                     ></el-autocomplete> | 
 |  |  |                     <div class="common-select-btn" @click="selClientClick('serviceContract')"> | 
 |  |  |                       <i class="el-icon-circle-plus-outline" title="选择"></i> | 
 |  |  |                     </div> | 
 |  |  |                     <div class="common-select-btn" @click="clearupClient('serviceContract')"> | 
 |  |  |                       <i class="el-icon-edit-outline" title="清除"></i> | 
 |  |  |                     <div | 
 |  |  |                       v-if=" | 
 |  |  |                         editConfig.infomation.serviceContract_Number && | 
 |  |  |                         editConfig.infomation.serviceContract_Number.length > 0 | 
 |  |  |                       " | 
 |  |  |                       class="common-select-btn" | 
 |  |  |                       @click="clearupClient('serviceContract')" | 
 |  |  |                     > | 
 |  |  |                       <i class="el-icon-remove-outline" title="清除"></i> | 
 |  |  |                     </div> | 
 |  |  |                   </div> | 
 |  |  |                 </el-form-item> | 
 |  |  | 
 |  |  |                       placeholder="请选择" | 
 |  |  |                       class="common-select-sel" | 
 |  |  |                       size="mini" | 
 |  |  |                       style="width: 100%" | 
 |  |  |                     > | 
 |  |  |                       <!-- @focus="getFaultTypeList" --> | 
 |  |  |                       <el-option v-for="item in faultTypeOptions" :key="item.id" :label="item.name" :value="item.id"> | 
 |  |  | 
 |  |  |               </el-col> | 
 |  |  |               <el-col :span="12"> | 
 |  |  |                 <el-form-item label="主题" prop="subject"> | 
 |  |  |                   <el-input v-model="editConfig.infomation.subject"></el-input> | 
 |  |  |                   <el-input v-model="editConfig.infomation.subject" style="width: 100%"></el-input> | 
 |  |  |                 </el-form-item> | 
 |  |  |               </el-col> | 
 |  |  |               <el-col :span="12"> | 
 |  |  | 
 |  |  |                       " | 
 |  |  |                       value-key="number" | 
 |  |  |                       @select="handleSelectClient('contract', $event)" | 
 |  |  |                       style="width: 100%" | 
 |  |  |                     ></el-autocomplete> | 
 |  |  |                     <div class="common-select-btn" @click="selClientClick('contract')"> | 
 |  |  |                       <i class="el-icon-circle-plus-outline" title="选择"></i> | 
 |  |  |                     </div> | 
 |  |  |                     <div class="common-select-btn" @click="clearupClient('contract')"> | 
 |  |  |                       <i class="el-icon-edit-outline" title="清除"></i> | 
 |  |  |                     <div | 
 |  |  |                       v-if="editConfig.infomation.number && editConfig.infomation.number.length > 0" | 
 |  |  |                       class="common-select-btn" | 
 |  |  |                       @click="clearupClient('contract')" | 
 |  |  |                     > | 
 |  |  |                       <i class="el-icon-remove-outline" title="清除"></i> | 
 |  |  |                     </div> | 
 |  |  |                   </div> | 
 |  |  |                 </el-form-item> | 
 |  |  | 
 |  |  |                 </el-form-item> | 
 |  |  |               </el-col> --> | 
 |  |  |               <el-col :span="12"> | 
 |  |  |                 <el-form-item label="产品名称" prop="product_name"> | 
 |  |  |                 <el-form-item label="产品名称" prop="productName"> | 
 |  |  |                   <div class="custom-name"> | 
 |  |  |                     <el-autocomplete | 
 |  |  |                       v-model="editConfig.infomation.product_name" | 
 |  |  |                       v-model="editConfig.infomation.productName" | 
 |  |  |                       :fetch-suggestions=" | 
 |  |  |                         (queryString, callback) => { | 
 |  |  |                           querySearchAsync(queryString, callback, 'productName') | 
 |  |  |                         } | 
 |  |  |                       " | 
 |  |  |                       value-key="Name" | 
 |  |  |                       value-key="name" | 
 |  |  |                       @select="handleSelectClient('productName', $event)" | 
 |  |  |                       style="width: 100%" | 
 |  |  |                     ></el-autocomplete> | 
 |  |  |                     <div class="common-select-btn" @click="selClientClick('productName')"> | 
 |  |  |                       <i class="el-icon-circle-plus-outline" title="选择"></i> | 
 |  |  |                     </div> | 
 |  |  |                     <div class="common-select-btn" @click="clearupClient('productName')"> | 
 |  |  |                       <i class="el-icon-edit-outline" title="清除"></i> | 
 |  |  |                     <div | 
 |  |  |                       v-if="editConfig.infomation.productName && editConfig.infomation.productName.length > 0" | 
 |  |  |                       class="common-select-btn" | 
 |  |  |                       @click="clearupClient('productName')" | 
 |  |  |                     > | 
 |  |  |                       <i class="el-icon-remove-outline" title="清除"></i> | 
 |  |  |                     </div> | 
 |  |  |                   </div> | 
 |  |  |                 </el-form-item> | 
 |  |  | 
 |  |  |                       placeholder="请选择" | 
 |  |  |                       class="common-select-sel" | 
 |  |  |                       size="mini" | 
 |  |  |                       style="width: 100%" | 
 |  |  |                     > | 
 |  |  |                       <el-option v-for="item in serviceTypeOptions" :key="item.id" :label="item.name" :value="item.id"> | 
 |  |  |                       </el-option> | 
 |  |  | 
 |  |  |                       placeholder="请选择" | 
 |  |  |                       class="common-select-sel" | 
 |  |  |                       size="mini" | 
 |  |  |                       style="width: 100%" | 
 |  |  |                     > | 
 |  |  |                       <el-option | 
 |  |  |                         v-for="item in serviceManOptions" | 
 |  |  | 
 |  |  |                 </el-form-item> | 
 |  |  |               </el-col> | 
 |  |  |               <el-col :span="12"> | 
 |  |  |                 <el-form-item label="联系人姓名" prop="client_name"> | 
 |  |  |                 <el-form-item label="联系人姓名" prop="contact_name"> | 
 |  |  |                   <div class="custom-name"> | 
 |  |  |                     <el-autocomplete | 
 |  |  |                       v-model="editConfig.infomation.contact_name" | 
 |  |  | 
 |  |  |                       " | 
 |  |  |                       value-key="name" | 
 |  |  |                       @select="handleSelectClient('contact', $event)" | 
 |  |  |                       style="width: 100%" | 
 |  |  |                     ></el-autocomplete> | 
 |  |  |                     <div class="common-select-btn" @click="selClientClick('contact')"> | 
 |  |  |                       <i class="el-icon-circle-plus-outline" title="选择"></i> | 
 |  |  |                     </div> | 
 |  |  |                     <div class="common-select-btn" @click="clearupClient('contact')"> | 
 |  |  |                       <i class="el-icon-edit-outline" title="清除"></i> | 
 |  |  |                     <div | 
 |  |  |                       v-if="editConfig.infomation.contact_name && editConfig.infomation.contact_name.length > 0" | 
 |  |  |                       class="common-select-btn" | 
 |  |  |                       @click="clearupClient('contact')" | 
 |  |  |                     > | 
 |  |  |                       <i class="el-icon-remove-outline" title="清除"></i> | 
 |  |  |                     </div> | 
 |  |  |                   </div> | 
 |  |  |                 </el-form-item> | 
 |  |  |               </el-col> | 
 |  |  |               <el-col :span="12"> | 
 |  |  |                 <el-form-item label="严重程度" prop="severity"> | 
 |  |  |                 <el-form-item label="严重程度" prop="severityId"> | 
 |  |  |                   <div class="common-select"> | 
 |  |  |                     <el-select | 
 |  |  |                       v-model="editConfig.infomation.severity" | 
 |  |  |                       v-model="editConfig.infomation.severityId" | 
 |  |  |                       placeholder="请选择" | 
 |  |  |                       class="common-select-sel" | 
 |  |  |                       size="mini" | 
 |  |  |                       style="width: 100%" | 
 |  |  |                     > | 
 |  |  |                       <el-option v-for="item in severityOptions" :key="item.id" :label="item.name" :value="item.id"> | 
 |  |  |                       </el-option> | 
 |  |  |                     </el-select> | 
 |  |  |                     <!-- <div class="common-select-btn"><i class="el-icon-setting"></i></div> --> | 
 |  |  |                   </div> | 
 |  |  |                 </el-form-item> | 
 |  |  |               </el-col> | 
 |  |  |               <el-col :span="24"> | 
 |  |  |                 <el-form-item label="上门地址" prop="address"> | 
 |  |  |                   <el-input | 
 |  |  |                     type="textarea" | 
 |  |  |                     :autosize="{ minRows: 2, maxRows: 4 }" | 
 |  |  |                     placeholder="请输入内容" | 
 |  |  |                     v-model="editConfig.infomation.address" | 
 |  |  |                   ></el-input> | 
 |  |  |                 </el-form-item> | 
 |  |  |               </el-col> | 
 |  |  |               <el-col :span="12"> | 
 |  |  | 
 |  |  |                       placeholder="请选择" | 
 |  |  |                       class="common-select-sel" | 
 |  |  |                       size="mini" | 
 |  |  |                       style="width: 100%" | 
 |  |  |                     > | 
 |  |  |                       <el-option | 
 |  |  |                         v-for="item in priorityLevelOptions" | 
 |  |  | 
 |  |  |                     v-model="editConfig.infomation.appointmentTime" | 
 |  |  |                     type="datetime" | 
 |  |  |                     placeholder="选择日期" | 
 |  |  |                     style="width: 100%" | 
 |  |  |                   > | 
 |  |  |                   </el-date-picker> | 
 |  |  |                 </el-form-item> | 
 |  |  |               </el-col> | 
 |  |  |               <el-col :span="12"> | 
 |  |  |                 <el-form-item label="销售机会" prop="client_name"> | 
 |  |  |                 <el-form-item label="销售机会" prop="sale_chance_name"> | 
 |  |  |                   <div class="custom-name"> | 
 |  |  |                     <el-autocomplete | 
 |  |  |                       v-model="editConfig.infomation.sale_chance_name" | 
 |  |  | 
 |  |  |                       " | 
 |  |  |                       value-key="name" | 
 |  |  |                       @select="handleSelectClient('chance', $event)" | 
 |  |  |                       style="width: 100%" | 
 |  |  |                     ></el-autocomplete> | 
 |  |  |                     <div class="common-select-btn" @click="selClientClick('chance')"> | 
 |  |  |                       <i class="el-icon-circle-plus-outline"></i> | 
 |  |  |                     </div> | 
 |  |  |                     <div class="common-select-btn" @click="clearupClient('chance')"> | 
 |  |  |                       <i class="el-icon-edit-outline"></i> | 
 |  |  |                     <div | 
 |  |  |                       v-if="editConfig.infomation.sale_chance_name && editConfig.infomation.sale_chance_name.length > 0" | 
 |  |  |                       class="common-select-btn" | 
 |  |  |                       @click="clearupClient('chance')" | 
 |  |  |                     > | 
 |  |  |                       <i class="el-icon-remove-outline"></i> | 
 |  |  |                     </div> | 
 |  |  |                   </div> | 
 |  |  |                 </el-form-item> | 
 |  |  |               </el-col> | 
 |  |  |               <el-col :span="24"> | 
 |  |  |                 <el-form-item label="上门地址" prop="address"> | 
 |  |  |                   <el-input | 
 |  |  |                     type="textarea" | 
 |  |  |                     :autosize="{ minRows: 2, maxRows: 4 }" | 
 |  |  |                     placeholder="请输入内容" | 
 |  |  |                     v-model="editConfig.infomation.address" | 
 |  |  |                   ></el-input> | 
 |  |  |                 </el-form-item> | 
 |  |  |               </el-col> | 
 |  |  |             </el-row> | 
 |  |  | 
 |  |  |                       placeholder="请选择" | 
 |  |  |                       class="common-select-sel" | 
 |  |  |                       size="mini" | 
 |  |  |                       style="width: 100%" | 
 |  |  |                     > | 
 |  |  |                       <el-option v-for="item in statusOptions" :key="item.id" :label="item.name" :value="item.id"> | 
 |  |  |                       </el-option> | 
 |  |  | 
 |  |  |                     value-format="yyyy-MM-dd HH:mm:ss" | 
 |  |  |                     type="datetime" | 
 |  |  |                     placeholder="选择时间" | 
 |  |  |                     style="width: 100%" | 
 |  |  |                   > | 
 |  |  |                   </el-date-picker> | 
 |  |  |                 </el-form-item> | 
 |  |  | 
 |  |  |               <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="选择时间" | 
 |  |  |                     style="width: 100%" | 
 |  |  |                   > | 
 |  |  |                   </el-date-picker> | 
 |  |  |                 </el-form-item> | 
 |  |  | 
 |  |  |                     placeholder="请输入" | 
 |  |  |                     :min="0" | 
 |  |  |                     :controls="false" | 
 |  |  |                     style="width: 100%; margin-right: 5px" | 
 |  |  |                     style="width: 100%" | 
 |  |  |                   ></el-input-number> | 
 |  |  |                 </el-form-item> | 
 |  |  |               </el-col> | 
 |  |  | 
 |  |  |                     placeholder="请输入" | 
 |  |  |                     :min="0" | 
 |  |  |                     :controls="false" | 
 |  |  |                     style="width: 100%; margin-right: 5px" | 
 |  |  |                     style="width: 100%" | 
 |  |  |                   ></el-input-number> | 
 |  |  |                 </el-form-item> | 
 |  |  |               </el-col> | 
 |  |  | 
 |  |  |                       placeholder="请选择" | 
 |  |  |                       class="common-select-sel" | 
 |  |  |                       size="mini" | 
 |  |  |                       style="width: 100%" | 
 |  |  |                     > | 
 |  |  |                       <el-option v-for="item in timeSpentOptions" :key="item.id" :label="item.name" :value="item.id"> | 
 |  |  |                       </el-option> | 
 |  |  | 
 |  |  |             <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" | 
 |  |  |                     style="width: 100%" | 
 |  |  |                   > | 
 |  |  |                     <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"> | 
 |  |  | 
 |  |  | 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, | 
 |  |  | 
 |  |  |   getTimeSpentList | 
 |  |  | } from "@/api/common/other" | 
 |  |  | import Status from "@/common/const/commonStatus" | 
 |  |  | import codeMixin from "./mixin/codeMixin" | 
 |  |  |  | 
 |  |  | export default { | 
 |  |  |   name: "AddClientServiceOrderDialog", | 
 |  |  |   mixins: [pageMixin], | 
 |  |  |   mixins: [pageMixin, codeMixin], | 
 |  |  |   props: { | 
 |  |  |     editCommonConfig: { | 
 |  |  |       type: Object, | 
 |  |  | 
 |  |  |   }, | 
 |  |  |   data() { | 
 |  |  |     return { | 
 |  |  |       dialogWidth: "80%", | 
 |  |  |       dialogWidth: "50%", | 
 |  |  |       editConfig: this.editCommonConfig, | 
 |  |  |       rules: { | 
 |  |  |         serviceNumber: [{ required: true, message: "请输入服务单编号", trigger: "blur" }], | 
 |  |  |         // faultTypeId: [{ required: true, message: "请选择故障类别", trigger: "change" }], | 
 |  |  |         serviceNumber: [{ required: true, validator: this.validateCheckCode, trigger: ["blur", "change"] }], | 
 |  |  |         client_name: [{ required: true, message: "请选择客户名称", trigger: "change" }], | 
 |  |  |         subject: [{ required: true, message: "请输入主题", trigger: "blur" }], | 
 |  |  |         // productCategory: [{ required: true, message: "请选择产品类别", trigger: "change" }], | 
 |  |  |         serviceManId: [{ required: true, message: "请选择产品类别", trigger: "change" }], | 
 |  |  |         serviceManId: [{ required: true, validator: this.validateMemberId, trigger: "change" }], | 
 |  |  |         serviceOrderStatusId: [{ required: true, message: "请选择故障类别", trigger: "change" }], | 
 |  |  |         problemDesc: [{ required: true, message: "请输入问题描述", trigger: "blur" }] | 
 |  |  |       }, | 
 |  |  | 
 |  |  |       priorityLevelOptions: [], // 优先级别 | 
 |  |  |       statusOptions: Status.processStatus, // 处理状态 | 
 |  |  |       timeSpentOptions: [], // 花费时间 | 
 |  |  |       faqOptions: [], // 常见问题 | 
 |  |  |       editSelectClientConfig: { | 
 |  |  |         editVisible: false, | 
 |  |  |         title: "", | 
 |  |  | 
 |  |  |     this.getSeverityList() | 
 |  |  |     this.getPriorityLevelList() | 
 |  |  |     this.getTimeSpentList() | 
 |  |  |     this.formInfo() | 
 |  |  |   }, | 
 |  |  |   watch: { | 
 |  |  |     "editCommonConfig.visible"(val) { | 
 |  |  |       if (val) { | 
 |  |  |         this.formInfo() | 
 |  |  |       } | 
 |  |  |     } | 
 |  |  |   }, | 
 |  |  |   methods: { | 
 |  |  |     formInfo() { | 
 |  |  |       this.objCode.codeStandID = "" | 
 |  |  |       if (this.editConfig.infomation.codeStandID) { | 
 |  |  |         this.objCode.codeStandID = this.editConfig.infomation.codeStandID | 
 |  |  |       } | 
 |  |  |       this.getRCodeStandardList() | 
 |  |  |     }, | 
 |  |  |     setTable() { | 
 |  |  |       this.recordTableList = { | 
 |  |  |         tableInfomation: [], | 
 |  |  | 
 |  |  |     }, | 
 |  |  |     getCommonData() { | 
 |  |  |       getAllData().then((res) => { | 
 |  |  |         this.memberOptions = res.data.member | 
 |  |  |         this.serviceManOptions = res.data.member | 
 |  |  |         if (this.editConfig.title === "新建") { | 
 |  |  |           let username = document.cookie.replace(/(?:(?:^|.*;\s*)username\s*=\s*([^;]*).*$)|^.*$/, "$1") | 
 |  |  |           this.serviceManOptions.map((item) => { | 
 |  |  |             if (item.username == username) { | 
 |  |  |               this.$set(this.editConfig.infomation, "serviceManId", item.id) | 
 |  |  |             } | 
 |  |  |           }) | 
 |  |  |         } | 
 |  |  |         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) { | 
 |  |  | 
 |  |  |         serviceManId: data.serviceManId || 0, | 
 |  |  |         serviceNumber: data.serviceNumber || "", | 
 |  |  |         serviceTypeId: data.serviceTypeId || 0, | 
 |  |  |         severity: data.severity || 0, | 
 |  |  |         severityId: data.severityId || 0, | 
 |  |  |         solution: data.solution || "", | 
 |  |  |         solutionRemark: data.solutionRemark || "", | 
 |  |  |         serviceOrderStatusId: data.serviceOrderStatusId || 0, | 
 |  |  |         subject: data.subject || "", | 
 |  |  |         timeSpentId: data.timeSpentId || 0 | 
 |  |  |         timeSpentId: data.timeSpentId || 0, | 
 |  |  |         codeStandID: data.ID | 
 |  |  |       } | 
 |  |  |       return params | 
 |  |  |     }, | 
 |  |  | 
 |  |  |         if (value === "serviceContract" || value === "contract") { | 
 |  |  |           return state.number.toLowerCase().indexOf(queryString.toLowerCase()) === 0 | 
 |  |  |         } else if (value === "productName") { | 
 |  |  |           return state.Name.toLowerCase().indexOf(queryString.toLowerCase()) === 0 | 
 |  |  |           return state.name.toLowerCase().indexOf(queryString.toLowerCase()) === 0 | 
 |  |  |         } else { | 
 |  |  |           return state.name.toLowerCase().indexOf(queryString.toLowerCase()) === 0 | 
 |  |  |         } | 
 |  |  | 
 |  |  |       } else if (value === "contract") { | 
 |  |  |         this.SalesDetailsId = item.id | 
 |  |  |       } else if (value === "productName") { | 
 |  |  |         this.productName = item.Name | 
 |  |  |         this.productName = item.name | 
 |  |  |       } else if (value === "contact") { | 
 |  |  |         this.contactId = item.id | 
 |  |  |       } else if (value === "chance") { | 
 |  |  | 
 |  |  |         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.editConfig.infomation.productName = row.name | 
 |  |  |         this.productName = row.Name | 
 |  |  |       } else if (value === "chance") { | 
 |  |  |         this.editConfig.infomation.sale_chance_name = row.name | 
 |  |  | 
 |  |  |         this.editConfig.infomation.number = "" | 
 |  |  |         this.SalesDetailsId = 0 | 
 |  |  |       } else if (value === "productName") { | 
 |  |  |         this.editConfig.infomation.product_name = "" | 
 |  |  |         this.editConfig.infomation.productName = "" | 
 |  |  |         this.productName = "" | 
 |  |  |       } else if (value === "contact") { | 
 |  |  |         this.editConfig.infomation.contact_name = "" | 
 |  |  | 
 |  |  |       } | 
 |  |  |     }, | 
 |  |  |     // 故障类别 | 
 |  |  |     async getFaultTypeList() { | 
 |  |  |       await getFaultTypeList().then((res) => { | 
 |  |  |         this.faultTypeOptions = res.data.data | 
 |  |  |     getFaultTypeList() { | 
 |  |  |       getFaultTypeList().then((res) => { | 
 |  |  |         this.faultTypeOptions = res.data.data ? res.data.data : [] | 
 |  |  |         this.$set(this.editConfig.infomation, "faultTypeId", this.editConfig.infomation.faultTypeId) | 
 |  |  |       }) | 
 |  |  |     }, | 
 |  |  |     // 服务方式 | 
 |  |  |     async getServiceTypeList() { | 
 |  |  |       await getServiceTypeList().then((res) => { | 
 |  |  |         this.serviceTypeOptions = res.data.data | 
 |  |  |     getServiceTypeList() { | 
 |  |  |       getServiceTypeList().then((res) => { | 
 |  |  |         this.serviceTypeOptions = res.data.data ? res.data.data : [] | 
 |  |  |         this.$set(this.editConfig.infomation, "serviceTypeId", this.editConfig.infomation.serviceTypeId) | 
 |  |  |       }) | 
 |  |  |     }, | 
 |  |  |     // 严重程度 | 
 |  |  |     async getSeverityList() { | 
 |  |  |       await getSeverityList().then((res) => { | 
 |  |  |         this.severityOptions = res.data.data | 
 |  |  |     getSeverityList() { | 
 |  |  |       getSeverityList().then((res) => { | 
 |  |  |         this.severityOptions = res.data.data ? res.data.data : [] | 
 |  |  |  | 
 |  |  |         this.$set(this.editConfig.infomation, "severityId", this.editConfig.infomation.severityId) | 
 |  |  |       }) | 
 |  |  |     }, | 
 |  |  |     // 优先级别 | 
 |  |  |     async getPriorityLevelList() { | 
 |  |  |       await getPriorityLevelList().then((res) => { | 
 |  |  |         this.priorityLevelOptions = res.data.data | 
 |  |  |     getPriorityLevelList() { | 
 |  |  |       getPriorityLevelList().then((res) => { | 
 |  |  |         this.priorityLevelOptions = res.data.data ? res.data.data : [] | 
 |  |  |  | 
 |  |  |         this.$set(this.editConfig.infomation, "priorityLevelId", this.editConfig.infomation.priorityLevelId) | 
 |  |  |       }) | 
 |  |  |     }, | 
 |  |  |     // 花费时间 | 
 |  |  |     async getTimeSpentList() { | 
 |  |  |       await getTimeSpentList().then((res) => { | 
 |  |  |         this.timeSpentOptions = res.data.data | 
 |  |  |     getTimeSpentList() { | 
 |  |  |       getTimeSpentList().then((res) => { | 
 |  |  |         this.timeSpentOptions = res.data.data ? res.data.data : [] | 
 |  |  |         this.$set(this.editConfig.infomation, "timeSpentId", this.editConfig.infomation.timeSpentId) | 
 |  |  |       }) | 
 |  |  |     }, | 
 |  |  |     // 服务人员自定义校验规则 | 
 |  |  |     validateMemberId(rule, value, callback) { | 
 |  |  |       if (this.editConfig.infomation?.serviceManId > 0) { | 
 |  |  |         callback() | 
 |  |  |       } else { | 
 |  |  |         callback(new Error("请选择服务人员")) | 
 |  |  |       } | 
 |  |  |     } | 
 |  |  |   } | 
 |  |  | } |