caseIndex.vue 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998
  1. <template>
  2. <div class="box">
  3. <el-row :gutter="16">
  4. <!-- 左侧菜单 -->
  5. <el-col :span="8">
  6. <div class="box_wrapper" :style="{'height': boxWrapperHeight}">
  7. <el-input placeholder="输入关键字进行过滤" v-model="filterText"></el-input>
  8. <el-tree
  9. class="filter-tree"
  10. node-key="id"
  11. highlight-current
  12. :data="menuList"
  13. :props="defaultProps"
  14. :filter-node-method="filterNode"
  15. ref="tree"
  16. @node-click="handleNodeClick"
  17. >
  18. <span class="custom-tree-node" slot-scope="{ node, data }">
  19. <span :class="{'green': greenColorMenus.includes(data.id)}">{{ node.label }}</span>
  20. </span>
  21. </el-tree>
  22. </div>
  23. </el-col>
  24. <!-- 右侧列表 -->
  25. <el-col :span="16">
  26. <div class="box_wrapper" :style="{'height': boxWrapperHeight}">
  27. <el-form :inline="true" :model="formInline" class="demo-form-inline">
  28. <el-form-item label="查询时间">
  29. <el-date-picker
  30. v-model="formInline.year"
  31. :clearable="false"
  32. type="year"
  33. :picker-options="pickerOptions"
  34. format="yyyy年"
  35. value-format="yyyy"
  36. placeholder="选择年份"
  37. ></el-date-picker>
  38. </el-form-item>
  39. <el-form-item>
  40. <el-button type="primary" @click="onSearch">查询</el-button>
  41. </el-form-item>
  42. <el-form-item style="float: right;">
  43. <el-button v-if="$route.query.type === 'children'" @click="onBack">返回</el-button>
  44. </el-form-item>
  45. </el-form>
  46. <el-table :data="tableData" style="width: 100%">
  47. <el-table-column prop="name" label="名称" show-overflow-tooltip></el-table-column>
  48. <el-table-column prop="time" label="日期" width="200"></el-table-column>
  49. <el-table-column prop="" label="数据" width="200">
  50. <template slot-scope="scope">
  51. <span v-if="ruleId > 100" class="link" :class="{'pointer': scope.row.source !== '人工录入'}" @click="toCaseIndexPage(scope.row)">{{ scope.row[judgeNum] }}</span>
  52. <span v-else>{{ (scope.row.res * 100).toFixed(2) + '%' }}</span>
  53. </template>
  54. </el-table-column>
  55. <el-table-column prop="" label="来源" width="200">
  56. <template slot-scope="scope">
  57. <span :class="{'green': scope.row.source === '人工录入' }">{{ scope.row.source }}</span>
  58. </template>
  59. </el-table-column>
  60. <!-- 同一个tableData 不会存在 多个来源 -->
  61. <el-table-column v-if="tableData.length && tableData[0].source === '人工录入'" prop="" label="操作" width="120">
  62. <template slot="header" slot-scope="scope">
  63. <span>操作</span>
  64. <i class="el-icon-edit table_edit" v-if="scope._self.judgeEdit" @click="onChangeValue"></i>
  65. </template>
  66. <template slot-scope="scope">
  67. <!-- 全年不可修改 -->
  68. <!-- 非人工录入不可修改 -->
  69. <!-- 菜单未标记的不可修改 -->
  70. <el-button type="text" @click="onChangeValue(scope.row)" v-if="scope.row.source === '人工录入' && scope.row.time !== '全年'">修改</el-button>
  71. <span v-else>--</span>
  72. </template>
  73. </el-table-column>
  74. </el-table>
  75. </div>
  76. </el-col>
  77. </el-row>
  78. <ChangeCaseIndexValueDialogVue v-if="dialogData.bSwitch" :data="dialogData" @refresh="getList" />
  79. </div>
  80. </template>
  81. <script>
  82. import ChangeCaseIndexValueDialogVue from './components/ChangeCaseIndexValueDialog.vue';
  83. export default {
  84. components: {
  85. ChangeCaseIndexValueDialogVue
  86. },
  87. data() {
  88. return {
  89. menus: [
  90. {
  91. id: 1,
  92. name: '一、人力资源配置指标',
  93. children: [
  94. {
  95. id: 11,
  96. name: '指标一、住院病案管理人员月均负担出院患者病历数',
  97. children: [
  98. {
  99. id: 111,
  100. name: '出院患者病历总数',
  101. },
  102. {
  103. id: 112,
  104. name: '同期住院病案管理人员实际工作总月数',
  105. },
  106. ],
  107. },
  108. {
  109. id: 12,
  110. name: '指标二、门诊病案管理人员月均负担门诊患者病历数',
  111. children: [
  112. {
  113. id: 121,
  114. name: '门诊患者病历总数',
  115. },
  116. {
  117. id: 122,
  118. name: '同期门诊病案管理人员实际工作总月数',
  119. },
  120. ],
  121. },
  122. {
  123. id: 13,
  124. name: '指标三、病案编码人员月均负担出院患者病历数',
  125. children: [
  126. {
  127. id: 131,
  128. name: '出院患者病历总数',
  129. },
  130. {
  131. id: 132,
  132. name: '同期病案编码人员实际工作总月数',
  133. },
  134. ],
  135. },
  136. ],
  137. },
  138. {
  139. id: 2,
  140. name: '二、病历书写时效性指标',
  141. children: [
  142. {
  143. id: 21,
  144. name: '指标四、入院记录 24 小时内完成率',
  145. children: [
  146. {
  147. id: 211,
  148. name: '入院记录在患者入院24小时内完成的住院患者病历数',
  149. },
  150. {
  151. id: 212,
  152. name: '同期入院患者病历总数',
  153. },
  154. ],
  155. },
  156. {
  157. id: 22,
  158. name: '指标五、手术记录24小时内完成率',
  159. children: [
  160. {
  161. id: 221,
  162. name: '手术记录在术后24小时内完成的住院患者病历数',
  163. },
  164. {
  165. id: 222,
  166. name: '同期住院患者病历总数',
  167. },
  168. ],
  169. },
  170. {
  171. id: 23,
  172. name: '指标六、出院记录24小时内完成率',
  173. children: [
  174. {
  175. id: 231,
  176. name: '出院记录在患者出院后24小时内完成的病历数',
  177. },
  178. {
  179. id: 232,
  180. name: '同期出院患者病历总数',
  181. },
  182. ],
  183. },
  184. {
  185. id: 24,
  186. name: '指标七、病案首页24小时内完成率',
  187. children: [
  188. {
  189. id: 241,
  190. name: '病案首页在患者出院后24小时内完成的病历数',
  191. },
  192. {
  193. id: 242,
  194. name: '同期出院患者病历总数',
  195. },
  196. ],
  197. },
  198. ],
  199. },
  200. {
  201. id: 3,
  202. name: '三、重大检查记录符合率',
  203. children: [
  204. {
  205. id: 31,
  206. name: '指标八、CT/MRI检查记录符合率',
  207. children: [
  208. {
  209. id: 311,
  210. name: 'CT/MRI检查医嘱、报告单、病程记录相对应的住院病历数',
  211. },
  212. {
  213. id: 312,
  214. name: '同期接受CT,MRI检查的住院病历总数',
  215. },
  216. ],
  217. },
  218. {
  219. id: 32,
  220. name: '指标九、病理检查记录符合率',
  221. children: [
  222. {
  223. id: 321,
  224. name: '手术记录、病理检查报告单、病程记录相对应的住院患者病历数',
  225. },
  226. {
  227. id: 322,
  228. name: '同期开展病理检查的住院患者病历总数',
  229. },
  230. ],
  231. },
  232. {
  233. id: 33,
  234. name: '指标十、细菌培养检查记录符合率',
  235. children: [
  236. {
  237. id: 331,
  238. name: '细菌培养检查的医嘱、报告单、病程记录相对应的住院患者病历数',
  239. },
  240. {
  241. id: 332,
  242. name: '同期开展细菌培养检查的住院患者病历总数',
  243. },
  244. ],
  245. },
  246. ],
  247. },
  248. {
  249. id: 4,
  250. name: '四、诊疗行为记录符合率',
  251. children: [
  252. {
  253. id: 41,
  254. name: '指标十一、抗菌药物使用记录符合率',
  255. children: [
  256. {
  257. id: 411,
  258. name: '抗菌药物使用医嘱、病程记录相对应的住院患者病历数',
  259. },
  260. {
  261. id: 412,
  262. name: '同期使用抗菌药物的住院患者病历总数',
  263. },
  264. ],
  265. },
  266. {
  267. id: 42,
  268. name: '指标十二、恶性肿瘤化学治疗记录符合率',
  269. children: [
  270. {
  271. id: 421,
  272. name: '恶性肿瘤化学治疗医嘱、病程记录相对应的住院患者病历数',
  273. },
  274. {
  275. id: 422,
  276. name: '同期接受恶性肿瘤化学治疗的住院患者病历总数',
  277. },
  278. ],
  279. },
  280. {
  281. id: 43,
  282. name: '指标十三、恶性肿瘤放射治疗记录符合率',
  283. children: [
  284. {
  285. id: 431,
  286. name: '恶性肿瘤放射治疗医嘱(治疗单) 、病程记录相对应的住院患者病历数',
  287. },
  288. {
  289. id: 432,
  290. name: '同期开展恶性肿瘤放射治疗的住院患者病历总数',
  291. },
  292. ],
  293. },
  294. {
  295. id: 44,
  296. name: '指标十四、手术相关记录完整率',
  297. children: [
  298. {
  299. id: 441,
  300. name: '手术相关记录完整的住院手术患者病历数',
  301. },
  302. {
  303. id: 442,
  304. name: '同期住院手术患者病历总数',
  305. },
  306. ],
  307. },
  308. {
  309. id: 45,
  310. name: '指标十五、植入物相关记录符合率',
  311. children: [
  312. {
  313. id: 451,
  314. name: '植入物相关记录符合的住院患者病历数',
  315. },
  316. {
  317. id: 452,
  318. name: '同期使用植入物的住院患者病历总数',
  319. },
  320. ],
  321. },
  322. {
  323. id: 46,
  324. name: '指标十六、临床用血相关记录符合率',
  325. children: [
  326. {
  327. id: 461,
  328. name: '临床用血相关记录符合的住院患者病历数',
  329. },
  330. {
  331. id: 462,
  332. name: '同期存在临床用血的住院患者病历总数',
  333. },
  334. ],
  335. },
  336. {
  337. id: 47,
  338. name: '指标十七、医师查房记录完整率',
  339. children: [
  340. {
  341. id: 471,
  342. name: '医师查房记录完整的住院患者病历数',
  343. },
  344. {
  345. id: 472,
  346. name: '同期住院患者病历总数',
  347. },
  348. ],
  349. },
  350. {
  351. id: 48,
  352. name: '指标十八、患者抢救记录及时完成率',
  353. children: [
  354. {
  355. id: 481,
  356. name: '抢救记录及时完成的住院患者病历数',
  357. },
  358. {
  359. id: 482,
  360. name: '同期接受抢救的住院患者病历总数',
  361. },
  362. ],
  363. },
  364. {
  365. id: 49,
  366. name: '指标十九、MER-D&T-08-1 患者抢救成功率',
  367. children: [
  368. {
  369. id: 491,
  370. name: '抢救成功患者病历数',
  371. },
  372. {
  373. id: 492,
  374. name: '同期接受抢救的住院患者病历总数',
  375. },
  376. ],
  377. },
  378. ],
  379. },
  380. {
  381. id: 5,
  382. name: '五、病历归档质量指标',
  383. children: [
  384. {
  385. id: 51,
  386. name: '指标二十、出院患者病历2日归档率',
  387. children: [
  388. {
  389. id: 511,
  390. name: '2个工作日内完成归档的出院患者病历数',
  391. },
  392. {
  393. id: 512,
  394. name: '同期出院患者病历总数',
  395. },
  396. ],
  397. },
  398. {
  399. id: 52,
  400. name: '指标二十一、出院患者病历归档完整率',
  401. children: [
  402. {
  403. id: 521,
  404. name: '归档病历内容完整的出院患者病历数',
  405. },
  406. {
  407. id: 522,
  408. name: '同期出院患者病历总数',
  409. },
  410. ],
  411. },
  412. {
  413. id: 53,
  414. name: '指标二十二、主要诊断填写正确率',
  415. children: [
  416. {
  417. id: 531,
  418. name: '病案首页中主要诊断填写正确的出院患者病历 数',
  419. },
  420. {
  421. id: 532,
  422. name: '同期出院患者病历总数',
  423. },
  424. ],
  425. },
  426. {
  427. id: 54,
  428. name: '指标二十三、主要诊断编码正确率',
  429. children: [
  430. {
  431. id: 541,
  432. name: '病案首页中主要诊断编码正确的出院患者病历数',
  433. },
  434. {
  435. id: 542,
  436. name: '同期出院患者病历总数',
  437. },
  438. ],
  439. },
  440. {
  441. id: 55,
  442. name: '指标二十四、主要手术填写正确率',
  443. children: [
  444. {
  445. id: 551,
  446. name: '病案首页中主要手术填写正确的出院患者病历 数',
  447. },
  448. {
  449. id: 552,
  450. name: '同期出院手术患者病历总数',
  451. },
  452. ],
  453. },
  454. {
  455. id: 56,
  456. name: '指标二十五、主要手术编码正确率',
  457. children: [
  458. {
  459. id: 561,
  460. name: '病案首页中主要手术编码正确的出院患者病历数',
  461. },
  462. {
  463. id: 562,
  464. name: '同期出院手术患者病历总数',
  465. },
  466. ],
  467. },
  468. {
  469. id: 57,
  470. name: '指标二十六、不合理复制病历发生率',
  471. children: [
  472. {
  473. id: 571,
  474. name: '出现不合理复制病历内容的出院患者病历数',
  475. },
  476. {
  477. id: 572,
  478. name: '同期出院患者病历总数',
  479. },
  480. ],
  481. },
  482. {
  483. id: 58,
  484. name: '指标二十七、知情同意书规范签署率',
  485. children: [
  486. {
  487. id: 581,
  488. name: '规范签署知情同意书的出院患者病历数',
  489. },
  490. {
  491. id: 582,
  492. name: '同期存在知情同意书签署的出院患者病历总数',
  493. },
  494. ],
  495. },
  496. {
  497. id: 59,
  498. name: '指标二十八、甲级病历率',
  499. children: [
  500. {
  501. id: 591,
  502. name: '甲级出院患者病历数',
  503. },
  504. {
  505. id: 592,
  506. name: '同期出院患者病历总数',
  507. },
  508. ],
  509. },
  510. ],
  511. },
  512. ],
  513. // 医院嵌入需显示指标4/5/6/7/11/12/13/14/15/17/18/19/21/23/25
  514. menus2: [
  515. {
  516. id: 2,
  517. name: '二、病历书写时效性指标',
  518. children: [
  519. {
  520. id: 21,
  521. name: '指标四、入院记录 24 小时内完成率',
  522. children: [
  523. {
  524. id: 211,
  525. name: '入院记录在患者入院24小时内完成的住院患者病历数',
  526. },
  527. {
  528. id: 212,
  529. name: '同期入院患者病历总数',
  530. },
  531. ],
  532. },
  533. {
  534. id: 22,
  535. name: '指标五、手术记录24小时内完成率',
  536. children: [
  537. {
  538. id: 221,
  539. name: '手术记录在术后24小时内完成的住院患者病历数',
  540. },
  541. {
  542. id: 222,
  543. name: '同期住院患者病历总数',
  544. },
  545. ],
  546. },
  547. {
  548. id: 23,
  549. name: '指标六、出院记录24小时内完成率',
  550. children: [
  551. {
  552. id: 231,
  553. name: '出院记录在患者出院后24小时内完成的病历数',
  554. },
  555. {
  556. id: 232,
  557. name: '同期出院患者病历总数',
  558. },
  559. ],
  560. },
  561. {
  562. id: 24,
  563. name: '指标七、病案首页24小时内完成率',
  564. children: [
  565. {
  566. id: 241,
  567. name: '病案首页在患者出院后24小时内完成的病历数',
  568. },
  569. {
  570. id: 242,
  571. name: '同期出院患者病历总数',
  572. },
  573. ],
  574. },
  575. ],
  576. },
  577. {
  578. id: 4,
  579. name: '四、诊疗行为记录符合率',
  580. children: [
  581. {
  582. id: 41,
  583. name: '指标十一、抗菌药物使用记录符合率',
  584. children: [
  585. {
  586. id: 411,
  587. name: '抗菌药物使用医嘱、病程记录相对应的住院患者病历数',
  588. },
  589. {
  590. id: 412,
  591. name: '同期使用抗菌药物的住院患者病历总数',
  592. },
  593. ],
  594. },
  595. {
  596. id: 42,
  597. name: '指标十二、恶性肿瘤化学治疗记录符合率',
  598. children: [
  599. {
  600. id: 421,
  601. name: '恶性肿瘤化学治疗医嘱、病程记录相对应的住院患者病历数',
  602. },
  603. {
  604. id: 422,
  605. name: '同期接受恶性肿瘤化学治疗的住院患者病历总数',
  606. },
  607. ],
  608. },
  609. {
  610. id: 43,
  611. name: '指标十三、恶性肿瘤放射治疗记录符合率',
  612. children: [
  613. {
  614. id: 431,
  615. name: '恶性肿瘤放射治疗医嘱(治疗单) 、病程记录相对应的住院患者病历数',
  616. },
  617. {
  618. id: 432,
  619. name: '同期开展恶性肿瘤放射治疗的住院患者病历总数',
  620. },
  621. ],
  622. },
  623. {
  624. id: 44,
  625. name: '指标十四、手术相关记录完整率',
  626. children: [
  627. {
  628. id: 441,
  629. name: '手术相关记录完整的住院手术患者病历数',
  630. },
  631. {
  632. id: 442,
  633. name: '同期住院手术患者病历总数',
  634. },
  635. ],
  636. },
  637. {
  638. id: 45,
  639. name: '指标十五、植入物相关记录符合率',
  640. children: [
  641. {
  642. id: 451,
  643. name: '植入物相关记录符合的住院患者病历数',
  644. },
  645. {
  646. id: 452,
  647. name: '同期使用植入物的住院患者病历总数',
  648. },
  649. ],
  650. },
  651. {
  652. id: 46,
  653. name: '指标十六、临床用血相关记录符合率',
  654. children: [
  655. {
  656. id: 461,
  657. name: '临床用血相关记录符合的住院患者病历数',
  658. },
  659. {
  660. id: 462,
  661. name: '同期存在临床用血的住院患者病历总数',
  662. },
  663. ],
  664. },
  665. {
  666. id: 47,
  667. name: '指标十七、医师查房记录完整率',
  668. children: [
  669. {
  670. id: 471,
  671. name: '医师查房记录完整的住院患者病历数',
  672. },
  673. {
  674. id: 472,
  675. name: '同期住院患者病历总数',
  676. },
  677. ],
  678. },
  679. {
  680. id: 48,
  681. name: '指标十八、患者抢救记录及时完成率',
  682. children: [
  683. {
  684. id: 481,
  685. name: '抢救记录及时完成的住院患者病历数',
  686. },
  687. {
  688. id: 482,
  689. name: '同期接受抢救的住院患者病历总数',
  690. },
  691. ],
  692. },
  693. {
  694. id: 49,
  695. name: '指标十九、MER-D&T-08-1 患者抢救成功率',
  696. children: [
  697. {
  698. id: 491,
  699. name: '抢救成功患者病历数',
  700. },
  701. {
  702. id: 492,
  703. name: '同期接受抢救的住院患者病历总数',
  704. },
  705. ],
  706. },
  707. ],
  708. },
  709. {
  710. id: 5,
  711. name: '五、病历归档质量指标',
  712. children: [
  713. {
  714. id: 52,
  715. name: '指标二十一、出院患者病历归档完整率',
  716. children: [
  717. {
  718. id: 521,
  719. name: '归档病历内容完整的出院患者病历数',
  720. },
  721. {
  722. id: 522,
  723. name: '同期出院患者病历总数',
  724. },
  725. ],
  726. },
  727. {
  728. id: 54,
  729. name: '指标二十三、主要诊断编码正确率',
  730. children: [
  731. {
  732. id: 541,
  733. name: '病案首页中主要诊断编码正确的出院患者病历数',
  734. },
  735. {
  736. id: 542,
  737. name: '同期出院患者病历总数',
  738. },
  739. ],
  740. },
  741. {
  742. id: 56,
  743. name: '指标二十五、主要手术编码正确率',
  744. children: [
  745. {
  746. id: 561,
  747. name: '病案首页中主要手术编码正确的出院患者病历数',
  748. },
  749. {
  750. id: 562,
  751. name: '同期出院手术患者病历总数',
  752. },
  753. ],
  754. },
  755. ],
  756. },
  757. ],
  758. cMenus: [
  759. {
  760. id: 34,
  761. name: '指标十、细菌培养检查记录符合率(子)',
  762. children: [
  763. {
  764. id: 341,
  765. name: '细菌培养检查的医嘱、报告单、病程记录相对应的住院患者病历数',
  766. },
  767. {
  768. id: 3432,
  769. name: '同期开展细菌培养检查的住院患者病历总数',
  770. },
  771. ],
  772. },
  773. ],
  774. formInline: {
  775. year: '',
  776. },
  777. tableData: [],
  778. filterText: '',
  779. defaultProps: {
  780. children: 'children',
  781. label: 'name',
  782. },
  783. ruleId: '',
  784. ruleName: '',
  785. time: new Date(),
  786. pickerOptions: {
  787. disabledDate(time) {
  788. const date = new Date();
  789. const year = date.getFullYear();
  790. const timeYear = time.getFullYear();
  791. return year < timeYear;
  792. },
  793. },
  794. greenColorMenus: [11, 112, 12, 121, 122, 13, 132],
  795. dialogData: {
  796. bSwitch: false,
  797. rows: []
  798. }
  799. };
  800. },
  801. computed: {
  802. // 判断是取分子还是分母
  803. judgeNum() {
  804. const str = `${this.ruleId}`;
  805. const length = str.length;
  806. const lastNum = str[length - 1];
  807. if (Number(lastNum) > 1) {
  808. // 分母
  809. return 'denominator';
  810. } else {
  811. // 分子
  812. return 'numerator';
  813. }
  814. },
  815. menuList() {
  816. if (this.$route.path === '/embedIndex-home') {
  817. return this.$route.path === '/embedIndex-home' ? this.menus2 : this.menus
  818. } else {
  819. return this.$route.query.type === 'children' ? this.cMenus : this.menus
  820. }
  821. },
  822. judgeEdit() {
  823. return this.greenColorMenus.includes(this.ruleId) && !!this.tableData.length
  824. },
  825. boxWrapperHeight() {
  826. return this.$route.path === '/embedIndex-home' ? '815px' : '885px'
  827. }
  828. },
  829. watch: {
  830. filterText(val) {
  831. this.$refs.tree.filter(val);
  832. }
  833. },
  834. methods: {
  835. onChangeValue(row) {
  836. console.log(row, 9999)
  837. if (row.time) {
  838. // 单个修改
  839. const { time } = row
  840. const obj = {
  841. year: time.split('-')[0],
  842. month: time.split('-')[1],
  843. flag: Number(this.ruleId.toString().slice(0, 2)),
  844. type: this.judgeNum,
  845. num: row[this.judgeNum],
  846. }
  847. // 先清空在赋值,防止重复
  848. this.$set(this.dialogData, 'rows', [])
  849. this.dialogData.rows.push(obj)
  850. } else {
  851. // 批量修改
  852. // 先清空在赋值,防止重复
  853. this.$set(this.dialogData, 'rows', [])
  854. this.tableData.map(item => {
  855. const { time, source } = item
  856. if (source === '人工录入' && time != '全年') {
  857. const obj = {
  858. year: time.split('-')[0],
  859. month: time.split('-')[1],
  860. flag: Number(this.ruleId.toString().slice(0, 2)),
  861. type: this.judgeNum,
  862. num: item[this.judgeNum]
  863. }
  864. this.dialogData.rows.push(obj)
  865. }
  866. })
  867. }
  868. this.dialogData.bSwitch = true
  869. },
  870. // 返回
  871. onBack() {
  872. this.$router.go(-1)
  873. },
  874. // 病案指标列表跳转
  875. toCaseIndexPage(row) {
  876. const { time, source } = row;
  877. if ( source === '人工录入') {
  878. return
  879. }
  880. let path
  881. if (this.$route.path === '/embedIndex-home') {
  882. path = '/embedIndex-caseIndexList'
  883. } else {
  884. path = '/caseIndexList'
  885. }
  886. this.$router.push({ path, query: { year: this.formInline.year, time, ruleId: Number(`${this.ruleId}`.slice(0, 2)), type: this.judgeNum } });
  887. },
  888. // 菜单筛选
  889. filterNode(value, data) {
  890. if (!value) return true;
  891. return data.name.indexOf(value) !== -1;
  892. },
  893. handleNodeClick(data) {
  894. const { id, name } = data;
  895. this.ruleId = id;
  896. this.ruleName = name;
  897. if (id > 10 && this.formInline.year) {
  898. this.getList();
  899. }
  900. },
  901. // 获取右侧列表数据
  902. getList() {
  903. const { year } = this.formInline;
  904. const params = {
  905. start_time: `${year}0101`,
  906. end_time: `${year}1231`,
  907. year,
  908. type: Number(`${this.ruleId}`.slice(0, 2)),
  909. };
  910. if (this.ruleId < 100) {
  911. params.request_source = 1
  912. } else {
  913. params.request_source = this.judgeNum === 'denominator' ? 2 : 3
  914. }
  915. this.$axios2.post('/get_assessment_indicators', params).then(res => {
  916. if (Array.isArray(res.data)) {
  917. res.data.map(item => {
  918. item.name = this.ruleName;
  919. item.ruleId = this.ruleId
  920. });
  921. this.tableData = res.data;
  922. } else {
  923. this.tableData = [];
  924. }
  925. });
  926. },
  927. // 查询
  928. onSearch() {
  929. const { year } = this.formInline;
  930. if (!year) {
  931. this.$message.error('请选择查询时间');
  932. return;
  933. }
  934. if (!this.ruleId) {
  935. this.$message.error('请选择查询指标');
  936. return;
  937. }
  938. this.getList();
  939. },
  940. },
  941. };
  942. </script>
  943. <style lang="scss" scoped>
  944. .table_edit {
  945. margin-left: 10px;
  946. cursor: pointer;
  947. &:hover {
  948. opacity: 0.6;
  949. }
  950. }
  951. .link {
  952. font-weight: 600;
  953. color: #409eff;
  954. }
  955. .pointer {
  956. cursor: pointer;
  957. }
  958. .box {
  959. padding: 16px;
  960. .box_wrapper {
  961. padding: 16px;
  962. background: #fff;
  963. border-radius: 5px;
  964. overflow-x: hidden;
  965. overflow-y: auto;
  966. }
  967. }
  968. .filter-tree {
  969. margin-top: 16px;
  970. ::v-deep .el-tree-node__content {
  971. height: 36px;
  972. line-height: 36px;
  973. }
  974. }
  975. ::v-deep.el-table .el-table__header tr th {
  976. background: #f1f6ff;
  977. color: #13171e;
  978. border-bottom: 0px;
  979. }
  980. ::v-deep.el-table .el-table__row td {
  981. color: #7e8bab;
  982. border-bottom: 1px solid #f4f4f4;
  983. }
  984. ::v-deep.el-table .el-table__header tr th:first-child {
  985. border-radius: 5px 0px 0px 5px;
  986. }
  987. ::v-deep.el-table .el-table__header tr th:nth-child(3) {
  988. border-radius: 0px 5px 5px 0px;
  989. }
  990. .green {
  991. color: #67C23A;
  992. }
  993. </style>