| | |
| | | /** 登记提交按钮 */ |
| | | submitForm() { |
| | | let _this = this; |
| | | if(!this.form.cusPhone || !this.form.cusName){ |
| | | this.$message.warning("请填选必填项"); |
| | | }else{ |
| | | this.$refs["form"].validate((valid) => { |
| | | if (valid) { |
| | | // 创建表单数据的副本并去除空格 |
| | |
| | | }); |
| | | } |
| | | }); |
| | | } |
| | | }, |
| | | |
| | | getmailType() { |
| | |
| | | if (this.form.reservationId != null) { |
| | | if (this.form.groupingId) { |
| | | this.form.firmName = this.form.compName; |
| | | this.form.tjType = this.dict.type.dict_team[2].value; |
| | | this.dict.type.dict_team.forEach((item)=> { |
| | | if(item.label == "团队"){ |
| | | this.form.tjType = item.value; |
| | | } |
| | | }) |
| | | // this.form.tjType = this.dict.type.dict_team[1].value; |
| | | this.CompanyList.forEach((item) => { |
| | | if (item.cnName == this.form.firmName) { |
| | | this.form.firmId = item.drugManufacturerId; |
| | |
| | | |
| | | Package() { |
| | | this.activeNames = "first"; |
| | | if (this.form.cusSex == "男") { |
| | | this.form.cusSex = 0; |
| | | } else if (this.form.cusSex == "女"){ |
| | | _this.form.cusSex = 1; |
| | | } |
| | | let cusSex = this.form.cusSex; |
| | | this.datekey = Date.now(); |
| | | //全部套餐 |
| | |
| | | discount: item.discount, |
| | | parentProId: item.parentProId, |
| | | cusIdCard: item.cusId, |
| | | yhj: item.nowPrice |
| | | })); // 创建新的对象,包含 discount 和 id |
| | | gaibianzhekou(newArray).then((res) => { |
| | | this.loadingSubmit = false; |