销售机会+联系人 新建销售明细单成功后列表无数据销售明细单问题和报价单添加后无数据问题的修改
| | |
| | | this.getContactList() |
| | | this.setData(this.detailConfig.infomation) |
| | | this.addConfig = { |
| | | id_name: "client_name", |
| | | id_name: "client_id", |
| | | keywordType: "客户名称", |
| | | keyword: this.detailConfig.infomation.name, |
| | | id: this.detailConfig.infomation.id, |
| | |
| | | number: [{ required: true, message: "请输入", trigger: "blur" }], |
| | | quotationName: [{ required: true, message: "请输入", trigger: "blur" }], |
| | | quotation_status_id: [{ required: true, message: "请选择", trigger: "change" }], |
| | | sale_chance_name: [{ required: true, validator: this.checkChance, trigger: "blur" }], |
| | | sale_chance_name: [{ required: true, validator: this.checkChance, trigger: "change" }], |
| | | member_id: [{ required: true, message: "请选择负责人", trigger: "change" }] |
| | | }, |
| | | memberOptions: [], |
| | |
| | | validity_date: data.validity_date || "", |
| | | products: this.tableData, |
| | | codeStandID: data.ID, |
| | | codeRule: this.codeRule |
| | | codeRule: this.codeRule, |
| | | client_id: this.clientId || 0, |
| | | } |
| | | return params |
| | | }, |
| | |
| | | }, |
| | | // 新建 |
| | | addBtnClick() { |
| | | this.editConfig.visible = true |
| | | this.editConfig.title = "新建" |
| | | this.editConfig.infomation = { ...this.addConfig, currency: "人民币" } |
| | | this.editConfig.visible = true |
| | | }, |
| | | // 编辑 |
| | | handleClick(row) { |
| | |
| | | let params = {} |
| | | if (this.addConfig.id) { |
| | | params = { |
| | | saleChanceId: this.addConfig.id, |
| | | clientId: this.addConfig.id, |
| | | page: this.pagerOptions.currPage, |
| | | pageSize: this.pagerOptions.pageSize |
| | | } |