Merge branch 'dev' of http://192.168.5.5:10010/r/web/crm-web into wn
| | |
| | | this.search_map = {} |
| | | } else { |
| | | this.search_map = { |
| | | [this.addConfig.id_name]: this.addConfig.client_name |
| | | [this.addConfig.id_name]: this.addConfig.client_id |
| | | } |
| | | } |
| | | this.getData(this.search_map) |
| | |
| | | } |
| | | }, |
| | | created() { |
| | | console.log() |
| | | this.$store.dispatch("geClient") |
| | | this.$store.dispatch("geServiceContract") |
| | | this.$store.dispatch("geSalesDetails") |
| | |
| | | this.editConfig.visible = true |
| | | this.editConfig.title = "新建" |
| | | this.editConfig.sourceType = this.addConfig.keywordType === "客户名称" ? 1 : this.sourceType |
| | | console.log(this.addConfig) |
| | | this.editConfig.infomation = { ...this.addConfig, saleDetailNumber: "" } |
| | | } |
| | | } |
| | |
| | | common_name: this.detailConfig.infomation.name, |
| | | client_name: this.detailConfig.infomation.client.name, |
| | | contact_name: this.detailConfig.infomation.contact_name, |
| | | client_id: this.detailConfig.infomation.client_id, |
| | | client_id: this.detailConfig.infomation.clientId, |
| | | contact_id: this.detailConfig.infomation.contact_id, |
| | | amountTotal: this.detailConfig.infomation.amountTotal |
| | | } |
| | |
| | | } else if (value === "contract") { |
| | | this.editSelCommonConfig.title = "销售明细单" |
| | | this.editSelCommonConfig.editVisible = true |
| | | this.editSelCommonConfig.client_name = this.editConfig.infomation.client_name |
| | | // this.editSelCommonConfig.salesDetailNumber = this.editConfig.infomation.salesDetailNumber |
| | | } |
| | | }, |
| | | async selClient(row, value) { |
| | |
| | | // 清除已选择用户 |
| | | clearupClient(value) { |
| | | if (value === "client") { |
| | | this.editConfig.infomation = {} |
| | | // this.editConfig.infomation.client_name = "" |
| | | // this.clientId = 0 |
| | | // this.editConfig.infomation = {} |
| | | this.editConfig.infomation.client_name = "" |
| | | this.clientId = 0 |
| | | } else if (value === "contract") { |
| | | this.editConfig.infomation.salesDetailNumber = "" |
| | | this.productTableList.tableData = [] |
| | | this.tableData = [] |
| | | this.SalesDetailsId = 0 |
| | | // this.productTableList.tableData = [] |
| | | // this.tableData = [] |
| | | // this.SalesDetailsId = 0 |
| | | } |
| | | }, |
| | | // 添加附件 |
| | |
| | | addBtnClick() { |
| | | this.editConfig.visible = true |
| | | this.editConfig.title = "新建" |
| | | this.editConfig.infomation = { currency: "人民币", salesDetailNumber: "" } |
| | | this.editConfig.infomation = { currency: "人民币",salesDetailNumber:"",client_name:""} |
| | | }, |
| | | // 编辑 |
| | | handleClick(row) { |