You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

569 lines
23 KiB

3 years ago
2 years ago
2 years ago
3 years ago
2 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
2 years ago
3 years ago
2 years ago
2 years ago
3 years ago
2 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
2 years ago
3 years ago
2 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
3 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
3 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
2 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
2 years ago
2 years ago
3 years ago
3 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
3 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
3 years ago
2 years ago
3 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
2 years ago
  1. <template>
  2. <div>
  3. <div v-show="checkPagePriv(pagePriv.privs, '人员列表')" class="listBtn">
  4. <el-button type="primary" class="commonbutton" @click="prList">人员列表</el-button>
  5. </div>
  6. <div v-show="checkPagePriv(pagePriv.privs, '医生诊台')" class="listBtn">
  7. <el-button type="primary" class="commonbutton" @click="toDoctorCheck">医生诊台</el-button>
  8. </div>
  9. <div v-show="checkPagePriv(pagePriv.privs, '导入检查结果')" class="listBtn">
  10. <el-button type="primary" class="commonbutton" @click="btnImportResult('pacs')"
  11. :disabled="sumBtnDisabled('save')">导入检查结果</el-button>
  12. </div>
  13. <div v-show="checkPagePriv(pagePriv.privs, '导入检验结果')" class="listBtn">
  14. <el-button type="primary" class="commonbutton" @click="btnImportResult('lis')"
  15. :disabled="sumBtnDisabled('save')">导入检验结果</el-button>
  16. </div>
  17. <div v-show="checkPagePriv(pagePriv.privs, '保存')" class="listBtn">
  18. <el-button type="primary" class="commonbutton" @click="btnSave"
  19. :disabled="sumBtnDisabled('save')">保存</el-button>
  20. </div>
  21. <div v-show="checkPagePriv(pagePriv.privs, '修改')" class="listBtn">
  22. <el-button type="primary" class="commonbutton" @click="btnEdit"
  23. :disabled="sumBtnDisabled('edit')">修改</el-button>
  24. </div>
  25. <div v-show="checkPagePriv(pagePriv.privs, '取消总检')" class="listBtn">
  26. <el-button type="primary" class="commonbutton" @click="btnDel"
  27. :disabled="sumBtnDisabled('del')">取消总检</el-button>
  28. </div>
  29. <div v-show="checkPagePriv(pagePriv.privs, '审核')" class="listBtn">
  30. <el-button type="primary" class="commonbutton" @click="audit" :disabled="sumBtnDisabled('audit')">审核</el-button>
  31. </div>
  32. <div v-show="checkPagePriv(pagePriv.privs, '取消审核')" class="listBtn">
  33. <el-button type="primary" class="commonbutton" @click="unAudit"
  34. :disabled="sumBtnDisabled('unAudit')">取消审核</el-button>
  35. </div>
  36. <!-- 直接放在 建议旁边
  37. <div class="listBtn">
  38. <el-button type="primary" class="btnClass" @click="addDiagnosis">疾病诊断</el-button>
  39. </div>
  40. -->
  41. <div v-show="checkPagePriv(pagePriv.privs, '体检报告')" class="listBtn">
  42. <el-button type="primary" class="commonbutton" @click="btnReport"
  43. :disabled="sumBtnDisabled('report')">体检报告</el-button>
  44. </div>
  45. <div v-show="checkPagePriv(pagePriv.privs, '复查')" class="listBtn">
  46. <el-button type="primary" class="commonbutton" @click="reCheck"
  47. :disabled="sumBtnDisabled('reCheck')">复查</el-button>
  48. </div>
  49. <div v-show="false" class="listBtn">
  50. <el-button type="primary" class="commonbutton" @click="intervene"
  51. :disabled="sumBtnDisabled('intervene')">干预措施</el-button>
  52. </div>
  53. <div v-show="checkPagePriv(pagePriv.privs, '职业病')" class="listBtn">
  54. <el-button type="primary" class="commonbutton" @click="btnOcc"
  55. :disabled="sumBtnDisabled('btnOcc')">职业病</el-button>
  56. </div>
  57. <div v-show="sumDoctorCheck.sumDoctorCheckDialogVisible"
  58. :style="`z-index:3;border-radius: 10px;border: 1px solid #ddd;background-color:#FFF; position: absolute;top:50px;right:0px;width:300px;height: ${window.pageHeight - 42 - 10}px;opacity:1;`">
  59. <PatientRegisterList win="sumDoctorCheck" :winAbsolute="true" />
  60. </div>
  61. <el-dialog title="职业病" :visible.sync="dialogWin.OccDisease" width="800px" :close-on-click-modal="false"
  62. :append-to-body="true">
  63. <OccDisease />
  64. </el-dialog>
  65. <!-- 抽屉方式遮罩层不能操作
  66. <el-drawer title="体检人员列表" :visible.sync="sumDoctorCheck.sumDoctorCheckDialogVisible" direction="rtl"
  67. :wrapperClosable="false" :modal="false" :size="300">
  68. <PatientRegisterList :win="sumDoctorCheck" :winAbsolute="false"/>
  69. </el-drawer>
  70. -->
  71. <!-- 直接放在 建议旁边
  72. <el-drawer title="诊断列表" :visible.sync="sumDoctorCheck.sumDiagnosisVisible" direction="ltr" :size="300"
  73. :wrapperClosable="false">
  74. <SumDiagnosis :patientRegisterId="dataTransOpts.tableS.patient_register.id" />
  75. </el-drawer>
  76. -->
  77. </div>
  78. </template>
  79. <script>
  80. import { mapState } from "vuex";
  81. import { getapi, postapi, putapi, deletapi } from "@/api/api";
  82. import { getPagePriv, checkPagePriv, deepCopy } from "../../utlis/proFunc";
  83. import PatientRegisterList from "../doctorCheck/PatientRegisterList.vue";
  84. import SumDiagnosis from "./SumDiagnosis.vue";
  85. import OccDisease from "../../components/occDisease/OccDisease.vue"
  86. import moment from "moment";
  87. export default {
  88. components: {
  89. PatientRegisterList,
  90. SumDiagnosis,
  91. OccDisease
  92. },
  93. data() {
  94. return {
  95. pagePriv: {
  96. routeUrlorPageName: 'sumDoctorCheck', //当前页面归属路由或归属页面权限名称
  97. privs: [] // 页面权限
  98. },
  99. dialogVisible: false,
  100. tableData: [
  101. {
  102. col: 'col',
  103. details: [{ id: 1, name: '000' }, { id: 2, name: '001' }]
  104. }
  105. ],
  106. };
  107. },
  108. created() {
  109. //获取用户当前页面的权限
  110. let userPriv = window.sessionStorage.getItem('userPriv')
  111. if (userPriv) this.pagePriv.privs = deepCopy(getPagePriv(this.pagePriv.routeUrlorPageName))
  112. },
  113. //挂载完成
  114. mounted() {
  115. },
  116. computed: {
  117. ...mapState(["window", "dict", "dataTransOpts", "dialogWin", "patientRegister", "doctorCheck", "sumDoctorCheck"]),
  118. },
  119. methods: {
  120. checkPagePriv,
  121. prList() {
  122. this.sumDoctorCheck.sumDoctorCheckDialogVisible = true
  123. },
  124. //诊断列表
  125. addDiagnosis() {
  126. this.sumDoctorCheck.sumDiagnosisVisible = true
  127. },
  128. //to医生诊台
  129. toDoctorCheck() {
  130. // this.doctorCheck.prBase = Object.assign({},this.dataTransOpts.tableS.patient_register)
  131. // this.patientRegister.photo = this.doctorCheck.prBase.photo
  132. this.$router.push({ path: "/doctorCheck", query: { patient_register: this.dataTransOpts.tableS.patient_register } });
  133. },
  134. // 按钮可用
  135. sumBtnDisabled(btnFlagName) {
  136. let patientRegister = this.dataTransOpts.tableS.patient_register
  137. let ret = true
  138. //' 请选择体检人员'
  139. if (!patientRegister.id) return ret
  140. // '人员已锁定,不可执行此操作'
  141. if (patientRegister.isLock && patientRegister.isLock == 'Y') return ret
  142. switch (btnFlagName) {
  143. case 'addSuggtion':
  144. case 'save':
  145. if (patientRegister.completeFlag && patientRegister.completeFlag != '3') ret = false
  146. break;
  147. case 'edit':
  148. case 'del':
  149. case 'audit':
  150. if (patientRegister.completeFlag && patientRegister.completeFlag == '3' && patientRegister.isAudit != 'Y') ret = false
  151. break;
  152. case 'unAudit':
  153. case 'reCheck':
  154. if (patientRegister.completeFlag && patientRegister.completeFlag == '3' && patientRegister.isAudit && patientRegister.isAudit == 'Y') ret = false
  155. break;
  156. case 'report':
  157. ret = false
  158. break;
  159. case 'intervene':
  160. if (patientRegister.completeFlag && patientRegister.completeFlag == '3') ret = false
  161. break;
  162. default:
  163. ret = false
  164. break;
  165. }
  166. console.log('sumBtnDisabled btnFlagName, patientRegister,ret', btnFlagName, patientRegister, ret)
  167. return ret
  168. },
  169. // 导入结果
  170. btnImportResult(checkType) {
  171. if (!this.dataTransOpts.tableS.patient_register.id) {
  172. this.$message.warning({ showClose: true, message: "请先选择记录!" })
  173. return
  174. }
  175. let url = '/api/app/ImportLisResult/ImportResultByPatientRegisterId'
  176. switch (checkType) {
  177. case 'pacs':
  178. url = '/api/app/ImportPacsResult/ImportResultByPatientRegisterId'
  179. break;
  180. default:
  181. break;
  182. }
  183. postapi(url, { patientRegisterId: this.dataTransOpts.tableS.patient_register.id }).then(res => {
  184. if (res.code > -1) {
  185. this.$message.success({ showClose: true, message: '导入成功!' })
  186. } else {
  187. this.$message.error({ showClose: true, message: res.message })
  188. }
  189. })
  190. },
  191. //保存数据
  192. btnSave() {
  193. // //更新总检
  194. // this.updateSumDoctorCheck();
  195. // //更新综述
  196. // this.saveSummary();
  197. // //更新建议与诊断
  198. // this.saveSuggestion();
  199. let body = {
  200. patientRegisterId: this.dataTransOpts.tableS.patient_register.id,
  201. summaryDoctorId: this.dataTransOpts.tableS.patient_register.summaryDoctorId || null,
  202. summaryDate: this.dataTransOpts.tableS.patient_register.summaryDate||moment(new Date()).format("yyyy-MM-DD HH:mm:ss"),
  203. medicalConclusionId: this.dataTransOpts.tableS.patient_register.medicalConclusionId || null,
  204. sumSummarys: this.sumDoctorCheck.summaryList,
  205. sumSuggestions: this.sumDoctorCheck.suggestionList
  206. }
  207. // 检查综述建议是否同一个人,防止不同人员数据覆盖
  208. let message = ''
  209. for (let index = 0; index < this.sumDoctorCheck.summaryList.length; index++) {
  210. let e = this.sumDoctorCheck.summaryList[index];
  211. if (!e.patientRegisterId || e.patientRegisterId != this.dataTransOpts.tableS.patient_register.id) {
  212. message = "人员ID 与 综述人员ID 不一致"
  213. break
  214. }
  215. }
  216. if (message) {
  217. this.$message.error({ showClose: true, message })
  218. return
  219. }
  220. for (let index = 0; index < this.sumDoctorCheck.suggestionList.length; index++) {
  221. let e = this.sumDoctorCheck.suggestionList[index];
  222. if (!e.patientRegisterId || e.patientRegisterId != this.dataTransOpts.tableS.patient_register.id) {
  223. message = "人员ID 与 建议人员ID 不一致"
  224. break
  225. }
  226. }
  227. if (message) {
  228. this.$message.error({ showClose: true, message })
  229. return
  230. }
  231. postapi(`/api/app/patientregister/UpdatePatientRegisterSummarySuggestion`, body)
  232. .then((res) => {
  233. if (res.code > -1) {
  234. // this.dataTransOpts.tableS.patient_register.completeFlag = '3';
  235. this.dataTransOpts.refresh.patient_register.S++
  236. }
  237. })
  238. },
  239. //修改结果
  240. btnEdit() {
  241. this.dataTransOpts.tableS.patient_register.completeFlag = '2'
  242. },
  243. //取消总检
  244. async btnDel() {
  245. let tips = false // 已打印删除提示
  246. if (this.dataTransOpts.tableS.patient_register.reportPrintTimes > 0) {
  247. let sysParmId = "summary_check_cancel_alreay_print_is_prompt"
  248. let sysParam = await postapi('/api/app/SysParmValue/GetSysParmValueBySysParmId', { sysParmId })
  249. if (sysParam.data.toUpperCase() == 'Y') tips = true
  250. }
  251. let body = {
  252. patientRegisterId: this.dataTransOpts.tableS.patient_register.id
  253. }
  254. if (tips) {
  255. this.$confirm("已打印过报告, 是否继续取消总检?", "提示", {
  256. confirmButtonText: "是",
  257. cancelButtonText: "否",
  258. type: "warning",
  259. })
  260. .then(() => {
  261. return postapi(`/api/app/patientregister/CancelSumCheck`, body)
  262. })
  263. .then((res) => {
  264. if (res.code > -1) {
  265. this.dataTransOpts.tableS.patient_register.completeFlag = '2';
  266. }
  267. })
  268. .catch((err) => {
  269. if (err != "cancel") {
  270. this.$message.info({ showClose: true, message: err });
  271. }
  272. });
  273. } else {
  274. postapi(`/api/app/patientregister/CancelSumCheck`, body)
  275. .then((res) => {
  276. if (res.code > -1) {
  277. this.dataTransOpts.tableS.patient_register.completeFlag = '2';
  278. }
  279. })
  280. }
  281. },
  282. //审核
  283. audit() {
  284. let body = {
  285. patientRegisterId: this.dataTransOpts.tableS.patient_register.id,
  286. //auditDoctor: "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  287. //auditDate: "string" 不传时,取当前时间
  288. isAudit: 'Y'
  289. }
  290. console.log(`/api/app/patientregister/updatepatientregisterauditordoctor`, body)
  291. postapi(`/api/app/patientregister/updatepatientregisterauditordoctor`, body)
  292. .then((res) => {
  293. console.log("audit", res.data);
  294. if (res.code > -1) {
  295. this.dataTransOpts.tableS.patient_register.isAudit = 'Y';
  296. // this.dataTransOpts.refresh.patient_register.S++
  297. }
  298. })
  299. .catch((err) => {
  300. this.$message.error({ showClose: true, message: `总检审核失败,原因:${err}` });
  301. });
  302. },
  303. //取消审核
  304. unAudit() {
  305. let body = {
  306. patientRegisterId: this.dataTransOpts.tableS.patient_register.id,
  307. //auditDoctor: "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  308. //auditDate: "string" 不传时,取当前时间
  309. isAudit: 'N'
  310. }
  311. console.log(`/api/app/patientregister/updatepatientregisterauditordoctor`, body)
  312. postapi(`/api/app/patientregister/updatepatientregisterauditordoctor`, body)
  313. .then((res) => {
  314. console.log("unAudit", res.data);
  315. if (res.code != -1) {
  316. this.dataTransOpts.tableS.patient_register.isAudit = 'N';
  317. // this.$message({ type: "success", message: `取消总检审核成功` });
  318. // this.dataTransOpts.refresh.patient_register.S++
  319. }
  320. })
  321. .catch((err) => {
  322. this.$message({ type: "error", message: `取消总检审核失败,原因:${err}` });
  323. });
  324. },
  325. //体检报告
  326. async btnReport() {
  327. if (!this.$peisAPI) {
  328. this.$message.info("此功能,需要在壳客户端才可运行!")
  329. return
  330. }
  331. ///3a0c990e-5756-2dc0-19d5-69a617fe4048
  332. let ReportCode = '0005';
  333. let token = window.sessionStorage.getItem('token');
  334. let user = window.sessionStorage.getItem('user');
  335. let toOutShell = {
  336. ReportCode, token,
  337. isBuildImage: 'N',
  338. IsUploadPdf: 'N',
  339. preViewCanPrint: 'Y',
  340. Parameters: [
  341. { Name: 'printer', Value: user },
  342. { Name: 'LTS', Value: 'Y' }, //Y、N N只看不能打印
  343. { Name: "firstPage", Value: "pic/peisReportFirstPage.jpg" },
  344. { Name: "pageHeader", Value: "pic/peisReportPageHeader.jpg" },
  345. { Name: "pageFooter", Value: "pic/peisReportPageFooter.jpg" },
  346. { Name: "orgSign", Value: "pic/orgSign.png" },
  347. { Name: 'picExtOne', Value: 'pic/hisLog.jpg' },
  348. ],
  349. };
  350. // 总检审核后才能打印
  351. if (this.dataTransOpts.tableS.patient_register.completeFlag != '3') toOutShell.preViewCanPrint = 'N'
  352. if (toOutShell.preViewCanPrint == 'Y' && this.dataTransOpts.tableS.patient_register.isAudit == 'N') {
  353. let sysParmId = "medical_report_print_after_summary_check_is_audit"
  354. let sysParam = await postapi('/api/app/SysParmValue/GetSysParmValueBySysParmId', { sysParmId })
  355. if (sysParam.data.toUpperCase() == 'Y') toOutShell.preViewCanPrint = 'N'
  356. }
  357. // postapi(`/api/app/printreport/getpeisreport?PatientRegisterId=${this.dataTransOpts.tableS.patient_register.id}`)
  358. // .then((res) => {
  359. // if (res.code != -1) {
  360. // toOutShell.ReportTable = res.data;
  361. // console.log('JSON.stringify(toOutShell)', JSON.stringify(toOutShell));
  362. // return this.$peisAPI.printPre(JSON.stringify(toOutShell));
  363. // }
  364. // })
  365. toOutShell.BusinessCode = this.dataTransOpts.tableS.patient_register.id
  366. this.$peisAPI.printPre(JSON.stringify(toOutShell))
  367. .then(res => {
  368. if (res) {
  369. let lres = JSON.parse(res)
  370. if (lres.code < 0) this.$message.error({ showClose: true, message: lres.message })
  371. }
  372. })
  373. .catch(err => {
  374. this.$message.warning(err);
  375. });
  376. },
  377. //复查
  378. reCheck() {
  379. console.log("复查")
  380. },
  381. //干预措施
  382. intervene() {
  383. console.log("干预措施")
  384. },
  385. // 显示职业病
  386. btnOcc() {
  387. if (!this.dataTransOpts.tableS.patient_register.id) {
  388. this.$message.warning({ showClose: true, message: '人员信息尚未保存!' })
  389. return
  390. }
  391. this.dataTransOpts.plus.OccDisease++
  392. this.dialogWin.OccDisease = true
  393. },
  394. //更新总检
  395. updateSumDoctorCheck() {
  396. let body = {
  397. patientRegisterId: this.dataTransOpts.tableS.patient_register.id,
  398. //summaryDoctor:this.dataTransOpts.tableS.patient_register.summaryDoctor,
  399. //summaryDate: this.dataTransOpts.tableS.patient_register.summaryDate,
  400. completeFlag: '3'
  401. }
  402. console.log(`/api/app/patientregister/updatepatientregistersummarydoctor`, body)
  403. postapi(`/api/app/patientregister/updatepatientregistersummarydoctor`, body)
  404. .then((res) => {
  405. console.log("updateSumDoctorCheck", res.data);
  406. if (res.code != -1) {
  407. this.dataTransOpts.tableS.patient_register.completeFlag = '3';
  408. this.$message({ type: "success", message: `总检保存成功!` });
  409. }
  410. })
  411. .catch((err) => {
  412. this.$message({ type: "error", message: `总检保存失败,原因:${err}` });
  413. });
  414. },
  415. //更新综述
  416. saveSummary() {
  417. let body = []
  418. this.sumDoctorCheck.summaryList.forEach(item => {
  419. delete item.id;
  420. delete item.summaryFlag;
  421. delete item.displayOrder;
  422. item.details.forEach(e => {
  423. delete e.sumSummaryHeaderId;
  424. delete e.displayOrder;
  425. })
  426. body.push(item)
  427. });
  428. console.log(`/api/app/sumsummaryheader/createsumsummary`, body)
  429. if (body.length < 1) return
  430. postapi(`/api/app/sumsummaryheader/createsumsummary`, body)
  431. .then((res) => {
  432. console.log("saveSummary", res.data);
  433. if (res.code != -1) {
  434. //this.dataTransOpts.tableS.patient_register.completeFlag = '1';
  435. }
  436. })
  437. .catch((err) => {
  438. this.$message({ type: "error", message: `综述保存失败,原因:${err}` });
  439. });
  440. },
  441. //更新建议
  442. saveSuggestion() {
  443. let body = []
  444. this.sumDoctorCheck.suggestionList.forEach(item => {
  445. delete item.id;
  446. delete item.suggestionFlag;
  447. delete item.displayOrder;
  448. item.details.forEach(e => {
  449. delete e.sumSuggestionHeaderId;
  450. delete e.displayOrder;
  451. })
  452. body.push(item)
  453. });
  454. console.log(`/api/app/sumsuggestionheader/createsumsuggestion`, body)
  455. if (body.length < 1) return
  456. postapi(`/api/app/sumsuggestionheader/createsumsuggestion`, body)
  457. .then((res) => {
  458. console.log("saveSuggestion", res.data);
  459. if (res.code != -1) {
  460. //this.dataTransOpts.tableS.patient_register.completeFlag = '1';
  461. }
  462. })
  463. .catch((err) => {
  464. this.$message({ type: "error", message: `建议保存失败,原因:${err}` });
  465. });
  466. },
  467. addSummary() {
  468. if (!this.dataTransOpts.tableS.patient_register.id) {
  469. alert("请选择检查项目")
  470. return
  471. }
  472. this.doctorCheck.checkSummaryList.push({
  473. registerCheckId: this.dataTransOpts.tableS.patient_register.id,
  474. summary: '',
  475. summaryFlag: 'N',
  476. })
  477. this.doctorCheck.checkSuggestionList.push({
  478. registerCheckId: this.dataTransOpts.tableS.patient_register.id,
  479. suggestion: '',
  480. })
  481. },
  482. },
  483. //监听事件()
  484. watch: {
  485. },
  486. };
  487. </script>
  488. <style scoped>
  489. @import '../../assets/css/global_button.css';
  490. .listBtn {
  491. margin-top: 10px;
  492. margin-left: 10px;
  493. text-align: center;
  494. }
  495. </style>