recordtwo.vue 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671
  1. <template>
  2. <div class="apply_box">
  3. <div class="apply_item_input apply_item_input_ld">
  4. <div class="apply_span_x apply_span_xde">
  5. <img src="../../static/pic_bgxq_zs.png" alt="" class="img">
  6. <span>报告编号</span>
  7. </div>
  8. <div class="apply_span_x">
  9. <p>{{listIi.reportNumber == null ? '暂无数据' : listIi.reportNumber}}</p>
  10. </div>
  11. </div>
  12. <div class="apply_item_input apply_item_input_ld">
  13. <div class="apply_span_x apply_span_xde">
  14. <img src="../../static/pic_bgxq_zs.png" alt="" class="img">
  15. <span>样品名称</span>
  16. </div>
  17. <div class="apply_span_x">
  18. <p>{{listIi.sampleName == null ? '暂无数据' : listIi.sampleName}}</p>
  19. </div>
  20. </div>
  21. <div class="apply_item_input apply_item_input_ld">
  22. <div class="apply_span_x apply_span_xde">
  23. <img src="../../static/pic_bgxq_zs.png" alt="" class="img">
  24. <span>送检单位名称</span>
  25. </div>
  26. <div class="apply_span_x">
  27. <p>{{listIi.inspectName == null ? '暂无数据' : listIi.inspectName}}</p>
  28. </div>
  29. </div>
  30. <div class="apply_item_input apply_item_input_ld">
  31. <div class="apply_span_x apply_span_xde">
  32. <img src="../../static/pic_bgxq_zs.png" alt="" class="img">
  33. <span>委托单位名称</span>
  34. </div>
  35. <div class="apply_span_x">
  36. <p>{{listIi.entrustName == null ? '暂无数据' : listIi.entrustName}}</p>
  37. </div>
  38. </div>
  39. <div class="apply_item_input apply_item_input_ld">
  40. <div class="apply_span_x apply_span_xde">
  41. <img src="../../static/pic_bgxq_zs.png" alt="" class="img">
  42. <span>签发时间</span>
  43. </div>
  44. <div class="apply_span_x">
  45. <p>{{listIi.issueTime == null ? '暂无数据' : listIi.issueTime}}</p>
  46. </div>
  47. </div>
  48. <div class="apply_item_input apply_item_input_ld">
  49. <div class="apply_span_x apply_span_xde">
  50. <img src="../../static/pic_bgxq_zs.png" alt="" class="img">
  51. <span>所检项目是否合格</span>
  52. </div>
  53. <div class="apply_span_x">
  54. <p>{{listIi.isQualify == 'Y' ? '合格' : '不合格'}}</p>
  55. </div>
  56. </div>
  57. <img src="../../static/pic_bgcx_hg.png" alt="" class="imgf" v-if="listIi.isQualify == 'N'">
  58. <img src="../../static/pic_bgcx_bhg.png" alt="" class="imgf" v-if="listIi.isQualify == 'Y'">
  59. </div>
  60. </template>
  61. <script>
  62. // import uCharts from '@/components/u-charts/u-charts.js';
  63. // import { isJSON } from '@/common/checker.js';
  64. var _self;
  65. var canvaLineA=null;
  66. var lastMoveTime=null;//最后执行移动的时间戳
  67. export default{
  68. data() {
  69. return {
  70. cWidth:'',
  71. cHeight:'',
  72. pixelRatio:1,
  73. textarea:'',
  74. show:false,
  75. listIi:{},
  76. studenListtwo:{
  77. xData:[],
  78. yData:[]
  79. },
  80. studenListtwoss:[],
  81. newNum:0
  82. }
  83. },
  84. onShow(){
  85. },
  86. onHide() {
  87. },
  88. onLoad(options) {
  89. let hddw = options.code
  90. console.log(JSON.parse(hddw))
  91. console.log(options.iju)
  92. this.listIi = JSON.parse(hddw)
  93. // let oiuye = JSON.parse(options.iju)
  94. // let opti = JSON.parse(options.iju)
  95. // this.listIi = uni.getStorageSync('item')
  96. // this.listIi.anCode = 0
  97. // console.log(opti.name)
  98. },
  99. methods:{
  100. //信息
  101. showLineA(canvasId,chartData){
  102. canvaLineA=new uCharts({
  103. $this:_self,
  104. canvasId: canvasId,
  105. type: 'line',
  106. colors:['#1678FF', '#f04864', '#8543e0', '#90ed7d'],
  107. fontSize:11,
  108. padding:[15,15,0,15],
  109. legend:{
  110. show:true,
  111. padding:5,
  112. lineHeight:11,
  113. margin:0,
  114. },
  115. dataLabel:false,
  116. dataPointShape:true,
  117. background:'#FFFFFF',
  118. pixelRatio:_self.pixelRatio,
  119. categories: chartData.categories,
  120. series: chartData.series,
  121. animation: true,
  122. xAxis: {
  123. type:'grid',
  124. gridColor:'#CCCCCC',
  125. gridType:'dash',
  126. dashLength:8,
  127. //disableGrid:true
  128. },
  129. yAxis: {
  130. gridType:'dash',
  131. gridColor:'#CCCCCC',
  132. dashLength:8,
  133. },
  134. width: _self.cWidth*_self.pixelRatio,
  135. height: _self.cHeight*_self.pixelRatio,
  136. extra: {
  137. line:{
  138. type: 'straight'
  139. }
  140. }
  141. });
  142. },
  143. touchLineA(e) {
  144. lastMoveTime=Date.now();
  145. },
  146. moveLineA(e){
  147. let currMoveTime = Date.now();
  148. let duration = currMoveTime - lastMoveTime;
  149. if (duration < Math.floor(1000 / 60)) return;//每秒60帧
  150. lastMoveTime = currMoveTime;
  151. let currIndex=canvaLineA.getCurrentDataIndex(e);
  152. if(currIndex>-1&&currIndex<canvaLineA.opts.categories.length){
  153. let riqi=canvaLineA.opts.categories[currIndex];
  154. let leibie=canvaLineA.opts.series[0].name;
  155. let shuju=canvaLineA.opts.series[0].data[currIndex];
  156. this.Interactive=leibie+':'+riqi+'-'+shuju+'℃';
  157. }
  158. canvaLineA.showToolTip(e, {
  159. format: function (item, category) {
  160. return category + ' ' + item.name + ':' + item.data
  161. }
  162. });
  163. },
  164. touchEndLineA(e){
  165. let currIndex=canvaLineA.getCurrentDataIndex(e);
  166. if(currIndex>-1&&currIndex<canvaLineA.opts.categories.length){
  167. let riqi=canvaLineA.opts.categories[currIndex];
  168. let leibie=canvaLineA.opts.series[0].name;
  169. let shuju=canvaLineA.opts.series[0].data[currIndex];
  170. this.Interactive=leibie+':'+riqi+'-'+shuju+'℃';
  171. }
  172. canvaLineA.touchLegend(e);
  173. canvaLineA.showToolTip(e, {
  174. format: function (item, category) {
  175. return category + ' ' + item.name + ':' + item.data
  176. }
  177. });
  178. },
  179. changeData(){
  180. if(isJSON(_self.textarea)){
  181. let newdata=JSON.parse(_self.textarea);
  182. canvaLineA.updateData({
  183. series: newdata.series,
  184. categories: newdata.categories
  185. });
  186. }else{
  187. uni.showToast({
  188. title:'数据格式错误',
  189. image:'../../../static/images/alert-warning.png'
  190. })
  191. }
  192. },
  193. //现照
  194. newchansk(index){
  195. this.show = true
  196. this.newNum = index
  197. },
  198. chansk(index){
  199. console.log(34)
  200. this.show = true
  201. this.newNum = index
  202. },
  203. onClickHideDec(){
  204. this.show = false
  205. },
  206. imgShow(){
  207. this.show = false
  208. }
  209. }
  210. }
  211. </script>
  212. <style>
  213. /*样式的width和height一定要与定义的cWidth和cHeight相对应*/
  214. .qiun-charts {
  215. width: 750upx;
  216. height: 500upx;
  217. background-color: #FFFFFF;
  218. }
  219. .charts {
  220. width: 100%;
  221. height: 500upx;
  222. background-color: #FFFFFF;
  223. }
  224. </style>
  225. <style lang="scss">
  226. .cues{
  227. height:100vh ;
  228. width: 100% ;
  229. background-color: rgba(0,0,0,0.4);
  230. position: fixed;
  231. left: 0;
  232. bottom: 0;
  233. display: flex;
  234. align-items: center;
  235. justify-content: center;
  236. cover-image{
  237. width: 550upx;
  238. height: 550upx;
  239. }
  240. }
  241. .xiansu{
  242. width: 550upx;
  243. height: 550upx;
  244. background-color: #fff;
  245. }
  246. .wrapper {
  247. display: flex;
  248. align-items: center;
  249. justify-content: center;
  250. height: 100%;
  251. }
  252. .block {
  253. width: 120px;
  254. height: 120px;
  255. background-color: #fff;
  256. }
  257. </style>
  258. <style lang="scss" scoped>
  259. .imgf{
  260. width: 238upx;
  261. height: 208upx;
  262. position: fixed;
  263. right: 38upx;
  264. bottom: 133upx;
  265. }
  266. .teset{
  267. font-size: 28upx !important;
  268. padding: 0 33upx;
  269. box-sizing: border-box;
  270. }
  271. .timeu{
  272. margin-top: 20upx;
  273. padding: 0 33upx;
  274. box-sizing: border-box;
  275. font-size: 28upx !important;
  276. color: #1678FF !important;
  277. i{
  278. display: inline-block;
  279. font-size: 24upx;
  280. color: #AAAAAA;
  281. }
  282. span{
  283. font-size: 24upx;
  284. color: #AAAAAA;
  285. float: right;
  286. }
  287. }
  288. .img{
  289. // width: 100%;
  290. width: 7upx;
  291. height: 35upx;
  292. }
  293. input{
  294. color: #808080;
  295. }
  296. .choseValue_s{
  297. width: 80upx;
  298. height: 40upx;
  299. }
  300. .dialog-content{
  301. background-color: #fff;
  302. width: 620upx;
  303. margin: 0 auto;
  304. border-radius: 12px;
  305. position: relative;
  306. margin-top: 0 !important;
  307. height: auto!important;
  308. padding-top: 20upx;
  309. .wrapper{
  310. padding: 0 30upx;
  311. .title{
  312. text-align: center;
  313. padding: 40upx 0 28upx 0;
  314. font-size: 38upx;
  315. color: #030303;
  316. font-weight: bold;
  317. }
  318. .wrapp_cont{
  319. margin: 0 auto;
  320. font-size: 32upx;
  321. padding: 20upx 10upx 40upx;
  322. line-height: 1.5;
  323. p{
  324. text-align: center;
  325. color: #999999;
  326. }
  327. }
  328. }
  329. .footer-cell{
  330. height: 86upx;
  331. width: 100%;
  332. display: flex;
  333. border-top: 1px solid #f5f5f5;
  334. box-sizing: border-box;
  335. .item{
  336. flex: 1;
  337. text-align: center;
  338. color: #000;
  339. line-height: 86upx;
  340. font-size: 34upx
  341. }
  342. .items{
  343. color: #56CBC5;
  344. }
  345. .confirm-text{
  346. color: #000000;
  347. border-left: 1px solid #f5f5f5;
  348. box-sizing: border-box;
  349. }
  350. }
  351. }
  352. .fot_box{
  353. margin-top: 256upx;
  354. // border-top: 1upx solid #F4F4F4;
  355. padding: 20upx 38upx 0;
  356. margin-bottom: 96upx;
  357. .fot_btn{
  358. height: 96upx;
  359. border-radius: 14upx;
  360. background: #1678FF;
  361. text-align: center;
  362. line-height: 96upx;
  363. color: #fff;
  364. font-size: 36upx;
  365. }
  366. }
  367. .apply_item_fot{
  368. padding: 22upx 32upx 36upx;
  369. border-bottom: 1upx solid #F4F4F4;
  370. .apply_item_top{
  371. display: flex;
  372. align-items: center;
  373. justify-content: space-between;
  374. span{
  375. color: #000;
  376. font-size: 34upx;
  377. font-weight: bold;
  378. }
  379. }
  380. .apply_item_fot_input{
  381. font-size: 30upx;
  382. margin-top: 52upx;
  383. }
  384. }
  385. .apply_item_bq_phone{
  386. padding: 20upx 32upx 0;
  387. border-top: 1upx solid #F4F4F4;
  388. .apply_item_bq_phone_box{
  389. height: 346upx;
  390. border-radius: 20upx;
  391. background: #F7F7F7;
  392. display: flex;
  393. flex-direction: column;
  394. align-items: center;
  395. justify-content: center;
  396. border:1upx solid #F7F7F7;
  397. .img{
  398. width: 78upx;
  399. height: 78upx;
  400. margin-bottom: 50upx;
  401. }
  402. .imgs{
  403. width: 100%;
  404. height: 100%;
  405. border-radius: 20upx;
  406. }
  407. span{
  408. color: #B6B6B6;
  409. font-size: 30upx;
  410. }
  411. }
  412. }
  413. .uni-input{
  414. color: #808080;
  415. font-size: 30upx;
  416. }
  417. .apply_item_input_bq{
  418. justify-content: space-between;
  419. }
  420. .apply_item_input_ld{
  421. justify-content: space-between;
  422. }
  423. .apply_box{
  424. .apply_item_input{
  425. padding-right: 33upx;
  426. // border-top: 1upx solid #F4F4F4;
  427. // display: flex;
  428. // height: 112upx;
  429. margin-top: 57upx;
  430. width: calc(100vw - 33upx);
  431. margin-left: 33upx;
  432. box-sizing: border-box;
  433. // align-items: center;
  434. .apply_span_x{
  435. font-size: 32upx;
  436. color: #363535;
  437. span{
  438. margin-left: 24upx;
  439. font-size: 29upx;
  440. font-family: PingFang SC;
  441. font-weight: bold;
  442. color: #1E1E1E;
  443. }
  444. p{
  445. margin-top: 26upx;
  446. margin-left: 31upx;
  447. font-size: 28upx;
  448. font-family: PingFang SC;
  449. font-weight: 400;
  450. color: #1E1E1E;
  451. }
  452. }
  453. .apply_span_xde{
  454. display: flex;
  455. align-items: center;
  456. }
  457. .apply_span_xl{
  458. color: #32B16C;
  459. }
  460. .apply_span_xltwo{
  461. color: #ffa200;
  462. }
  463. .apply_span_xlfive{
  464. color: #4c4b4b;
  465. }
  466. .apply_span_xlthreo{
  467. color: #f00404;
  468. }
  469. .apply_span_xlforu{
  470. color: #aaaaaa;
  471. }
  472. .apply_span_xla{
  473. color: #1678FF;
  474. text-decoration: underline;
  475. }
  476. .input_r{
  477. font-size: 30upx;
  478. height: 100%;
  479. flex: 1;
  480. text-align: right;
  481. }
  482. }
  483. .apply_title_jt{
  484. height: 130upx;
  485. border-top: 1upx solid #F4F4F4;
  486. display: flex;
  487. justify-content: space-between;
  488. align-items: center;
  489. padding: 0 32upx;
  490. span{
  491. font-size: 36upx;
  492. color: #333;
  493. font-weight: bold;
  494. }
  495. .apply_title_btn{
  496. width: 160upx;
  497. height: 60upx;
  498. font-size: 24upx;
  499. color: #fff;
  500. display: flex;
  501. justify-content: center;
  502. align-items: center;
  503. background: #FF568C;
  504. border-radius: 8upx;
  505. .img{
  506. width: 30upx;
  507. height: 30upx;
  508. margin-right: 10upx;
  509. }
  510. }
  511. }
  512. .apply_title_jts{
  513. border:none;
  514. }
  515. .apply_title_jt_item{
  516. border-bottom: 9upx solid #F4F4F4;
  517. .apply_item_input_qx{
  518. color: #FF5185;
  519. height: 100%;
  520. display: flex;
  521. justify-content: center;
  522. align-items: center;
  523. height: 112upx;
  524. font-size: 30upx;
  525. }
  526. }
  527. .apply_item_sfz{
  528. padding: 42upx 20upx;
  529. border-bottom: 9upx solid #F4F4F4;
  530. .apply_item_sfz_title{
  531. font-weight: bold;
  532. font-size: 34upx;
  533. margin-bottom: 40upx;
  534. margin-left: 2upx;
  535. }
  536. .apply_item_phones{
  537. display: flex;
  538. justify-content: space-between;
  539. .apply_item_phone{
  540. width: 340upx;
  541. height: 218upx;
  542. .img{
  543. width: 100%;
  544. height: 100%;
  545. border-radius: 20upx;
  546. }
  547. }
  548. }
  549. }
  550. .apply_item_zdxx{
  551. padding: 0 26upx;
  552. font-size: 34upx;
  553. font-weight: bold;
  554. color: #333;
  555. height: 112upx;
  556. line-height: 112upx;
  557. border: 1upx solid #F4F4F4;
  558. }
  559. .qt_div{
  560. height: 112upx;
  561. border-top: 1upx solid #F4F4F4;
  562. padding: 0 32upx;
  563. border-bottom: 9upx solid #F9F9F9;
  564. .input_l{
  565. height: 100%;
  566. font-size: 30upx;
  567. }
  568. }
  569. }
  570. .apply_item_img{
  571. padding: 40upx 30upx;
  572. .apply_item_img_box{
  573. width: 186upx;
  574. height: 186upx;
  575. display: flex;
  576. justify-content: center;
  577. align-items: center;
  578. flex-direction: column;
  579. background: #F2F2F2;
  580. border-radius: 20upx;
  581. .img{
  582. width: 78upx;
  583. height: 78upx;
  584. margin-bottom: 10upx;
  585. }
  586. .imgs{
  587. width: 100%;
  588. height: 100%;
  589. }
  590. p{
  591. font-size: 24upx;
  592. color: #D7D7D7;
  593. }
  594. }
  595. }
  596. .apply_item_input_cphone{
  597. padding: 24upx 32upx;
  598. display: flex;
  599. justify-content: space-between;
  600. border-top: 1upx solid #F4F4F4;
  601. .apply_span_x{
  602. margin-top: 8upx;
  603. p{
  604. font-size: 28upx;
  605. font-family: PingFang SC;
  606. font-weight: 400;
  607. color: #1E1E1E;
  608. }
  609. span{
  610. font-size: 29upx;
  611. font-family: PingFang SC;
  612. font-weight: bold;
  613. color: #1E1E1E;
  614. }
  615. }
  616. .apply_span_phone{
  617. width: 186upx;
  618. height: 186upx;
  619. display: flex;
  620. justify-content: center;
  621. align-items: center;
  622. background: #F2F2F2;
  623. flex-direction: column;
  624. border-radius: 20upx;
  625. .imgs{
  626. width: 100%;
  627. height: 100%;
  628. border-radius: 20upx;
  629. }
  630. .img{
  631. width: 78upx;
  632. height: 78upx;
  633. margin-bottom: 10upx;
  634. }
  635. span{
  636. color: #D7D7D7;
  637. font-size: 24upx;
  638. }
  639. }
  640. }
  641. //填写
  642. .tinxie{
  643. height: 103upx;
  644. line-height: 103upx;
  645. background-color: #F8f8f8;
  646. font-size: 28upx;
  647. padding: 0 33upx;
  648. box-sizing: border-box;
  649. color: #666;
  650. }
  651. .shenf{
  652. flex: 1;
  653. text-align: right;
  654. }
  655. </style>