Info2.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. <template>
  2. <div>
  3. <div class="mui-content" style="padding-top:24px">
  4. <div class=" vongi-qingjiadt mt-10">
  5. <form class="mui-input-group vongi-wybx">
  6. <div class="mui-input-row">
  7. <label>申请人</label>
  8. <span>{{adjustShiftDetail.name}}</span>
  9. </div>
  10. <div class="mui-input-row">
  11. <label>出厂日期</label>
  12. <span>{{adjustShiftDetail.date}}</span>
  13. </div>
  14. <div class="mui-input-row">
  15. <label style="width:100%">申请理由及物品清单</label>
  16. <textarea id="textarea" rows="8" readonly="readonly"
  17. style="
  18. width: 100%;
  19. padding: 0 20px;
  20. "
  21. v-model="adjustShiftDetail.content"></textarea>
  22. </div>
  23. <div class="mui-input-row padd10">
  24. <label>图片附件</label>
  25. <span class="vongi-span vongi-wordcard vongi-meform-pho">
  26. <div class="fyy-upphoto flew" v-if="adjustShiftDetail.images" >
  27. <div class="mui-col-xs-3" v-for="(item,index) in adjustShiftDetail.images.split(',')">
  28. <img :src="item" v-viewer />
  29. </div>
  30. </div>
  31. </span>
  32. </div>
  33. </form>
  34. </div>
  35. <div class=" vongi-qingjiadt mt-10">
  36. <form class="mui-input-group">
  37. <div class="mui-input-row">
  38. <label>申请时间</label>
  39. <span>{{adjustShiftDetail.createTime}}</span>
  40. </div>
  41. <div class="mui-input-row">
  42. <label>审核状态</label>
  43. <span class="" :class="{'colorf8b155':adjustShiftDetail.status=='0','color55f868':adjustShiftDetail.status=='1'||adjustShiftDetail.status=='4','colorfe616c':adjustShiftDetail.status=='2'||adjustShiftDetail.status=='3'}">{{adjustShiftDetail.statusName}}</span></span>
  44. </div>
  45. </form>
  46. </div>
  47. <div class="mui-content-padded vongi-meform-pho" v-if="false">
  48. <div class="vongi-center">
  49. <p class="margin10">核验码</p>
  50. <img src="~$project/assets/img/ma.png" width="80%" />
  51. </div>
  52. </div>
  53. </div>
  54. </div>
  55. </template>
  56. <script>
  57. import * as API from '@/apis-xsy/applyclass'
  58. import * as API_sp from '@/apis-xsy/xsy'
  59. import ExamineDetail from '$project/components/ExamineDetail.vue'
  60. import Common from '$project/components/Common.vue'
  61. import Loading from '$project/components/Loading.vue'
  62. import TopHeader from '$project/components/TopHeader.vue'
  63. import {
  64. mapGetters,
  65. mapMutations
  66. } from 'vuex'
  67. export default {
  68. name: '',
  69. components: {
  70. Common,
  71. Loading,
  72. TopHeader,ExamineDetail
  73. },
  74. data() {
  75. return {
  76. pageTitle: '申请调班详情',
  77. isLoading: false,
  78. id: '',
  79. adjustShiftDetail: {},
  80. examineDetail: {},
  81. only: "test"
  82. }
  83. },
  84. created() {
  85. this.id = this.$route.query.id;
  86. },
  87. methods: {
  88. allowExamine(op){
  89. this.$emit('allowExamine',op);
  90. },
  91. getClass(ac, i) {
  92. var reclass = ""
  93. if (ac.action == "0") {
  94. if (this.only == "test") {
  95. this.only = i;
  96. }
  97. if (this.only == i) {
  98. return "color3385FF"
  99. } else {
  100. return "mui-hidden"
  101. }
  102. }
  103. if (ac.action == "3" || ac.action == "2") {
  104. return "colorfe616c"
  105. }
  106. if (ac.action == "1" || ac.action == "4") {
  107. return "color389E0D"
  108. }
  109. return reclass
  110. },
  111. getAdjustShiftDetail() {
  112. this.isLoading = true;
  113. API.carryThingsDetail(this.id).then(response => {
  114. this.adjustShiftDetail = response;
  115. this.adjustShiftDetail.sp=true;
  116. this.isLoading = false;
  117. this.$emit('getInfo',this.adjustShiftDetail);
  118. }).catch(error => {
  119. this.isLoading = false;
  120. mui.toast(error);
  121. })
  122. },
  123. asynCallBack() {
  124. },
  125. update() {
  126. this.adjustShiftDetail.sp=false;
  127. this.getAdjustShiftDetail();
  128. }
  129. },
  130. mounted() {
  131. this.getAdjustShiftDetail();
  132. },
  133. destroyed() {},
  134. }
  135. </script>
  136. <style src="$project/assets/css/iconfont.css"></style>
  137. <style scoped src="$project/assets/css/xpwyfyy.css"></style>
  138. <style src="$project/assets/css/xsy.css"></style>
  139. <style>
  140. </style>