| | |
| | | }, |
| | | created(){ |
| | | const userObj = Cookies.get('userObj'); |
| | | |
| | | console.log(userObj,"看看") |
| | | if (userObj) { |
| | | let userInfo = JSON.parse(userObj); |
| | | this.editConfig.userId=userInfo.id |
| | |
| | | }, |
| | | created() { |
| | | if (this.editConfig.title !== "新建") { |
| | | this.productTableList.tableData=[ |
| | | { |
| | | productId: this.productId, |
| | | id: 0, |
| | | amount: 0, |
| | | desc: "", |
| | | name: "", |
| | | number: "", |
| | | price: 0, |
| | | cost: "", |
| | | profit: "", |
| | | margin: "", |
| | | total: 0, |
| | | unit: "" |
| | | } |
| | | ] |
| | | this.isAddQuatation = false |
| | | } |
| | | this.$store.dispatch("geClient") |
| | |
| | | }, |
| | | // 编辑 |
| | | handleClick(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, |