donation.html 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632
  1. <!DOCTYPE html>
  2. <html lang="zh-cn">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <script src="./vue.js"></script>
  8. <title>遗体器官捐献申请登记表</title>
  9. <style scoped="scoped">
  10. .footer {
  11. margin-top: 0.8cm;
  12. /*width: 26cm;*/
  13. width: 100%;
  14. text-align: center;
  15. /* margin: 0 auto; */
  16. }
  17. .header {
  18. width: 20cm;
  19. margin: 0 auto;
  20. margin-top: 2cm;
  21. display: flex;
  22. /* justify-content: center; */
  23. align-items: center;
  24. margin-top: 25px;
  25. color: #eb3223;
  26. margin-bottom: 1cm;
  27. letter: spacing 2;
  28. }
  29. .header .img {
  30. margin-left: 1.24cm;
  31. margin-right: 0.3cm;
  32. width: 10.6cm;
  33. height: 2cm;
  34. }
  35. .img {
  36. width: 9cm;
  37. height: 2.5cm;
  38. }
  39. .header .img1 {
  40. margin-left: 0.5cm;
  41. }
  42. .header1 {
  43. font-size: 18px;
  44. /* margin-top: 134px; */
  45. width: 1080px;
  46. /* height: 40px; */
  47. margin: 0 auto;
  48. display: flex;
  49. /* justify-content: space-around; */
  50. }
  51. .header1 .box-2 {
  52. margin-left: 1.2cm;
  53. }
  54. .header1 .box-5 {
  55. display: flex;
  56. margin-left: 1cm;
  57. /* width: 200px; */
  58. /* border-bottom: 1px solid #333; */
  59. }
  60. .header1 .box-5 .box-6 {
  61. width: 4.2cm;
  62. border-bottom: 1px solid #333;
  63. }
  64. .table {
  65. border-collapse: collapse;
  66. border-spacing: 0;
  67. background-color: transparent;
  68. display: table;
  69. max-width: 100%;
  70. margin: 0 auto;
  71. }
  72. .table td {
  73. height: 44px;
  74. text-align: center;
  75. vertical-align: middle;
  76. font-size: 18px;
  77. font-family: 'Arial Normal', 'Arial';
  78. color: #333333;
  79. padding: 4px 12px;
  80. }
  81. .table-bordered {
  82. border: 1px solid #ddd;
  83. }
  84. * {
  85. margin: 0px;
  86. padding: 0px;
  87. }
  88. .info {
  89. width: 800px;
  90. margin: 0 auto;
  91. display: flex;
  92. justify-content: space-between;
  93. margin-top: 12px;
  94. font-size: 16px;
  95. }
  96. .date {
  97. display: flex;
  98. justify-content: flex-end;
  99. }
  100. .gap {
  101. display: block;
  102. height: 4px;
  103. width: 26px;
  104. }
  105. .column {
  106. width: 2.5cm;
  107. height: 30px;
  108. border: 1px solid #333;
  109. background: #ebc5ad;
  110. }
  111. .column1 {
  112. width: 145px;
  113. height: 25px;
  114. border: 1px solid #333;
  115. background: #ebc5ad;
  116. }
  117. .box {
  118. border: 1px solid #333;
  119. }
  120. .column01 {
  121. width: 100px;
  122. height: 15px;
  123. border: 1px solid #333;
  124. /* background: #f1f1f1; */
  125. }
  126. .checkbox {
  127. width: 20px;
  128. height: 15px;
  129. border: 1px solid #333;
  130. /* justify-content: center; */
  131. }
  132. .box01 {
  133. margin-right: 3px;
  134. margin-left: 3px;
  135. }
  136. .tpl {
  137. width: 50px !important;
  138. height: 15px;
  139. border: 1px solid #333;
  140. background: #f1f1f1;
  141. }
  142. .tpl01 {
  143. width: 50px !important;
  144. height: 15px;
  145. border: 1px solid #333;
  146. }
  147. .title {
  148. font-size: 18px !important;
  149. font-weight: bold;
  150. }
  151. .value {
  152. width: 2cm;
  153. height: 30px;
  154. border: 1px solid #333;
  155. }
  156. .value1-tip {
  157. border: 1px solid #333;
  158. }
  159. .value1 {
  160. width: 110px;
  161. display: inline-block;
  162. }
  163. .value9 {
  164. width: 550px;
  165. display: inline-block;
  166. text-align: left;
  167. }
  168. .value2 {
  169. width: 550px;
  170. display: inline-block;
  171. text-align: left;
  172. }
  173. .value3 {
  174. width: 610px;
  175. display: inline-block;
  176. text-align: left;
  177. }
  178. .value4 {
  179. padding: 8px 0px;
  180. }
  181. .value5 {
  182. padding-right: 180px;
  183. text-align: right;
  184. }
  185. .value6 {
  186. text-align: right;
  187. padding: 8px 45px;
  188. }
  189. .value7 {
  190. text-align: right;
  191. padding-right: 180px;
  192. padding-top: 10px;
  193. }
  194. .value8 {
  195. text-align: right;
  196. padding: 8px 45px;
  197. }
  198. .tp {
  199. width: 60px;
  200. display: inline-block;
  201. }
  202. .cameraCheckBoxTop {
  203. margin-right: 8px;
  204. width: 15px;
  205. height: 15px;
  206. }
  207. .portrait {
  208. width: 100px;
  209. height: 100px;
  210. }
  211. .button-dayin {
  212. background-color: #FF0000;
  213. color: #FFFFFF;
  214. width: 200px;
  215. padding: 20px 0px;
  216. margin: 50px auto;
  217. text-align: center;
  218. font-size: 30px;
  219. }
  220. </style>
  221. </head>
  222. <body>
  223. <div id="app">
  224. <div>
  225. <span></span>
  226. <div class="header" style="margin-top: 1cm;width: 24cm;">
  227. <div class="img" style="padding-top:0px;">
  228. <img style="height: 2.2cm; width: 7cm;" src="/dru/img/chinalogo.png" />
  229. </div>
  230. <div class="left">
  231. <div style="font-size: 31px;letter-spacing:4px"></div>
  232. </div>
  233. <div class="img1">
  234. <img src="/dru/img/11.png" alt="" style="height: 2cm; width: 10.5cm;">
  235. </div>
  236. </div>
  237. <div class="header1" style="width: 21cm;">
  238. <div class="box-1">
  239. 制表单位:{{redname}}红十字会
  240. </div>
  241. <div class="box-2">
  242. 填表日期:
  243. </div>
  244. <div class="box-3">
  245. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;年 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;月&nbsp;&nbsp;
  246. &nbsp;&nbsp;&nbsp;日
  247. </div>
  248. <div class="box-5">
  249. <div>编号:</div>
  250. </div>
  251. </div>
  252. <div style="margin:8px auto;">
  253. <table class="table table-striped table-bordered" align="center" valign="center">
  254. <tr>
  255. <td class="value" colspan="16"
  256. style="width: 21cm;padding: 32px 12px;text-indent: 40px; text-align: left;line-height: 38px;">
  257. 遗体器官捐献是服务医疗事业,造福人类的高尚行为,是“人道、博爱、奉献”精神的崇高体现。我已了解遗体器官捐献的基本常识和有关政策法规。我自愿登记成为{{redname}}遗体器官捐献志愿者,身故后请执行人和所有亲属尊重我的决定。
  258. </td>
  259. </tr>
  260. <tr>
  261. <td class="column">姓名</td>
  262. <td class="value" colspan="2">{{decodeURIComponent(hh.full_name)}}</td>
  263. <td class="column" style="width: 1cm;">性别</td>
  264. <td class="value" colspan="2">{{decodeURIComponent(hh.sex_text)}}</td>
  265. <td class="column" style="width: 2cm;">出生年月</td>
  266. <td class="value" colspan="5">{{decodeURIComponent(hh.birthday)}}</td>
  267. </tr>
  268. <tr>
  269. <td class="column">身份证号码</td>
  270. <td class="value" colspan="5">{{decodeURIComponent(hh.id_card)}}</td>
  271. <td class="column" style="width: 2cm;">职业</td>
  272. <td class="value" colspan="2">{{decodeURIComponent(hh.vocation)}}</td>
  273. <td class="column" style="width: 1.2cm;">学历</td>
  274. <td class="value" colspan="2">{{decodeURIComponent(hh.education_text)}}</td>
  275. </tr>
  276. <tr>
  277. <td class="value" colspan="6" style="position: relative;">
  278. <div style="position: absolute; top:40px; left:100px;"> 我自愿捐献</div>
  279. <div
  280. style="display: flex;align-items: center;justify-content:flex-start;line-height: 38px;padding: 0px 0 0 0;with: 200px;padding-left:200px;">
  281. <div
  282. style="width: 14px;height: 14px;border: 1px solid #333333;margin-right: 5px;line-height: 1;margin-left: 5px;">
  283. {{donatename.indexOf('遗体') != -1 ? '√': ''}}</div>遗体;
  284. </div>
  285. <div
  286. style="display: flex;align-items: center;justify-content: flex-start;padding-bottom: 8px;with: 200px;padding-left:200px;">
  287. <div
  288. style="width: 14px;height: 14px;border: 1px solid #333333;margin-right: 5px;line-height: 1;margin-left: 5px;">
  289. {{donatename.indexOf('眼角膜') != -1 ? '√': ''}}</div>眼角膜;
  290. </div>
  291. </td>
  292. <td class="value" colspan="6" style="position: relative;">
  293. <div
  294. style="display: flex;align-items: center;justify-content: flex-start;padding-bottom: 0px;with: 200px;padding-bottom:10px; padding-left:35px;">
  295. <div
  296. style="width: 14px;height: 14px;border: 1px solid #333333;margin-right: 5px;line-height: 1;">
  297. {{donatename.indexOf('全部器官') != -1 ? '√': ''}}</div>全部器官
  298. </div>
  299. <div style="display: flex;flex-wrap: nowrap;align-items:flex-start;">
  300. <div style="display:inline-block;margin-bottom:8px;text-align:left;">
  301. 或:
  302. </div>
  303. <div style="display: flex;flex-wrap: wrap;align-items:flex-start;">
  304. <div style="width:25%;margin-bottom:8px;text-align:left;">
  305. <div
  306. style="width: 14px;height: 14px;border: 1px solid #333333;margin-right: 5px;line-height: 1; display:inline-block;">
  307. {{donatename.indexOf('肾脏') != -1 ? '√': ''}}</div>肾脏
  308. </div>
  309. <div style="width:25%;margin-bottom:8px;text-align:left;">
  310. <div
  311. style="width: 14px;height: 14px;border: 1px solid #333333;margin-right: 5px;line-height: 1; display:inline-block;">
  312. {{donatename.indexOf('肝脏') != -1 ? '√': ''}}</div>肝脏
  313. </div>
  314. <div style="width:25%;margin-bottom:8px;text-align:left;">
  315. <div
  316. style="width: 14px;height: 14px;border: 1px solid #333333;margin-right: 5px;line-height: 1; display:inline-block;">
  317. {{donatename.indexOf('心脏') != -1 ? '√': ''}}</div>心脏
  318. </div>
  319. <div style="width:25%;margin-bottom:8px;text-align:left;">
  320. <div
  321. style="width: 14px;height: 14px;border: 1px solid #333333;margin-right: 5px;line-height: 1; display:inline-block;">
  322. {{donatename.indexOf('肺脏') != -1 ? '√': ''}}</div>肺脏
  323. </div>
  324. <div style="width:25%;margin-bottom:8px;text-align:left;">
  325. <div
  326. style="width: 14px;height: 14px;border: 1px solid #333333;margin-right: 5px;line-height: 1; display:inline-block;">
  327. {{donatename.indexOf('胰腺') != -1 ? '√': ''}}</div>胰腺
  328. </div>
  329. <div style="width:25%;margin-bottom:8px;text-align:left;">
  330. <div
  331. style="width: 14px;height: 14px;border: 1px solid #333333;margin-right: 5px;line-height: 1; display:inline-block;">
  332. {{donatename.indexOf('小肠') != -1 ? '√': ''}}</div>小肠
  333. </div>
  334. <div style="width:25%;margin-bottom:8px;text-align:left;">
  335. <div
  336. style="width: 14px;height: 14px;border: 1px solid #333333;margin-right: 5px;line-height: 1; display:inline-block;">
  337. {{donatename.indexOf('其他') != -1 ? '√': ''}}</div>其他
  338. </div>
  339. </div>
  340. </div>
  341. </td>
  342. </tr>
  343. </table>
  344. </div>
  345. <div style="margin:8px auto;margin-top: 5cm;">
  346. <table class="table table-striped table-bordered" align="center" valign="center">
  347. <tr>
  348. <td class="column1" rowspan="2">联系电话</td>
  349. <td class="value" colspan="1" style="width: 5.8cm;text-align: left;">固定电话:</td>
  350. <td class="value" rowspan="2" colspan="14" style="width: 10cm;">
  351. <div style="display: flex; justify-content:center;margin-left:1.8cm">
  352. 我指定
  353. <div
  354. style="border-bottom: 1px solid #333333; width: 3cm;display:flex;justify-content:center">
  355. {{decodeURIComponent(hh.executor)}}</div>为我的遗体器官
  356. </div>
  357. <div style="text-align: left;line-height: 38px;display: flex;justify-content:center">
  358. 捐献执行人全权负责本人的遗体器官捐献事宜</div>
  359. </td>
  360. </tr>
  361. <tr>
  362. <td class="value" colspan="1" style="width: 5.8cm;text-align: left;">移动电话:{{decodeURIComponent(hh.mobile)}}</td>
  363. </tr>
  364. <tr>
  365. <td class="column1">居住地址</td>
  366. <td class="value" colspan="8">
  367. <!--{$arr.address}-->
  368. </td>
  369. </tr>
  370. <tr>
  371. <td class="column1" rowspan="2">捐献执行人</td>
  372. <td class="value" colspan="4" rowspan="2">{{decodeURIComponent(hh.executor)}}</td>
  373. <td class="column1">身份证号</td>
  374. <td class="value" colspan="4">{{decodeURIComponent(hh.executor_id_card)}}</td>
  375. </tr>
  376. <tr>
  377. <td class="column1">移动电话:</td>
  378. <td class="value" colspan="2">{{decodeURIComponent(hh.executor_mobile)}}</td>
  379. </tr>
  380. <tr>
  381. <td class="column1" rowspan="1">与捐献志愿者关系</td>
  382. <td class="value" rowspan="1" colspan="4">{{decodeURIComponent(hh.executor_relation)}}</td>
  383. <td class="column1">固定电话:</td>
  384. <td class="value" colspan="2"></td>
  385. </tr>
  386. <tr>
  387. <td class="column1">红十字会地址</td>
  388. <td class="value" colspan="4">{{redaddress}}</td>
  389. <td class="column1">捐献电话</td>
  390. <td class="value" colspan="4">{{redphone}}</td>
  391. </tr>
  392. </table>
  393. </div>
  394. <div class="footer">
  395. 我保证填写的以上信息准确真实,如发生变更或个人意愿发生变化时,及时告知登记机构。
  396. </div>
  397. <div style="padding:100px 70px 20px; display:flex;justify-content:space-around;align-items:center;width: 21cm;margin: auto;">
  398. <img style="height: 1cm; width: 5cm;" src="/dru/img/zgrtqgjxglzx.png" />
  399. <img style="height: 1cm; width: 5cm;"
  400. :src="'/dru/img/' + redlogo" v-if="redlogo != ''"/>
  401. <span>联系方式:{{redphone}}</span>
  402. </div>
  403. </div>
  404. </div>
  405. </body>
  406. <script>
  407. var app = new Vue({
  408. el: '#app',
  409. data() {
  410. return {
  411. hh: {},
  412. redList: [{
  413. cid: 7,
  414. name: '公安县',
  415. where: '公安县斗湖堤镇马嘶桥路58号',
  416. phone: '0716-5156511',
  417. logo: ''
  418. }, {
  419. cid: 6,
  420. name: '咸宁市',
  421. where: '温泉马柏大道306号',
  422. phone: '0715-8111755',
  423. logo: ''
  424. },{
  425. cid: 9,
  426. name: '东宝区',
  427. where: '荆门市东宝区工业园新台西路10号',
  428. phone: '0724-2382815',
  429. logo: ''
  430. },
  431. {
  432. cid: 12,
  433. name: '咸宁市',
  434. where: '湖北省咸宁市咸安区温泉街道办事处温泉马柏大道306号',
  435. phone: '0715-8111755',
  436. logo: ''
  437. },
  438. {
  439. cid: 11,
  440. name: '长宁区',
  441. where: '上海市长宁区长宁路599号',
  442. phone: '021-22050000',
  443. logo: ''
  444. },
  445. {
  446. cid: 13,
  447. name: '赤壁市',
  448. where: '赤壁市赤壁大道786号卫健局三楼',
  449. phone: '0715-5336010',
  450. logo: ''
  451. }
  452. ],
  453. donateList: [{
  454. did: 39,
  455. name: '眼角膜'
  456. },{
  457. did: 38,
  458. name: '全部器官'
  459. },
  460. {
  461. did: 37,
  462. name: '其他'
  463. },
  464. {
  465. did: 36,
  466. name: '小肠'
  467. },
  468. {
  469. did: 35,
  470. name: '胰腺'
  471. },
  472. {
  473. did: 34,
  474. name: '肺脏'
  475. },
  476. {
  477. did: 33,
  478. name: '心脏'
  479. },
  480. {
  481. did: 32,
  482. name: '肝脏'
  483. },
  484. {
  485. did: 31,
  486. name: '肾脏'
  487. },
  488. {
  489. did: 23,
  490. name: '遗体'
  491. }]
  492. }
  493. },
  494. created() {
  495. this.hh = this.GetRequest()
  496. },
  497. computed: {
  498. redname() {
  499. let str = ''
  500. let len = this.redList.length
  501. let cid = decodeURIComponent(this.hh.cid)
  502. this.redList.forEach(item => {
  503. if (item.cid == cid) {
  504. str = item.name
  505. }
  506. });
  507. return str
  508. },
  509. redaddress() {
  510. let str = ''
  511. let len = this.redList.length
  512. let cid = decodeURIComponent(this.hh.cid)
  513. this.redList.forEach(item => {
  514. if (item.cid == cid) {
  515. str = item.where
  516. }
  517. });
  518. return str
  519. },
  520. redphone() {
  521. let str = ''
  522. let len = this.redList.length
  523. let cid = decodeURIComponent(this.hh.cid)
  524. this.redList.forEach(item => {
  525. if (item.cid == cid) {
  526. str = item.phone
  527. }
  528. });
  529. return str
  530. },
  531. redlogo() {
  532. let str = ''
  533. let cid = decodeURIComponent(this.hh.cid)
  534. this.redList.forEach(item => {
  535. if (item.cid == cid) {
  536. str = item.logo
  537. }
  538. });
  539. return str
  540. },
  541. donatename() {
  542. let str = ''
  543. let did = decodeURIComponent(this.hh.category_ids)
  544. this.donateList.forEach(item => {
  545. console.log(item.name,did,item.did)
  546. if (did.indexOf(item.did+'') != -1) {
  547. str += item.name
  548. }
  549. });
  550. return str
  551. }
  552. },
  553. methods: {
  554. GetRequest() {
  555. var url = location.search; //获取url中"?"符后的字串
  556. var theRequest = new Object();
  557. if (url.indexOf("?") != -1) {
  558. var str = url.substr(1);
  559. strs = str.split("&");
  560. for (var i = 0; i < strs.length; i++) {
  561. theRequest[strs[i].split("=")[0]] = (strs[i].split("=")[1]);
  562. }
  563. }
  564. return theRequest;
  565. },
  566. }
  567. })
  568. </script>
  569. </html>