examinationDetail.vue 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  1. <!-- 资质审核-->
  2. <template>
  3. <view id="register">
  4. <viwe v-if="status==0" class="tip">信息正在审核中,请耐心等待...</viwe>
  5. <viwe v-if="status==2" class="reject">{{form.centerAuditStatus==2?'您提交的审核被驳回,驳回原因为:'+form.centerAuditCause:'您提交的审核被驳回,驳回原因为:'+form.leadAuditCause}}</viwe>
  6. <view class="register_li">
  7. <view class="register_li_min">
  8. <img class="icon_img" src="@/pages_manage/images/icon_zgsq_sqr.png">
  9. <view>申请人:</view>
  10. <input v-model="form.applyUser" disabled type="text" >
  11. </view>
  12. <view class="register_li_min" style="border: none;">
  13. <img class="icon_img" src="@/pages_manage/images/icon_zgsq_dhh.png">
  14. <view>联系方式:</view>
  15. <input v-model="form.phone" disabled type="text" >
  16. </view>
  17. </view>
  18. <view class="register_li">
  19. <view class="register_li_min" v-for="(item,index) in form.airBottlelist" style="border-bottom:0;" >
  20. <view></view>
  21. <view>{{item.airName}}-{{item.configName}}:</view>
  22. <input v-model="'数量:'+item.bottleNumber" disabled type="text" >
  23. </view>
  24. </view>
  25. <view class="register_li">
  26. <view class="register_li_min">
  27. <view></view>
  28. <view>实验地点:</view>
  29. <input v-model="form.location" disabled type="text" >
  30. </view>
  31. <!-- 使用期限 -->
  32. <view class="register_li_min2">
  33. <view><text style="color: #f00;margin-right: 10rpx;"></text>使用期限:</view>
  34. <picker mode="date" disabled @change="startChange($event)">
  35. <input class="picker-text" v-model="form.startTime" disabled type="text" placeholder="开始时间">
  36. </picker>
  37. <view>-</view>
  38. <picker mode="date" disabled @change="endChange($event)">
  39. <input class="picker-text2" v-model="form.endTime" disabled type="text" placeholder="结束时间">
  40. </picker>
  41. </view>
  42. <view class="register_li_min">
  43. <view></view>
  44. <view>气体用途:</view>
  45. <input v-model="form.gasUse" disabled type="text" >
  46. </view>
  47. <view class="register_li_min">
  48. <view></view>
  49. <view>安全措施:</view>
  50. <input v-model="form.safetyPrecautions" disabled type="text" >
  51. </view>
  52. <view class="issue_li" style="border-bottom:0;" @click="lookItem(form.applyCertificate)">
  53. <view></view>
  54. <view>用气申请表:</view>
  55. <img class="issue_img" :src="baseUrl+form.applyCertificate">
  56. </view>
  57. </view>
  58. <view class="sub_btn" v-if="status=='2'" @click="submitForm()">重新申请</view>
  59. </view>
  60. </template>
  61. <script>
  62. import {qualificationDetail} from '@/api/apiDemo/index.js'
  63. import { config } from '@/api/request/config.js'
  64. export default {
  65. data() {
  66. return {
  67. baseUrl:config.base_url,
  68. form:{},
  69. id:'',
  70. status:null,
  71. }
  72. },
  73. onLoad(option) {
  74. if(decodeURIComponent(option.item)){
  75. this.id=JSON.parse(decodeURIComponent(option.item)).id;
  76. this.status=JSON.parse(decodeURIComponent(option.item)).remark;
  77. }
  78. },
  79. onShow(){
  80. },
  81. methods: {
  82. //获取详情
  83. async getInfo(){
  84. let _this = this;
  85. const {data} = await qualificationDetail({id:this.id})
  86. if(data.code==200){
  87. let res=data.data
  88. _this.form=res.apply;
  89. _this.form.airBottlelist=res.airBottlelist
  90. }
  91. },
  92. lookItem(item){
  93. //查看图片
  94. wx.previewImage({
  95. urls: [config.base_url+item], //需要预览的图片http链接列表,多张的时候,url直接写在后面就行了
  96. current: '', // 当前显示图片的http链接,默认是第一个
  97. success: function(res) {},
  98. fail: function(res) {},
  99. complete: function(res) {},
  100. })
  101. },
  102. //重新提交
  103. async submitForm(){
  104. uni.redirectTo({
  105. url:'/pages_manage/gasBottle/examination/examinationAdd?status=1&id='+this.id
  106. });
  107. },
  108. },
  109. mounted() {
  110. this.getInfo();
  111. }
  112. }
  113. </script>
  114. <style lang="stylus" scoped>
  115. #register{
  116. height:auto;
  117. width:100%;
  118. display flex;
  119. flex-direction column;
  120. padding-bottom: 220rpx;
  121. /* 审核中 */
  122. .tip{
  123. width: 750rpx;
  124. background: rgba(255,144,0,0.2);
  125. font-size: 28rpx;
  126. font-family: PingFang SC;
  127. font-weight: 500;
  128. color: #FF9000;
  129. line-height: 28rpx;
  130. padding: 36rpx 20rpx;
  131. box-sizing: border-box;
  132. }
  133. /* 驳回 */
  134. .reject{
  135. width: 750rpx;
  136. background: #F3DCDC;
  137. font-size: 28rpx;
  138. font-family: PingFang SC;
  139. font-weight: 500;
  140. color: #DC0000;
  141. line-height: 36rpx;
  142. padding: 36rpx 20rpx;
  143. box-sizing: border-box;
  144. }
  145. .register_li{
  146. background #fff;
  147. border-radius:20rpx;
  148. margin:20rpx 20rpx 0;
  149. padding:20rpx 0;
  150. box-sizing: border-box;
  151. .register_li_min{
  152. margin:0 26rpx;
  153. display flex;
  154. align-items center;
  155. border-bottom: 1px solid #F5F5F5;
  156. .icon_img{
  157. width: 30rpx;
  158. height: 30rpx;
  159. margin-right: 12rpx;
  160. }
  161. view{
  162. line-height:100rpx;
  163. font-size:28rpx;
  164. }
  165. view:nth-child(1){
  166. color:red;
  167. line-height:28rpx;
  168. margin-right: 12rpx;
  169. }
  170. view:nth-child(2){
  171. //width:140rpx;
  172. font-size: 28rpx;
  173. font-family: PingFang SC;
  174. font-weight: 500;
  175. color: #999999;
  176. }
  177. >input{
  178. flex:1;
  179. text-align: right;
  180. font-size: 24rpx;
  181. font-family: PingFang SC;
  182. font-weight: 500;
  183. color: #333333;
  184. }
  185. }
  186. /* 时间 */
  187. .register_li_min2{
  188. margin:0 26rpx;
  189. border-bottom: 1px solid #f5f5f5;
  190. height: 100rpx;
  191. display: flex;
  192. justify-content: flex-start;
  193. align-items: center;
  194. >view:nth-child(1){
  195. font-size: 28rpx;
  196. font-family: PingFang SC;
  197. font-weight: 500;
  198. color: #999999;
  199. line-height: 100rpx;
  200. margin-right: 120rpx;
  201. }
  202. .picker-text{
  203. font-size: 24rpx;
  204. font-family: PingFang SC;
  205. font-weight: 500;
  206. color: #333333;
  207. line-height: 100rpx;
  208. width: 188rpx;
  209. }
  210. >view:nth-child(2){
  211. font-size: 24rpx;
  212. font-family: PingFang SC;
  213. font-weight: 500;
  214. color: #333333;
  215. line-height: 100rpx;
  216. }
  217. .picker-text2{
  218. font-size: 24rpx;
  219. font-family: PingFang SC;
  220. font-weight: 500;
  221. color: #333333;
  222. line-height: 100rpx;
  223. width: 188rpx;
  224. text-align: right;
  225. }
  226. }
  227. .issue_li{
  228. margin:34rpx 26rpx 0;
  229. display flex;
  230. border-bottom: 1px solid #F5F5F5;
  231. view:nth-child(1){
  232. color:red;
  233. line-height:28rpx;
  234. margin-right: 12rpx;
  235. }
  236. view:nth-child(2){
  237. //width:140rpx;
  238. font-size: 28rpx;
  239. font-family: PingFang SC;
  240. font-weight: 500;
  241. color: #999999;
  242. }
  243. .issue_img{
  244. width: 210rpx;
  245. height: 210rpx;
  246. border-radius: 10rpx;
  247. margin-left:250rpx;
  248. }
  249. }
  250. }
  251. /* 按钮 */
  252. .sub_btn{
  253. width: 650rpx;
  254. height: 100rpx;
  255. background: #0183FA;
  256. border-radius: 20rpx;
  257. font-size: 28rpx;
  258. font-family: PingFang SC;
  259. font-weight: 500;
  260. color: #FFFFFF;
  261. line-height: 100rpx;
  262. text-align: center;
  263. margin-left: 50rpx;
  264. position: fixed;
  265. bottom:30rpx;
  266. z-index: 1000;
  267. }
  268. }
  269. /deep/.input-value-border{
  270. display :none !important;
  271. }
  272. </style>