123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671 |
- <template>
- <div class="apply_box">
-
- <div class="apply_item_input apply_item_input_ld">
- <div class="apply_span_x apply_span_xde">
- <img src="../../static/pic_bgxq_zs.png" alt="" class="img">
- <span>报告编号</span>
- </div>
- <div class="apply_span_x">
- <p>{{listIi.reportNumber == null ? '暂无数据' : listIi.reportNumber}}</p>
- </div>
- </div>
- <div class="apply_item_input apply_item_input_ld">
- <div class="apply_span_x apply_span_xde">
- <img src="../../static/pic_bgxq_zs.png" alt="" class="img">
- <span>样品名称</span>
- </div>
- <div class="apply_span_x">
- <p>{{listIi.sampleName == null ? '暂无数据' : listIi.sampleName}}</p>
- </div>
- </div>
- <div class="apply_item_input apply_item_input_ld">
- <div class="apply_span_x apply_span_xde">
- <img src="../../static/pic_bgxq_zs.png" alt="" class="img">
- <span>送检单位名称</span>
- </div>
- <div class="apply_span_x">
- <p>{{listIi.inspectName == null ? '暂无数据' : listIi.inspectName}}</p>
- </div>
- </div>
- <div class="apply_item_input apply_item_input_ld">
- <div class="apply_span_x apply_span_xde">
- <img src="../../static/pic_bgxq_zs.png" alt="" class="img">
- <span>委托单位名称</span>
- </div>
- <div class="apply_span_x">
- <p>{{listIi.entrustName == null ? '暂无数据' : listIi.entrustName}}</p>
- </div>
- </div>
- <div class="apply_item_input apply_item_input_ld">
- <div class="apply_span_x apply_span_xde">
- <img src="../../static/pic_bgxq_zs.png" alt="" class="img">
- <span>签发时间</span>
- </div>
- <div class="apply_span_x">
- <p>{{listIi.issueTime == null ? '暂无数据' : listIi.issueTime}}</p>
- </div>
- </div>
- <div class="apply_item_input apply_item_input_ld">
- <div class="apply_span_x apply_span_xde">
- <img src="../../static/pic_bgxq_zs.png" alt="" class="img">
- <span>所检项目是否合格</span>
- </div>
- <div class="apply_span_x">
- <p>{{listIi.isQualify == 'Y' ? '合格' : '不合格'}}</p>
- </div>
- </div>
- <img src="../../static/pic_bgcx_hg.png" alt="" class="imgf" v-if="listIi.isQualify == 'N'">
- <img src="../../static/pic_bgcx_bhg.png" alt="" class="imgf" v-if="listIi.isQualify == 'Y'">
- </div>
-
- </template>
- <script>
- // import uCharts from '@/components/u-charts/u-charts.js';
- // import { isJSON } from '@/common/checker.js';
- var _self;
- var canvaLineA=null;
- var lastMoveTime=null;//最后执行移动的时间戳
- export default{
- data() {
- return {
- cWidth:'',
- cHeight:'',
- pixelRatio:1,
- textarea:'',
- show:false,
- listIi:{},
- studenListtwo:{
- xData:[],
- yData:[]
- },
- studenListtwoss:[],
- newNum:0
- }
- },
- onShow(){
-
- },
- onHide() {
- },
- onLoad(options) {
- let hddw = options.code
- console.log(JSON.parse(hddw))
- console.log(options.iju)
- this.listIi = JSON.parse(hddw)
- // let oiuye = JSON.parse(options.iju)
- // let opti = JSON.parse(options.iju)
- // this.listIi = uni.getStorageSync('item')
- // this.listIi.anCode = 0
- // console.log(opti.name)
-
- },
- methods:{
- //信息
- showLineA(canvasId,chartData){
- canvaLineA=new uCharts({
- $this:_self,
- canvasId: canvasId,
- type: 'line',
- colors:['#1678FF', '#f04864', '#8543e0', '#90ed7d'],
- fontSize:11,
- padding:[15,15,0,15],
- legend:{
- show:true,
- padding:5,
- lineHeight:11,
- margin:0,
- },
- dataLabel:false,
- dataPointShape:true,
- background:'#FFFFFF',
- pixelRatio:_self.pixelRatio,
- categories: chartData.categories,
- series: chartData.series,
- animation: true,
- xAxis: {
- type:'grid',
- gridColor:'#CCCCCC',
- gridType:'dash',
- dashLength:8,
- //disableGrid:true
- },
- yAxis: {
- gridType:'dash',
- gridColor:'#CCCCCC',
- dashLength:8,
- },
- width: _self.cWidth*_self.pixelRatio,
- height: _self.cHeight*_self.pixelRatio,
- extra: {
- line:{
- type: 'straight'
- }
- }
- });
-
- },
- touchLineA(e) {
- lastMoveTime=Date.now();
- },
- moveLineA(e){
- let currMoveTime = Date.now();
- let duration = currMoveTime - lastMoveTime;
- if (duration < Math.floor(1000 / 60)) return;//每秒60帧
- lastMoveTime = currMoveTime;
-
- let currIndex=canvaLineA.getCurrentDataIndex(e);
- if(currIndex>-1&&currIndex<canvaLineA.opts.categories.length){
- let riqi=canvaLineA.opts.categories[currIndex];
- let leibie=canvaLineA.opts.series[0].name;
- let shuju=canvaLineA.opts.series[0].data[currIndex];
- this.Interactive=leibie+':'+riqi+'-'+shuju+'℃';
- }
- canvaLineA.showToolTip(e, {
- format: function (item, category) {
- return category + ' ' + item.name + ':' + item.data
- }
- });
- },
- touchEndLineA(e){
- let currIndex=canvaLineA.getCurrentDataIndex(e);
- if(currIndex>-1&&currIndex<canvaLineA.opts.categories.length){
- let riqi=canvaLineA.opts.categories[currIndex];
- let leibie=canvaLineA.opts.series[0].name;
- let shuju=canvaLineA.opts.series[0].data[currIndex];
- this.Interactive=leibie+':'+riqi+'-'+shuju+'℃';
- }
- canvaLineA.touchLegend(e);
- canvaLineA.showToolTip(e, {
- format: function (item, category) {
- return category + ' ' + item.name + ':' + item.data
- }
- });
- },
- changeData(){
- if(isJSON(_self.textarea)){
- let newdata=JSON.parse(_self.textarea);
- canvaLineA.updateData({
- series: newdata.series,
- categories: newdata.categories
- });
- }else{
- uni.showToast({
- title:'数据格式错误',
- image:'../../../static/images/alert-warning.png'
- })
- }
- },
- //现照
- newchansk(index){
- this.show = true
- this.newNum = index
- },
- chansk(index){
- console.log(34)
- this.show = true
- this.newNum = index
- },
- onClickHideDec(){
- this.show = false
- },
- imgShow(){
- this.show = false
- }
- }
- }
- </script>
- <style>
- /*样式的width和height一定要与定义的cWidth和cHeight相对应*/
- .qiun-charts {
- width: 750upx;
- height: 500upx;
- background-color: #FFFFFF;
- }
-
- .charts {
- width: 100%;
- height: 500upx;
- background-color: #FFFFFF;
- }
- </style>
- <style lang="scss">
- .cues{
- height:100vh ;
- width: 100% ;
- background-color: rgba(0,0,0,0.4);
- position: fixed;
- left: 0;
- bottom: 0;
- display: flex;
- align-items: center;
- justify-content: center;
- cover-image{
- width: 550upx;
- height: 550upx;
- }
- }
- .xiansu{
- width: 550upx;
- height: 550upx;
- background-color: #fff;
- }
- .wrapper {
- display: flex;
- align-items: center;
- justify-content: center;
- height: 100%;
- }
- .block {
- width: 120px;
- height: 120px;
- background-color: #fff;
- }
- </style>
- <style lang="scss" scoped>
- .imgf{
- width: 238upx;
- height: 208upx;
- position: fixed;
- right: 38upx;
- bottom: 133upx;
- }
- .teset{
- font-size: 28upx !important;
- padding: 0 33upx;
- box-sizing: border-box;
- }
- .timeu{
- margin-top: 20upx;
- padding: 0 33upx;
- box-sizing: border-box;
- font-size: 28upx !important;
- color: #1678FF !important;
- i{
- display: inline-block;
- font-size: 24upx;
- color: #AAAAAA;
- }
- span{
- font-size: 24upx;
- color: #AAAAAA;
- float: right;
- }
- }
- .img{
- // width: 100%;
- width: 7upx;
- height: 35upx;
- }
- input{
- color: #808080;
- }
- .choseValue_s{
- width: 80upx;
- height: 40upx;
- }
- .dialog-content{
- background-color: #fff;
- width: 620upx;
- margin: 0 auto;
- border-radius: 12px;
- position: relative;
- margin-top: 0 !important;
- height: auto!important;
- padding-top: 20upx;
- .wrapper{
- padding: 0 30upx;
- .title{
- text-align: center;
- padding: 40upx 0 28upx 0;
- font-size: 38upx;
- color: #030303;
- font-weight: bold;
-
- }
- .wrapp_cont{
- margin: 0 auto;
- font-size: 32upx;
- padding: 20upx 10upx 40upx;
- line-height: 1.5;
- p{
- text-align: center;
- color: #999999;
- }
- }
- }
-
- .footer-cell{
- height: 86upx;
- width: 100%;
- display: flex;
- border-top: 1px solid #f5f5f5;
- box-sizing: border-box;
- .item{
- flex: 1;
- text-align: center;
- color: #000;
- line-height: 86upx;
- font-size: 34upx
- }
- .items{
- color: #56CBC5;
- }
- .confirm-text{
- color: #000000;
- border-left: 1px solid #f5f5f5;
- box-sizing: border-box;
- }
- }
- }
- .fot_box{
- margin-top: 256upx;
- // border-top: 1upx solid #F4F4F4;
- padding: 20upx 38upx 0;
- margin-bottom: 96upx;
- .fot_btn{
- height: 96upx;
- border-radius: 14upx;
- background: #1678FF;
- text-align: center;
- line-height: 96upx;
- color: #fff;
- font-size: 36upx;
- }
- }
- .apply_item_fot{
- padding: 22upx 32upx 36upx;
- border-bottom: 1upx solid #F4F4F4;
- .apply_item_top{
- display: flex;
- align-items: center;
- justify-content: space-between;
- span{
- color: #000;
- font-size: 34upx;
- font-weight: bold;
- }
- }
- .apply_item_fot_input{
- font-size: 30upx;
- margin-top: 52upx;
- }
- }
- .apply_item_bq_phone{
- padding: 20upx 32upx 0;
- border-top: 1upx solid #F4F4F4;
- .apply_item_bq_phone_box{
- height: 346upx;
- border-radius: 20upx;
- background: #F7F7F7;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- border:1upx solid #F7F7F7;
- .img{
- width: 78upx;
- height: 78upx;
- margin-bottom: 50upx;
- }
- .imgs{
- width: 100%;
- height: 100%;
- border-radius: 20upx;
- }
- span{
- color: #B6B6B6;
- font-size: 30upx;
- }
- }
- }
- .uni-input{
- color: #808080;
- font-size: 30upx;
- }
- .apply_item_input_bq{
- justify-content: space-between;
- }
- .apply_item_input_ld{
- justify-content: space-between;
- }
- .apply_box{
- .apply_item_input{
- padding-right: 33upx;
- // border-top: 1upx solid #F4F4F4;
- // display: flex;
- // height: 112upx;
- margin-top: 57upx;
- width: calc(100vw - 33upx);
- margin-left: 33upx;
- box-sizing: border-box;
- // align-items: center;
- .apply_span_x{
- font-size: 32upx;
- color: #363535;
- span{
- margin-left: 24upx;
- font-size: 29upx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #1E1E1E;
- }
- p{
- margin-top: 26upx;
- margin-left: 31upx;
- font-size: 28upx;
- font-family: PingFang SC;
- font-weight: 400;
- color: #1E1E1E;
- }
- }
- .apply_span_xde{
- display: flex;
- align-items: center;
- }
- .apply_span_xl{
- color: #32B16C;
- }
- .apply_span_xltwo{
- color: #ffa200;
- }
- .apply_span_xlfive{
- color: #4c4b4b;
- }
- .apply_span_xlthreo{
- color: #f00404;
- }
- .apply_span_xlforu{
- color: #aaaaaa;
- }
- .apply_span_xla{
- color: #1678FF;
- text-decoration: underline;
- }
- .input_r{
- font-size: 30upx;
- height: 100%;
- flex: 1;
- text-align: right;
- }
- }
- .apply_title_jt{
- height: 130upx;
- border-top: 1upx solid #F4F4F4;
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 0 32upx;
- span{
- font-size: 36upx;
- color: #333;
- font-weight: bold;
- }
- .apply_title_btn{
- width: 160upx;
- height: 60upx;
- font-size: 24upx;
- color: #fff;
- display: flex;
- justify-content: center;
- align-items: center;
- background: #FF568C;
- border-radius: 8upx;
- .img{
- width: 30upx;
- height: 30upx;
- margin-right: 10upx;
- }
- }
- }
- .apply_title_jts{
- border:none;
- }
- .apply_title_jt_item{
- border-bottom: 9upx solid #F4F4F4;
- .apply_item_input_qx{
- color: #FF5185;
- height: 100%;
- display: flex;
- justify-content: center;
- align-items: center;
- height: 112upx;
- font-size: 30upx;
- }
- }
- .apply_item_sfz{
- padding: 42upx 20upx;
- border-bottom: 9upx solid #F4F4F4;
- .apply_item_sfz_title{
- font-weight: bold;
- font-size: 34upx;
- margin-bottom: 40upx;
- margin-left: 2upx;
- }
- .apply_item_phones{
- display: flex;
- justify-content: space-between;
- .apply_item_phone{
- width: 340upx;
- height: 218upx;
- .img{
- width: 100%;
- height: 100%;
- border-radius: 20upx;
- }
- }
- }
- }
- .apply_item_zdxx{
- padding: 0 26upx;
- font-size: 34upx;
- font-weight: bold;
- color: #333;
- height: 112upx;
- line-height: 112upx;
- border: 1upx solid #F4F4F4;
- }
- .qt_div{
- height: 112upx;
- border-top: 1upx solid #F4F4F4;
- padding: 0 32upx;
- border-bottom: 9upx solid #F9F9F9;
- .input_l{
- height: 100%;
- font-size: 30upx;
- }
- }
- }
- .apply_item_img{
- padding: 40upx 30upx;
- .apply_item_img_box{
- width: 186upx;
- height: 186upx;
- display: flex;
- justify-content: center;
- align-items: center;
- flex-direction: column;
- background: #F2F2F2;
- border-radius: 20upx;
- .img{
- width: 78upx;
- height: 78upx;
- margin-bottom: 10upx;
- }
- .imgs{
- width: 100%;
- height: 100%;
- }
- p{
- font-size: 24upx;
- color: #D7D7D7;
- }
- }
- }
- .apply_item_input_cphone{
- padding: 24upx 32upx;
- display: flex;
- justify-content: space-between;
- border-top: 1upx solid #F4F4F4;
- .apply_span_x{
- margin-top: 8upx;
- p{
- font-size: 28upx;
- font-family: PingFang SC;
- font-weight: 400;
- color: #1E1E1E;
- }
-
- span{
- font-size: 29upx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #1E1E1E;
- }
-
- }
- .apply_span_phone{
- width: 186upx;
- height: 186upx;
- display: flex;
- justify-content: center;
- align-items: center;
- background: #F2F2F2;
- flex-direction: column;
- border-radius: 20upx;
- .imgs{
- width: 100%;
- height: 100%;
- border-radius: 20upx;
- }
- .img{
- width: 78upx;
- height: 78upx;
- margin-bottom: 10upx;
- }
- span{
- color: #D7D7D7;
- font-size: 24upx;
- }
- }
- }
- //填写
- .tinxie{
- height: 103upx;
- line-height: 103upx;
- background-color: #F8f8f8;
- font-size: 28upx;
- padding: 0 33upx;
- box-sizing: border-box;
- color: #666;
- }
- .shenf{
- flex: 1;
- text-align: right;
- }
- </style>
|