aptitudeAuditDetail.vue 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  1. <!-- 资质审核-->
  2. <template>
  3. <view id="register">
  4. <viwe v-if="auditStatus==1" class="tip">已通过审核...</viwe>
  5. <viwe v-if="auditStatus==2 || auditStatus==0" 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" v-if="status=='zg'">
  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. <view class="register_li_min">
  32. <view></view>
  33. <view>使用期限-开始:</view>
  34. <input v-model="form.startTime" disabled type="text" >
  35. </view>
  36. <view class="register_li_min">
  37. <view></view>
  38. <view>使用期限-结束:</view>
  39. <input v-model="form.endTime" disabled type="text" >
  40. </view>
  41. <view class="register_li_min">
  42. <view></view>
  43. <view>气体用途:</view>
  44. <input v-model="form.gasUse" disabled type="text" >
  45. </view>
  46. <view class="register_li_min">
  47. <view></view>
  48. <view>安全措施:</view>
  49. <input v-model="form.safetyPrecautions" disabled type="text" >
  50. </view>
  51. <view class="issue_li" style="border-bottom:0;" @click="lookItem(form.applyCertificate)">
  52. <view></view>
  53. <view>用气申请表:</view>
  54. <img class="issue_img" :src="baseUrl+form.applyCertificate">
  55. </view>
  56. </view>
  57. <view class="sub_btn" v-if="status=='2'" @click="submitForm()">重新申请</view>
  58. </view>
  59. </template>
  60. <script>
  61. import {auditDetail,qualificationDetail} from '@/api/apiDemo/index.js'
  62. import { config } from '@/api/request/config.js'
  63. export default {
  64. data() {
  65. return {
  66. baseUrl:config.base_url,
  67. form:{},
  68. id:'',
  69. status:null,
  70. auditStatus:null,// 0 未审核 1.通过 2.驳回)
  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. this.auditStatus=JSON.parse(decodeURIComponent(option.item)).auditStatus;
  78. }
  79. if(this.status=='yq'){
  80. wx.setNavigationBarTitle({
  81. title: '用气申请',
  82. })
  83. }else if(this.status=='zg'){
  84. wx.setNavigationBarTitle({
  85. title: '资格申请',
  86. })
  87. }
  88. },
  89. onShow(){
  90. },
  91. methods: {
  92. //获取详情
  93. async getInfo(){
  94. let _this = this;
  95. if(this.status=='yq'){
  96. const {data} = await auditDetail({id:this.id})
  97. if(data.code==200){
  98. let res=data.data
  99. _this.form=res.apply;
  100. _this.form.airBottlelist=res.airBottlelist
  101. }
  102. }else if(this.status=='zg'){
  103. const {data} = await qualificationDetail({id:this.id})
  104. if(data.code==200){
  105. let res=data.data
  106. _this.form=res.apply;
  107. _this.form.airBottlelist=res.airBottlelist
  108. }
  109. }
  110. },
  111. lookItem(item){
  112. //查看图片
  113. wx.previewImage({
  114. urls: [config.base_url+item], //需要预览的图片http链接列表,多张的时候,url直接写在后面就行了
  115. current: '', // 当前显示图片的http链接,默认是第一个
  116. success: function(res) {},
  117. fail: function(res) {},
  118. complete: function(res) {},
  119. })
  120. },
  121. //重新提交
  122. async submitForm(){
  123. uni.redirectTo({
  124. url:'/pages_manage/gasBottle/examination/examinationAdd?status=1&id='+this.id
  125. });
  126. },
  127. },
  128. mounted() {
  129. this.getInfo();
  130. }
  131. }
  132. </script>
  133. <style lang="stylus" scoped>
  134. #register{
  135. height:auto;
  136. width:100%;
  137. display flex;
  138. flex-direction column;
  139. padding-bottom: 220rpx;
  140. /* 审核通过 */
  141. .tip{
  142. width: 750rpx;
  143. background: rgba(1,204,39,0.2);
  144. font-size: 28rpx;
  145. font-family: PingFang SC;
  146. font-weight: 500;
  147. color: #01CC27;
  148. line-height: 28rpx;
  149. padding: 36rpx 20rpx;
  150. box-sizing: border-box;
  151. }
  152. /* 驳回 */
  153. .reject{
  154. width: 750rpx;
  155. background: #F3DCDC;
  156. font-size: 28rpx;
  157. font-family: PingFang SC;
  158. font-weight: 500;
  159. color: #DC0000;
  160. line-height: 36rpx;
  161. padding: 36rpx 20rpx;
  162. box-sizing: border-box;
  163. }
  164. .register_li{
  165. background #fff;
  166. border-radius:20rpx;
  167. margin:20rpx 20rpx 0;
  168. padding:20rpx 0;
  169. box-sizing: border-box;
  170. .register_li_min{
  171. margin:0 26rpx;
  172. display flex;
  173. align-items center;
  174. border-bottom: 1px solid #F5F5F5;
  175. .icon_img{
  176. width: 30rpx;
  177. height: 30rpx;
  178. margin-right: 12rpx;
  179. }
  180. view{
  181. line-height:100rpx;
  182. font-size:28rpx;
  183. }
  184. view:nth-child(1){
  185. color:red;
  186. line-height:28rpx;
  187. margin-right: 12rpx;
  188. }
  189. view:nth-child(2){
  190. //width:140rpx;
  191. font-size: 28rpx;
  192. font-family: PingFang SC;
  193. font-weight: 500;
  194. color: #999999;
  195. }
  196. >input{
  197. flex:1;
  198. text-align: right;
  199. font-size: 24rpx;
  200. font-family: PingFang SC;
  201. font-weight: 500;
  202. color: #333333;
  203. }
  204. }
  205. .issue_li{
  206. margin:34rpx 26rpx 0;
  207. display flex;
  208. border-bottom: 1px solid #F5F5F5;
  209. view:nth-child(1){
  210. color:red;
  211. line-height:28rpx;
  212. margin-right: 12rpx;
  213. }
  214. view:nth-child(2){
  215. //width:140rpx;
  216. font-size: 28rpx;
  217. font-family: PingFang SC;
  218. font-weight: 500;
  219. color: #999999;
  220. }
  221. .issue_img{
  222. width: 210rpx;
  223. height: 210rpx;
  224. border-radius: 10rpx;
  225. margin-left:250rpx;
  226. }
  227. }
  228. }
  229. /* 按钮 */
  230. .sub_btn{
  231. width: 650rpx;
  232. height: 100rpx;
  233. background: #0183FA;
  234. border-radius: 20rpx;
  235. font-size: 28rpx;
  236. font-family: PingFang SC;
  237. font-weight: 500;
  238. color: #FFFFFF;
  239. line-height: 100rpx;
  240. text-align: center;
  241. margin-left: 50rpx;
  242. position: fixed;
  243. bottom:30rpx;
  244. z-index: 1000;
  245. }
  246. }
  247. /deep/.input-value-border{
  248. display :none !important;
  249. }
  250. </style>