GetpmProgressReportDTO.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. <template>
  2. <view>
  3. <view style="margin:10px 20px;" v-show="isShow">
  4. <!-- <button type="primary" style="border-radius: 5px;" class="mini-btn" size="mini" @click="modify">修改</button> -->
  5. <button type="primary" style="border-radius: 5px;margin-left:15px;" class="mini-btn" size="mini" @click="workFlow" v-show="isWorkFlow">流程审核</button>
  6. </view>
  7. <uni-list>
  8. <uni-list-item v-if="entity">
  9. <view slot="body" class="slot-box">
  10. <view class="row">
  11. <view class="column-left">工作项名称:</view>
  12. <view class="column-right">{{entity.nodeName}}</view>
  13. </view>
  14. <view class="row">
  15. <view class="column-left">进度计划名称:</view>
  16. <view class="column-right">{{entity.progressName}}</view>
  17. </view>
  18. <view class="row">
  19. <view class="column-left">报告日期:</view>
  20. <view class="column-right">{{entity.reportDate}}</view>
  21. </view>
  22. <view class="row">
  23. <view class="column-left">状态:</view>
  24. <view class="column-right">{{entity.stateName}}</view>
  25. </view>
  26. <view class="row">
  27. <view class="column-left">填报进度:</view>
  28. <view class="column-right progress-box">
  29. <progress :percent="entity.completePercent" show-info stroke-width="3" />
  30. </view>
  31. </view>
  32. <view class="row">
  33. <view class="column-left">实际开始日期:</view>
  34. <view class="column-right">{{entity.actualStartDate}}</view>
  35. </view>
  36. <view class="row">
  37. <view class="column-left">实际结束日期:</view>
  38. <view class="column-right">{{entity.actualFinishDate}} </view>
  39. </view>
  40. <view class="row">
  41. <view class="column-left">执行情况:</view>
  42. <view class="column-right">{{entity.remark}} </view>
  43. </view>
  44. <view class="row">
  45. <view class="column-left">报告人:</view>
  46. <view class="column-right">{{entity.inputPerson}}</view>
  47. </view>
  48. <view class="row">
  49. <view class="column-left">填写日期:</view>
  50. <view class="column-right">{{entity.inputDate}}</view>
  51. </view>
  52. <view class="row">
  53. <view class="column-left">审核人:</view>
  54. <view class="column-right">{{entity.checkPerson}}</view>
  55. </view>
  56. <view class="row">
  57. <view class="column-left">审核日期:</view>
  58. <view class="column-right">{{entity.checkDate}}</view>
  59. </view>
  60. <view class="row">
  61. <view class="column-left">审批进度:</view>
  62. <view class="column-right progress-box">
  63. <progress :percent="entity.checkCompletePercent" show-info stroke-width="3" v-if="entity.checkCompletePercent"/>
  64. </view>
  65. </view>
  66. </view>
  67. </uni-list-item>
  68. </uni-list>
  69. </view>
  70. </template>
  71. <script>
  72. import {
  73. GetpmProgressReportDTO
  74. } from "@/common/api/ProgressApi.js";
  75. import {
  76. Decimal
  77. } from 'decimal.js';
  78. export default {
  79. data() {
  80. return {
  81. entity: {},
  82. isShow:false,
  83. isWorkFlow:false,
  84. procedureName:""
  85. }
  86. },
  87. onLoad() {
  88. //console.info("当前登录状态:" + this.$store.state.isLogin);
  89. //console.info(this);
  90. this.$util.persistLogin(this);
  91. },
  92. created: function() {
  93. this.getDetail();
  94. },
  95. mounted:function(){
  96. },
  97. methods: {
  98. getDetail() {
  99. let that = this;
  100. let id=this.$util.getQuery("id");
  101. GetpmProgressReportDTO(id).then((res) => {
  102. console.info('GetpmProgressReportDTO res',res);
  103. that.entity=res.entity;
  104. if(res.entity.state== 0){
  105. that.isShow=true;
  106. }
  107. else{
  108. that.isShow=false;
  109. }
  110. that.procedureName=res.procedureName;
  111. /* 是否显示流程审核按钮 */
  112. if(!that.$util.isEmpty(that.procedureName)){
  113. if(res.entity.state==0){
  114. that.isWorkFlow=true;
  115. }
  116. else{
  117. that.isWorkFlow=false;
  118. }
  119. console.info('isWorkFlow',that.isWorkFlow);
  120. }
  121. //console.info(that.listData);
  122. });
  123. },
  124. modify: function() { //跳转到修改页面
  125. let id = this.$util.getQuery("id");
  126. },
  127. /* 流程审核按钮点击事件处理 */
  128. workFlow:function(){
  129. let url="../GetWorkFlowProcedureList/GetWorkFlowProcedureList?procedureName="+this.procedureName+"&applicationCode="+this.$util.getQuery("id");
  130. uni.navigateTo({ //跳转到流程控制列表页面
  131. url:url
  132. });
  133. },
  134. }
  135. }
  136. </script>
  137. <style>
  138. /deep/ .uni-section__content-title{
  139. font-size:15px;
  140. font-weight: 600;
  141. }
  142. /deep/ .uni-list-item{
  143. background-color: #f8f8f8;
  144. }
  145. .slot-box{
  146. background-color: #fff;
  147. padding: 5px 8px;
  148. }
  149. </style>