showIntegralModel.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  1. <template>
  2. <view class="showIntegralModel" v-show="disjunctor">
  3. <view class="showIntegralModel__wrap">
  4. <view class="showIntegralModel__header">
  5. 积分详情
  6. </view>
  7. <view class="showIntegralModel__article">
  8. <view class="showIntegralModel__title">
  9. <view class="showIntegralModel__T">
  10. <view class="showIntegralModel__item">考核项</view>
  11. <view class="showIntegralModel__item">分值</view>
  12. <view class="showIntegralModel__item">实际得分</view>
  13. </view>
  14. </view>
  15. <scroll-view class="showIntegralModel__cc" scroll-y v-if="!loading">
  16. <view class="showIntegralModel__list">
  17. <view class="showIntegralModel__T">
  18. <view class="showIntegralModel__item">响应时间</view>
  19. <view class="showIntegralModel__item">{{orderInfo.grade?orderInfo.grade.estimateResponseGrade:'-'}}</view>
  20. <view class="showIntegralModel__item">{{orderInfo.grade?orderInfo.grade.responseGrade:'-'}}</view>
  21. </view>
  22. <view class="showIntegralModel__text" v-if="orderInfo.grade"
  23. :class="{pd:orderInfo.grade?(orderInfo.grade.responseDetails?true:false):false}">
  24. {{orderInfo.grade.responseDetails?'('+orderInfo.grade.responseDetails+')':''}}
  25. </view>
  26. </view>
  27. <view class="showIntegralModel__list">
  28. <view class="showIntegralModel__T">
  29. <view class="showIntegralModel__item">到达时间</view>
  30. <view class="showIntegralModel__item">{{orderInfo.grade?orderInfo.grade.estimateArriveGrade:'-'}}</view>
  31. <view class="showIntegralModel__item">{{orderInfo.grade?orderInfo.grade.arriveGrade:'-'}}</view>
  32. </view>
  33. <view class="showIntegralModel__text" v-if="orderInfo.grade"
  34. :class="{pd:orderInfo.grade?(orderInfo.grade.arriveDetails?true:false):false}">
  35. {{orderInfo.grade.arriveDetails?'('+orderInfo.grade.arriveDetails+')':''}}
  36. </view>
  37. </view>
  38. <view class="showIntegralModel__list">
  39. <view class="showIntegralModel__T">
  40. <view class="showIntegralModel__item">执行时间</view>
  41. <view class="showIntegralModel__item">{{orderInfo.grade?orderInfo.grade.estimateExecutionGrade:'-'}}
  42. </view>
  43. <view class="showIntegralModel__item">{{orderInfo.grade?orderInfo.grade.executionGrade:'-'}}</view>
  44. </view>
  45. <view class="showIntegralModel__text" v-if="orderInfo.grade"
  46. :class="{pd:orderInfo.grade?(orderInfo.grade.executionDetails?true:false):false}">
  47. {{orderInfo.grade.executionDetails?'('+orderInfo.grade.executionDetails+')':''}}
  48. </view>
  49. </view>
  50. <view class="showIntegralModel__list">
  51. <view class="showIntegralModel__T">
  52. <view class="showIntegralModel__item">基础分</view>
  53. <view class="showIntegralModel__item">{{orderInfo.grade?orderInfo.grade.estimateBaseGrade:'-'}}</view>
  54. <view class="showIntegralModel__item">{{orderInfo.grade?orderInfo.grade.baseGrade:'-'}}</view>
  55. </view>
  56. <view class="showIntegralModel__text" v-if="orderInfo.grade"
  57. :class="{pd:orderInfo.grade?(orderInfo.grade.baseDetails?true:false):false}">
  58. {{orderInfo.grade.baseDetails?'('+orderInfo.grade.baseDetails+')':''}}
  59. </view>
  60. </view>
  61. <!-- <view class="showIntegralModel__list">
  62. <view class="showIntegralModel__T">
  63. <view class="showIntegralModel__item">评价分</view>
  64. <view class="showIntegralModel__item">{{orderInfo.grade?orderInfo.grade.estimateEvaluationGrade:'-'}}
  65. </view>
  66. <view class="showIntegralModel__item">{{orderInfo.grade?orderInfo.grade.evaluationGrade:'-'}}</view>
  67. </view>
  68. <view class="showIntegralModel__text" v-if="orderInfo.grade"
  69. :class="{pd:orderInfo.grade?(orderInfo.grade.evaluationDetails?true:false):false}">
  70. {{orderInfo.grade.evaluationDetails?'('+orderInfo.grade.evaluationDetails+')':''}}
  71. </view>
  72. </view> -->
  73. <view class="showIntegralModel__list" v-if="orderInfo.taskType && (orderInfo.taskType.associationType.value === 'patientTransport' || orderInfo.taskType.associationType.value === 'inspect')">
  74. <view class="showIntegralModel__T">
  75. <view class="showIntegralModel__item">陪检方式分</view>
  76. <view class="showIntegralModel__item">{{orderInfo.grade?orderInfo.grade.estimateInspectModeGrade:'-'}}
  77. </view>
  78. <view class="showIntegralModel__item">{{orderInfo.grade?orderInfo.grade.inspectModeGrade:'-'}}</view>
  79. </view>
  80. <view class="showIntegralModel__text" v-if="orderInfo.grade"
  81. :class="{pd:orderInfo.grade?(orderInfo.grade.inspectModeDetails?true:false):false}">
  82. {{orderInfo.grade.inspectModeDetails?'('+orderInfo.grade.inspectModeDetails+')':''}}
  83. </view>
  84. </view>
  85. <view class="showIntegralModel__list">
  86. <view class="showIntegralModel__T">
  87. <view class="showIntegralModel__item">楼栋分</view>
  88. <view class="showIntegralModel__item">{{orderInfo.grade?orderInfo.grade.estimateBuildingGrade:'-'}}</view>
  89. <view class="showIntegralModel__item">{{orderInfo.grade?orderInfo.grade.buildingGrade:'-'}}</view>
  90. </view>
  91. <view class="showIntegralModel__text" v-if="orderInfo.grade"
  92. :class="{pd:orderInfo.grade?(orderInfo.grade.buildingDetails?true:false):false}">
  93. {{orderInfo.grade.buildingDetails?'('+orderInfo.grade.buildingDetails+')':''}}
  94. </view>
  95. </view>
  96. <view class="showIntegralModel__list">
  97. <view class="showIntegralModel__T">
  98. <view class="showIntegralModel__item">多人积分分配得分</view>
  99. <view class="showIntegralModel__item">{{orderInfo.grade?orderInfo.grade.estimateMultiplayerModeGrade:'-'}}</view>
  100. <view class="showIntegralModel__item">{{orderInfo.grade?orderInfo.grade.multiplayerModeGrade:'-'}}</view>
  101. </view>
  102. <view class="showIntegralModel__text" v-if="orderInfo.grade"
  103. :class="{pd:orderInfo.grade?(orderInfo.grade.multiplayerModeDetails?true:false):false}">
  104. {{orderInfo.grade.multiplayerModeDetails?'('+orderInfo.grade.multiplayerModeDetails+')':''}}
  105. </view>
  106. </view>
  107. <view class="showIntegralModel__list">
  108. <view class="showIntegralModel__T">
  109. <view class="showIntegralModel__item">特殊科室追加分</view>
  110. <view class="showIntegralModel__item">{{orderInfo.grade?orderInfo.grade.estimateDeptGrade:'-'}}</view>
  111. <view class="showIntegralModel__item">{{orderInfo.grade?orderInfo.grade.deptGrade:'-'}}</view>
  112. </view>
  113. <view class="showIntegralModel__text" v-if="orderInfo.grade"
  114. :class="{pd:orderInfo.grade?(orderInfo.grade.deptDetails?true:false):false}">
  115. {{orderInfo.grade.deptDetails?'('+orderInfo.grade.deptDetails+')':''}}
  116. </view>
  117. </view>
  118. <view class="showIntegralModel__list">
  119. <view class="showIntegralModel__T">
  120. <view class="showIntegralModel__item">最终得分</view>
  121. <view class="showIntegralModel__item">{{orderInfo.grade?orderInfo.grade.estimateGradeTotal:'-'}}</view>
  122. <view class="showIntegralModel__item">{{orderInfo.grade?orderInfo.grade.gradeTotal:'-'}}</view>
  123. </view>
  124. <view class="showIntegralModel__text" v-if="orderInfo.grade"
  125. :class="{pd:orderInfo.grade?(orderInfo.grade.totalDetails?true:false):false}">
  126. {{orderInfo.grade.totalDetails?'('+orderInfo.grade.totalDetails+')':''}}
  127. </view>
  128. </view>
  129. </scroll-view>
  130. </view>
  131. <view class="showIntegralModel__footer">
  132. <view v-if="operate.know" class="showIntegralModel__know" @click="know" hover-class="seimin-btn-hover">
  133. {{ operate.know || "" }}
  134. </view>
  135. </view>
  136. </view>
  137. </view>
  138. </template>
  139. <script>
  140. import {
  141. get
  142. } from "../../http/http.js";
  143. export default {
  144. data() {
  145. return {
  146. orderInfo: {},
  147. loading: false
  148. };
  149. },
  150. props: {
  151. // 显示隐藏
  152. disjunctor: {
  153. type: Boolean,
  154. default: false,
  155. },
  156. // 工单ID
  157. orderId: {
  158. type: Number
  159. },
  160. // 时间戳
  161. timestamp: {
  162. type: Number
  163. },
  164. // 操作按钮文字
  165. operate: {
  166. type: Object,
  167. default: () => {
  168. return {
  169. know: "知道了",
  170. };
  171. },
  172. },
  173. },
  174. methods: {
  175. // 知道了
  176. know() {
  177. this.$emit("know");
  178. },
  179. //获取积分详情项
  180. getIntegralList() {
  181. uni.showLoading({
  182. title: '加载中',
  183. mask: true
  184. });
  185. this.loading = true;
  186. get('/api/fetchData/workOrder/' + this.orderId).then(res => {
  187. uni.hideLoading();
  188. this.loading = false;
  189. if (res.status == 200) {
  190. this.orderInfo = res.data;
  191. }
  192. })
  193. }
  194. },
  195. watch: {
  196. timestamp(newVal) {
  197. this.getIntegralList();
  198. }
  199. },
  200. };
  201. </script>
  202. <style lang="less">
  203. .showIntegralModel {
  204. position: fixed;
  205. left: 0;
  206. right: 0;
  207. top: 0;
  208. bottom: 0;
  209. background-color: rgba(0, 0, 0, 0.2);
  210. z-index: 999999;
  211. .showIntegralModel__wrap {
  212. width: 100vw;
  213. height: 100vh;
  214. position: absolute;
  215. left: 50%;
  216. top: 50%;
  217. transform: translate(-50%, -50%);
  218. background-color: #fff;
  219. border-radius: 12rpx;
  220. .showIntegralModel__header {
  221. font-size: 36rpx;
  222. color: #000;
  223. height: 84rpx;
  224. display: flex;
  225. justify-content: center;
  226. align-items: center;
  227. }
  228. .showIntegralModel__article {
  229. overflow: hidden;
  230. margin: 0 16rpx 16rpx;
  231. height: calc(100% - 200rpx);
  232. background-color: rgb(249, 250, 251);
  233. border: 2rpx solid rgb(229, 233, 237);
  234. border-radius: 12rpx;
  235. box-sizing: border-box;
  236. .showIntegralModel__cc {
  237. height: calc(100vh - 274rpx);
  238. }
  239. .showIntegralModel__title,
  240. .showIntegralModel__list {
  241. border-bottom: 2rpx solid rgb(229, 233, 237);
  242. .showIntegralModel__T {
  243. display: flex;
  244. height: 72rpx;
  245. .showIntegralModel__item {
  246. flex: 1;
  247. display: flex;
  248. justify-content: center;
  249. align-items: center;
  250. }
  251. }
  252. .showIntegralModel__text {
  253. word-break: break-all;
  254. text-align: center;
  255. font-size: 28rpx;
  256. &.pd {
  257. padding-bottom: 16rpx;
  258. }
  259. }
  260. }
  261. }
  262. .showIntegralModel__footer {
  263. box-sizing: border-box;
  264. height: 100rpx;
  265. border-top: 2rpx solid rgb(229, 233, 237);
  266. display: flex;
  267. align-items: center;
  268. view {
  269. height: 100%;
  270. display: flex;
  271. align-items: center;
  272. justify-content: center;
  273. font-size: 36rpx;
  274. color: rgb(102, 102, 102);
  275. position: relative;
  276. }
  277. .showIntegralModel__know {
  278. background-color: #fff;
  279. flex: 1;
  280. color: rgb(73, 184, 86);
  281. }
  282. }
  283. }
  284. }
  285. </style>