courseOfDisease_new.vue 47KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376
  1. <template>
  2. <!-- <div class="main-contain">
  3. <div class="position">
  4. <bread-crumb></bread-crumb>
  5. </div> -->
  6. <div class="patient-container">
  7. <PatientSidebar :id="patient_id" defaultActive="3-5"></PatientSidebar>
  8. <div v-loading="loading">
  9. <div class="patient-app-container advice-container app-container" style="">
  10. <div style="display: flex;">
  11. <div style="width: 34%;">
  12. <div style="display: flex;">
  13. <div style="flex: 1.1;">
  14. <span style="display: inline-block;border-left: 5px solid #3891f1f5;padding-left: 5px;">病史列表</span>
  15. </div>
  16. <div style="flex: 0.9;text-align: right;">
  17. <el-button type="primary" size="small" @click="add_click">添加</el-button>
  18. </div>
  19. </div>
  20. <div>
  21. <el-table class="table"
  22. ref="phy_table"
  23. :data="tableData"
  24. :highlight-current-row="true"
  25. @current-change="getCurrentChangeOne"
  26. style="width: 100%">
  27. <el-table-column prop="index" label="序号" width="50">
  28. <template slot-scope="scope">
  29. {{ scope.$index + 1 }}
  30. </template>
  31. </el-table-column>
  32. <el-table-column prop="date" label="时间" width="">
  33. <template slot-scope="scope">
  34. {{ getTime(scope.row.record_time) }}
  35. </template>
  36. </el-table-column>
  37. <el-table-column prop="doctor" label="医生">
  38. <template slot-scope="scope">
  39. {{ getDocName(scope.row.recorder) }}
  40. </template>
  41. </el-table-column>
  42. </el-table>
  43. </div>
  44. </div>
  45. <div style="width: 65%;margin-left: 10px;">
  46. <div style="display: flex;">
  47. <div style="flex: 1;">
  48. <span style="display: inline-block;border-left: 5px solid #3891f1f5;padding-left: 5px;">详情</span>
  49. </div>
  50. <div style="flex: 1;text-align: right;">
  51. <div v-if='add_index == 0'>
  52. <el-button type="primary" size="small" @click="showEdit">修改</el-button>
  53. <el-button size="small" type="danger" @click="deleteAction">删除</el-button>
  54. <el-button type="primary" size="small" @click="prints">打印</el-button>
  55. </div>
  56. <div v-if="add_index == 1">
  57. <el-button type="primary" size="small" @click="showSave">保存</el-button>
  58. <el-button size="small" @click="showCancel">取消</el-button>
  59. </div>
  60. </div>
  61. </div>
  62. <div style="display: flex;margin: 10px 0;">
  63. <div style="flex: 1;">
  64. 记录时间:
  65. <el-date-picker v-model="record_date" prefix-icon="el-icon-date" :editable="false"
  66. style="width: 250px;"
  67. type="datetime" placeholder="选择日期时间" align="right" format="yyyy-MM-dd HH:mm:ss"
  68. value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker>
  69. </div>
  70. <div style="flex: 1;">
  71. 病程医生:
  72. <el-select v-model="admin_user_id" placeholder="请选择" :disabled="disabled">
  73. <el-option
  74. v-for="item in doctorOptions"
  75. :key="item.id"
  76. :label="item.name"
  77. :value="item.id">
  78. </el-option>
  79. </el-select>
  80. </div>
  81. </div>
  82. <div>
  83. <span style="display: inline-block;border-left: 5px solid #3891f1f5;padding-left: 5px;margin-bottom: 5px;">
  84. 病程内容
  85. </span>
  86. <div style="display:flex;">
  87. <div>
  88. 取值时间:
  89. <el-select v-model="quzhi_date" @change="datachange" placeholder="请选择" style="width: 120px;">
  90. <el-option
  91. v-for="item in quzhi_options"
  92. :key="item.value"
  93. :label="item.label"
  94. :value="item.value">
  95. </el-option>
  96. </el-select>
  97. </div>
  98. <div style="margin:0 10px">
  99. <el-date-picker
  100. @change="changStartDate"
  101. v-model="start_date"
  102. type="date"
  103. value-format="yyyy-MM-dd"
  104. placeholder="选择日期"
  105. style="width: 150px;">
  106. </el-date-picker>
  107. <span>-</span>
  108. <el-date-picker
  109. @change="changEndDate"
  110. v-model="end_date"
  111. type="date"
  112. value-format="yyyy-MM-dd"
  113. placeholder="选择日期"
  114. style="width: 150px;">
  115. </el-date-picker>
  116. </div>
  117. <!-- <div>
  118. <el-button type="primary" size="small" @click="autotext_click">
  119. 生成
  120. </el-button>
  121. <el-button type="primary" size="small" @click="auto_dialog=false">
  122. 取消
  123. </el-button>
  124. </div> -->
  125. </div>
  126. <div style="margin: 10px 0;">
  127. <el-button type="primary" size="small" @click="template_click">
  128. {{ add_index ==0 ? '设置模板' : '模板库' }}
  129. </el-button>
  130. <el-button type="primary" size="small" @click="auto_click">
  131. 自动生成
  132. </el-button>
  133. </div>
  134. <ueditor ref="editor" id="editors" :content="new_content"></ueditor>
  135. </div>
  136. </div>
  137. </div>
  138. </div>
  139. <el-dialog
  140. title="设置模板"
  141. :visible.sync="template_dialog"
  142. width="20%"
  143. center>
  144. <div>
  145. 模板名称:
  146. <el-input v-model="title" placeholder="请输入内容" style="width: 160px;"></el-input>
  147. </div>
  148. <span slot="footer" class="dialog-footer">
  149. <el-button @click="template_dialog = false">取 消</el-button>
  150. <el-button type="primary" @click="saveTemplate">确 定</el-button>
  151. </span>
  152. </el-dialog>
  153. <el-dialog
  154. title="模板库"
  155. :visible.sync="library_dialog"
  156. width="70%"
  157. class="lirary"
  158. >
  159. <div>
  160. <div style="display: flex;">
  161. <div style="width: 27%;">
  162. <el-table
  163. :data="templateList"
  164. :highlight-current-row="true"
  165. @row-click="rowclick"
  166. ref="record_table_one"
  167. @current-change="getCurrentChangeTwo"
  168. style="width: 100%">
  169. <el-table-column prop="index" label="序号" width="">
  170. <template slot-scope="scope">
  171. {{ scope.$index + 1 }}
  172. </template>
  173. </el-table-column>
  174. <el-table-column prop="name" label="模板名称" width="">
  175. <template slot-scope="scope">
  176. {{ scope.row.title }}
  177. </template>
  178. </el-table-column>
  179. </el-table>
  180. </div>
  181. <div style="width: 72%;margin-left: 10px;">
  182. <div class="Second_title">模板内容</div>
  183. <div style="">
  184. <keep-alive>
  185. <ueditor ref="editorOne" id="editors" :content="new_content"></ueditor>
  186. </keep-alive>
  187. </div>
  188. </div>
  189. </div>
  190. </div>
  191. <span slot="footer" class="dialog-footer" style="text-align: center;">
  192. <el-button type="danger" @click="template_dele">删除模板</el-button>
  193. <el-button type="primary" @click="template_save">保存模板</el-button>
  194. <el-button type="primary" @click="toContentPint">应用</el-button>
  195. <el-button @click="library_dialog = false">取消</el-button>
  196. </span>
  197. </el-dialog>
  198. <el-dialog
  199. title="提示"
  200. :visible.sync="auto_dialog"
  201. width="70%"
  202. top="0"
  203. >
  204. <div>
  205. <!-- <div style="display:flex;"> -->
  206. <!-- <div>
  207. 取值时间:
  208. <el-select v-model="quzhi_date" @change="datachange" placeholder="请选择" style="width: 120px;">
  209. <el-option
  210. v-for="item in quzhi_options"
  211. :key="item.value"
  212. :label="item.label"
  213. :value="item.value">
  214. </el-option>
  215. </el-select>
  216. </div>
  217. <div style="margin:0 10px">
  218. <el-date-picker
  219. @change="changStartDate"
  220. v-model="start_date"
  221. type="date"
  222. value-format="yyyy-MM-dd"
  223. placeholder="选择日期"
  224. style="width: 150px;">
  225. </el-date-picker>
  226. <span>-</span>
  227. <el-date-picker
  228. @change="changEndDate"
  229. v-model="end_date"
  230. type="date"
  231. value-format="yyyy-MM-dd"
  232. placeholder="选择日期"
  233. style="width: 150px;">
  234. </el-date-picker>
  235. </div> -->
  236. <div style="text-align: right;margin-bottom: 10px;">
  237. <el-button type="primary" size="small" @click="autotext_click">
  238. 生成
  239. </el-button>
  240. <el-button type="primary" size="small" @click="auto_dialog=false">
  241. 取消
  242. </el-button>
  243. </div>
  244. <!-- </div> -->
  245. <div v-show="AuToShow">
  246. <text_content @new_content="newcontent" :patient="patient" :prescription="prescription" :berforList="berforList"
  247. :monitorList="monitorList" :dryweightList="dryweightList" :inpectionList="inpectionList" :dialysisOrderList="dialysisOrderList"
  248. :start_date="start_date" :end_date="end_date" :patient_id="patient_id" :num="num" :longAdvice="longAdvice" :groupPrescriptionList="groupPrescriptionList" :afterList="afterList" :max_blood_flow_volume="max_blood_flow_volume"
  249. :max_befor_systolic_blood_pressure="max_befor_systolic_blood_pressure" :min_befor_systolic_blood_pressure="min_befor_systolic_blood_pressure" :max_befor_diastolic_blood_pressure="max_befor_diastolic_blood_pressure" :min_befor_diastolic_blood_pressure="min_befor_diastolic_blood_pressure"
  250. :max_after_systolic_blood_pressure="max_after_systolic_blood_pressure" :min_after_systolic_blood_pressure="min_after_systolic_blood_pressure" :max_after_diastolic_blood_pressure="max_after_diastolic_blood_pressure" :min_after_diastolic_blood_pressure="min_after_diastolic_blood_pressure"
  251. :max_monitor_systolic_blood_pressure="max_monitor_systolic_blood_pressure" :min_monitor_systolic_blood_pressure="min_monitor_systolic_blood_pressure" :max_monitor_diastolic_blood_pressure="max_monitor_diastolic_blood_pressure" :min_monitor_diastolic_blood_pressure="min_monitor_diastolic_blood_pressure"
  252. :lastDryWeight="lastDryWeight" :patientVascularAccess="patientVascularAccess" :lastBefor="lastBefor"></text_content>
  253. </div>
  254. </div>
  255. </el-dialog>
  256. </div>
  257. </div>
  258. </template>
  259. <script>
  260. import PatientSidebar from './components/PatientSidebar'
  261. import PatientSidebar_new from './components/PatientSidebar_new'
  262. import Editor from '@/components/Editor'
  263. import ueditor from '@/components/Uedtior'
  264. import text_content from './text_content'
  265. const moment = require('moment')
  266. import { getDataConfig } from "@/utils/data";
  267. import {
  268. createNewCourseOfDiseaseRecord,
  269. deleteNewCouseOfDisease,
  270. modifyCourseOfDiseaseRecord,
  271. getPatientCourseOfDiseaseList,
  272. saveCoureseTemplateTitle,
  273. getPatientCoureOfTempalate,
  274. saveCourseOfNewTemplate,
  275. deleteCourseTempalte,
  276. getAutoPatientContent
  277. } from '@/api/patient'
  278. import { fetchAllDoctorAndNurse } from "@/api/doctor";
  279. import { parseTime } from '@/utils'
  280. import BreadCrumb from '@/xt_pages/components/bread-crumb'
  281. import { uParseTime } from '@/utils/tools'
  282. export default {
  283. name: 'CourseOfDisease',
  284. components: {
  285. PatientSidebar,
  286. BreadCrumb,
  287. Editor,
  288. PatientSidebar_new,
  289. ueditor,
  290. text_content,
  291. },
  292. data() {
  293. return {
  294. loading: false,
  295. title: '',
  296. patient_id: 0,
  297. date: [],
  298. start_time: '',
  299. end_time: '',
  300. course_of_disease_time: moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),
  301. records: [],
  302. doctors: [],
  303. current_select_record: null,
  304. show_dialog: false,
  305. show_edit_dialog: false,
  306. uploading_new_record: false,
  307. templates: this.$store.getters.configlist.course_disease,
  308. select_template: '',
  309. new_content: '',
  310. edit_new_content: '',
  311. edit_course_of_disease_time: '',
  312. selectingRows: [],
  313. table_current_index: -1,
  314. edit_current_id: 0,
  315. edit_title: '',
  316. ids:"",
  317. idArr:[],
  318. org_id:0,
  319. add_index:0,
  320. disabled:true,
  321. template_dialog:false,
  322. library_dialog:false,
  323. auto_dialog:false,
  324. quzhi_date:1,
  325. start_date:'',
  326. end_date:'',
  327. quzhi_options:[{value:1,label:'本周'},{value:2,label:'上周'},{value:3,label:'本月'},{value:4,label:'上周'},],
  328. tableData:[],
  329. admin_user_id:0,
  330. record_date:moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),
  331. template_name:"",
  332. id:0,
  333. doctorOptions:[],
  334. template_content:"",
  335. template_id:0,
  336. title:"",
  337. templateList:[],
  338. prescription:[],
  339. berforList:[],
  340. monitorList:[],
  341. dryweightList:[],
  342. inpectionList:[],
  343. dialysisOrderList:[],
  344. patient:{},
  345. AuToShow:false,
  346. num:"",
  347. longAdvice:[],
  348. groupPrescriptionList:[],
  349. afterList:[],
  350. max_blood_flow_volume:"",
  351. max_befor_systolic_blood_pressure:"",
  352. min_befor_systolic_blood_pressure:"",
  353. max_befor_diastolic_blood_pressure:"",
  354. min_befor_diastolic_blood_pressure:"",
  355. max_after_systolic_blood_pressure:"",
  356. min_after_systolic_blood_pressure:"",
  357. max_after_diastolic_blood_pressure:"",
  358. min_after_diastolic_blood_pressure:"",
  359. max_monitor_systolic_blood_pressure:"",
  360. min_monitor_systolic_blood_pressure:"",
  361. max_monitor_diastolic_blood_pressure:"",
  362. min_monitor_diastolic_blood_pressure:"",
  363. lastDryWeight:{},
  364. patientVascularAccess:{},
  365. lastBefor:{}
  366. }
  367. },
  368. created() {
  369. this.admin_user_id = this.$store.getters.xt_user.user.id
  370. this.patient_id = parseInt(this.$route.query.id)
  371. this.org_id = this.$store.getters.xt_user.template_info.org_id;
  372. if (isNaN(this.patient_id) || this.patient_id <= 0) {
  373. this.$notify.error({
  374. title: '错误',
  375. message: '无效的id'
  376. })
  377. this.$router.push('/patients/patients')
  378. return
  379. }
  380. // const ceshi = ``
  381. // // const ceshi=`hellow word`
  382. // this.new_content = ceshi
  383. // this.$refs.editor.contents=ceshi
  384. this.fetchAllDoctorAndNurse()
  385. this.getlist()
  386. },
  387. methods: {
  388. changStartDate(val){
  389. this.start_date = val
  390. },
  391. changEndDate(val){
  392. this.end_date = val
  393. },
  394. datachange(val){
  395. if(val ==1){
  396. this.start_date = this.getFirstDayOfWeek(new Date())
  397. this.end_date = this.getTime(new Date())
  398. }else if(val ==2){
  399. this.getlastweek(new Date())
  400. }else if(val ==3){
  401. this.start_date = this.getFirstDayOfMonth(new Date())
  402. this.end_date = this.getTime(new Date())
  403. }else if(val ==4){
  404. this.getLastMonthFirstDay()
  405. this.getLastMonthLastDay()
  406. }
  407. },
  408. toContentPint(){
  409. this.$refs.editor.contents = this.template_content
  410. this.library_dialog = false
  411. },
  412. getCurrentChangeOne(val){
  413. this.$refs.editor.contents = val.content
  414. this.record_date = this.getTime(val.record_time)
  415. this.id = val.id
  416. },
  417. getCurrentChangeTwo(val){
  418. this.$refs.editorOne.contents = val.content
  419. this.template_content = ""
  420. this.template_content = val.content
  421. this.template_id = val.id
  422. },
  423. template_dele(){
  424. deleteCourseTempalte(this.template_id).then(response=>{
  425. if(response.data.state == 1){
  426. var msg = response.data.data.msg
  427. this.$message.success("删除成功!")
  428. this.library_dialog = false
  429. this.getPatientCoureOfTempalateOne()
  430. }
  431. })
  432. },
  433. getPatientCoureOfTempalateOne(){
  434. },
  435. rowclick(){
  436. },
  437. prints(){
  438. },
  439. saveTemplate(){
  440. var params = {
  441. title:this.title,
  442. content: this.$refs.editor.contents,
  443. }
  444. saveCoureseTemplateTitle(params).then(response=>{
  445. if(response.data.state == 1){
  446. var courseTemplate = response.data.data.courseTemplate
  447. this.$message.success("保存成功!")
  448. this.template_dialog = false
  449. }
  450. })
  451. },
  452. template_save(){
  453. var params = {
  454. template_id:this.template_id,
  455. content:this.$refs.editorOne.contents
  456. }
  457. saveCourseOfNewTemplate(params).then(response=>{
  458. if(response.data.state == 1){
  459. var msg = response.data.data.msg
  460. this.$message.success("保存成功")
  461. this.library_dialog = false
  462. }
  463. })
  464. },
  465. getDocName(admin_user_id){
  466. var user_name = ""
  467. for(let i=0;i<this.doctorOptions.length;i++){
  468. if(admin_user_id == this.doctorOptions[i].id){
  469. user_name = this.doctorOptions[i].name
  470. }
  471. }
  472. return user_name
  473. },
  474. getlist(){
  475. var params = {
  476. patient_id:this.patient_id
  477. }
  478. getPatientCourseOfDiseaseList(params).then(response=>{
  479. if(response.data.state == 1){
  480. var list = response.data.data.list
  481. this.tableData = []
  482. this.tableData = list
  483. }
  484. })
  485. },
  486. fetchAllDoctorAndNurse() {
  487. fetchAllDoctorAndNurse().then(response => {
  488. if (response.data.state == 1) {
  489. this.doctorOptions= []
  490. this.doctorOptions = response.data.data.doctors;
  491. }
  492. });
  493. },
  494. add_click(){
  495. this.admin_user_id = ""
  496. this.admin_user_id = this.$store.getters.xt_user.user.id
  497. this.fetchAllDoctorAndNurse()
  498. this.$refs.editor.contents = ""
  499. this.id = 0
  500. this.disabled = false
  501. this.add_index = 1
  502. },
  503. showCancel(){
  504. this.add_index = 0
  505. this.disabled = true
  506. },
  507. showSave(){
  508. this.add_index = 0
  509. this.disabled = true
  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. this.getlist()
  529. }
  530. }).catch(error => {
  531. })
  532. },
  533. template_click(){
  534. console.log('this.add_index',this.add_index);
  535. if(this.add_index ==0){
  536. this.template_dialog = true
  537. }else{
  538. getPatientCoureOfTempalate().then(response=>{
  539. if(response.data.state == 1){
  540. this.library_dialog = true
  541. this.templateList = response.data.data.templateList
  542. console.log("hahhahahaha",this.$refs)
  543. if(this.templateList!=null && this.templateList.length>0){
  544. this.$refs.record_table_one.setCurrentRow(this.templateList[0])
  545. }
  546. console.log("haaaaaaaaaaaaa",this.templateList)
  547. }
  548. })
  549. }
  550. },
  551. auto_click(){
  552. this.start_date = this.getFirstDayOfWeek(new Date())
  553. this.end_date = this.getTime(new Date())
  554. this.getAutoPatientContent()
  555. // this.auto_dialog = true
  556. },
  557. autotext_click(){
  558. // 医嘱
  559. if(this.longAdvice!=null && this.longAdvice.length>0){
  560. for(let i=0;i<this.longAdvice.length;i++){
  561. this.longAdvice[i].advice_type_name = ""
  562. if(this.longAdvice[i].advice_type == 1){
  563. this.longAdvice[i].advice_type_name = "长期医嘱"
  564. }
  565. if(this.longAdvice[i].stop_state == 1){
  566. this.longAdvice[i].stop_state_name = "停用"
  567. }
  568. if(this.longAdvice[i].stop_state == 2){
  569. this.longAdvice[i].stop_state_name = "未停用"
  570. }
  571. }
  572. }
  573. if(this.inpectionList!=null && this.inpectionList.length>0){
  574. let dataInfo = {}
  575. this.inpectionList.forEach((item, index) => {
  576. let { group_no } = item
  577. if (!dataInfo[group_no]) {
  578. dataInfo[group_no] = {
  579. group_no:group_no,
  580. project_id:item.project_id,
  581. name:item.project_name,
  582. date:this.getTime(item.inspect_date),
  583. child:[],
  584. left: [],
  585. right:[]
  586. }
  587. }
  588. })
  589. let arr = Object.values(dataInfo)
  590. console.log("arr----------------------",arr)
  591. if(arr!=null && arr.length>0){
  592. for(let i=0;i<arr.length;i++){
  593. for(let j=0;j<this.inpectionList.length;j++){
  594. if(arr[i].group_no == this.inpectionList[j].group_no){
  595. arr[i].child.push(this.inpectionList[j])
  596. }
  597. }
  598. }
  599. }
  600. for(let i=0;i<arr.length;i++){
  601. for(let j=0;j<arr[i].child.length;j++){
  602. if(j%2 ==0){
  603. arr[i].left.push(arr[i].child[j])
  604. }
  605. if(j%2 == 1){
  606. arr[i].right.push(arr[i].child[j])
  607. }
  608. }
  609. }
  610. this.Inspect = []
  611. this.Inspect = arr
  612. console.log("newarr----------------",arr)
  613. }
  614. this.$nextTick(()=>{
  615. const iframeDoc = document.getElementsByClassName('edui-editor-iframeholder')[0].getElementsByTagName('iframe')[0].contentDocument.getElementsByTagName('tbody')[0].children[9].children[1]
  616. const jiancDoc = document.getElementById('editer').getElementsByTagName('tbody')[0].children[8].children[1]
  617. if(this.Inspect.length<1){
  618. let newList = document.createElement('p');
  619. newList.style.cssText = 'padding: 5px;'
  620. newList.textContent = '无';
  621. jiancDoc.appendChild(newList)
  622. }else{
  623. let newList = document.createElement('p');
  624. newList.style.cssText='display: flex;text-align: center;border-bottom: 1px solid black;';
  625. let newListItem1 = document.createElement('span');
  626. newListItem1.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
  627. let newListItem2 = document.createElement('span');
  628. newListItem2.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
  629. let newListItem3 = document.createElement('span');
  630. newListItem3.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
  631. let newListItem4 = document.createElement('span');
  632. newListItem4.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
  633. let newListItem5 = document.createElement('span');
  634. newListItem5.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
  635. let newListItem6 = document.createElement('span');
  636. newListItem6.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;'
  637. newListItem1.textContent = '检验项目';
  638. newListItem2.textContent = '检验时间';
  639. newListItem3.textContent = '检验内容';
  640. newListItem4.textContent = '结果';
  641. newListItem5.textContent = '检验内容';
  642. newListItem6.textContent = '结果';
  643. newList.appendChild(newListItem1);
  644. newList.appendChild(newListItem2);
  645. newList.appendChild(newListItem3);
  646. newList.appendChild(newListItem4);
  647. newList.appendChild(newListItem5);
  648. newList.appendChild(newListItem6);
  649. jiancDoc.appendChild(newList)
  650. for(let i in this.Inspect){
  651. let newList1 = document.createElement('p');
  652. const child1 = document.createElement('p')
  653. const child2 = document.createElement('p')
  654. const child3 = document.createElement('p')
  655. newList1.appendChild(child1);
  656. newList1.appendChild(child2);
  657. newList1.appendChild(child3);
  658. newList1.style.cssText='display: flex;text-align: center;border-bottom: 1px solid black;';
  659. child1.style.cssText= 'width: 40%;display: inline-block;border-right: 1px solid black;display: flex;'
  660. child2.style.cssText= 'width: 40%;display: inline-block;border-right: 1px solid black;display: flex;flex-wrap: wrap;'
  661. child3.style.cssText= 'width: 40%;display: inline-block;display: flex;flex-wrap: wrap;'
  662. let newListItem1 = document.createElement('span');
  663. newListItem1.style.cssText= 'flex:1;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
  664. let newListItem2 = document.createElement('span');
  665. newListItem2.style.cssText= 'flex:1;display: inline-block;padding: 5px 0;'
  666. newListItem1.textContent = this.Inspect[i].name;
  667. newListItem2.textContent = this.Inspect[i].date;
  668. child1.appendChild(newListItem1);
  669. child1.appendChild(newListItem2);
  670. for(let j in this.Inspect[i].left){
  671. let newListItem3 = document.createElement('span');
  672. newListItem3.style.cssText= 'border-bottom: 1px solid black;width:50%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
  673. let newListItem4 = document.createElement('span');
  674. newListItem4.style.cssText= 'border-bottom: 1px solid black;width:50%;display: inline-block;padding: 5px 0;'
  675. newListItem3.textContent = this.Inspect[i].left[j].item_name;
  676. newListItem4.textContent = this.Inspect[i].left[j].inspect_value;
  677. child2.appendChild(newListItem3);
  678. child2.appendChild(newListItem4);
  679. }
  680. for(let x in this.Inspect[i].right){
  681. let newListItem5 = document.createElement('span');
  682. newListItem5.style.cssText= 'width: 50%;display: inline-block;padding: 5px 0;border-right: 1px solid black;border-bottom: 1px solid black;'
  683. let newListItem6 = document.createElement('span');
  684. newListItem6.style.cssText= 'width: 50%;display: inline-block;padding: 5px 0;border-bottom: 1px solid black;'
  685. newListItem5.textContent = this.Inspect[i].right[x].item_name;
  686. newListItem6.textContent = this.Inspect[i].right[x].inspect_value;
  687. child3.appendChild(newListItem5);
  688. child3.appendChild(newListItem6);
  689. }
  690. jiancDoc.appendChild(newList1)
  691. }
  692. }
  693. var newListArr =[]
  694. for(let j in this.longAdvice){
  695. const obj={
  696. id:this.longAdvice[j].id,
  697. newlist:'newList'+j
  698. }
  699. newListArr.push(obj)
  700. }
  701. for(let i in this.longAdvice){
  702. for(let j in newListArr){
  703. if(this.longAdvice[i].id==newListArr[j].id){
  704. let newList = document.createElement('p');
  705. newList.style.cssText='display: flex;text-align: center;border-bottom: 1px solid black;';
  706. let newListItem1 = document.createElement('span');
  707. newListItem1.style.cssText= 'width: 30%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
  708. let newListItem2 = document.createElement('span');
  709. newListItem2.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
  710. let newListItem3 = document.createElement('span');
  711. newListItem3.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
  712. let newListItem4 = document.createElement('span');
  713. newListItem4.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
  714. let newListItem5 = document.createElement('span');
  715. newListItem5.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
  716. let newListItem6 = document.createElement('span');
  717. newListItem6.style.cssText= 'width: 10%;display: inline-block;padding: 5px 0;'
  718. newListItem1.textContent = this.longAdvice[i].advice_name;
  719. newListItem2.textContent = this.longAdvice[i].advice_type_name;
  720. newListItem3.textContent = this.getTime(this.longAdvice[i].start_time)
  721. newListItem4.textContent = this.longAdvice[i].single_dose +this.longAdvice[i].single_dose_unit ;
  722. newListItem5.textContent = this.longAdvice[i].execution_frequency;
  723. newListItem6.textContent = this.longAdvice[i].stop_state_name;
  724. newList.appendChild(newListItem1);
  725. newList.appendChild(newListItem2);
  726. newList.appendChild(newListItem3);
  727. newList.appendChild(newListItem4);
  728. newList.appendChild(newListItem5);
  729. newList.appendChild(newListItem6);
  730. iframeDoc.appendChild(newList)
  731. }
  732. }
  733. }
  734. })
  735. this.AuToShow = true
  736. // this.getAutoPatientContent()
  737. },
  738. // 本周
  739. getFirstDayOfWeek(date){
  740. var weekday = date.getDay()
  741. date.setDate(date.getDate()-weekday+1);//往前算(weekday-1)天,年份、月份会自动变化
  742. return this.timeFormat(date);
  743. },
  744. // 上周
  745. getlastweek(date){
  746. date.setDate(date.getDate()-7 - date.getDay() + 1);
  747. var m =''
  748. var d = ''
  749. if(date.getMonth() + 1<10){
  750. m = '0'+(date.getMonth() + 1)
  751. }else{
  752. m = date.getMonth() + 1
  753. }
  754. if(date.getDate()<10){
  755. d = '0'+date.getDate()
  756. }else{
  757. d = date.getDate()
  758. }
  759. // this.start_date = date.getFullYear() + "-" + (date.getMonth() + 1) + "-" + date.getDate() ;
  760. this.start_date = date.getFullYear() + "-" + m + "-" + d ;
  761. date.setDate(date.getDate() +6);
  762. var mm = ''
  763. var dd = ''
  764. if(date.getMonth() + 1<10){
  765. mm = '0'+(date.getMonth() + 1)
  766. }else{
  767. mm = date.getMonth() + 1
  768. }
  769. if(date.getDate()<10){
  770. dd = '0'+date.getDate()
  771. }else{
  772. dd = date.getDate()
  773. }
  774. // if(date.getMonth() + 1<10)
  775. // this.end_date = date.getFullYear() + "-" + (date.getMonth() + 1) + "-" + date.getDate();
  776. this.end_date = date.getFullYear() + "-" + mm + "-" + dd ;
  777. console.log('this.end_date',this.end_date);
  778. },
  779. // 本月
  780. getFirstDayOfMonth (date) {
  781. date.setDate(1);
  782. return this.timeFormat(date);
  783. },
  784. //上个月第一天
  785. getLastMonthFirstDay() {
  786. var date = new Date();
  787. date.setDate(0);
  788. var y = date.getFullYear(); //获取年份
  789. var m = date.getMonth() + 1; //获取月份
  790. m = m < 10 ? "0" + m : m;
  791. this.start_date = [y, m, '01'].join("-")
  792. // return [y, m, '01'].join("-");
  793. },
  794. // 上个月最后一天
  795. getLastMonthLastDay() {
  796. var date = new Date();
  797. date.setDate(0);
  798. var y = date.getFullYear(); //获取年份
  799. var m = date.getMonth() + 1; //获取月份
  800. var d = new Date(y, m, 0).getDate(); //获取当月最后一日
  801. m = m < 10 ? "0" + m : m; //月份补 0
  802. d = d < 10 ? "0" + d : d; //日数补 0
  803. this.end_date = [y, m, d].join("-")
  804. // return [y, m, d].join("-");
  805. },
  806. // 日期格式化
  807. timeFormat(date) {
  808. if (!date || typeof(date) === "string") {
  809. this.error("参数异常,请检查...");
  810. }
  811. var y = date.getFullYear(); //年
  812. if(date.getMonth() + 1<10){
  813. var m ='0'+(date.getMonth() + 1); //月
  814. }else{
  815. var m =date.getMonth() + 1; //月
  816. }
  817. if(date.getDate()<10){
  818. var d ='0'+date.getDate(); //日
  819. }else{
  820. var d = date.getDate(); //日
  821. }
  822. // var d = date.getDate(); //日
  823. return y + "-" + m + "-" + d;
  824. },
  825. requestCourseRecords: function() {
  826. this.loading = true
  827. getCourseOfDiseaseRecords(this.patient_id, this.start_time, this.end_time).then(rs => {
  828. this.loading = false
  829. var resp = rs.data
  830. if (resp.state == 1) {
  831. this.current_select_record = null
  832. this.records = resp.data.records
  833. console.log("records232322332323232323223",this.records)
  834. this.doctors = resp.data.doctors
  835. } else {
  836. this.$message.error(resp.msg)
  837. }
  838. }).catch(error => {
  839. this.loading = false
  840. this.$message.error(error)
  841. })
  842. },
  843. didChangeCurrentRecord: function(record) {
  844. this.current_select_record = record
  845. },
  846. recordTime: function(timestamp) {
  847. var time = new Date(timestamp * 1000)
  848. return parseTime(time, '{y}-{m}-{d} {h}:{i}:{s}')
  849. },
  850. doctorName: function(doctor_id) {
  851. for (let index = 0; index < this.doctors.length; index++) {
  852. const doctor = this.doctors[index]
  853. if (doctor.id == doctor_id) {
  854. return doctor.name
  855. }
  856. }
  857. return ''
  858. },
  859. modifyAction: function() {
  860. this.edit_new_content = this.$refs.edit_neditor.content
  861. if (this.edit_new_content.length == 0) {
  862. this.$message.error('请填写病程内容')
  863. return
  864. }
  865. this.uploading_new_record = true
  866. modifyCourseOfDiseaseRecord(this.patient_id, this.edit_new_content, this.edit_course_of_disease_time, this.edit_current_id, this.edit_title).then(rs => {
  867. this.uploading_new_record = false
  868. var resp = rs.data
  869. if (resp.state == 1) {
  870. this.records[this.table_current_index].content = resp.data.record.content
  871. this.records[this.table_current_index].record_time = resp.data.record.record_time
  872. this.records[this.table_current_index].recorder = resp.data.record.recorder
  873. this.records[this.table_current_index].title = resp.data.record.title
  874. this.show_edit_dialog = false
  875. this.edit_new_content = ''
  876. this.table_current_index = -1
  877. } else {
  878. this.table_current_index = -1
  879. this.$message.error(resp.msg)
  880. }
  881. }).catch(error => {
  882. this.table_current_index = -1
  883. this.uploading_new_record = false
  884. this.$message.error(error)
  885. })
  886. },
  887. getAutoPatientContent(){
  888. if(this.start_date == ""){
  889. this.$message.error("请选择开始时间")
  890. }
  891. if(this.end_date == ""){
  892. this.$message.error("请选择结束时间")
  893. }
  894. var params = {
  895. start_time:this.start_date,
  896. end_time:this.end_date,
  897. patient_id:this.patient_id,
  898. }
  899. console.log("start_time==============",params)
  900. getAutoPatientContent(params).then(response=>{
  901. if(response.data.state == 1){
  902. var prescription = response.data.data.prescription
  903. this.prescription=[]
  904. this.prescription = prescription
  905. var berfor = response.data.data.berfor
  906. this.berforList = []
  907. this.berforList = berfor
  908. var monitorList = response.data.data.monitorList
  909. this.monitorList = []
  910. this.monitorList = monitorList
  911. var dryweightList = response.data.data.dryweightList
  912. this.dryweightList = []
  913. this.dryweightList = dryweightList
  914. var inpectionList = response.data.data.inpectionList
  915. this.inpectionList = []
  916. this.inpectionList = inpectionList
  917. var patient = response.data.data.patient
  918. if(patient.gender == 1){
  919. patient.gender_name = "男"
  920. }
  921. if(patient.gender == 2){
  922. patient.gender_name = "女"
  923. }
  924. this.patient = patient
  925. var dialysisOrderList =response.data.data.dialysisOrder
  926. this.dialysisOrderList = []
  927. this.dialysisOrderList = dialysisOrderList
  928. var longAdvice = response.data.data.longAdvice
  929. this.longAdvice = []
  930. this.longAdvice = longAdvice
  931. this.groupPrescriptionList = []
  932. this.groupPrescriptionList = response.data.data.groupPrescriptionList
  933. this.afterList = response.data.data.after
  934. this.max_blood_flow_volume = response.data.data.max_blood_flow_volume
  935. this.max_befor_systolic_blood_pressure = response.data.data.max_befor_systolic_blood_pressure
  936. this.min_befor_systolic_blood_pressure = response.data.data.min_befor_systolic_blood_pressure
  937. this.max_befor_diastolic_blood_pressure = response.data.data.max_befor_diastolic_blood_pressure
  938. this.min_befor_diastolic_blood_pressure = response.data.data.min_befor_diastolic_blood_pressure
  939. this.max_after_systolic_blood_pressure = response.data.data.max_after_systolic_blood_pressure
  940. this.min_after_systolic_blood_pressure = response.data.data.min_after_systolic_blood_pressure
  941. this.max_after_diastolic_blood_pressure = response.data.data.max_after_diastolic_blood_pressure
  942. this.min_after_diastolic_blood_pressure = response.data.data.min_after_diastolic_blood_pressure
  943. this.max_monitor_systolic_blood_pressure = response.data.data.max_monitor_systolic_blood_pressure
  944. this.min_monitor_systolic_blood_pressure = response.data.data.min_monitor_systolic_blood_pressure
  945. this.max_monitor_diastolic_blood_pressure = response.data.data.max_monitor_diastolic_blood_pressure
  946. this.min_monitor_diastolic_blood_pressure = response.data.data.min_monitor_diastolic_blood_pressure
  947. this.lastDryWeight = response.data.data.lastDryWeight
  948. this.patientVascularAccess = response.data.data.patientVascularAccess
  949. this.lastBefor = response.data.data.lastBefor
  950. this.auto_dialog = true
  951. }
  952. })
  953. },
  954. didSelectTemplate: function(templateContent) {
  955. this.new_content = this.new_content.length > 0 ? (this.new_content + templateContent) : templateContent
  956. }, didEditSelectTemplate: function(templateContent) {
  957. this.edit_new_content = this.edit_new_content.length > 0 ? (this.edit_new_content + templateContent) : templateContent
  958. },
  959. didSelectionChange: function(selectRows) {
  960. var arr = []
  961. for(let i=0;i<selectRows.length;i++){
  962. arr.push(selectRows[i].id)
  963. }
  964. var newArr = arr.join(',')
  965. this.ids = newArr
  966. console.log("select23322332",this.ids)
  967. this.selectingRows = selectRows
  968. },
  969. deleteAction(){
  970. if(this.id == 0){
  971. this.$message.error("请选择要删除的信息!")
  972. return false
  973. }
  974. this.$confirm('确定要取消吗?', '提示', {
  975. confirmButtonText: '确定',
  976. cancelButtonText: '取消',
  977. type: 'warning'
  978. }).then(() => {
  979. deleteNewCouseOfDisease(this.id).then(response=>{
  980. if (response.data.state==1) {
  981. var msg = response.data.data.msg
  982. this.$message.success("删除成功!")
  983. this.getlist()
  984. }
  985. });
  986. }).catch(() => {
  987. });
  988. },
  989. showEdit() {
  990. this.add_index =1
  991. this.disabled = false
  992. }, tableRow({ row, rowIndex }) {
  993. // 把每一行的索引放进row
  994. row.index = rowIndex
  995. }, onRowClick(row, event, column) {
  996. this.table_current_index = row.index
  997. },
  998. print(){
  999. if(this.ids.length == 0){
  1000. this.$message.error('请选择要打印的病程')
  1001. return
  1002. }
  1003. this.$router.push({ path: "/course/print?ids="+this.ids+"&patient_id="+this.patient_id});
  1004. },
  1005. getModeId(mode_id){
  1006. var mode_name = ""
  1007. if(mode_id == 1){
  1008. mode_name ="HD"
  1009. }
  1010. if(mode_id == 2){
  1011. mode_name ="HDF"
  1012. }
  1013. if(mode_id == 3){
  1014. mode_name ="HD+HP"
  1015. }
  1016. if(mode_id == 4){
  1017. mode_name ="HP"
  1018. }
  1019. if(mode_id == 5){
  1020. mode_name ="HF"
  1021. }
  1022. if(mode_id == 6){
  1023. mode_name ="SCUF"
  1024. }
  1025. if(mode_id == 7){
  1026. mode_name ="IUF"
  1027. }
  1028. if(mode_id == 8){
  1029. mode_name ="HFHD"
  1030. }
  1031. if(mode_id == 9){
  1032. mode_name ="HFHD+HP"
  1033. }
  1034. if(mode_id == 10){
  1035. mode_name ="PHF"
  1036. }
  1037. if(mode_id == 11){
  1038. mode_name ="HFR"
  1039. }
  1040. if(mode_id == 12){
  1041. mode_name ="HDF+HP"
  1042. }
  1043. if(mode_id == 13){
  1044. mode_name ="CRRT"
  1045. }
  1046. if(mode_id == 14){
  1047. mode_name ="腹水回输"
  1048. }
  1049. if(mode_id == 19){
  1050. mode_name ="IUF+HD"
  1051. }
  1052. if(mode_id == 20){
  1053. mode_name ="UF"
  1054. }
  1055. if(mode_id == 21){
  1056. mode_name ="HD+"
  1057. }
  1058. if(mode_id == 22){
  1059. mode_name ="血浆胆红素吸附+HDF"
  1060. }
  1061. if(mode_id == 23){
  1062. mode_name ="血浆胆红素吸附"
  1063. }
  1064. if(mode_id == 24){
  1065. mode_name ="I-HDF"
  1066. }
  1067. if(mode_id == 25){
  1068. mode_name ="HD高通"
  1069. }
  1070. if(mode_id == 26){
  1071. mode_name ="CVVH"
  1072. }
  1073. if(mode_id == 27){
  1074. mode_name ="CVVHD"
  1075. }
  1076. if(mode_id == 28){
  1077. mode_name ="CVVHDF"
  1078. }
  1079. if(mode_id == 29){
  1080. mode_name ="PE"
  1081. }
  1082. if(mode_id == 30){
  1083. mode_name ="血浆胆红素吸附+HP"
  1084. }
  1085. if(mode_id == 31){
  1086. mode_name ="HPD"
  1087. }
  1088. if(mode_id == 32){
  1089. mode_name ="HDP"
  1090. }
  1091. return mode_name
  1092. },
  1093. GetAnticoagulant(id){
  1094. var anticoagulant_name = ""
  1095. if(id == 1){
  1096. anticoagulant_name = "无肝素"
  1097. }
  1098. if(id == 2){
  1099. anticoagulant_name = "普通肝素"
  1100. }
  1101. if(id == 3){
  1102. anticoagulant_name = "低分子肝素"
  1103. }
  1104. if(id == 4){
  1105. anticoagulant_name = "阿加曲班"
  1106. }
  1107. if(id == 5){
  1108. anticoagulant_name = "枸橼酸钠"
  1109. }
  1110. if(id == 6){
  1111. anticoagulant_name = "低分子肝素钙"
  1112. }
  1113. if(id == 7){
  1114. anticoagulant_name = "低分子肝素钠"
  1115. }
  1116. if(id == 8){
  1117. anticoagulant_name = "依诺肝素"
  1118. }
  1119. if(id == 9){
  1120. anticoagulant_name = "达肝素"
  1121. }
  1122. if(id == 10){
  1123. anticoagulant_name = "体外抗凝"
  1124. }
  1125. if(id == 11){
  1126. anticoagulant_name = "那屈肝素"
  1127. }
  1128. if(id == 12){
  1129. anticoagulant_name = "无抗凝剂"
  1130. }
  1131. if(id == 13){
  1132. anticoagulant_name = "那屈肝素钙"
  1133. }
  1134. if(id == 14){
  1135. anticoagulant_name = "肝素钙注射液"
  1136. }
  1137. if(id == 15){
  1138. anticoagulant_name = "甲磺酸萘莫司他"
  1139. }
  1140. return anticoagulant_name
  1141. },
  1142. getTime (time) {
  1143. return uParseTime(time, '{y}-{m}-{d}')
  1144. },
  1145. getTimeOne (time) {
  1146. return uParseTime(time, '{y}-{m}-{d}')
  1147. },
  1148. newcontent(val){
  1149. this.new_content =''
  1150. this.new_content = val
  1151. // console.log('1111112323',this.new_content);
  1152. this.$refs.editor.contents = this.new_content
  1153. }
  1154. },
  1155. }
  1156. </script>
  1157. <style rel="stylesheet/css" lang="scss" scoped>
  1158. .container {
  1159. margin-left: 180px;
  1160. padding: 20px;
  1161. background: #fff;
  1162. min-height: calc(100vh - 173px);
  1163. margin-bottom: 15px;
  1164. .record {
  1165. padding-top: 20px;
  1166. }
  1167. }
  1168. .record_content_panel {
  1169. border-width: 1px;
  1170. border-style: solid;
  1171. border-color: #ebeef5;
  1172. min-height: 200px;
  1173. .title {
  1174. font-size: 14px;
  1175. font-weight: 500;
  1176. color: #909399;
  1177. line-height: 44px;
  1178. height: 44px;
  1179. text-align: center;
  1180. border-bottom-width: 1px;
  1181. border-bottom-style: solid;
  1182. border-bottom-color: #ebeef5;
  1183. }
  1184. .content {
  1185. padding: 12px 15px;
  1186. font-size: 15px;
  1187. color: gray;
  1188. line-height: 22px;
  1189. }
  1190. }
  1191. .new_record_form {
  1192. /*/ / padding: 10 px, 25 px;*/
  1193. .textarea_panel {
  1194. margin-top: 10px;
  1195. }
  1196. }
  1197. .eldialog{
  1198. .el-dialog{
  1199. .el-dialog__body{
  1200. max-height: calc(100vh - 80px) !important;
  1201. padding: 0px 20px;
  1202. }
  1203. }
  1204. }
  1205. .Second_title{
  1206. border-left: 5px solid #3891f1f5;
  1207. text-align: left;
  1208. padding-left: 5px;
  1209. // margin-left: 10px;
  1210. margin-bottom: 5px;
  1211. font-size: 16px;
  1212. }
  1213. .text_margin{
  1214. display: block;
  1215. }
  1216. </style>
  1217. <style lang="scss">
  1218. .el-table td,
  1219. .el-table th.is-leaf,
  1220. .el-table--border,
  1221. .el-table--group {
  1222. border-color: #d0d3da;
  1223. }
  1224. .el-table--border::after,
  1225. .el-table--group::after,
  1226. .el-table::before {
  1227. background-color: #d0d3da;
  1228. }
  1229. .eldialog{
  1230. .el-dialog{
  1231. .el-dialog__body{
  1232. max-height: calc(100vh - 80px) !important;
  1233. padding: 0px 20px;
  1234. }
  1235. }
  1236. }
  1237. .lirary{
  1238. .el-dialog__body{
  1239. padding: 0px 20px !important;
  1240. }
  1241. .el-dialog__footer{
  1242. text-align: center;
  1243. }
  1244. }
  1245. .course{
  1246. .el-dialog{
  1247. height: 90%;
  1248. // position: fixed !important;
  1249. // top: 10% !important;
  1250. }
  1251. }
  1252. </style>