rate.vue 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. <template>
  2. <view class="rate_box">
  3. <view class='cldelista'>
  4. <uni-collapse ref="collapse" v-model="value" >
  5. <!-- :show-arrow='false' -->
  6. <uni-collapse-item title="节点安排" class='cldelista' :border="false" title-border="none" v-for="(ite,idx) in datainfo" :key="idx">
  7. <template v-slot:title>
  8. <view class="flexc contentt">
  9. <view class="flex0 f16 fw cofe">{{ite.hbTime}}</view>
  10. <view class="zdlbtn finbtn2" v-if="ite.isSh=='1'">未审核</view>
  11. <view class="zdlbtn finbtn1" v-if="ite.isSh=='2'">已通过</view>
  12. <view class="zdlbtn finbtn3" v-if="ite.isSh=='3'">未通过</view>
  13. <!-- <view class="zdlbtn finbtn1" v-if="ite.sfwc=='3'">已完成</view> -->
  14. </view>
  15. </template>
  16. <view class="content" >
  17. <!-- 操作按钮 -->
  18. <view class="rate_top">
  19. <!-- 需要判断角色 -->
  20. <view class="rate_topl" v-if="checkPermi(['fgw:jzqk:edit'])" @click="getPutFn(ite)">
  21. <image :src="putimg" class="limg"></image>修改
  22. </view>
  23. <view class="rate_topr" v-if="checkPermi(['fgw:jzqk:remove'])" @click="getDelFn(ite)">
  24. <image :src="delimg" class="rimg"></image>删除
  25. </view>
  26. <view class="rate_topr co28" v-if="checkPermi(['fgw:common:jzqksh'])" @click="getShFn(ite.id)">
  27. <image :src="shimg" class="rimg"></image>审核
  28. </view>
  29. </view>
  30. <view class="contenta flexcj">
  31. <view class="tit">汇报时间</view>
  32. <view class="txt">{{ite.hbTime}}</view>
  33. </view>
  34. <view class="contenta flexcj">
  35. <view class="tit">是否完成节点</view>
  36. <view class="txt">{{ite.isJd=='Y'?'是':'否'}}</view>
  37. </view>
  38. <view class="contenta flexcj">
  39. <view class="tit">是否建设</view>
  40. <view class="txt">{{ite.isJs=='Y'?'是':'否'}}</view>
  41. </view>
  42. <view class="contenta flexcj">
  43. <view class="tit">是否纳统</view>
  44. <view class="txt">{{ite.isNt=='Y'?'是':'否'}}</view>
  45. </view>
  46. <view class="contenta flexcj">
  47. <view class="tit">是否竣工</view>
  48. <view class="txt">{{ite.isJg=='Y'?'是':'否'}}</view>
  49. </view>
  50. <view class="contenta flexcj" v-if="ite.isNt=='Y'">
  51. <view class="tit">纳统金额(万元)</view>
  52. <view class="txt">{{ite.nttz}}</view>
  53. </view>
  54. <view class="contenta flexcj">
  55. <view class="tit">项目进展情况</view>
  56. <view class="txt">{{ite.jzqk}}</view>
  57. </view>
  58. <view class="contenta flexcj">
  59. <view class="tit">施工力量</view>
  60. <view class="txt">{{ite.sgll}}</view>
  61. </view>
  62. <view class="contenta ">
  63. <view class="tit mb10">附件</view>
  64. <view class="txt flexcj cldelistbf mb10" v-for="(fjite,fjidx) in ite.fjList" :key="'fj-'+fjidx">
  65. <view class="flext f16 c6">
  66. <view class="imgl">
  67. <image :src="wimg" ></image>
  68. </view>
  69. <view>{{fjite.fjName}}</view>
  70. </view>
  71. <view class="flexc f16 co28 flex0" @click="getDown(fjite.path)">
  72. <image :src="downimg" class="imgr"></image>
  73. 预览</view>
  74. </view>
  75. </view>
  76. </view>
  77. </uni-collapse-item>
  78. </uni-collapse>
  79. <!-- zsyzFjList -->
  80. </view>
  81. <!-- <view class='cldelista cldelistb'>
  82. <view class="contenta">
  83. <view class="tit">备注</view>
  84. <view class="txt">项目备注信息项目备注信息项目备注信息项,目备 注信息项目备注信息项目备注信息项目备注信息, 项目备注信息项目备注信息。</view>
  85. </view>
  86. </view> -->
  87. </view>
  88. </template>
  89. <script>
  90. import { selectDictLabel } from '@/utils/common.js';
  91. import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
  92. export default{
  93. props:{
  94. datainfo:{
  95. // type: Object,
  96. // default () {
  97. // return {}
  98. // }
  99. },
  100. },
  101. data(){
  102. return{
  103. upimg:require('@/static/images/index/up.png'),
  104. wimg:require('@/static/images/index/wicon.png'),
  105. downimg:require('@/static/images/index/down.png'),
  106. putimg:require("@/static/images/new/index/updico.png"),
  107. delimg:require("@/static/images/new/index/del.png"),
  108. shimg:require("@/static/images/new/index/hbpoint.png"),
  109. value:[],
  110. valuetwo:[],
  111. content: '折叠内容主体,可自定义内容及样式,点击按钮修改内容使高度发生变化。',
  112. }
  113. },
  114. filters: {
  115. kaType(data, list) {
  116. return selectDictLabel(list, data);
  117. }
  118. },
  119. methods:{
  120. checkPermi, checkRole,
  121. getDown(url){
  122. this.$emit('getDown',url)
  123. },
  124. getYzAdr(data){
  125. return selectDictLabel(this.yzadr, data);
  126. },
  127. getCytype(data){
  128. return selectDictLabel(this.cytype, data);
  129. },
  130. getProject(data){
  131. return selectDictLabel(this.projectlist, data);
  132. },
  133. getBackground(data){
  134. return selectDictLabel(this.backgroundlist, data);
  135. },
  136. getPutFn(e){
  137. this.$emit('getPutFn',e)
  138. },
  139. getShFn(id){
  140. this.$emit('getShFn',id)
  141. },
  142. getDelFn(e){
  143. var that=this;
  144. uni.showModal({
  145. title: '确认删除',
  146. content: "是否确认删除",
  147. cancelText: '取消',
  148. confirmText: '确认',
  149. success: function(res) {
  150. if (res.confirm) {
  151. that.$emit('getDelFn',e)
  152. } else if (res.cancel) {
  153. }
  154. }
  155. });
  156. },
  157. }
  158. }
  159. </script>
  160. <style lang="scss" scoped>
  161. .rate_box{padding-top: 100rpx;}
  162. .cldelista{
  163. .contentt{padding:48rpx 28rpx;
  164. .cldelistz{display: flex;align-items: center;justify-content: flex-end;
  165. image{width: 26rpx;height: 20rpx;margin-left: 20rpx;transition: all .5s; }
  166. &.act{
  167. image{transform: rotate(-180deg);}
  168. }
  169. }
  170. }
  171. .content{padding: 0rpx 28rpx 10rpx 28rpx;border-bottom: 2rpx solid #E5E5E5;
  172. &:last-of-type{border-bottom: none;}
  173. }
  174. .contenta{padding: 22rpx 0;
  175. .tit{font-size: 32rpx;font-weight: bold;color: #343434;flex: 0 0 auto;margin-right: 20rpx;}
  176. .txt{font-size: 32rpx;color: #666666;}
  177. }
  178. &.cldelistb{padding: 48rpx 28rpx;
  179. .tit{margin-bottom: 0;}
  180. }
  181. .cldelistbf {
  182. image{margin-right: 18rpx;flex: 0 0 auto;}
  183. .imgl{width: 40rpx;height: 44rpx;display: flex;align-items: center;justify-content: center;margin-right: 16rpx;
  184. image{width: 38rpx;height: 30rpx;}
  185. }
  186. .imgr{width: 36rpx;height: 32rpx;}
  187. }
  188. }
  189. // 操作按钮
  190. .rate_top{display: flex;align-items: center;justify-content: space-between;margin-bottom: 10rpx;
  191. .rate_topl{height: 70rpx;display: flex;align-items: center;font-size: 32rpx;font-weight: 500;color: #20ACCF;
  192. .limg{width: 26rpx;height: 34rpx;margin-right: 20rpx;}
  193. }
  194. .rate_topr{height: 70rpx;display: flex;align-items: center;font-size: 32rpx;font-weight: 500;color: #FA2300;
  195. .rimg{width: 32rpx;height: 32rpx;margin-right: 20rpx;}
  196. }
  197. }
  198. </style>