Merge branch 'dev' of http://192.168.5.5:10010/r/web/crm-web into zhengwenfeng/modify-style
| | |
| | | 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, |
| | |
| | | // 销售明细单 |
| | | async getSalesDetailsList() { |
| | | await getSalesDetailsList({ |
| | | keyword: this.keyword, |
| | | keywordType: this.keywordType, |
| | | // keyword: this.keyword, |
| | | // keywordType: this.keywordType, |
| | | clientId:this.editCommonConfig.clientId, |
| | | page: this.pagerOptions.currPage, |
| | | pageSize: this.pagerOptions.pageSize |
| | | }).then((res) => { |
| | |
| | | }, |
| | | async getSalesReturnList() { |
| | | await getSalesReturnList({ |
| | | keyword: this.keyword, |
| | | keywordType: this.keywordType, |
| | | // keyword: this.keyword, |
| | | // keywordType: this.keywordType, |
| | | clientId:this.editCommonConfig.clientId, |
| | | page: this.pagerOptions.currPage, |
| | | pageSize: this.pagerOptions.pageSize |
| | | }).then((res) => { |
| | |
| | | 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) { |
| | |
| | | editSelCommonConfig: { |
| | | editVisible: false, |
| | | title: "", |
| | | infomation: {} |
| | | infomation: {}, |
| | | clientId:"" |
| | | }, |
| | | clientId: this.editCommonConfig.infomation.client_id, |
| | | sourceId: this.editCommonConfig.infomation.sourceId, |
| | |
| | | async handleSelectClient(value, item) { |
| | | if (value === "client") { |
| | | this.clientId = item.id |
| | | this.editSelCommonConfig.clientId=item.id |
| | | console.log("客户名称",this.clientId,value,item) |
| | | await getSalesReturnList({ |
| | | clientId:this.clientId |
| | |
| | | editSelectChanceConfig: { |
| | | editVisible: false, |
| | | title: "", |
| | | infomation: {} |
| | | infomation: {}, |
| | | search_map: {} |
| | | }, |
| | | editSelCommonConfig: { |
| | | editVisible: false, |
| | |
| | | let params = {} |
| | | if (this.addConfig.id) { |
| | | params = { |
| | | saleChanceId: this.addConfig.id, |
| | | clientId: this.addConfig.id, |
| | | page: this.pagerOptions.currPage, |
| | | pageSize: this.pagerOptions.pageSize |
| | | } |
| | |
| | | editSelCommonConfig: { |
| | | editVisible: false, |
| | | title: "", |
| | | infomation: {} |
| | | infomation: {}, |
| | | clientId:"" |
| | | }, |
| | | productId: 1, |
| | | isNoProduct: true, |
| | |
| | | async handleSelectClient(value, item) { |
| | | if (value === "client") { |
| | | this.clientId = item.id |
| | | this.editSelCommonConfig.clientId=item.id |
| | | await getSalesDetailsList({ |
| | | clientId: this.clientId |
| | | }).then((res) => { |