| | |
| | | <el-form-item label="服务合同"> |
| | | <div class="custom-name"> |
| | | <el-autocomplete |
| | | v-model="editConfig.infomation.service_number" |
| | | v-model="editConfig.infomation.serviceContract_Number" |
| | | :fetch-suggestions=" |
| | | (queryString, callback) => { |
| | | querySearchAsync(queryString, callback, 'serviceContract') |
| | |
| | | <el-option v-for="item in faultTypeOptions" :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 class="common-select-btn"><i class="el-icon-setting"></i></div> --> |
| | | </div> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | querySearchAsync(queryString, callback, 'productName') |
| | | } |
| | | " |
| | | value-key="name" |
| | | value-key="Name" |
| | | @select="handleSelectClient('productName', $event)" |
| | | ></el-autocomplete> |
| | | <div class="common-select-btn" @click="selClientClick('productName')"> |
| | |
| | | <el-option v-for="item in serviceTypeOptions" :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 class="common-select-btn"><i class="el-icon-setting"></i></div> --> |
| | | </div> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | <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 class="common-select-btn"><i class="el-icon-setting"></i></div> --> |
| | | </div> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | <div class="common-select-btn"><i class="el-icon-setting"></i></div> |
| | | <!-- <div class="common-select-btn"><i class="el-icon-setting"></i></div> --> |
| | | </div> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | <el-option v-for="item in statusOptions" :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 class="common-select-btn"><i class="el-icon-setting"></i></div> --> |
| | | </div> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <el-form-item label="希望处理时间" prop="expectTime"> |
| | | <el-date-picker v-model="editConfig.infomation.expectTime" type="datetime" placeholder="选择时间"> |
| | | <el-date-picker |
| | | v-model="editConfig.infomation.expectTime" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | type="datetime" |
| | | placeholder="选择时间" |
| | | > |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="实际处理时间" prop="realTime"> |
| | | <el-date-picker v-model="editConfig.infomation.startTime" type="realTime" placeholder="选择时间"> |
| | | <el-date-picker |
| | | v-model="editConfig.infomation.realTime" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | type="datetime" |
| | | placeholder="选择时间" |
| | | > |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | <el-option v-for="item in timeSpentOptions" :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 class="common-select-btn"><i class="el-icon-setting"></i></div> --> |
| | | </div> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | }, |
| | | saleChancelist() { |
| | | return this.$store.state.getClientName.saleChancelist |
| | | }, |
| | | productList() { |
| | | return this.$store.state.getClientName.productList |
| | | } |
| | | }, |
| | | data() { |
| | |
| | | editConfig: this.editCommonConfig, |
| | | rules: { |
| | | serviceNumber: [{ required: true, message: "请输入服务单编号", trigger: "blur" }], |
| | | faultTypeId: [{ required: true, message: "请选择故障类别", trigger: "change" }], |
| | | // faultTypeId: [{ required: true, message: "请选择故障类别", trigger: "change" }], |
| | | subject: [{ required: true, message: "请输入主题", trigger: "blur" }], |
| | | // productCategory: [{ required: true, message: "请选择产品类别", trigger: "change" }], |
| | | serviceManId: [{ required: true, message: "请选择产品类别", trigger: "change" }], |
| | |
| | | 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 |
| | | } |
| | | }, |
| | |
| | | this.$store.dispatch("geSalesDetails") |
| | | this.$store.dispatch("geContact") |
| | | this.$store.dispatch("geChance") |
| | | this.$store.dispatch("geProductList") |
| | | this.getFaultTypeList() |
| | | this.getSeverityList() |
| | | this.getPriorityLevelList() |
| | |
| | | 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, |
| | |
| | | } else if (value === "contract") { |
| | | restaurants = this.salesDetailsList |
| | | } else if (value === "productName") { |
| | | restaurants = this.productNameList |
| | | restaurants = this.productList |
| | | } else if (value === "contact") { |
| | | restaurants = this.contactNamelist |
| | | } else if (value === "chance") { |
| | |
| | | return (state) => { |
| | | 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 |
| | | } else { |
| | | return state.name.toLowerCase().indexOf(queryString.toLowerCase()) === 0 |
| | | } |
| | |
| | | } else if (value === "contract") { |
| | | this.SalesDetailsId = item.id |
| | | } else if (value === "productName") { |
| | | this.productCategoryId = item.id |
| | | this.productName = item.Name |
| | | } else if (value === "contact") { |
| | | this.contactId = item.id |
| | | } else if (value === "chance") { |
| | |
| | | } else if (value === "serviceContract") { |
| | | this.editSelCommonConfig.title = "服务合同" |
| | | this.editSelCommonConfig.editVisible = true |
| | | this.editSelCommonConfig.tableInfomation = [...this.serviceContractList] |
| | | } else if (value === "contract") { |
| | | this.editSelCommonConfig.title = "销售明细单" |
| | | this.editSelCommonConfig.editVisible = true |
| | | this.editSelCommonConfig.tableInfomation = [...this.salesDetailsList] |
| | | } else if (value === "productName") { |
| | | this.editSelCommonConfig.title = "产品名称" |
| | | this.editSelCommonConfig.editVisible = true |
| | | this.editSelCommonConfig.tableInfomation = [...this.productNameList] |
| | | } else if (value === "contact") { |
| | | this.editSelectContactConfig.editVisible = true |
| | | } 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.productNameId = row.id |
| | | this.editConfig.infomation.product_name = row.Name |
| | | this.productName = row.Name |
| | | } else if (value === "chance") { |
| | | this.editConfig.infomation.sale_chance_name = row.name |
| | | this.saleChanceId = row.id |
| | |
| | | this.editConfig.infomation.client_name = "" |
| | | this.clientId = 0 |
| | | } else if (value === "serviceContract") { |
| | | this.editConfig.infomation.service_number = "" |
| | | this.editConfig.infomation.serviceContract_Number = "" |
| | | this.serviceContractId = 0 |
| | | } else if (value === "contract") { |
| | | this.editConfig.infomation.number = "" |
| | | 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 |