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

printTwo.vue 25KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800
  1. <template>
  2. <div id="prescriptionPrint2">
  3. <div
  4. id="prescription-print"
  5. v-if="item.advices.length == 0"
  6. class="prescription-print"
  7. v-for="(item, index) in advicePrint"
  8. :key="index"
  9. >
  10. <span v-if="org_id == 10138">
  11. <img
  12. src="https://kuyi.shengws.com/bailin/bltotle.jpg"
  13. style="width: 100%"
  14. alt=""
  15. /></span>
  16. <span v-if="org_id == 10278">
  17. <img
  18. src="https://kuyi.shengws.com/beierlog.png"
  19. style="width: 100%"
  20. alt=""
  21. /></span>
  22. <div class="printTitle">
  23. 治疗单
  24. <span
  25. v-if="item.med_type == '1111'"
  26. style="margin-left: 50px; border: 1px solid #000"
  27. >精一</span
  28. >
  29. <span
  30. v-if="item.med_type == '1112'"
  31. style="margin-left: 50px; border: 1px solid #000"
  32. >精二</span
  33. >
  34. </div>
  35. <div style="display: flex">
  36. <div style="width: 33%; display: flex">
  37. 费别:
  38. <span class="under_line">
  39. <span v-if="newHisPatient.id > 0">{{
  40. newHisPatient.balance_accounts_type == 1 ? '医保':'自费'
  41. }}</span>
  42. <span v-else>{{
  43. }}</span>
  44. </span>
  45. </div>
  46. <div style="width: 33%; display: flex">
  47. 电脑号: <span class="under_line">
  48. <span>{{
  49. newHisPatient.id_card_no
  50. }}</span>
  51. </span>
  52. </div>
  53. <div style="width: 33%; display: flex">
  54. 处方编号:<span class="under_line">{{
  55. item.prescription_number.substring(
  56. item.prescription_number.length - 6
  57. )
  58. }}</span>
  59. </div>
  60. </div>
  61. <div class="infoTitle">
  62. <div>
  63. 姓名:{{
  64. item.patient.name
  65. ? item.patient.name.indexOf("(") > -1
  66. ? item.patient.name.substring(
  67. 0,
  68. item.patient.name.indexOf("(")
  69. )
  70. : item.patient.name
  71. : ""
  72. }}
  73. </div>
  74. <div>
  75. 性别:
  76. <span v-if="item.patient.gender == 1">男</span>
  77. <span v-if="item.patient.gender == 2">女</span>
  78. </div>
  79. <div>
  80. 年龄:{{
  81. getNewAge(item.patient.birthday)
  82. ? getNewAge(item.patient.birthday)
  83. : ""
  84. }}岁
  85. </div>
  86. </div>
  87. <div class="infoMain">
  88. <div style="margin-bottom: 10px; display: flex">
  89. 门诊号码:<span class="under_line">{{
  90. hisPatient.number ? hisPatient.number : ""
  91. }}</span>
  92. </div>
  93. <div style="margin-bottom: 10px; display: flex">
  94. 科别:<span class="under_line">{{
  95. item.info ? getDepart(item.info.departments) : ""
  96. }}</span>
  97. </div>
  98. <div style="margin-bottom: 10px; display: flex">
  99. 临床诊断:{{ getDiagnosis(item.info.diagnosis) }}
  100. </div>
  101. <div style="margin-bottom: 10px; display: flex">
  102. 自费药品签名:<span class="under_line"></span>
  103. </div>
  104. <!-- <div style="margin-bottom: 10px;display:flex;">医保卡号:{{item.hisPatient.number?item.hisPatient.number:""}}</div> -->
  105. <div style="margin-bottom: 10px; display: flex">
  106. 联系方式:<span class="under_line">{{ item.patient.phone }}</span>
  107. </div>
  108. <div style="margin-bottom: 10px; display: flex">
  109. 开具日期:<span class="under_line">{{
  110. getTime(item.pre_time) ? getTime(item.pre_time).split(" ")[0] : ""
  111. }}</span>
  112. </div>
  113. <!-- <div>地址:{{item.patient.home_address}}</div> -->
  114. <!-- <div style="display:flex;width:50%;">临床诊断:{{getDiagnosis(item.info.diagnosis)}}</div> -->
  115. </div>
  116. <!-- <div class="prescriptionBox">
  117. <table style="width:100%;text-align:center;line-height:25px;">
  118. <tr>
  119. <td>序号</td>
  120. <td>项目名称</td>
  121. <td>数量</td>
  122. <td>单位</td>
  123. <td>单价</td>
  124. <td>部位</td>
  125. <td>备注</td>
  126. <td>天数</td>
  127. </tr>
  128. <tr v-for="(it,index) in item.project" :key="index">
  129. <td>{{index+1}}</td>
  130. <td>{{it.type == 2 ?getProjectName(it.project_id):it.good_info.good_name}}</td>
  131. <td>{{it.single_dose}}</td>
  132. <td>{{getUnit(it.unit)}}</td>
  133. <td>{{it.price}}</td>
  134. <td></td>
  135. <td>{{it.remark}}</td>
  136. <td>{{it.day}}</td>
  137. </tr>
  138. <tr v-for="(it,index) in item.advices" :key="index">
  139. <td>{{index+1}}</td>
  140. <td>{{it.advice_name?it.advice_name:''}}</td>
  141. <td>{{it.single_dose?it.single_dose:''}}</td>
  142. <td>{{it.single_dose_unit?it.single_dose_unit:''}}</td>
  143. <td>{{it.price}}</td>
  144. <td></td>
  145. <td>{{it.remark}}</td>
  146. <td>{{it.day}}</td>
  147. </tr>
  148. </table>
  149. </div> -->
  150. <div class="prescriptionBox">
  151. <div class="Rp">Rp:</div>
  152. <!-- <div class="drugsBox" v-for="(it,index) in item.advices" :key="index">
  153. <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;<span v-if="it.drug.min_unit != it.drug.dose_unit">{{it.drug.dose}}{{it.drug.dose_unit}}&nbsp;* &nbsp;</span>{{it.drug.min_number}}{{it.drug.min_unit}}/{{it.drug.max_unit}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div>
  154. </div> -->
  155. <div class="drugsBox" v-for="(it, index) in item.project" :key="index">
  156. <div class="drugsOne">
  157. <span style="font-weight: bold">{{ index + 1 + "." }}</span
  158. >{{
  159. it.type == 2 ? it.project.project_name : it.good_info.good_name
  160. }}&nbsp;&nbsp;×&nbsp; {{ it.count }}{{ unit }}
  161. </div>
  162. </div>
  163. <div style="text-align: center">(以下空白)</div>
  164. </div>
  165. <div style="display: flex">
  166. <div>
  167. 医&nbsp;&nbsp;&nbsp;&nbsp;师:
  168. <span
  169. style="width: 100px; display: inline-block"
  170. v-if="item.creator == ''"
  171. >
  172. {{ item.doctor ? item.doctor : "" }}
  173. </span>
  174. <span
  175. style="width: 100px; display: inline-block"
  176. v-else-if="doc_name != ''"
  177. >
  178. {{ doc_name }}
  179. </span>
  180. <img
  181. style="height: 30px"
  182. :src="setAdminUserES(item.creator,item.doctor)"
  183. alt=""
  184. srcset=""
  185. v-else
  186. />
  187. </div>
  188. <!-- <div>药品金额:{{getTotalOne(item.id).toFixed(2)?getTotalOne(item.id).toFixed(2):''}}</div> -->
  189. </div>
  190. <div style="display: flex">
  191. <div style="display: flex">核对护士:</div>
  192. </div>
  193. <div style="display: flex">
  194. 打印时间:<span style="border-bottom: 1px solid #000">{{
  195. getTime(new Date()) ? getTime(new Date()) : ""
  196. }}</span>
  197. </div>
  198. <span v-if="org_id == 10138"
  199. ><img
  200. src="https://kuyi.shengws.com/bailin/blend.jpg"
  201. style="width: 100%"
  202. alt=""
  203. /></span>
  204. <span v-if="org_id == 10278"
  205. ><img
  206. src="https://kuyi.shengws.com/bailinbeier.png"
  207. style="width: 100%"
  208. alt=""
  209. /></span>
  210. <div style="page-break-after: always"></div>
  211. </div>
  212. <!-- <div id='prescriptionPrint'>
  213. <div v-for="(item,index) in advicePrint" :key="index">
  214. <div id='prescription-print' class="prescription-print" style="page-break-after: always;">
  215. <div style="display:flex;justify-content: space-between;font-weight:bold;">
  216. <div style="width:200px;display:flex;justify-content: space-between;font-weight:bold;">
  217. <span>费别</span>
  218. <span>自费</span>
  219. <span>公费</span>
  220. <span>保险</span>
  221. <span>其他</span>
  222. </div>
  223. <div>就诊日期:{{getTime(item.ctime)}}</div>
  224. </div>
  225. <div class="printTitle">血液透析中心</div>
  226. <div class="printTitle">处方、治疗单</div>
  227. <div class="infoTitle">
  228. <div>门诊编号:</div>
  229. <div>电脑号:</div>
  230. </div>
  231. <div class="infoMain">
  232. <div style="margin-bottom: 10px;width:25%">姓名:{{item.patient.name}}</div>
  233. <div style="margin-bottom: 10px;width:25%">性别:
  234. <span v-if="item.patient.gender == 1">男</span>
  235. <span v-if="item.patient.gender == 2">女</span>
  236. </div>
  237. <div style="margin-bottom: 10px;width:25%">年龄:
  238. <span>{{item.patient.age}}</span>
  239. </div>
  240. <div style="margin-bottom: 10px;width:25%">参保类型:</div>
  241. <div style="margin-bottom: 10px;width:50%;">联系电话:{{item.patient.phone}}</div>
  242. <div style="width:50%;">地址:{{item.patient.unit_address}}</div>
  243. <div style="width:100%;">诊断:{{item.patient.diagnose}}</div>
  244. </div>
  245. <div class="prescriptionBox">
  246. <table style="width:100%;text-align:center;line-height:25px;">
  247. <tr>
  248. <td>序号</td>
  249. <td>项目名称</td>
  250. <td>数量</td>
  251. <td>单位</td>
  252. <td>单价</td>
  253. <td>部位</td>
  254. <td>备注</td>
  255. <td>天数</td>
  256. </tr>
  257. <tr v-for="(it,index) in item.project" :key="index">
  258. <td>{{index+1}}</td>
  259. <td>{{getProjectName(it.project_id)}}</td>
  260. <td>{{it.single_dose}}</td>
  261. <td>{{getUnit(it.unit)}}</td>
  262. <td>{{it.price}}</td>
  263. <td></td>
  264. <td>{{it.remark}}</td>
  265. <td>{{it.day}}</td>
  266. </tr>
  267. </table>
  268. </div>
  269. <div class="infoTitle">
  270. <div>开单医生:{{getDoctor(item.doctor)?getDoctor(item.doctor):""}}</div>
  271. <div>签章:</div>
  272. </div>
  273. <div class="actionBar">
  274. <div>执行医生:{{getDoctor(item.doctor)?getDoctor(item.doctor):""}}</div>
  275. <div>费用:</div>
  276. </div>
  277. <table style="width:100%;text-align:center;line-height:25px;border-collapse: collapse;" border="1">
  278. <tr>
  279. <td style="width:16%;">治疗时间</td>
  280. <td style="width:16%;"></td>
  281. <td style="width:16%;"></td>
  282. <td style="width:16%;"></td>
  283. <td style="width:16%;"></td>
  284. <td style="width:16%;"></td>
  285. </tr>
  286. <tr>
  287. <td style="width:16%;">医生签字</td>
  288. <td style="width:16%;"></td>
  289. <td style="width:16%;"></td>
  290. <td style="width:16%;"></td>
  291. <td style="width:16%;"></td>
  292. <td style="width:16%;"></td>
  293. </tr>
  294. <tr>
  295. <td style="width:16px;">患者签字</td>
  296. <td style="width:16px;"></td>
  297. <td style="width:16px;"></td>
  298. <td style="width:16px;"></td>
  299. <td style="width:16px;"></td>
  300. <td style="width:16px;"></td>
  301. </tr>
  302. </table>
  303. </div>
  304. </div>
  305. </div> -->
  306. </div>
  307. </template>
  308. <script>
  309. import { jsGetAge, uParseTime } from "@/utils/tools";
  310. import { getAllDoctorList, getPrescriptionPrint } from "@/api/project/project";
  311. import { getInitData } from "@/api/his/his";
  312. export default {
  313. props: {
  314. patient_id: Number,
  315. record_date: String,
  316. prescription_id: Number,
  317. ids: String,
  318. newHisPatient:Object,
  319. },
  320. data() {
  321. return {
  322. doctorList_1: [],
  323. operatorMaps: {},
  324. doctorList: [],
  325. advicePrint: {},
  326. doc_name:"",
  327. patient: {},
  328. tableData: [],
  329. prescriptionInfo: [],
  330. projectList: [],
  331. prescriptions: [],
  332. settlement: [
  333. { value: 1, label: "医保" },
  334. { value: 2, label: "自费" },
  335. { value: 3, label: "公费" },
  336. { value: 4, label: "农保" },
  337. { value: 5, label: "会员" },
  338. { value: 6, label: "职工" },
  339. { value: 7, label: "合同" },
  340. ],
  341. hisPatient: {},
  342. diagnoses: [],
  343. department: [],
  344. faber: {},
  345. org_id: 0,
  346. };
  347. },
  348. methods: {
  349. // 电子签名
  350. setAdminUserES(id,name) {
  351. if (id == 0) {
  352. return "";
  353. }
  354. if (id in this.operatorMaps) {
  355. return this.operatorMaps[id].url;
  356. } else {
  357. this.doc_name = name
  358. return "";
  359. }
  360. },
  361. getNewAge(birthday) {
  362. // var myDate = new Date(birthday * 1000)
  363. // var month = myDate.getMonth() + 1
  364. // var day = myDate.getDate()
  365. // var age = new Date().getFullYear() - myDate.getFullYear()
  366. // if (month < new Date().getMonth() + 1 || new Date().getMonth() + 1 == month && day <= new Date().getDate()) {
  367. // age++
  368. // }
  369. // return age
  370. var nowTime = new Date().getTime();
  371. //一年毫秒数(365 * 86400000 = 31536000000)
  372. return Math.ceil((nowTime - birthday * 1000) / 31536000000);
  373. },
  374. getAge(patient) {
  375. var thisLen = patient.id_card_no.length;
  376. var birth = "";
  377. if (thisLen == 15) {
  378. birth = "19" + patient.id_card_no.substr(6, 6);
  379. } else {
  380. birth = patient.id_card_no.substr(6, 8);
  381. }
  382. var births =
  383. birth.substr(0, 4) +
  384. "-" +
  385. birth.substr(4, 2) +
  386. "-" +
  387. birth.substr(6, 2);
  388. return jsGetAge(births, "-");
  389. },
  390. printThisPage() {
  391. var ptime = Math.round(new Date().getTime() / 1000);
  392. this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
  393. const style =
  394. "@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;margin-top:10px;line-height: 1px;padding:0 10px;}.infoTitle p{width: 200px;}.otherInfo{display: flex;margin-top:10px;padding:0 10px;}.otherInfo span{display:inline-block;}.recordTitle{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;border-bottom: 2px solid #000;}.recordTitle p{width: 200px;}}";
  395. printJS({
  396. printable: "prescription-print",
  397. type: "html",
  398. style: style,
  399. scanStyles: false,
  400. });
  401. },
  402. getDepart(id) {
  403. var name = "";
  404. for (let i = 0; i < this.department.length; i++) {
  405. if (id == this.department[i].id) {
  406. name = this.department[i].name;
  407. }
  408. }
  409. return name;
  410. },
  411. getAllDoctorList() {
  412. getAllDoctorList().then((response) => {
  413. if (response.data.state == 1) {
  414. var doctor = response.data.data.doctor;
  415. this.doctorList = doctor;
  416. }
  417. });
  418. },
  419. getDoctor(id) {
  420. var name = "";
  421. for (let i = 0; i < this.doctorList.length; i++) {
  422. if (id == this.doctorList[i].admin_user_id) {
  423. name = this.doctorList[i].user_name;
  424. }
  425. }
  426. return name;
  427. },
  428. getTime(value, temp) {
  429. if (value != undefined) {
  430. return uParseTime(value, temp);
  431. }
  432. return "";
  433. },
  434. getPrescriptionPrint() {
  435. var params = {
  436. patient_id: this.patient_id,
  437. record_date: this.record_date,
  438. prescription_id: this.prescription_id,
  439. ids: this.ids,
  440. p_type: 2,
  441. };
  442. console.log("999999", params);
  443. getPrescriptionPrint(params).then((response) => {
  444. if (response.data.state == 1) {
  445. var advicePrint = response.data.data.advicePrint;
  446. console.log("adviceprint", advicePrint);
  447. this.advicePrint = advicePrint;
  448. this.prescriptions = advicePrint;
  449. var projectlist = response.data.data.projectlist;
  450. console.log("所有项目列表", projectlist);
  451. this.projectList = projectlist;
  452. this.hisPatient = response.data.data.hisPatient;
  453. this.doctorList_1 = response.data.data.eles;
  454. console.log(this.doctorList_1, "医生列表");
  455. if (this.doctorList_1.length > 0) {
  456. var operatorsLen = this.doctorList_1.length;
  457. for (var index = 0; index < operatorsLen; index++) {
  458. this.$set(
  459. this.operatorMaps,
  460. this.doctorList_1[index].creator,
  461. this.doctorList_1[index]
  462. );
  463. }
  464. }
  465. let projectPrint = [];
  466. let total = 0;
  467. this.advicePrint.map((item) => {
  468. console.log(item.project.length);
  469. if (item.project.length > 0) {
  470. for (var i = item.project.length - 1; i >= 0; i--) {
  471. if (item.project[i].type == 2) {
  472. if (item.project[i].project.cost_classify == 3) {
  473. console.log("!1111111")
  474. item.project.splice(i, 1);
  475. }
  476. }
  477. }
  478. }
  479. });
  480. let outputlist1Name = JSON.parse(response.data.data.his.patient_info);
  481. this.faber = outputlist1Name;
  482. }
  483. });
  484. },
  485. getProjectName(id) {
  486. var project_name = "";
  487. for (let i = 0; i < this.projectList.length; i++) {
  488. if (id == this.projectList[i].id) {
  489. project_name = this.projectList[i].project_name;
  490. }
  491. }
  492. return project_name;
  493. },
  494. getUnit(id) {
  495. var unit = "";
  496. for (let i = 0; i < this.projectList.length; i++) {
  497. if (id == this.projectList[i].id) {
  498. unit = this.projectList[i].unit;
  499. }
  500. }
  501. return unit;
  502. },
  503. getTotalOne(id) {
  504. var total = 0;
  505. var addtotal = 0;
  506. for (let i = 0; i < this.prescriptions.length; i++) {
  507. if (id == this.prescriptions[i].id) {
  508. if (this.prescriptions[i].project != null) {
  509. for (let a = 0; a < this.prescriptions[i].project.length; a++) {
  510. total =
  511. total +
  512. this.prescriptions[i].project[a].price *
  513. this.prescriptions[i].project[a].count;
  514. }
  515. }
  516. if (this.prescriptions[i].additionalcharge != null) {
  517. for (
  518. let a = 0;
  519. a < this.prescriptions[i].additionalcharge.length;
  520. a++
  521. ) {
  522. addtotal =
  523. addtotal +
  524. this.prescriptions[i].additionalcharge[a].price *
  525. this.prescriptions[i].additionalcharge[a].count;
  526. }
  527. }
  528. addtotal = Math.floor(addtotal * 100) / 100;
  529. }
  530. }
  531. for (let i = 0; i < this.prescriptions.length; i++) {
  532. if (id == this.prescriptions[i].id) {
  533. if (this.prescriptions[i].advices != null) {
  534. for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
  535. total =
  536. total +
  537. this.prescriptions[i].advices[a].price *
  538. this.prescriptions[i].advices[a].prescribing_number;
  539. }
  540. }
  541. if (this.prescriptions[i].additionalcharge != null) {
  542. for (
  543. let a = 0;
  544. a < this.prescriptions[i].additionalcharge.length;
  545. a++
  546. ) {
  547. addtotal =
  548. addtotal +
  549. this.prescriptions[i].additionalcharge[a].price *
  550. this.prescriptions[i].additionalcharge[a].count;
  551. }
  552. }
  553. addtotal = Math.floor(addtotal * 100) / 100;
  554. }
  555. }
  556. return total + addtotal;
  557. },
  558. getInitData() {
  559. getInitData().then((response) => {
  560. if (response.data.state == 1) {
  561. this.department = response.data.data.department;
  562. this.diagnoses = response.data.data.diagnose.sort(this.compare("id"));
  563. console.log("争端", this.diagnoses);
  564. }
  565. });
  566. },
  567. getDiagnosis(ids) {
  568. let newIds = ids.split(",").sort(function (a, b) {
  569. return a - b;
  570. });
  571. var name = "";
  572. let nameArr = [];
  573. for (let i = 0; i < this.diagnoses.length; i++) {
  574. // if(id == this.diagnoses[i].id){
  575. // name = this.diagnoses[i].class_name
  576. // }
  577. if (newIds.indexOf(this.diagnoses[i].id.toString()) > -1) {
  578. // name += diagnoses[i].class_name + ' '
  579. nameArr.push(this.diagnoses[i].class_name);
  580. }
  581. }
  582. let newNameArr = [];
  583. nameArr.map((item, index) => {
  584. if (item == "尿毒症") {
  585. newNameArr.push(item);
  586. nameArr.splice(index, 1, "");
  587. }
  588. });
  589. newNameArr.push(...nameArr);
  590. return newNameArr.join(" ");
  591. },
  592. compare(property) {
  593. return function (a, b) {
  594. var value1 = a[property];
  595. var value2 = b[property];
  596. return value1 - value2; //升序排序
  597. };
  598. },
  599. getName(list) {
  600. console.log("list22", list);
  601. let new_list = [];
  602. for (let i = 0; i < list.length; i++) {
  603. if (list[i].aac031 == "1") {
  604. new_list.push(list[i]);
  605. }
  606. }
  607. switch (new_list[0].bcc334) {
  608. case "A31001":
  609. return "深圳医保1档";
  610. break;
  611. case "A31002":
  612. return "深圳医保2档";
  613. break;
  614. case "A31003":
  615. return "深圳医保3档";
  616. break;
  617. case "A31004":
  618. return "二档(少儿)";
  619. break;
  620. case "A31005":
  621. return "学生二档";
  622. break;
  623. case "A31006":
  624. return "大学生二档";
  625. break;
  626. case "A32001":
  627. return "在职公务员";
  628. break;
  629. case "A32002":
  630. return "在职驻深公务员";
  631. break;
  632. case "A39301":
  633. return "家属统筹医疗";
  634. break;
  635. case "A41001":
  636. return "工伤在职";
  637. break;
  638. case "A51001":
  639. return "生育在职";
  640. break;
  641. case "A52001":
  642. return "生育医疗一档";
  643. break;
  644. case "A52002":
  645. return "生育医疗一档";
  646. break;
  647. case "C31001":
  648. return "一档医疗退休";
  649. break;
  650. case "C31002":
  651. return "二档医疗退休";
  652. break;
  653. }
  654. },
  655. },
  656. created() {
  657. this.getInitData();
  658. this.getAllDoctorList();
  659. this.getPrescriptionPrint();
  660. var xtuser = this.$store.getters.xt_user;
  661. this.orgname = xtuser.org.org_name;
  662. this.org_id = this.$store.getters.xt_user.org.id;
  663. },
  664. watch: {
  665. patient_id: function (val) {
  666. console.log(
  667. "101000010101010",
  668. this.patient_id,
  669. this.record_date,
  670. this.prescription_id
  671. );
  672. // this.getPrescriptionPrint()
  673. },
  674. ids: function (val) {
  675. this.ids = val;
  676. console.log("this.idsids", this.ids);
  677. this.getPrescriptionPrint();
  678. },
  679. },
  680. };
  681. </script>
  682. <style lang="scss" scoped>
  683. .prescription-print {
  684. -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
  685. 0 0 60px rgba(0, 0, 0, 0.06) inset;
  686. -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
  687. 0 0 40px rgba(0, 0, 0, 0.06) inset;
  688. box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
  689. margin-bottom: 20px;
  690. padding: 20px 10px;
  691. }
  692. .printTitle {
  693. font-size: 22px;
  694. text-align: center;
  695. font-weight: bold;
  696. margin-bottom: 10px;
  697. }
  698. .infoTitle {
  699. display: flex;
  700. margin-top: 10px;
  701. line-height: 24px;
  702. }
  703. .infoTitle div {
  704. width: 200px;
  705. }
  706. .infoMain {
  707. display: flex;
  708. flex-wrap: wrap;
  709. margin-top: 10px;
  710. }
  711. .infoMain div {
  712. width: 50%;
  713. line-height: 24px;
  714. }
  715. .prescriptionBox {
  716. padding: 0 10px;
  717. min-height: 400px;
  718. }
  719. .Rp {
  720. font-size: 22px;
  721. font-weight: bold;
  722. }
  723. .drugsBox {
  724. padding-left: 40px;
  725. margin-bottom: 10px;
  726. }
  727. .drugsBox div {
  728. line-height: 20px;
  729. }
  730. .drugsOne {
  731. line-height: 24px;
  732. }
  733. .drugsOne span {
  734. margin-right: 20px;
  735. }
  736. .doctorBox {
  737. display: flex;
  738. justify-content: space-between;
  739. padding: 0 10px;
  740. line-height: 24px;
  741. border-bottom: 2px solid #000;
  742. }
  743. .actionBar {
  744. display: flex;
  745. justify-content: space-between;
  746. line-height: 24px;
  747. padding: 0 10px;
  748. }
  749. .actionBar p {
  750. width: 150px;
  751. }
  752. .under_line {
  753. display: inline-block;
  754. border-bottom: 1px solid #000;
  755. flex: 1;
  756. }
  757. </style>