| | |
| | | // 请求数据 |
| | | async getData() { |
| | | this.loading = true |
| | | await getServiceOrderList({ |
| | | keyword: this.keyword, |
| | | keywordType: this.keywordType, |
| | | page: this.pagerOptions.currPage, |
| | | pageSize: this.pagerOptions.pageSize, |
| | | salesDetailsId: 0, |
| | | serviceContractId: 0 |
| | | }) |
| | | console.log(this.addConfig) |
| | | let params = {} |
| | | if (this.addConfig.keywordType === "服务合同") { |
| | | params = { |
| | | serviceContractId: this.addConfig.serviceContractId, |
| | | page: this.pagerOptions.currPage, |
| | | pageSize: this.pagerOptions.pageSize |
| | | } |
| | | } else { |
| | | params = { |
| | | keyword: this.keyword, |
| | | keywordType: this.keywordType, |
| | | page: this.pagerOptions.currPage, |
| | | pageSize: this.pagerOptions.pageSize |
| | | } |
| | | } |
| | | await getServiceOrderList(params) |
| | | .then((res) => { |
| | | console.log(res) |
| | | if (res.code === 200) { |
| | |
| | | }, |
| | | // 编辑 |
| | | handleClick(row) { |
| | | console.log(row) |
| | | console.log(row,"row") |
| | | this.editConfig.visible = true |
| | | this.editConfig.title = "编辑" |
| | | this.editConfig.infomation = { |
| | | ...row, |
| | | faultTypeId:row.faultTypeId==0?"":row.faultTypeId, |
| | | serviceTypeId:row.serviceTypeId==0?"":row.serviceTypeId, |
| | | severityId:row.severityId==0?"":row.severityId, |
| | | priorityLevelId:row.priorityLevelId==0?"":row.priorityLevelId, |
| | | timeSpentId:row.timeSpentId==0?"":row.timeSpentId, |
| | | faqId:row.faqId==0?"":row.faqId, // faqId |
| | | contact_name: row.Contact.name, |
| | | service_number: row.serviceContractId, |
| | | number: row.SalesDetails.number, |