| | |
| | | } |
| | | item.patid = this.patid; |
| | | item.templateid = item.templateID; |
| | | }); |
| | | let obj ={ |
| | | serviceSubtaskDetailList: this.tableDatatop, |
| | | param1: this.taskid, |
| | | param2: this.patid, |
| | | subId: this.id, |
| | | } |
| | | |
| | | if (item.id) { |
| | | updatePersonVoices(item).then((res) => { |
| | | if (res.code == 200) { |
| | | this.$modal.msgSuccess("服务修改成功"); |
| | | } |
| | | }); |
| | | } else { |
| | | addPersonVoices(item).then((res) => { |
| | | if (res.code == 200) { |
| | | this.$modal.msgSuccess("服务保存成功"); |
| | | } |
| | | }); |
| | | addPersonVoices(obj).then((res) => { |
| | | if (res.code == 200) { |
| | | this.$modal.msgSuccess("服务保存成功"); |
| | | } |
| | | }); |
| | | |
| | | }, |
| | | |
| | | // 获取患者记录 |