useGasApplyDetail.vue 7.1 KB

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