nucleindetail.vue 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. <template>
  2. <view class="detail">
  3. <view class="dnlist" >
  4. <view class="dnlist_tit">基本信息</view>
  5. <view class="dnlist_box">
  6. <!-- 阴性 -->
  7. <!-- <image :src="nuysimg" class="dnlist_yimg" v-if="nucStatus=='Yi'"></image> -->
  8. <!-- 阳性 -->
  9. <!-- <image :src="nuyimg" class="dnlist_yimg" v-else></image> -->
  10. <view class="dnlist_flex">
  11. <view class="dnlist_fa">身份证号</view>
  12. <view class="dnlist_fb">{{formData.zjhm||""}}</view>
  13. </view>
  14. <view class="dnlist_flex">
  15. <view class="dnlist_fa">姓名</view>
  16. <view class="dnlist_fb">{{formData.xm||""}}</view>
  17. </view>
  18. <view class="dnlist_flex"v-if='type==1'>
  19. <view class="dnlist_fa">联系电话(人口信息登记)</view>
  20. <view class="dnlist_fb">{{formData.phoneNum||""}}</view>
  21. </view>
  22. <view class="dnlist_flex">
  23. <view class="dnlist_fa">联系电话(核酸检测登记)</view>
  24. <view class="dnlist_fb">{{formData.lxdh||""}}</view>
  25. </view>
  26. </view>
  27. </view>
  28. <view v-if="type==1">
  29. <view class="dnlist" v-if="navidx==1">
  30. <view class="dnlist_tit">户籍信息</view>
  31. <view class="dnlist_box">
  32. <view class="dnlist_flex">
  33. <view class="dnlist_fa">户籍地址</view>
  34. <view class="dnlist_fb">{{formData.domicileSelect||""}}</view>
  35. </view>
  36. <view class="dnlist_flex">
  37. <view class="dnlist_fa">详细地址</view>
  38. <view class="dnlist_fb">{{formData.nowIn||""}}</view>
  39. </view>
  40. </view>
  41. </view>
  42. <!-- 常住 -->
  43. <view class="dnlist" v-else>
  44. <view class="dnlist_tit">居住信息</view>
  45. <view class="dnlist_box">
  46. <view class="dnlist_flex">
  47. <view class="dnlist_fa">居住地址</view>
  48. <view class="dnlist_fb">{{formData.nowInSelect||""}}</view>
  49. </view>
  50. <view class="dnlist_flex">
  51. <view class="dnlist_fa">详细地址</view>
  52. <view class="dnlist_fb">{{formData.nowXjd||""}}</view>
  53. </view>
  54. </view>
  55. </view>
  56. </view>
  57. <view class="dnlist">
  58. <view class="dnlist_tit">核酸信息</view>
  59. <view class="dnlist_box">
  60. <view class="dnlist_flex" v-if="type!=1">
  61. <view class="dnlist_fa">采集乡镇</view>
  62. <view class="dnlist_fb">{{formData.cjssxq||''}}</view>
  63. </view>
  64. <view class="dnlist_flex">
  65. <view class="dnlist_fa">采集时间</view>
  66. <view class="dnlist_fb">{{formData.cjsj||''}}</view>
  67. </view>
  68. <view class="dnlist_flex">
  69. <view class="dnlist_fa">采集地点</view>
  70. <view class="dnlist_fb">{{formData.cjdd||''}}</view>
  71. </view>
  72. <view class="dnlist_flex">
  73. <view class="dnlist_fa">审核时间</view>
  74. <view class="dnlist_fb">{{formData.jcsj||''}}</view>
  75. </view>
  76. <view class="dnlist_flex">
  77. <view class="dnlist_fa">检验点名称</view>
  78. <view class="dnlist_fb">{{formData.jcdd||''}}</view>
  79. </view>
  80. </view>
  81. </view>
  82. </view>
  83. </template>
  84. <script>
  85. export default{
  86. data(){
  87. return{
  88. nuyimg:require("@/static/image/nuy.png"),
  89. nuysimg:require("@/static/image/nuyi.png"),
  90. show:false,
  91. formData:{},
  92. params:{
  93. zjhm:'',
  94. cjsj:'',
  95. },
  96. navidx:"",//1户籍 0 常住
  97. nucStatus:'Yi',
  98. nucleicAcidStatus:'',
  99. nucstatuslist:[],
  100. type:'0'
  101. }
  102. },
  103. onLoad(option) {
  104. this.type=option.type
  105. if(option.type==1){
  106. this.params.zjhm = option.zjhm;
  107. this.params.cjsj = option.cjsj;
  108. this.navidx=option.navidx;
  109. this.getDetail();
  110. }else{
  111. var id=option.id;
  112. this.getDetailId(id);
  113. }
  114. },
  115. methods:{
  116. nucstatusFn(ite){
  117. return this.selectDictLabel(this.nucstatuslist,ite)
  118. },
  119. // 回显数据字典
  120. selectDictLabel(datas, value) {
  121. var actions = [];
  122. Object.keys(datas).some((key) => {
  123. if (datas[key].dictValue == ('' + value)) {
  124. actions.push(datas[key].dictLabel);
  125. return true;
  126. }
  127. })
  128. return actions.join('');
  129. },
  130. init(){
  131. this.nucleicAcidStatusFn()
  132. // this.frequencyFn()
  133. },
  134. getDetailId(e){
  135. this.$http.get('boman-web-core/core/account/nucleicAcid/detailedJcd/'+e).then(res => {
  136. if(res.code==200){
  137. this.formData=res.data;
  138. }else{
  139. uni.showToast({
  140. title: res.msg,
  141. duration: 1000,
  142. icon: 'none'
  143. });
  144. }
  145. })
  146. },
  147. getDetail(){
  148. // console.log(this.params)
  149. this.$http.get('boman-web-core/core/account/nucleicAcid/detailedInfo',this.params).then(res => {
  150. if(res.code==200){
  151. this.formData=res.data;
  152. }else{
  153. uni.showToast({
  154. title: res.msg,
  155. duration: 1000,
  156. icon: 'none'
  157. });
  158. }
  159. })
  160. },
  161. // 核酸状态的字典值
  162. nucleicAcidStatusFn(){
  163. var that = this;
  164. this.$http.get('system/dict/data/type/sys_hsjl_nucleicAcidStatus').then(res => {
  165. if (res.code == 200) {
  166. that.nucstatuslist = res.data;
  167. // this.nucstatusclass = res.data.map(v => {
  168. // return {
  169. // label: v.dictLabel,
  170. // value: v.dictValue
  171. // }
  172. // })
  173. }
  174. })
  175. },
  176. //次数字典值
  177. // frequencyFn(){
  178. // var that = this;
  179. // this.$http.get('system/dict/data/type/sys_hsjl_frequency').then(res => {
  180. // if (res.code == 200) {
  181. // if (that.formData.hsjlCount) {
  182. // that.hsjlCount = that.selectDictLabel(res.data, that.formData.hsjlCount)
  183. // }
  184. // that.hsjlCountlist = res.data;
  185. // this.hsjlCountclass = res.data.map(v => {
  186. // return {
  187. // label: v.dictLabel,
  188. // value: v.dictValue
  189. // }
  190. // })
  191. // }
  192. // })
  193. // },
  194. }
  195. }
  196. </script>
  197. <style scoped>
  198. .detail{min-height: 100vh;background: #F2F2F2;}
  199. .dnlist_tit{width: 100%;background: #F2F2F2;padding: 14rpx 32rpx;box-sizing: border-box;font-size: 24rpx;font-weight: 500;color: #666666;line-height: 40rpx;}
  200. .dnlist_box{background: #FFFFFF;padding:2rpx 32rpx;position: relative;}
  201. .dnlist_flex{display: flex;align-items: flex-start;line-height: 40rpx;padding: 24rpx 0;}
  202. .dnlist_fa{flex: 0 0 auto;font-size: 28rpx;font-weight: 500;color: #343434;min-width:160rpx ;}
  203. .dnlist_fb{flex: 1;font-size: 28rpx;color: #343434;margin-left: 16rpx;text-align: right;}
  204. .dnlist_fb.col0{color:#00B034;}
  205. .dnlist_fb.colf{color:#FF0000;}
  206. .dnlist_yimg{width: 136rpx;height: 118rpx;position: absolute;right: 74rpx;top: 46rpx;}
  207. </style>