| | |
| | | </el-table-column> |
| | | </template> |
| | | </TableCommonView> |
| | | <!-- 新建/编辑销售线索 --> |
| | | <AddSalesLeadDialog v-if="editSalesLeadConfig.visible" :edit-sales-lead-config="editSalesLeadConfig" /> |
| | | <!-- 新建/编辑 --> |
| | | <AddServiceFollowupDialog v-if="editConfig.visible" :edit-common-config="editConfig" /> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | import PublicFunctionBtnView from "@/components/makepager/PublicFunctionBtnView" |
| | | import PagerView from "@/components/makepager/PagerView" |
| | | import TableCommonView from "@/components/makepager/TableCommonView" |
| | | import AddSalesLeadDialog from "@/views/custom/salesLead/AddSalesLeadDialog" |
| | | import AddServiceFollowupDialog from "@/views/service/serviceFollowup/AddServiceFollowupDialog" |
| | | |
| | | export default { |
| | | name: "SalesLead", |
| | |
| | | PublicFunctionBtnView, |
| | | PagerView, |
| | | TableCommonView, |
| | | AddSalesLeadDialog |
| | | AddServiceFollowupDialog |
| | | }, |
| | | computed: { |
| | | searchCommonHeight() { |
| | |
| | | { id: "7", name: "审批设置" }, |
| | | { id: "8", name: "恢复预设列宽" } |
| | | ], |
| | | editSalesLeadConfig: { |
| | | editConfig: { |
| | | visible: false, |
| | | title: "新建", |
| | | infomation: {} |
| | |
| | | }, |
| | | // 新建 |
| | | addBtnClick() { |
| | | this.editSalesLeadConfig.visible = true |
| | | this.editSalesLeadConfig.title = "新建" |
| | | this.editSalesLeadConfig.infomation = { |
| | | this.editConfig.visible = true |
| | | this.editConfig.title = "新建" |
| | | this.editConfig.infomation = { |
| | | customName: "", |
| | | saleLeadNumber: "LEA50", |
| | | followupNumber: "HF21", |
| | | contactName: "", |
| | | contactDuties: "", |
| | | phoneNumber: "", |
| | | businessStatus: "新建", |
| | | businessSource: "1", |
| | | owner: "", |
| | | position: "", |
| | | map: "", |
| | | country: "1", |
| | | province: "1", |
| | | city: "1", |
| | | region: "1", |
| | | address: "" |
| | | customServiceForm: "", |
| | | visitor: "", |
| | | projectPlan: "", |
| | | satisfaction: "", |
| | | timelyRate: "", |
| | | resolveRate: "", |
| | | originServicePerson: "", |
| | | haveBeen: "", |
| | | notes: "" |
| | | } |
| | | }, |
| | | // 编辑 |
| | | handleClick(row) { |
| | | console.log(row) |
| | | this.editSalesLeadConfig.visible = true |
| | | this.editSalesLeadConfig.title = "编辑" |
| | | this.editSalesLeadConfig.infomation = { |
| | | customName: row.customName, |
| | | saleLeadNumber: row.saleLeadNumber, |
| | | contactName: row.contactName, |
| | | contactDuties: row.contactDuties, |
| | | phoneNumber: row.phoneNumber, |
| | | businessStatus: "新建", |
| | | businessSource: row.businessSource, |
| | | owner: row.owner, |
| | | position: "", |
| | | map: "", |
| | | country: "1", |
| | | province: "1", |
| | | city: "1", |
| | | region: "1", |
| | | address: "" |
| | | this.editConfig.visible = true |
| | | this.editConfig.title = "编辑" |
| | | this.editConfig.infomation = { |
| | | customName: "", |
| | | followupNumber: "HF21", |
| | | contactName: "", |
| | | customServiceForm: "", |
| | | visitor: "", |
| | | projectPlan: "", |
| | | satisfaction: "", |
| | | timelyRate: "", |
| | | resolveRate: "", |
| | | originServicePerson: "", |
| | | haveBeen: "", |
| | | notes: "" |
| | | } |
| | | } |
| | | } |