caseRetrieval.vue 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902
  1. <template>
  2. <div class="dashboard-container">
  3. <div class="block">
  4. <div class="barBtn">
  5. <el-radio-group v-model="choice" class="bnts" size="medium">
  6. <el-radio-button :label="0">普通检索</el-radio-button>
  7. <el-radio-button :label="1">高级检索</el-radio-button>
  8. </el-radio-group>
  9. </div>
  10. <div class="bnh"></div>
  11. <!-- 普通检索 开始 -->
  12. <div class="inputs" v-if="choice == 0">
  13. <el-row :gutter="20" class="rowsa">
  14. <el-col :span="4">
  15. <div class="grid-content bg-purple">
  16. <el-input class="inpus" v-model="formData0.recordNum" placeholder="病案号"></el-input>
  17. </div>
  18. </el-col>
  19. <el-col :span="5">
  20. <div class="grid-content bg-purple">
  21. <el-select v-model="formData0.Department" filterable class="selects" placeholder="出院科室">
  22. <el-option v-for="(item, index) in departmentList" :label="item.name" :value="item.id" :key="index"></el-option>
  23. </el-select>
  24. </div>
  25. </el-col>
  26. <el-col :span="5">
  27. <div class="grid-content bg-purple">
  28. <el-select v-model="formData0.problem" class="selects" placeholder="问题属性">
  29. <el-option v-for="(item, index) in levelList" :label="item.name" :value="item.id" :key="index"></el-option>
  30. </el-select>
  31. </div>
  32. </el-col>
  33. <el-col :span="5">
  34. <div class="grid-content bg-purple">
  35. <el-select v-model="formData0.payment" filterable class="selects" placeholder="医疗付款方式">
  36. <el-option v-for="(item, index) in payList" :label="item.name" :value="item.id" :key="index"></el-option>
  37. </el-select>
  38. </div>
  39. </el-col>
  40. <el-col :span="5">
  41. <div class="grid-content bg-purple">
  42. <el-select v-model="formData0.medicalRecord" class="selects" placeholder="全部病案">
  43. <el-option label="已质控" value="1"></el-option>
  44. <el-option label="未质控" value="0"></el-option>
  45. </el-select>
  46. </div>
  47. </el-col>
  48. </el-row>
  49. <el-row :gutter="20" class="rowsa">
  50. <el-col :span="5">
  51. <div class="grid-content bg-purple">
  52. <el-date-picker
  53. class="selects"
  54. v-model="formData0.startTime"
  55. type="date"
  56. format="yyyy 年 MM 月 dd 日"
  57. value-format="yyyyMMdd"
  58. placeholder="开始日期"
  59. ></el-date-picker>
  60. </div>
  61. </el-col>
  62. <el-col :span="5">
  63. <div class="grid-content bg-purple">
  64. <el-date-picker class="selects" v-model="formData0.endTime" type="date" format="yyyy 年 MM 月 dd 日" value-format="yyyyMMdd" placeholder="结束日期"></el-date-picker>
  65. </div>
  66. </el-col>
  67. </el-row>
  68. </div>
  69. <!-- 普通检索 结束 -->
  70. <!-- 高级检索 开始 -->
  71. <div class="barBtn" v-else>
  72. <el-form ref="form" :model="formData1" label-width="100px">
  73. <el-form-item v-for="(item, index) in formData1.seniorList" :key="index">
  74. <!-- 下拉框开始 -->
  75. <el-select class="width150" filterable v-model="item.key" @change="getOneCleck(item)" placeholder="请选择">
  76. <!-- fieldList -->
  77. <el-option v-for="(item, index) in fieldList" :label="item.name" :value="item.id" :key="index"></el-option>
  78. </el-select>
  79. <!-- 下拉框结束 -->
  80. <span class="pind10"></span>
  81. <!-- 中间选择输入框开始 -->
  82. <span v-if="keyList.includes(item.key)">
  83. <el-select class="width150" filterable v-model="item.value" placeholder="请选择">
  84. <el-option v-for="(itemo, indexo) in item.selectList" :key="indexo" :label="itemo.label" :value="itemo.id"></el-option>
  85. </el-select>
  86. </span>
  87. <span v-else>
  88. <el-input class="width150" v-model="item.value" placeholder=""></el-input>
  89. </span>
  90. <!-- 中间选择输入框结束 -->
  91. <span class="pind10"></span>
  92. <!-- 条件下拉开始 -->
  93. <el-select class="width90" v-model="item.type" placeholder="">
  94. <el-option label="精确" value="1"></el-option>
  95. <el-option label="模糊" value="0"></el-option>
  96. </el-select>
  97. <!-- 条件下拉结束 -->
  98. <span class="pind10"></span>
  99. <!-- 增减重置选项按钮开始 -->
  100. <span>
  101. <el-button :disabled="formData1.seniorList.length == 1" type="primary" icon="el-icon-minus" @click="funDel(index)"></el-button>
  102. <el-button type="primary" icon="el-icon-plus" @click="funAdd" v-if="index == 0"></el-button>
  103. </span>
  104. <!-- 增减重置选项按钮结束 -->
  105. </el-form-item>
  106. <el-form-item label="患者年龄">
  107. <div class="zkSelect">
  108. <el-input class="width300" v-model="formData1.ageday" :min="28" :max="365" type="number" placeholder="<28天" @blur="funBlur">
  109. <template slot="append">
  110. <el-select v-model="formData1.age_start_type" placeholder="请选择">
  111. <el-option v-for="item in Dayoptions" :key="item.value" :label="item.label" :value="item.value"></el-option>
  112. </el-select>
  113. </template>
  114. </el-input>
  115. </div>
  116. <!-- <el-input class="width300" v-model="formData1.ageday" :min="28" :max="365" type="number" placeholder="<28天" @blur="funBlur">
  117. <template slot="append">天</template>
  118. </el-input> -->
  119. <span class="pind" style="color: #ccc">——</span>
  120. <div class="zkSelect">
  121. <el-input class="width300" v-model="formData1.ageyear" :min="1" :max="150" type="number" placeholder="1-150岁" @blur="funBlur">
  122. <template slot="append">
  123. <el-select v-model="formData1.age_end_type" placeholder="请选择">
  124. <el-option v-for="item in Dayoptions" :key="item.value" :label="item.label" :value="item.value"></el-option>
  125. </el-select>
  126. </template>
  127. </el-input>
  128. </div>
  129. </el-form-item>
  130. <el-form-item label="住院天数">
  131. <div class="zkSelect">
  132. <el-input class="width300" v-model="formData1.hospitalizationon" :min="28" :max="365" type="number" @blur="funBluron">
  133. <template slot="append">天</template>
  134. </el-input>
  135. </div>
  136. <!-- <el-input class="width300" v-model="formData1.ageday" :min="28" :max="365" type="number" placeholder="<28天" @blur="funBlur">
  137. <template slot="append">天</template>
  138. </el-input> -->
  139. <span class="pind" style="color: #ccc">——</span>
  140. <div class="zkSelect">
  141. <el-input class="width300" v-model="formData1.hospitalizationin" :min="1" :max="150" type="number" @blur="funBluron">
  142. <template slot="append">天</template>
  143. </el-input>
  144. </div>
  145. </el-form-item>
  146. <el-form-item label="时间范围">
  147. <!-- <el-date-picker
  148. class="width500"
  149. v-model="formData1.rangeDate"
  150. size="large"
  151. type="daterange"
  152. range-separator="-"
  153. start-placeholder="开始日期"
  154. end-placeholder="结束日期"
  155. format="yyyy 年 MM 月 dd 日"
  156. value-format="yyyyMMdd"
  157. ></el-date-picker> -->
  158. <el-date-picker v-model="formData1.startTime" type="date" format="yyyy 年 MM 月 dd 日" value-format="yyyyMMdd" placeholder="开始日期"></el-date-picker>
  159. <span class="pind10"></span>
  160. <el-date-picker v-model="formData1.endTime" type="date" format="yyyy 年 MM 月 dd 日" value-format="yyyyMMdd" placeholder="结束日期"></el-date-picker>
  161. </el-form-item>
  162. </el-form>
  163. </div>
  164. <!-- 高级检索 结束 -->
  165. <div class="fBtn" style="position: relative">
  166. <el-button type="primary" @click="funQuery">检索</el-button>
  167. <el-button style="position: absolute; right: 30px" @click="reset">重置条件</el-button>
  168. </div>
  169. </div>
  170. <div class="tableBox">
  171. <div class="flextab" style="margin: 0;margin-bottom:15px;">
  172. <div class="flextabtitle-box">
  173. <!-- <Title :title="'病案列表'" /> -->
  174. <div class="h-title">
  175. <span class="blue"></span>
  176. <span class="text">病案列表</span>
  177. </div>
  178. <div class="flextab-item">
  179. <div>平均住院日: <span class="s-1">{{ ARG_STAY }}</span><span class="s-2"> 天</span></div>
  180. <div>平均费用: <span class="s-1">{{ ARG_F_D }}</span><span class="s-2"> 元;</span></div>
  181. <div>例数: <span class="s-1">{{paginationData.total?paginationData.total:0}}</span><span class="s-2"> 例</span></div>
  182. <div>死亡例数: <span class="s-1">{{AEM01C?AEM01C:0}}</span><span class="s-2"> 例</span></div>
  183. </div>
  184. </div>
  185. <el-button type="primary" icon="el-icon-download" class="export-btn" @click="funExport('质控列表', '/qualityList')">导出数据</el-button>
  186. </div>
  187. <el-table :data="tableData" border style="width: 100%">
  188. <el-table-column type="index" label="序号" width="70px"></el-table-column>
  189. <el-table-column prop="AAA28" label="病案号">
  190. <template slot-scope="scope">
  191. <span class="blue" @click="funGoto(scope.row.MED_REC_ID)">{{ scope.row.AAA28 }}</span>
  192. </template>
  193. </el-table-column>
  194. <el-table-column prop="AAA01" label="患者姓名"></el-table-column>
  195. <el-table-column prop="AAC01" label="出院时间"></el-table-column>
  196. <el-table-column prop="AAA02C" label="性别"></el-table-column>
  197. <el-table-column prop="AAA04" label="年龄"></el-table-column>
  198. <template v-for="(item, ind) in formData1.seniorList">
  199. <el-table-column :key="ind" v-if=" tabKeyList.includes(item.key) " :label="funkdef(item.key)" :prop="item.key"></el-table-column>
  200. </template>
  201. <el-table-column prop="ABC01N" label="主诊断名称"></el-table-column>
  202. <el-table-column prop="ABC01C" label="主诊断编码"></el-table-column>
  203. <el-table-column prop="ICD9_NAME" label="主手术名称"></el-table-column>
  204. <el-table-column prop="ICD9_ID1" label="主手术编码"></el-table-column>
  205. <el-table-column v-if="columnShow" :prop="clumText.id" :label="clumText.name"></el-table-column>
  206. <el-table-column prop="AAA29" label="住院次数"></el-table-column>
  207. <el-table-column prop="AAC11N" label="出院科室"></el-table-column>
  208. <el-table-column prop="ADA01" label="住院总费用"></el-table-column>
  209. <el-table-column prop="F_D" label="药品总费用"></el-table-column>
  210. <el-table-column prop="J" label="材料总费用"></el-table-column>
  211. <!-- <el-table-column prop="address" label="业务操作人"> </el-table-column> -->
  212. <el-table-column prop="AAC04" label="实际住院(天)"></el-table-column>
  213. <!-- <el-table-column prop="ATTEND_GRP_NAME" label="主诊组"></el-table-column> -->
  214. <el-table-column prop="AEM01C" label="离院方式"></el-table-column>
  215. <el-table-column prop="AAB06C" label="入院途径"></el-table-column>
  216. <!-- <el-table-column prop="ARG_STAY" label="平均住院日"></el-table-column> -->
  217. <!-- <el-table-column prop="ARG_F_D" label="平均费用"></el-table-column> -->
  218. <el-table-column prop="SSPB" label="手术判别"></el-table-column>
  219. <el-table-column prop="AAB11N" label="入院科室"></el-table-column>
  220. <el-table-column prop="AAB01" label="入院时间"></el-table-column>
  221. </el-table>
  222. <!-- 分页控制 -->
  223. <el-pagination
  224. v-if="tableData && tableData.length !== 0"
  225. @size-change="SizeChangeEvent"
  226. @current-change="pageHasChanged"
  227. :total="paginationData.total"
  228. background
  229. class="table-pagination"
  230. style="margin: 15px 0px"
  231. :page-size="paginationData.pageSize"
  232. :current-page.sync="paginationData.currentPage"
  233. layout="total, sizes, prev, pager, next, jumper"
  234. ></el-pagination>
  235. <!-- <mPagination style="margin:15px 0px;"
  236. v-if="tableData && tableData.length !== 0"
  237. :data="paginationData"
  238. @SizeChangeEvent="SizeChangeEvent"
  239. @pageChangeEvent="pageHasChanged"></mPagination> -->
  240. </div>
  241. </div>
  242. </template>
  243. <script>
  244. import { downloadFile } from '@/httpFile';
  245. import Title from '@/components/Title';
  246. import { mapGetters } from 'vuex';
  247. import mPagination from '@/components/m-pagination';
  248. // import { json } from 'stream/consumers';
  249. export default {
  250. name: 'Dashboard',
  251. components: {
  252. Title,
  253. mPagination,
  254. },
  255. computed: {
  256. ...mapGetters(['name']),
  257. },
  258. data() {
  259. return {
  260. choice: 0,
  261. clumText: {},
  262. columnShow: false,
  263. labelList: ['ICD10_NAME'],
  264. formData0: {
  265. recordNum: '', //病案号
  266. Department: '', //出院科室
  267. problem: 'all', //问题属性
  268. payment: '', //医疗付款方式
  269. // rangeDate: [], //时间
  270. endTime: '',
  271. medicalRecord: '', //全部病案
  272. },
  273. Dayoptions: [
  274. {
  275. value: 1,
  276. label: '天',
  277. },
  278. {
  279. value: 2,
  280. label: '岁',
  281. },
  282. ],
  283. formData1: {
  284. ageday: '',
  285. age_start_type: 2,
  286. age_end_type: 2,
  287. ageyear: '',
  288. // rangeDate: [],
  289. endTime: '',
  290. startTime: '',
  291. seniorList: [
  292. {
  293. key: '',
  294. value: '',
  295. type: '0',
  296. selectList: [],
  297. },
  298. {
  299. key: '',
  300. value: '',
  301. type: '0',
  302. selectList: [],
  303. },
  304. ],
  305. hospitalizationon: '',
  306. hospitalizationin: '',
  307. },
  308. inputOn: '', //全站搜索病案号
  309. value: '',
  310. value1: '',
  311. selectList: [],
  312. labelText: '',
  313. keyList: ['OPE_LEVEL', 'SSPB', 'ABC03C','RYQK', 'AAA02C', 'RJSS', 'AEM01C', 'AAC11N', 'LNSSQ', 'LNSSH', 'AEL01'],
  314. tabKeyList: ['ICD10_ID1_first', 'ICD10_NAME_first', 'ICD10_ID1', 'ICD10_NAME','ICD9_ID1', 'ICD9_NAME', 'ABC03C','RYQK', 'OPE_LEVEL', 'ABA01N', 'ABA01C', 'AEL01', 'RJSS','LNSSQ','LNSSH'], // 表头key动态展示
  315. tableData: [],
  316. payList: [], //支付方式
  317. departmentList: [], //出院科室
  318. levelList: [], //问题属性
  319. fieldList: [], //主要诊断名字
  320. department: [], //科室
  321. // 分页数据
  322. paginationData: {
  323. total: 10,
  324. currentPage: 1,
  325. pageSize: 10,
  326. },
  327. ARG_F_D: '',
  328. ARG_STAY: '',
  329. AEM01C:'',
  330. };
  331. },
  332. mounted() {
  333. },
  334. created() {
  335. this.funQuery();
  336. this.selectInfo();
  337. },
  338. methods: {
  339. funkdef(key) {
  340. console.log(this.fieldList)
  341. for (let item in this.fieldList) {
  342. if (this.fieldList[item].id == key) {
  343. return this.fieldList[item].name;
  344. }
  345. }
  346. },
  347. /**
  348. * 根据下拉框选择出现对应数据
  349. * @param {val} 选中当前
  350. */
  351. getOneCleck(val) {
  352. console.log(val);
  353. var that = this;
  354. this.labelText = val.key;
  355. console.log(this.labelText)
  356. var text = this.fieldList.filter(item => val.key == item.id);
  357. that.$nextTick(function () {
  358. that.clumText = {
  359. name: text[0].name,
  360. id: text[0].id,
  361. };
  362. });
  363. // console.error('122222', that.clumText);
  364. if (val.key == 'OPE_LEVEL') {
  365. val.selectList = [
  366. {
  367. label: '全部',
  368. id: 0,
  369. },
  370. {
  371. label: '一级手术',
  372. id: 1,
  373. },
  374. {
  375. label: '二级手术',
  376. id: 2,
  377. },
  378. {
  379. label: '三级手术',
  380. id: 3,
  381. },
  382. {
  383. label: '四级手术',
  384. id: 4,
  385. },
  386. ];
  387. } else if (val.key == 'SSPB') {
  388. val.selectList = [
  389. {
  390. label: '全部',
  391. id: 5,
  392. },
  393. {
  394. label: '介入治疗',
  395. id: 4,
  396. },
  397. {
  398. label: '手术',
  399. id: 1,
  400. },
  401. {
  402. label: '诊断操作',
  403. id: 2,
  404. },
  405. {
  406. label: '治疗操作',
  407. id: 3,
  408. },
  409. {
  410. label: '空',
  411. id: 0,
  412. },
  413. ];
  414. } else if (val.key == 'AAA02C') {
  415. val.selectList = [
  416. {
  417. label: '全部',
  418. id: 0,
  419. },
  420. {
  421. label: '男',
  422. id: 1,
  423. },
  424. {
  425. label: '女',
  426. id: 2,
  427. },
  428. {
  429. label: '未知的性别',
  430. id: 3,
  431. },
  432. {
  433. label: '未说明的性别',
  434. id: 4,
  435. },
  436. ];
  437. } else if (val.key == 'RJSS') {
  438. val.selectList = [
  439. {
  440. label: '全部',
  441. id: 0,
  442. },
  443. {
  444. label: '是',
  445. id: 1,
  446. },
  447. {
  448. label: '否',
  449. id: 2,
  450. },
  451. ];
  452. } else if (val.key == 'ABC03C') {
  453. val.selectList = [
  454. {
  455. label: '全部',
  456. id: 0,
  457. },
  458. {
  459. label: '有',
  460. id: 1,
  461. },
  462. {
  463. label: '临床未确定',
  464. id: 2,
  465. },
  466. {
  467. label: '情况不明',
  468. id: 3,
  469. },
  470. {
  471. label: '无',
  472. id: 4,
  473. },
  474. ];
  475. } else if (val.key == 'RYQK') {
  476. val.selectList = [
  477. {
  478. label: '全部',
  479. id: 0,
  480. },
  481. {
  482. label: '有',
  483. id: 1,
  484. },
  485. {
  486. label: '临床未确定',
  487. id: 2,
  488. },
  489. {
  490. label: '情况不明',
  491. id: 3,
  492. },
  493. {
  494. label: '无',
  495. id: 4,
  496. },
  497. ];
  498. } else if (val.key == 'AEM01C') {
  499. val.selectList = [
  500. {
  501. label: '全部',
  502. id: 0,
  503. },
  504. {
  505. label: '医嘱离院',
  506. id: 1,
  507. },
  508. {
  509. label: '医嘱转院',
  510. id: 2,
  511. },
  512. {
  513. label: '医嘱转社区卫生服务机构/乡镇卫生院',
  514. id: 3,
  515. },
  516. {
  517. label: '非医嘱离院',
  518. id: 4,
  519. },
  520. {
  521. label: '死亡',
  522. id: 5,
  523. },
  524. {
  525. label: '其他',
  526. id: 6,
  527. },
  528. ];
  529. } else if (val.key == 'AAC11N') {
  530. for (let item in this.departmentList) {
  531. this.departmentList[item];
  532. val.selectList.push({
  533. label: this.departmentList[item].name,
  534. id: this.departmentList[item].id,
  535. });
  536. }
  537. // val.selectList = this.departmentList
  538. } else if (val.key == 'LNSSQ' || val.key == 'LNSSH') {
  539. val.selectList = [
  540. {
  541. label: '全部',
  542. id: '0',
  543. },
  544. {
  545. label: '有',
  546. id: '1',
  547. },
  548. {
  549. label: '无',
  550. id: '2',
  551. },
  552. ];
  553. } else if (val.key == 'AEL01') {
  554. val.selectList = [
  555. {
  556. label: '全部',
  557. id: '0',
  558. },
  559. {
  560. label: '有',
  561. id: '1',
  562. },
  563. {
  564. label: '无',
  565. id: '2',
  566. },
  567. ];
  568. }
  569. this.$nextTick();
  570. },
  571. funRead() {
  572. //重置
  573. Object.assign(this.$data.formData1, this.$options.data().formData1);
  574. },
  575. funExport(fileName, httpUrl) {
  576. //查询
  577. var pramse = {};
  578. let min = this.formData1.hospitalizationon;
  579. let max = this.formData1.hospitalizationin;
  580. if (this.choice == 0) {
  581. // hospitalizationon: '',
  582. // hospitalizationin: '',
  583. pramse = {
  584. level: this.formData0.problem || null, //问题属性
  585. AAA28: this.formData0.recordNum || null, //病案号
  586. AAC11C: this.formData0.Department || null, //出院科室
  587. AAA26C: this.formData0.payment || null, //付款方式
  588. AAC01_start_date: this.formData0.startTime || '',
  589. AAC01_end_date: this.formData0.endTime || '',
  590. ORG_STATE: this.formData0.medicalRecord || null, //全部病案
  591. page: this.paginationData.currentPage, //页码
  592. limit: this.paginationData.pageSize, //条数
  593. is_export: 1,
  594. };
  595. } else {
  596. pramse = {
  597. AAC04: `${min?min:0}-${max?max:0}`,
  598. AAC0401:`${min?min:0}`,
  599. AAC0402:`${max?max:0}`,
  600. AAA04: this.formData1.ageyear || null, //年龄
  601. AAA40: this.formData1.ageday || null, //不足一周岁年龄
  602. age_start_type: this.formData1.age_start_type || null,
  603. age_end_type: this.formData1.age_end_type || null,
  604. AAC01_start_date: this.formData1.startTime || '',
  605. AAC01_end_date: this.formData1.endTime || '',
  606. field: this.formData1.seniorList || null, //字段条件
  607. page: this.paginationData.currentPage, //页码
  608. limit: this.paginationData.pageSize, //条数
  609. is_export: 1,
  610. };
  611. }
  612. console.error('pramse', pramse);
  613. this.funExeclPost(fileName, pramse, httpUrl, 'xlsx');
  614. },
  615. funExeclPost(fileName, pramse, httpUrl, format) {
  616. //导出
  617. let httpUrls = '/api' + httpUrl;
  618. downloadFile(httpUrls, pramse, format, fileName).then(res => {
  619. console.error('111', res);
  620. });
  621. },
  622. funGoto(val) {
  623. this.storageSet('getData', val);
  624. console.log(val);
  625. console.log(this.storageGet('getData'));
  626. // this.goto('/details');
  627. this.$router.push('/details');
  628. },
  629. funBlur() {
  630. if (this.formData1.ageday > 356) {
  631. this.formData1.ageday = 356;
  632. }
  633. if (this.formData1.ageyear > 150) {
  634. this.formData1.ageyear = 150;
  635. }
  636. },
  637. funBluron() {
  638. if (this.formData1.hospitalizationon && this.formData1.hospitalizationin) {
  639. if (this.formData1.hospitalizationon > this.formData1.hospitalizationin) {
  640. this.$message('起止住院天数输入不正确');
  641. }
  642. }
  643. // this.formData1.hospitalizationon || '0' + '-' + this.formData1.hospitalizationin || '0',
  644. },
  645. funDel(i) {
  646. let index = i;
  647. if(index == 0){
  648. return
  649. }
  650. let list = this.formData1.seniorList;
  651. list.splice(index,1);
  652. this.formData1.seniorList = list;
  653. },
  654. funAdd() {
  655. this.formData1.seniorList.push({
  656. key: '',
  657. value: '',
  658. type: '0',
  659. selectList: [],
  660. });
  661. },
  662. pageHasChanged() {
  663. this.funQuery();
  664. },
  665. SizeChangeEvent(val) {
  666. this.paginationData.pageSize = val;
  667. this.funQuery();
  668. },
  669. selectInfo() {
  670. // let pramse = {};
  671. this.$axios.post('/selectInfo').then(res => {
  672. this.payList = res.data.pay;
  673. console.log(this.payList);
  674. //支付方式 pay
  675. this.departmentList = res.data.department;
  676. //出院科室 department
  677. this.levelList = res.data.level;
  678. //问题属性 level
  679. this.coderList = res.data.coder;
  680. //编码元 coder
  681. this.statusList = res.data.status;
  682. this.fieldList = res.data.field;
  683. // this.department = res.data.department
  684. });
  685. },
  686. // 点击检索按钮
  687. funQuery() {
  688. console.error('this.choice111', this.choice);
  689. let min = this.formData1.hospitalizationon;
  690. let max = this.formData1.hospitalizationin;
  691. if (this.labelList.includes(this.labelText)) {
  692. this.columnShow = true;
  693. } else {
  694. this.columnShow = false;
  695. }
  696. //查询
  697. if (this.choice == 0) {
  698. let pramse = {
  699. level: this.formData0.problem || null, //问题属性
  700. AAA28: this.formData0.recordNum || null, //病案号
  701. AAC11C: this.formData0.Department || null, //出院科室
  702. AAA26C: this.formData0.payment || null, //付款方式
  703. AAC01_start_date: this.formData0.startTime || '',
  704. AAC01_end_date: this.formData0.endTime || '',
  705. ORG_STATE: this.formData0.medicalRecord || null, //全部病案
  706. page: this.paginationData.currentPage, //页码
  707. limit: this.paginationData.pageSize, //条数
  708. };
  709. sessionStorage.setItem('Zkpramse', JSON.stringify(pramse));
  710. sessionStorage.setItem('ZkChoice', this.choice);
  711. this.getinfo(pramse);
  712. } else {
  713. let pramse = {
  714. AAC04: `${min?min:0}-${max?max:0}`,
  715. AAC0401:`${min?min:0}`,
  716. AAC0402:`${max?max:0}`,
  717. AAA04: this.formData1.ageyear || null, //年龄
  718. AAA40: this.formData1.ageday || null, //不足一周岁年龄
  719. age_start_type: this.formData1.age_start_type || null,
  720. age_end_type: this.formData1.age_end_type || null,
  721. AAC01_start_date: this.formData1.startTime || '',
  722. AAC01_end_date: this.formData1.endTime || '',
  723. field: this.formData1.seniorList || null, //字段条件
  724. page: this.paginationData.currentPage, //页码
  725. limit: this.paginationData.pageSize, //条数
  726. };
  727. sessionStorage.setItem('Zkpramse', JSON.stringify(pramse));
  728. sessionStorage.setItem('ZkChoice', this.choice);
  729. this.getinfo(pramse);
  730. }
  731. },
  732. getinfo(p){
  733. this.$axios.post('/qualityList', p).then(res => {
  734. console.log(res);
  735. this.paginationData.total = res.data.count;
  736. this.tableData = res.data.list;
  737. this.ARG_F_D = res.data.ARG_F_D;
  738. this.ARG_STAY = res.data.ARG_STAY;
  739. this.AEM01C = res.data.AEM01C;
  740. });
  741. },
  742. reset() {
  743. // 重置数据
  744. if (this.choice == 0) {
  745. Object.assign(this.$data.formData0, this.$options.data().formData0);
  746. } else {
  747. Object.assign(this.$data.formData1, this.$options.data().formData1);
  748. }
  749. this.funQuery();
  750. },
  751. },
  752. };
  753. </script>
  754. <style scoped>
  755. ::v-deep.el-pagination.is-background .btn-next,
  756. ::v-deep.el-pagination.is-background .btn-prev,
  757. ::v-deep.el-pagination.is-background .el-pager li {
  758. margin: 0 5px;
  759. background-color: #fff;
  760. color: #606266;
  761. min-width: 30px;
  762. border-radius: 2px;
  763. border: 1px solid #dfe3f3;
  764. line-height: 27px;
  765. }
  766. ::v-deep.el-pagination.is-background .el-pager li:not(.disabled).active {
  767. background: #7e8bab;
  768. }
  769. ::v-deep.el-table .el-table__row td {
  770. color: #7e8bab;
  771. border-bottom: 1px solid #f4f4f4;
  772. }
  773. ::v-deep.el-table .el-table__header tr th:first-child {
  774. border-radius: 10px 0px 0px 10px;
  775. }
  776. ::v-deep.el-table .el-table__header tr th:last-child {
  777. border-radius: 0px 10px 10px 0px;
  778. }
  779. ::v-deep.el-table .el-table__header tr th {
  780. background: #f1f6ff;
  781. color: #13171e;
  782. border-bottom: 0px;
  783. }
  784. </style>
  785. <style lang="scss" scoped>
  786. .tableBox {
  787. background: #fff;
  788. padding: 19px;
  789. border-radius: 5px;
  790. font-size: 12px;
  791. }
  792. .block {
  793. background: #fff;
  794. border-radius: 5px;
  795. margin-bottom: 16px;
  796. padding: 20px 30px;
  797. margin-bottom: 20px;
  798. .fBtn {
  799. display: flex;
  800. align-items: center;
  801. justify-content: center;
  802. }
  803. .bnh {
  804. margin-bottom: 20px;
  805. }
  806. .barBtn {
  807. display: flex;
  808. align-items: center;
  809. justify-content: center;
  810. }
  811. .selects {
  812. width: 100%;
  813. }
  814. .rowsa {
  815. margin-bottom: 20px;
  816. }
  817. }
  818. .tableBox {
  819. background: #fff;
  820. padding: 19px;
  821. border-radius: 5px;
  822. }
  823. .dashboard {
  824. &-container {
  825. margin: 30px;
  826. }
  827. &-text {
  828. font-size: 30px;
  829. line-height: 46px;
  830. }
  831. }
  832. .pind {
  833. padding: 0 20px;
  834. }
  835. .pind10 {
  836. padding: 0 5px;
  837. }
  838. .width150 {
  839. width: 200px;
  840. }
  841. .width300 {
  842. width: 295px;
  843. }
  844. .width500 {
  845. width: 645px;
  846. }
  847. .width90 {
  848. width: 90px;
  849. }
  850. .blue {
  851. color: #185da6;
  852. }
  853. .h-title {
  854. display: flex;
  855. .blue {
  856. display: block;
  857. width: 6px;
  858. height: 17px;
  859. background: linear-gradient(180deg, #185da6 0%, #3195ff 100%);
  860. border-radius: 3px;
  861. }
  862. .text {
  863. font-size: 16px;
  864. font-weight: 600;
  865. color: #13171e;
  866. margin: 0 0 0 14px;
  867. }
  868. }
  869. .flextabtitle-box{
  870. display: flex;
  871. align-items: center;
  872. }
  873. .flextab-item{
  874. display: flex;
  875. align-items: center;
  876. margin-left: 20px;
  877. }
  878. .flextab-item>div {
  879. font-size: 15px;
  880. margin-right: 15px;
  881. }
  882. .flextab-item>div span.s-1{
  883. color: #185da6;
  884. }
  885. .flextab-item>div span.s-2{
  886. font-weight: bold;
  887. }
  888. </style>