courseOfDisease_new.vue 25KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886
  1. <template>
  2. <div class="patient-container">
  3. <PatientSidebar :id="patient_id" defaultActive="3-5"></PatientSidebar>
  4. <div v-loading="loading">
  5. <div class="patient-app-container advice-container app-container" style="">
  6. <div style="display: flex;">
  7. <div style="width: 34%;">
  8. <div style="display: flex;">
  9. <div style="flex: 1.1;">
  10. <span style="display: inline-block;border-left: 5px solid #3891f1f5;padding-left: 5px;">病史列表</span>
  11. </div>
  12. <div style="flex: 0.9;text-align: right;">
  13. <el-button type="primary" size="small" @click="add_click">添加</el-button>
  14. </div>
  15. </div>
  16. <div>
  17. <el-table class="table"
  18. ref="phy_table"
  19. :data="tableData"
  20. :highlight-current-row="true"
  21. @current-change="getCurrentChangeOne"
  22. style="width: 100%">
  23. <el-table-column prop="index" label="序号" width="50">
  24. <template slot-scope="scope">
  25. {{ scope.$index + 1 }}
  26. </template>
  27. </el-table-column>
  28. <el-table-column prop="date" label="时间" width="">
  29. <template slot-scope="scope">
  30. {{ getTime(scope.row.record_time) }}
  31. </template>
  32. </el-table-column>
  33. <el-table-column prop="doctor" label="医生">
  34. <template slot-scope="scope">
  35. {{ getDocName(scope.row.recorder) }}
  36. </template>
  37. </el-table-column>
  38. </el-table>
  39. </div>
  40. </div>
  41. <div style="width: 65%;margin-left: 10px;">
  42. <div style="display: flex;">
  43. <div style="flex: 1;">
  44. <span style="display: inline-block;border-left: 5px solid #3891f1f5;padding-left: 5px;">详情</span>
  45. </div>
  46. <div style="flex: 1;text-align: right;">
  47. <div v-if='add_index == 0'>
  48. <el-button type="primary" size="small" @click="showEdit">修改</el-button>
  49. <el-button size="small" type="danger" @click="deleteAction">删除</el-button>
  50. <el-button type="primary" size="small" @click="prints">打印</el-button>
  51. </div>
  52. <div v-if="add_index == 1">
  53. <el-button type="primary" size="small" @click="showSave">保存2</el-button>
  54. <el-button size="small" @click="showCancel">取消</el-button>
  55. </div>
  56. </div>
  57. </div>
  58. <div style="display: flex;margin: 10px 0;">
  59. <div style="flex: 1;">
  60. 记录时间:
  61. <el-date-picker v-model="record_date" prefix-icon="el-icon-date" :editable="false"
  62. style="width: 250px;"
  63. type="datetime" placeholder="选择日期时间" align="right" format="yyyy-MM-dd HH:mm:ss"
  64. value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker>
  65. </div>
  66. <div style="flex: 1;">
  67. 病程医生:
  68. <el-select v-model="admin_user_id" placeholder="请选择" :disabled="disabled">
  69. <el-option
  70. v-for="item in doctorOptions"
  71. :key="item.id"
  72. :label="item.name"
  73. :value="item.id">
  74. </el-option>
  75. </el-select>
  76. </div>
  77. </div>
  78. <div>
  79. <span style="display: inline-block;border-left: 5px solid #3891f1f5;padding-left: 5px;margin-bottom: 5px;">
  80. 病程内容
  81. </span>
  82. <div style="margin: 10px 0;">
  83. <el-button type="primary" size="small" @click="template_click">
  84. {{ add_index ==0 ? '设置模板' : '模板库' }}
  85. </el-button>
  86. <el-button type="primary" size="small" @click="auto_click">
  87. 自动生成
  88. </el-button>
  89. </div>
  90. <ueditor ref="editor" id="editors" :content="new_content"></ueditor>
  91. </div>
  92. </div>
  93. </div>
  94. </div>
  95. <el-dialog
  96. title="设置模板"
  97. :visible.sync="template_dialog"
  98. width="20%"
  99. center>
  100. <div>
  101. 模板名称:
  102. <el-input v-model="title" placeholder="请输入内容" style="width: 160px;"></el-input>
  103. </div>
  104. <span slot="footer" class="dialog-footer">
  105. <el-button @click="template_dialog = false">取 消</el-button>
  106. <el-button type="primary" @click="saveTemplate">确 定</el-button>
  107. </span>
  108. </el-dialog>
  109. <el-dialog
  110. title="模板库"
  111. :visible.sync="library_dialog"
  112. width="70%"
  113. class="lirary"
  114. >
  115. <div>
  116. <div style="display: flex;">
  117. <div style="width: 27%;">
  118. <el-table
  119. :data="templateList"
  120. :highlight-current-row="true"
  121. @row-click="rowclick"
  122. ref="record_table_one"
  123. @current-change="getCurrentChangeTwo"
  124. style="width: 100%">
  125. <el-table-column prop="index" label="序号" width="">
  126. <template slot-scope="scope">
  127. {{ scope.$index + 1 }}
  128. </template>
  129. </el-table-column>
  130. <el-table-column prop="name" label="模板名称" width="">
  131. <template slot-scope="scope">
  132. {{ scope.row.title }}
  133. </template>
  134. </el-table-column>
  135. </el-table>
  136. </div>
  137. <div style="width: 72%;margin-left: 10px;">
  138. <div class="Second_title">模板内容</div>
  139. <div style="">
  140. <keep-alive>
  141. <ueditor ref="editorOne" id="editors" :content="new_content"></ueditor>
  142. </keep-alive>
  143. </div>
  144. </div>
  145. </div>
  146. </div>
  147. <span slot="footer" class="dialog-footer" style="text-align: center;">
  148. <el-button type="danger" @click="template_dele">删除模板</el-button>
  149. <el-button type="primary" @click="template_save">保存模板</el-button>
  150. <el-button type="primary" @click="toContentPint">应用</el-button>
  151. <el-button @click="library_dialog = false">取消</el-button>
  152. </span>
  153. </el-dialog>
  154. <el-dialog
  155. title="提示"
  156. :visible.sync="auto_dialog"
  157. width="70%"
  158. top="0"
  159. >
  160. <div>
  161. <div style="display:flex">
  162. <div>
  163. 取值时间:
  164. <el-select v-model="quzhi_date" placeholder="请选择" style="width: 120px;">
  165. <el-option
  166. v-for="item in quzhi_options"
  167. :key="item.value"
  168. :label="item.label"
  169. :value="item.value">
  170. </el-option>
  171. </el-select>
  172. </div>
  173. <div style="margin:0 10px">
  174. <el-date-picker
  175. v-model="start_date"
  176. type="date"
  177. value-format="yyyy-MM-dd"
  178. placeholder="选择日期"
  179. style="width: 150px;">
  180. </el-date-picker>
  181. <span>-</span>
  182. <el-date-picker
  183. v-model="end_date"
  184. type="date"
  185. value-format="yyyy-MM-dd"
  186. placeholder="选择日期"
  187. style="width: 150px;">
  188. </el-date-picker>
  189. </div>
  190. <div>
  191. <el-button type="primary" size="small" @click="autotext_click">
  192. 生成
  193. </el-button>
  194. <el-button type="primary" size="small" @click="auto_click">
  195. 取消
  196. </el-button>
  197. </div>
  198. </div>
  199. </div>
  200. </el-dialog>
  201. </div>
  202. </div>
  203. </template>
  204. <script>
  205. import PatientSidebar from './components/PatientSidebar'
  206. import PatientSidebar_new from './components/PatientSidebar_new'
  207. import Editor from '@/components/Editor'
  208. import ueditor from '@/components/Uedtior'
  209. const moment = require('moment')
  210. import { getDataConfig } from "@/utils/data";
  211. import {
  212. createNewCourseOfDiseaseRecord,
  213. deleteNewCouseOfDisease,
  214. modifyCourseOfDiseaseRecord,
  215. getPatientCourseOfDiseaseList,
  216. saveCoureseTemplateTitle,
  217. getPatientCoureOfTempalate,
  218. saveCourseOfNewTemplate,
  219. deleteCourseTempalte
  220. } from '@/api/patient'
  221. import { fetchAllDoctorAndNurse } from "@/api/doctor";
  222. import { parseTime } from '@/utils'
  223. import BreadCrumb from '@/xt_pages/components/bread-crumb'
  224. import { uParseTime } from '@/utils/tools'
  225. export default {
  226. name: 'CourseOfDisease',
  227. components: {
  228. PatientSidebar,
  229. BreadCrumb,
  230. Editor,
  231. PatientSidebar_new,
  232. ueditor
  233. },
  234. data() {
  235. return {
  236. loading: false,
  237. title: '',
  238. patient_id: 0,
  239. date: [],
  240. start_time: '',
  241. end_time: '',
  242. course_of_disease_time: moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),
  243. records: [],
  244. doctors: [],
  245. current_select_record: null,
  246. show_dialog: false,
  247. show_edit_dialog: false,
  248. uploading_new_record: false,
  249. templates: this.$store.getters.configlist.course_disease,
  250. select_template: '',
  251. new_content: '',
  252. edit_new_content: '',
  253. edit_course_of_disease_time: '',
  254. selectingRows: [],
  255. table_current_index: -1,
  256. edit_current_id: 0,
  257. edit_title: '',
  258. ids:"",
  259. idArr:[],
  260. org_id:0,
  261. add_index:0,
  262. disabled:true,
  263. template_dialog:false,
  264. library_dialog:false,
  265. auto_dialog:false,
  266. quzhi_date:1,
  267. start_date:'',
  268. end_date:'',
  269. quzhi_options:[{value:1,label:'本周'},{value:2,label:'上周'},{value:3,label:'本月'},{value:4,label:'上周'},],
  270. tableData:[],
  271. admin_user_id:0,
  272. record_date:moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),
  273. template_name:"",
  274. id:0,
  275. doctorOptions:[],
  276. template_content:"",
  277. template_id:0,
  278. title:"",
  279. templateList:[]
  280. }
  281. },
  282. created() {
  283. this.admin_user_id = this.$store.getters.xt_user.user.id
  284. this.patient_id = parseInt(this.$route.query.id)
  285. this.org_id = this.$store.getters.xt_user.template_info.org_id;
  286. if (isNaN(this.patient_id) || this.patient_id <= 0) {
  287. this.$notify.error({
  288. title: '错误',
  289. message: '无效的id'
  290. })
  291. this.$router.push('/patients/patients')
  292. return
  293. }
  294. this.fetchAllDoctorAndNurse()
  295. this.getlist()
  296. },
  297. methods: {
  298. toContentPint(){
  299. this.$refs.editor.contents = this.template_content
  300. this.library_dialog = false
  301. },
  302. getCurrentChangeOne(val){
  303. this.$refs.editor.contents = val.content
  304. this.record_date = this.getTime(val.record_time)
  305. this.id = val.id
  306. },
  307. getCurrentChangeTwo(val){
  308. this.$refs.editorOne.contents = val.content
  309. this.template_content = ""
  310. this.template_content = val.content
  311. this.template_id = val.id
  312. },
  313. template_dele(){
  314. deleteCourseTempalte(this.template_id).then(response=>{
  315. if(response.data.state == 1){
  316. var msg = response.data.data.msg
  317. this.$message.success("删除成功!")
  318. this.library_dialog = false
  319. this.getPatientCoureOfTempalateOne()
  320. }
  321. })
  322. },
  323. getPatientCoureOfTempalateOne(){
  324. },
  325. rowclick(){
  326. },
  327. prints(){
  328. },
  329. saveTemplate(){
  330. var params = {
  331. title:this.title,
  332. content: this.$refs.editor.contents,
  333. }
  334. saveCoureseTemplateTitle(params).then(response=>{
  335. if(response.data.state == 1){
  336. var courseTemplate = response.data.data.courseTemplate
  337. this.$message.success("保存成功!")
  338. this.template_dialog = false
  339. }
  340. })
  341. },
  342. template_save(){
  343. var params = {
  344. template_id:this.template_id,
  345. content:this.$refs.editorOne.contents
  346. }
  347. saveCourseOfNewTemplate(params).then(response=>{
  348. if(response.data.state == 1){
  349. var msg = response.data.data.msg
  350. this.$message.success("保存成功")
  351. this.library_dialog = false
  352. }
  353. })
  354. },
  355. getDocName(admin_user_id){
  356. var user_name = ""
  357. for(let i=0;i<this.doctorOptions.length;i++){
  358. if(admin_user_id == this.doctorOptions[i].id){
  359. user_name = this.doctorOptions[i].name
  360. }
  361. }
  362. return user_name
  363. },
  364. getlist(){
  365. var params = {
  366. patient_id:this.patient_id
  367. }
  368. getPatientCourseOfDiseaseList(params).then(response=>{
  369. if(response.data.state == 1){
  370. var list = response.data.data.list
  371. this.tableData = []
  372. this.tableData = list
  373. }
  374. })
  375. },
  376. fetchAllDoctorAndNurse() {
  377. fetchAllDoctorAndNurse().then(response => {
  378. if (response.data.state == 1) {
  379. this.doctorOptions= []
  380. this.doctorOptions = response.data.data.doctors;
  381. }
  382. });
  383. },
  384. add_click(){
  385. this.admin_user_id = ""
  386. this.admin_user_id = this.$store.getters.xt_user.user.id
  387. this.fetchAllDoctorAndNurse()
  388. this.$refs.editor.contents = ""
  389. this.id = 0
  390. this.disabled = false
  391. this.add_index = 1
  392. },
  393. showCancel(){
  394. this.add_index = 0
  395. this.disabled = true
  396. },
  397. showSave(){
  398. this.add_index = 0
  399. this.disabled = true
  400. console.log("haaaaaaaaaaaaaaa",this.$refs)
  401. this.new_content = this.$refs.editor.contents
  402. if (this.new_content.length == 0) {
  403. this.$message.error('请填写病程内容')
  404. return
  405. }
  406. var params = {
  407. id:this.id,
  408. patient_id:this.patient_id,
  409. record_date:this.record_date,
  410. content:this.new_content,
  411. admin_user_id:this.admin_user_id,
  412. }
  413. console.log("params",params)
  414. createNewCourseOfDiseaseRecord(params).then(response => {
  415. if(response.data.state == 1){
  416. var msg = response.data.data.msg
  417. this.$message.success("保存成功!")
  418. this.getlist()
  419. }
  420. }).catch(error => {
  421. })
  422. },
  423. template_click(){
  424. console.log('this.add_index',this.add_index);
  425. if(this.add_index ==0){
  426. this.template_dialog = true
  427. }else{
  428. getPatientCoureOfTempalate().then(response=>{
  429. if(response.data.state == 1){
  430. this.library_dialog = true
  431. this.templateList = response.data.data.templateList
  432. console.log("hahhahahaha",this.$refs)
  433. if(this.templateList!=null && this.templateList.length>0){
  434. this.$refs.record_table_one.setCurrentRow(this.templateList[0])
  435. }
  436. console.log("haaaaaaaaaaaaa",this.templateList)
  437. }
  438. })
  439. }
  440. },
  441. auto_click(){
  442. this.auto_dialog = true
  443. },
  444. autotext_click(){
  445. this.auto_dialog = false
  446. },
  447. requestCourseRecords: function() {
  448. this.loading = true
  449. getCourseOfDiseaseRecords(this.patient_id, this.start_time, this.end_time).then(rs => {
  450. this.loading = false
  451. var resp = rs.data
  452. if (resp.state == 1) {
  453. this.current_select_record = null
  454. this.records = resp.data.records
  455. console.log("records232322332323232323223",this.records)
  456. this.doctors = resp.data.doctors
  457. } else {
  458. this.$message.error(resp.msg)
  459. }
  460. }).catch(error => {
  461. this.loading = false
  462. this.$message.error(error)
  463. })
  464. },
  465. didChangeCurrentRecord: function(record) {
  466. this.current_select_record = record
  467. },
  468. recordTime: function(timestamp) {
  469. var time = new Date(timestamp * 1000)
  470. return parseTime(time, '{y}-{m}-{d} {h}:{i}:{s}')
  471. },
  472. doctorName: function(doctor_id) {
  473. for (let index = 0; index < this.doctors.length; index++) {
  474. const doctor = this.doctors[index]
  475. if (doctor.id == doctor_id) {
  476. return doctor.name
  477. }
  478. }
  479. return ''
  480. },
  481. modifyAction: function() {
  482. this.edit_new_content = this.$refs.edit_neditor.content
  483. if (this.edit_new_content.length == 0) {
  484. this.$message.error('请填写病程内容')
  485. return
  486. }
  487. this.uploading_new_record = true
  488. modifyCourseOfDiseaseRecord(this.patient_id, this.edit_new_content, this.edit_course_of_disease_time, this.edit_current_id, this.edit_title).then(rs => {
  489. this.uploading_new_record = false
  490. var resp = rs.data
  491. if (resp.state == 1) {
  492. this.records[this.table_current_index].content = resp.data.record.content
  493. this.records[this.table_current_index].record_time = resp.data.record.record_time
  494. this.records[this.table_current_index].recorder = resp.data.record.recorder
  495. this.records[this.table_current_index].title = resp.data.record.title
  496. this.show_edit_dialog = false
  497. this.edit_new_content = ''
  498. this.table_current_index = -1
  499. } else {
  500. this.table_current_index = -1
  501. this.$message.error(resp.msg)
  502. }
  503. }).catch(error => {
  504. this.table_current_index = -1
  505. this.uploading_new_record = false
  506. this.$message.error(error)
  507. })
  508. },
  509. createAction() {
  510. console.log("haaaaaaaaaaaaaaa",this.$refs)
  511. this.new_content = this.$refs.editor.contents
  512. if (this.new_content.length == 0) {
  513. this.$message.error('请填写病程内容')
  514. return
  515. }
  516. var params = {
  517. id:this.id,
  518. patient_id:this.patient_id,
  519. record_date:this.record_date,
  520. content:this.new_content,
  521. admin_user_id:this.admin_user_id,
  522. }
  523. console.log("params",params)
  524. createNewCourseOfDiseaseRecord(params).then(response => {
  525. if(response.data.state == 1){
  526. var msg = response.data.data.msg
  527. this.$message.success("保存成功!")
  528. }
  529. }).catch(error => {
  530. })
  531. },
  532. didSelectTemplate: function(templateContent) {
  533. this.new_content = this.new_content.length > 0 ? (this.new_content + templateContent) : templateContent
  534. }, didEditSelectTemplate: function(templateContent) {
  535. this.edit_new_content = this.edit_new_content.length > 0 ? (this.edit_new_content + templateContent) : templateContent
  536. },
  537. didSelectionChange: function(selectRows) {
  538. var arr = []
  539. for(let i=0;i<selectRows.length;i++){
  540. arr.push(selectRows[i].id)
  541. }
  542. var newArr = arr.join(',')
  543. this.ids = newArr
  544. console.log("select23322332",this.ids)
  545. this.selectingRows = selectRows
  546. },
  547. deleteAction(){
  548. if(this.id == 0){
  549. this.$message.error("请选择要删除的信息!")
  550. return false
  551. }
  552. this.$confirm('确定要取消吗?', '提示', {
  553. confirmButtonText: '确定',
  554. cancelButtonText: '取消',
  555. type: 'warning'
  556. }).then(() => {
  557. deleteNewCouseOfDisease(this.id).then(response=>{
  558. if (response.data.state==1) {
  559. var msg = response.data.data.msg
  560. this.$message.success("删除成功!")
  561. this.getlist()
  562. }
  563. });
  564. }).catch(() => {
  565. });
  566. },
  567. showEdit() {
  568. this.add_index =1
  569. this.disabled = false
  570. }, tableRow({ row, rowIndex }) {
  571. // 把每一行的索引放进row
  572. row.index = rowIndex
  573. }, onRowClick(row, event, column) {
  574. this.table_current_index = row.index
  575. },
  576. print(){
  577. if(this.ids.length == 0){
  578. this.$message.error('请选择要打印的病程')
  579. return
  580. }
  581. this.$router.push({ path: "/course/print?ids="+this.ids+"&patient_id="+this.patient_id});
  582. },
  583. getModeId(mode_id){
  584. var mode_name = ""
  585. if(mode_id == 1){
  586. mode_name ="HD"
  587. }
  588. if(mode_id == 2){
  589. mode_name ="HDF"
  590. }
  591. if(mode_id == 3){
  592. mode_name ="HD+HP"
  593. }
  594. if(mode_id == 4){
  595. mode_name ="HP"
  596. }
  597. if(mode_id == 5){
  598. mode_name ="HF"
  599. }
  600. if(mode_id == 6){
  601. mode_name ="SCUF"
  602. }
  603. if(mode_id == 7){
  604. mode_name ="IUF"
  605. }
  606. if(mode_id == 8){
  607. mode_name ="HFHD"
  608. }
  609. if(mode_id == 9){
  610. mode_name ="HFHD+HP"
  611. }
  612. if(mode_id == 10){
  613. mode_name ="PHF"
  614. }
  615. if(mode_id == 11){
  616. mode_name ="HFR"
  617. }
  618. if(mode_id == 12){
  619. mode_name ="HDF+HP"
  620. }
  621. if(mode_id == 13){
  622. mode_name ="CRRT"
  623. }
  624. if(mode_id == 14){
  625. mode_name ="腹水回输"
  626. }
  627. if(mode_id == 19){
  628. mode_name ="IUF+HD"
  629. }
  630. if(mode_id == 20){
  631. mode_name ="UF"
  632. }
  633. if(mode_id == 21){
  634. mode_name ="HD+"
  635. }
  636. if(mode_id == 22){
  637. mode_name ="血浆胆红素吸附+HDF"
  638. }
  639. if(mode_id == 23){
  640. mode_name ="血浆胆红素吸附"
  641. }
  642. if(mode_id == 24){
  643. mode_name ="I-HDF"
  644. }
  645. if(mode_id == 25){
  646. mode_name ="HD高通"
  647. }
  648. if(mode_id == 26){
  649. mode_name ="CVVH"
  650. }
  651. if(mode_id == 27){
  652. mode_name ="CVVHD"
  653. }
  654. if(mode_id == 28){
  655. mode_name ="CVVHDF"
  656. }
  657. if(mode_id == 29){
  658. mode_name ="PE"
  659. }
  660. if(mode_id == 30){
  661. mode_name ="血浆胆红素吸附+HP"
  662. }
  663. if(mode_id == 31){
  664. mode_name ="HPD"
  665. }
  666. if(mode_id == 32){
  667. mode_name ="HDP"
  668. }
  669. return mode_name
  670. },
  671. GetAnticoagulant(id){
  672. var anticoagulant_name = ""
  673. if(id == 1){
  674. anticoagulant_name = "无肝素"
  675. }
  676. if(id == 2){
  677. anticoagulant_name = "普通肝素"
  678. }
  679. if(id == 3){
  680. anticoagulant_name = "低分子肝素"
  681. }
  682. if(id == 4){
  683. anticoagulant_name = "阿加曲班"
  684. }
  685. if(id == 5){
  686. anticoagulant_name = "枸橼酸钠"
  687. }
  688. if(id == 6){
  689. anticoagulant_name = "低分子肝素钙"
  690. }
  691. if(id == 7){
  692. anticoagulant_name = "低分子肝素钠"
  693. }
  694. if(id == 8){
  695. anticoagulant_name = "依诺肝素"
  696. }
  697. if(id == 9){
  698. anticoagulant_name = "达肝素"
  699. }
  700. if(id == 10){
  701. anticoagulant_name = "体外抗凝"
  702. }
  703. if(id == 11){
  704. anticoagulant_name = "那屈肝素"
  705. }
  706. if(id == 12){
  707. anticoagulant_name = "无抗凝剂"
  708. }
  709. if(id == 13){
  710. anticoagulant_name = "那屈肝素钙"
  711. }
  712. if(id == 14){
  713. anticoagulant_name = "肝素钙注射液"
  714. }
  715. if(id == 15){
  716. anticoagulant_name = "甲磺酸萘莫司他"
  717. }
  718. return anticoagulant_name
  719. },
  720. getTime (time) {
  721. return uParseTime(time, '{y}-{m}-{d} {h}:{i}:{s}')
  722. },
  723. getTimeOne (time) {
  724. return uParseTime(time, '{y}-{m}-{d}')
  725. },
  726. }
  727. }
  728. </script>
  729. <style rel="stylesheet/css" lang="scss" scoped>
  730. .container {
  731. margin-left: 180px;
  732. padding: 20px;
  733. background: #fff;
  734. min-height: calc(100vh - 173px);
  735. margin-bottom: 15px;
  736. .record {
  737. padding-top: 20px;
  738. }
  739. }
  740. .record_content_panel {
  741. border-width: 1px;
  742. border-style: solid;
  743. border-color: #ebeef5;
  744. min-height: 200px;
  745. .title {
  746. font-size: 14px;
  747. font-weight: 500;
  748. color: #909399;
  749. line-height: 44px;
  750. height: 44px;
  751. text-align: center;
  752. border-bottom-width: 1px;
  753. border-bottom-style: solid;
  754. border-bottom-color: #ebeef5;
  755. }
  756. .content {
  757. padding: 12px 15px;
  758. font-size: 15px;
  759. color: gray;
  760. line-height: 22px;
  761. }
  762. }
  763. .new_record_form {
  764. /*/ / padding: 10 px, 25 px;*/
  765. .textarea_panel {
  766. margin-top: 10px;
  767. }
  768. }
  769. .eldialog{
  770. .el-dialog{
  771. .el-dialog__body{
  772. max-height: calc(100vh - 80px) !important;
  773. padding: 0px 20px;
  774. }
  775. }
  776. }
  777. .Second_title{
  778. border-left: 5px solid #3891f1f5;
  779. text-align: left;
  780. padding-left: 5px;
  781. // margin-left: 10px;
  782. margin-bottom: 5px;
  783. font-size: 16px;
  784. }
  785. </style>
  786. <style lang="scss">
  787. .el-table td,
  788. .el-table th.is-leaf,
  789. .el-table--border,
  790. .el-table--group {
  791. border-color: #d0d3da;
  792. }
  793. .el-table--border::after,
  794. .el-table--group::after,
  795. .el-table::before {
  796. background-color: #d0d3da;
  797. }
  798. .eldialog{
  799. .el-dialog{
  800. .el-dialog__body{
  801. max-height: calc(100vh - 80px) !important;
  802. padding: 0px 20px;
  803. }
  804. }
  805. }
  806. .lirary{
  807. .el-dialog__body{
  808. padding: 0px 20px !important;
  809. }
  810. .el-dialog__footer{
  811. text-align: center;
  812. }
  813. }
  814. </style>