|  |  | 
 |  |  |         :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"> | 
 |  |  |                   <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> | 
 |  |  | 
 |  |  |                       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> | 
 |  |  | 
 |  |  |                     value-format="yyyy-MM-dd HH:mm:ss" | 
 |  |  |                     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> | 
 |  |  | 
 |  |  |                     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> | 
 |  |  | 
 |  |  |   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" }], | 
 |  |  |         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" }], | 
 |  |  | 
 |  |  |     this.getSeverityList() | 
 |  |  |     this.getPriorityLevelList() | 
 |  |  |     this.getTimeSpentList() | 
 |  |  |     this.formInfo() | 
 |  |  |   }, | 
 |  |  |   watch: { | 
 |  |  |     "editCommonConfig.visible"(val) { | 
 |  |  |       if (val) { | 
 |  |  |         this.formInfo() | 
 |  |  |       } | 
 |  |  |     }, | 
 |  |  |     "editCommonConfig.infomation.codeStandID"() { | 
 |  |  |       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: [], | 
 |  |  | 
 |  |  |         solutionRemark: data.solutionRemark || "", | 
 |  |  |         serviceOrderStatusId: data.serviceOrderStatusId || 0, | 
 |  |  |         subject: data.subject || "", | 
 |  |  |         timeSpentId: data.timeSpentId || 0 | 
 |  |  |         timeSpentId: data.timeSpentId || 0, | 
 |  |  |         codeStandID: data.ID, | 
 |  |  |         codeRule: this.codeRule | 
 |  |  |       } | 
 |  |  |       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.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 = "" |