Elizabeth's proactive approach involves introducing urinal toilet attachment , an ingenious concept that optimizes space and functionality.

inspection.vue 26KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768
  1. <template>
  2. <div class="patient-container">
  3. <patient-sidebar :id="patientID" defaultActive="1-3"></patient-sidebar>
  4. <div
  5. class="patient-app-container app-container"
  6. v-loading="pageLoading"
  7. element-loading-text="拼命加载中"
  8. >
  9. <el-row :gutter="20">
  10. <el-col :span="7">
  11. <el-table
  12. :header-cell-style="{
  13. backgroundColor: 'rgb(245, 247, 250)',
  14. color: '#606266'
  15. }"
  16. :row-style="{ color: '#303133' }"
  17. :data="projects"
  18. border
  19. style="width: 100%"
  20. highlight-current-row
  21. @current-change="handleCurrentChange"
  22. ref="singleTable"
  23. >
  24. <el-table-column label="检验检查项目" align="center">
  25. <el-table-column
  26. prop="project_name"
  27. label="检验项目"
  28. align="center"
  29. >
  30. </el-table-column>
  31. <el-table-column
  32. prop="count"
  33. label="次数"
  34. width="80"
  35. align="center"
  36. >
  37. </el-table-column>
  38. </el-table-column>
  39. </el-table>
  40. </el-col>
  41. <el-col :span="17" v-loading="itemLoading">
  42. <div class="filter-container" style="float:right">
  43. <el-button
  44. size="small"
  45. class="filter-item"
  46. type="primary"
  47. @click="openNew()"
  48. icon="el-icon-circle-plus-outline"
  49. :disabled="project ? false : true"
  50. >新增</el-button
  51. >
  52. <el-button
  53. size="small"
  54. class="filter-item"
  55. type="primary"
  56. icon="el-icon-edit-outline"
  57. @click="openEdit()"
  58. :disabled="itemDate ? false : true"
  59. >修改</el-button
  60. >
  61. <el-button
  62. size="small"
  63. class="filter-item"
  64. type="danger"
  65. icon="el-icon-delete"
  66. @click="deleteInspection()"
  67. :disabled="itemDate ? false : true"
  68. >删除</el-button
  69. >
  70. </div>
  71. <div class="filter-container">
  72. <el-button class="filter-item" type="text" style="color:#000"
  73. >{{ itemName }}
  74. <span v-if="itemDate"
  75. >(检查日期:{{ itemDate }})</span
  76. ></el-button
  77. >
  78. </div>
  79. <el-table
  80. :header-cell-style="{
  81. backgroundColor: 'rgb(245, 247, 250)',
  82. color: '#606266'
  83. }"
  84. :row-style="{ color: '#303133' }"
  85. :data="items"
  86. border
  87. style="width: 100%"
  88. id="user-inspection-order"
  89. >
  90. <el-table-column
  91. prop="item_name"
  92. label="检验项目"
  93. align="center"
  94. min-width="180"
  95. >
  96. <template slot-scope="scope">
  97. {{ scope.row.item_name }} {{ scope.row.item_name_addition }}
  98. </template>
  99. </el-table-column>
  100. <el-table-column
  101. prop="name"
  102. label="结果"
  103. align="center"
  104. min-width="80"
  105. >
  106. <template slot-scope="scope">
  107. <span v-if="scope.row.value =='阳性'" style="color:red">{{ scope.row.value }}</span>
  108. <span v-else>{{ scope.row.value }}</span>
  109. <span v-if="scope.row.range_type == 1">
  110. {{scope.row.value_direction}}
  111. </span>
  112. </template>
  113. </el-table-column>
  114. <el-table-column
  115. prop="address"
  116. label="参考值"
  117. align="center"
  118. min-width="120"
  119. >
  120. <template slot-scope="scope">
  121. <span v-if="scope.row.range_type == 1"
  122. >{{ scope.row.range_min }}~{{ scope.row.range_max }}</span
  123. >
  124. <span v-else>{{ scope.row.range_value }}</span>
  125. </template>
  126. </el-table-column>
  127. <el-table-column
  128. prop="unit"
  129. label="单位"
  130. align="center"
  131. min-width="80"
  132. >
  133. </el-table-column>
  134. </el-table>
  135. <el-pagination
  136. align="right"
  137. @current-change="handleCurrentChangePage"
  138. :current-page="queryParams.page"
  139. :page-size="1"
  140. background
  141. style="margin-top:20px;"
  142. layout="total, prev, pager, next, jumper"
  143. :total="total"
  144. >
  145. </el-pagination>
  146. </el-col>
  147. </el-row>
  148. </div>
  149. <el-dialog
  150. :title="formTitle"
  151. :visible.sync="dialogFormVisible"
  152. width="1000px"
  153. id="user-inspection-form"
  154. v-loading="formLoading"
  155. >
  156. <el-form :model="form" ref="form" label-position="top">
  157. <el-row>
  158. <el-col :span="24" v-if="form.formItem[0].project_id == 14">
  159. <el-form-item label="传染病周期提醒: ">
  160. <el-radio-group v-model="form.remind_cycle">
  161. <el-radio :label="1">一月一次</el-radio>
  162. <el-radio :label="2">两月一次</el-radio>
  163. <el-radio :label="3">三月一次</el-radio>
  164. <el-radio :label="4">半年一次</el-radio>
  165. <el-radio :label="5">一年一次</el-radio>
  166. </el-radio-group>
  167. </el-form-item>
  168. </el-col>
  169. <el-col :span="7">
  170. <el-form-item
  171. label="检验日期"
  172. prop="inspect_date"
  173. :rules="[
  174. { required: true, message: '请输入检验日期', trigger: 'blur' }
  175. ]"
  176. >
  177. <el-date-picker
  178. style="width:95%"
  179. v-model="form.inspect_date"
  180. type="datetime"
  181. value-format="yyyy-MM-dd HH:mm"
  182. format="yyyy-MM-dd HH:mm"
  183. placeholder="选择日期"
  184. >
  185. </el-date-picker>
  186. </el-form-item>
  187. </el-col>
  188. <el-col :span="1">&nbsp;</el-col>
  189. <template v-for="(item, index) in form.formItem">
  190. <el-col :span="7" :key="index">
  191. <el-form-item
  192. :label="item.item_name"
  193. v-if="item.range_type == 1"
  194. :key="item.item_id"
  195. :prop="'formItem.' + index + '.value'"
  196. >
  197. <el-input
  198. placeholder="请填入"
  199. v-model="item.value"
  200. style="width:95%"
  201. type="number"
  202. @input='changeInput(item)'
  203. >
  204. <template slot="append">{{ item.unit }}</template>
  205. </el-input>
  206. </el-form-item>
  207. <el-form-item
  208. :label="item.item_name"
  209. v-else
  210. :key="item.item_id"
  211. :prop="'formItem.' + index + '.value'"
  212. >
  213. <el-select
  214. v-model="item.value"
  215. placeholder="请选择"
  216. style="width:95%"
  217. >
  218. <el-option
  219. v-for="(optionItem, oidex) in item.select_options"
  220. :key="oidex"
  221. :label="optionItem"
  222. :value="optionItem"
  223. >
  224. </el-option>
  225. </el-select>
  226. </el-form-item>
  227. </el-col>
  228. <el-col :span="1" :key="'form-col' + index">&nbsp;</el-col>
  229. </template>
  230. </el-row>
  231. </el-form>
  232. <div slot="footer" class="dialog-footer">
  233. <el-button @click="dialogFormVisible = false">取 消</el-button>
  234. <el-button
  235. type="primary"
  236. v-if="form.method == 'add'"
  237. @click="submitNew('form')"
  238. >保 存</el-button
  239. >
  240. <el-button type="primary" v-else @click="submitEdit('form')"
  241. >保 存</el-button
  242. >
  243. </div>
  244. </el-dialog>
  245. </div>
  246. </template>
  247. <script>
  248. import PatientSidebar from './components/PatientSidebar'
  249. import {
  250. fetchInspectionReference,
  251. CreatePatientInspection,
  252. fetchPatientInspections,
  253. EditPatientInspection,
  254. DeletePatientInspection
  255. } from '@/api/inspection'
  256. import { uParseTime, isPositiveNumber } from '@/utils/tools'
  257. export default {
  258. name: 'Inspection',
  259. components: { PatientSidebar },
  260. data() {
  261. return {
  262. total: 0,
  263. pageLoading: true,
  264. itemLoading: false,
  265. formLoading: false,
  266. itemDate: '',
  267. patientID: 0,
  268. panelClass: 'patient-app-container',
  269. patientInfo: {
  270. id: 0
  271. },
  272. itemName: '请选择项目',
  273. formTitle: '',
  274. dialogFormVisible: false,
  275. patient_info: null,
  276. form: {
  277. remind_cycle: '',
  278. method: 'add',
  279. project_id: 0,
  280. inspect_date: '',
  281. old_inspect_date: '',
  282. formItem: [{ id: 0, value: '' }]
  283. },
  284. formItem: [],
  285. items: [],
  286. inspections: [],
  287. inspectionsMap: {},
  288. projects: [],
  289. project: null,
  290. queryParams: {
  291. patient: 0,
  292. project_id: 0,
  293. page: 1
  294. }
  295. }
  296. },
  297. methods: {
  298. changeInput(item){
  299. if(item.item_name == '血清铁蛋白' || item.item_name == '总铁结合力'){
  300. let index1 = ''
  301. let index2 = ''
  302. this.form.formItem.map((it,index) => {
  303. if(this.form.formItem[index].item_name == '血清铁蛋白'){
  304. index1 = index
  305. }
  306. if(this.form.formItem[index].item_name == '总铁结合力'){
  307. index2 = index
  308. }
  309. if(it.item_name == '转铁蛋白饱和度(计算)'){
  310. it.value = (parseFloat(this.form.formItem[index1].value) / parseFloat(this.form.formItem[index2].value)) * 100
  311. }
  312. })
  313. }
  314. },
  315. deleteInspection() {
  316. if (this.project == null || this.itemDate == '') {
  317. this.$message.error('请先选择删除删除的记录')
  318. return false
  319. }
  320. this.$confirm('确认删除此记录?', '删除', {
  321. confirmButtonText: '确定',
  322. cancelButtonText: '取消',
  323. type: 'warning'
  324. })
  325. .then(() => {
  326. var params = {
  327. patient: this.patientID,
  328. date: this.itemDate,
  329. project_id: this.project.project_id
  330. }
  331. DeletePatientInspection(params).then(response => {
  332. if (response.data.state == 0) {
  333. this.$message.error(response.data.msg)
  334. return false
  335. } else {
  336. this.$notify({
  337. title: '成功',
  338. message: '删除成功',
  339. type: 'success',
  340. duration: 2000
  341. })
  342. for (var index in this.projects) {
  343. if (this.projects[index].project_id == params.project_id) {
  344. this.projects[index].count--
  345. break
  346. }
  347. }
  348. this.total -= 1
  349. this.itemDate = ''
  350. this.items = []
  351. if (this.total > 0) {
  352. this.queryParams.page = 1
  353. this.fetchPatientInspections(this.queryParams)
  354. }
  355. }
  356. })
  357. })
  358. .catch(() => {})
  359. },
  360. openEdit() {
  361. if (this.project == null) {
  362. this.$message.error('请先选择项目')
  363. return false
  364. }
  365. this.form.method = 'edit'
  366. this.formTitle = '修改' + this.project.project_name
  367. this.form.project_id = this.project.project_id
  368. this.form.inspect_date = this.itemDate
  369. this.form.old_inspect_date = this.itemDate
  370. this.form.remind_cycle = this.patient_info.remind_cycle
  371. console.log(this.form.remind_cycle)
  372. this.form.formItem = []
  373. for (var index in this.project.inspection_reference) {
  374. this.form.formItem.push({
  375. id: this.project.inspection_reference[index].id in this.inspectionsMap ? this.inspectionsMap[this.project.inspection_reference[index].id].id : 0,
  376. project_id: this.project.inspection_reference[index].project_id,
  377. project_name: this.project.inspection_reference[index].project_name,
  378. item_id: this.project.inspection_reference[index].id,
  379. item: this.project.inspection_reference[index].item,
  380. item_name: this.project.inspection_reference[index].item_name,
  381. range_type: this.project.inspection_reference[index].range_type,
  382. value: this.project.inspection_reference[index].id in this.inspectionsMap ? this.inspectionsMap[this.project.inspection_reference[index].id].inspect_value : '',
  383. select_options: this.project.inspection_reference[index].range_options.split(','),
  384. unit: this.project.inspection_reference[index].unit
  385. })
  386. }
  387. console.log(this.form.formItem)
  388. this.dialogFormVisible = true
  389. },
  390. openNew() {
  391. if (this.project == null) {
  392. this.$message.error('请先选择项目')
  393. return false
  394. }
  395. this.form.method = 'add'
  396. this.formTitle = '新增' + this.project.project_name
  397. this.form.project_id = this.project.project_id
  398. this.form.remind_cycle = this.patient_info.remind_cycle
  399. var today = new Date()
  400. this.form.inspect_date = uParseTime(today, '{y}-{m}-{d} {h}:{i}')
  401. this.form.formItem = []
  402. for (var index in this.project.inspection_reference) {
  403. // var formItem = this.project.inspection_reference[index];
  404. // formItem["value"] = '';
  405. // if (formItem.range_type==2) {
  406. // formItem["select_options"] = formItem.range_options.split(",");
  407. // }
  408. this.form.formItem.push({
  409. id: 0,
  410. project_id: this.project.inspection_reference[index].project_id,
  411. project_name: this.project.inspection_reference[index].project_name,
  412. item_id: this.project.inspection_reference[index].id,
  413. item: this.project.inspection_reference[index].item,
  414. item_name: this.project.inspection_reference[index].item_name,
  415. range_type: this.project.inspection_reference[index].range_type,
  416. value: '',
  417. select_options: this.project.inspection_reference[
  418. index
  419. ].range_options.split(','),
  420. unit: this.project.inspection_reference[index].unit
  421. })
  422. }
  423. console.log('form.formItem',this.form.formItem)
  424. this.dialogFormVisible = true
  425. },
  426. submitEdit(formName) {
  427. this.$refs[formName].validate(valid => {
  428. if (valid) {
  429. this.formLoading = true
  430. if (this.form.formItem.length == 0) {
  431. this.$message.error('未填写项目')
  432. return false
  433. }
  434. for (var index in this.form.formItem) {
  435. this.form.formItem[index].value = '' + this.form.formItem[index].value
  436. }
  437. EditPatientInspection(this.patientID, this.form, this.form.remind_cycle, this.form.inspect_date, this.form.project_id).then(response => {
  438. if (response.data.state == 1) {
  439. this.$notify({
  440. title: '成功',
  441. message: '修改成功',
  442. type: 'success',
  443. duration: 2000
  444. })
  445. this.patient_info.remind_cycle =
  446. response.data.data.remind_cycle
  447. this.itemDate = this.form.inspect_date
  448. this.items = []
  449. var inspections = response.data.data.inspections
  450. this.inspections = response.data.data.inspections
  451. if (inspections == null) {
  452. this.inspections = []
  453. return false
  454. }
  455. var inspectionsMap = {}
  456. this.inspectionsMap = {}
  457. for (var index in inspections) {
  458. inspectionsMap[inspections[index].item_id] =
  459. inspections[index]
  460. this.inspectionsMap[inspections[index].item_id] =
  461. inspections[index]
  462. }
  463. var items = this.project.inspection_reference
  464. console.log("itmes",items)
  465. for (var index in items) {
  466. if (items[index].id in inspectionsMap) {
  467. var item = {}
  468. for (var key in items[index]) {
  469. item[key] = items[index][key]
  470. }
  471. item.value = inspectionsMap[items[index].id].inspect_value
  472. item.value_direction = ''
  473. if (item.range_type == 1) {
  474. var value = parseFloat(item.value)
  475. var range_min = parseFloat(item.range_min)
  476. var range_max = parseFloat(item.range_max)
  477. if (value < range_min) {
  478. item.value_direction = '↓'
  479. } else if (value > range_max) {
  480. item.value_direction = '↑'
  481. }
  482. }
  483. this.items.push(item)
  484. }
  485. }
  486. this.resetForm(formName)
  487. this.dialogFormVisible = false
  488. } else {
  489. this.$message.error(response.data.msg)
  490. return false
  491. }
  492. })
  493. .catch(v => {
  494. this.$message.error(v)
  495. return false
  496. })
  497. this.formLoading = false
  498. return false
  499. } else {
  500. return false
  501. }
  502. })
  503. },
  504. submitNew(formName) {
  505. this.$refs[formName].validate(valid => {
  506. if (valid) {
  507. this.formLoading = true
  508. if (this.form.formItem.length == 0) {
  509. this.$message.error('未填写项目')
  510. return false
  511. }
  512. for (var index in this.form.formItem) {
  513. this.form.formItem[index].value =
  514. '' + this.form.formItem[index].value
  515. }
  516. CreatePatientInspection(
  517. this.patientID,
  518. this.form,
  519. this.form.remind_cycle
  520. )
  521. .then(response => {
  522. if (response.data.state == 1) {
  523. this.$notify({
  524. title: '成功',
  525. message: '新增成功',
  526. type: 'success',
  527. duration: 2000
  528. })
  529. // this.form.remind_reycle = response.data.data.remind_reycc
  530. this.patient_info.remind_cycle =
  531. response.data.data.remind_cycle
  532. console.log(this.patient_info.remind_cycle)
  533. this.itemDate = this.form.inspect_date
  534. this.items = []
  535. for (var index in this.projects) {
  536. if (this.projects[index].project_id == this.form.project_id) {
  537. this.projects[index].count++
  538. break
  539. }
  540. }
  541. this.total += 1
  542. var inspections = response.data.data.inspections
  543. this.inspections = response.data.data.inspections
  544. if (inspections == null) {
  545. this.inspections = []
  546. return false
  547. }
  548. var inspectionsMap = {}
  549. this.inspectionsMap = {}
  550. for (var index in inspections) {
  551. inspectionsMap[inspections[index].item_id] =
  552. inspections[index]
  553. this.inspectionsMap[inspections[index].item_id] =
  554. inspections[index]
  555. }
  556. var items = this.project.inspection_reference
  557. for (var index in items) {
  558. if (items[index].id in inspectionsMap) {
  559. var item = {}
  560. for (var key in items[index]) {
  561. item[key] = items[index][key]
  562. }
  563. item.value = inspectionsMap[items[index].id].inspect_value
  564. item.value_direction = ''
  565. if (item.range_type == 1) {
  566. var value = parseFloat(item.value)
  567. var range_min = parseFloat(item.range_min)
  568. var range_max = parseFloat(item.range_max)
  569. if (value < range_min) {
  570. item.value_direction = '↓'
  571. } else if (value > range_max) {
  572. item.value_direction = '↑'
  573. }
  574. }
  575. this.items.push(item)
  576. }
  577. }
  578. this.resetForm(formName)
  579. this.dialogFormVisible = false
  580. this.queryParams.patient = this.patientID
  581. this.queryParams.project_id = this.project.project_id
  582. this.queryParams.page = 1
  583. this.total = 0
  584. this.fetchPatientInspections(this.queryParams)
  585. } else {
  586. this.$message.error(response.data.msg)
  587. return false
  588. }
  589. })
  590. .catch(v => {
  591. this.$message.error(v)
  592. return false
  593. })
  594. this.formLoading = false
  595. return false
  596. } else {
  597. return false
  598. }
  599. })
  600. },
  601. fetchInspectionReference() {
  602. fetchInspectionReference(this.patientID)
  603. .then(response => {
  604. if (response.data.state == 1) {
  605. var reference = response.data.data.reference
  606. var patient_info = response.data.data.patient_info
  607. this.projects = reference
  608. this.patient_info = patient_info
  609. this.pageLoading = false
  610. this.form.remind_cycle = this.patient_info.remind_cycle
  611. } else {
  612. this.$message.error(response.data.msg)
  613. return false
  614. }
  615. })
  616. .catch(v => {})
  617. },
  618. setCurrent(row) {
  619. this.$refs.singleTable.setCurrentRow(row)
  620. },
  621. resetForm(formName) {
  622. this.$refs[formName].resetFields()
  623. },
  624. handleCurrentChange(row) {
  625. this.itemDate = ''
  626. this.form.method = 'add'
  627. if (typeof row === 'undefined' || row == null) {
  628. this.project = null
  629. this.items = []
  630. this.itemName = '请选择项目'
  631. } else {
  632. this.itemLoading = true
  633. this.project = row
  634. this.items = row.inspection_reference
  635. this.itemName = row.project_name
  636. this.queryParams.patient = this.patientID
  637. this.queryParams.project_id = this.project.project_id
  638. this.queryParams.page = 1
  639. this.total = 0
  640. this.fetchPatientInspections(this.queryParams)
  641. }
  642. },
  643. handleCurrentChangePage(val) {
  644. this.itemLoading = true
  645. this.queryParams.page = val
  646. this.fetchPatientInspections(this.queryParams)
  647. },
  648. fetchPatientInspections(params) {
  649. this.items = []
  650. fetchPatientInspections(params)
  651. .then(response => {
  652. if (response.data.state == 1) {
  653. var inspections = response.data.data.inspections
  654. this.total = response.data.data.total
  655. this.itemDate = response.data.data.date
  656. this.inspections = response.data.data.inspections
  657. if (inspections == null) {
  658. this.inspections = []
  659. return false
  660. }
  661. var inspectionsMap = {}
  662. this.inspectionsMap = {}
  663. for (var index in inspections) {
  664. inspectionsMap[inspections[index].item_id] = inspections[index]
  665. this.inspectionsMap[inspections[index].item_id] = inspections[index]
  666. }
  667. var items = this.project.inspection_reference
  668. for (var index in items) {
  669. if (items[index].id in inspectionsMap || items[index].item_id in inspectionsMap) {
  670. var item = {}
  671. for (var key in items[index]) {
  672. item[key] = items[index][key]
  673. }
  674. if (item.item_id > 0) {
  675. if (inspectionsMap[items[index].item_id] == undefined) {
  676. item.value = inspectionsMap[items[index].id].inspect_value
  677. } else {
  678. item.value = inspectionsMap[items[index].item_id].inspect_value
  679. }
  680. } else {
  681. item.value = inspectionsMap[items[index].id].inspect_value
  682. }
  683. item.value_direction = ''
  684. if (item.range_type == 1) {
  685. var value = parseFloat(item.value)
  686. var range_min = parseFloat(item.range_min)
  687. var range_max = parseFloat(item.range_max)
  688. if (value < range_min) {
  689. item.value_direction = '↓'
  690. } else if (value > range_max) {
  691. item.value_direction = '↑'
  692. }
  693. }
  694. this.items.push(item)
  695. }
  696. }
  697. console.log(this.items)
  698. }
  699. })
  700. .catch(v => {})
  701. setTimeout(() => {
  702. this.itemLoading = false
  703. }, 1000)
  704. }
  705. },
  706. created() {
  707. const id = this.$route.query && this.$route.query.id
  708. this.patientID = parseInt(id)
  709. if (isNaN(this.patientID) || this.patientID <= 0) {
  710. this.$notify.error({
  711. title: '错误',
  712. message: '无效的id'
  713. })
  714. this.$router.push('/patients/patients')
  715. }
  716. this.fetchInspectionReference()
  717. }
  718. }
  719. </script>
  720. <style>
  721. #oictable ::-webkit-scrollbar {
  722. height: 15px;
  723. }
  724. </style>
  725. <style>
  726. #user-inspection-order td {
  727. border-bottom: 0px !important;
  728. border-right: 0px !important;
  729. }
  730. #user-inspection-order th {
  731. border-right: 0px !important;
  732. }
  733. #user-inspection-form .el-form-item__content {
  734. line-height: 0 !important;
  735. }
  736. .el-table td,
  737. .el-table th.is-leaf,
  738. .el-table--border,
  739. .el-table--group {
  740. border-color: #d0d3da;
  741. }
  742. .el-table--border::after,
  743. .el-table--group::after,
  744. .el-table::before {
  745. background-color: #d0d3da;
  746. }
  747. </style>