人民医院前端

index.vue 4.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. <template>
  2. <view class="box">
  3. <!-- 步骤条 -->
  4. <view class="set-1" v-show=" showState == 'wxjl' ">
  5. <view class="set-2" :key="index" v-for="(item,index) in options">
  6. <text class="set2-test">{{item.F_ProcessingTime}}</text>
  7. <view class="set-view">
  8. <!-- <view class="setTitle" style="font-size: 15px !important;margin-bottom: 10px;">工单内容</view> -->
  9. <view class="setTable">
  10. <text class="setTitle">处理部门:</text>
  11. <text class="setCon">{{ $mHelper.findParents(departList,item.F_MaintenanceDept) }}</text>
  12. </view>
  13. <view class="setTable">
  14. <text class="setTitle">处理人员:</text>
  15. <text class="setCon">{{ item.username}}</text>
  16. </view>
  17. <view class="setTable">
  18. <text class="setTitle">处理结果:</text>
  19. <text class="setCon">{{item.F_Result}}</text>
  20. </view>
  21. <view class="setTable">
  22. <text class="setTitle">相关附件:</text>
  23. <uni-file-picker readonly :value="getFileData(item.FileUrl)" :imageStyles="imageStyles" file-mediatype="image" />
  24. </view>
  25. </view>
  26. </view>
  27. <view class="set-2">
  28. </view>
  29. </view>
  30. <view class="set-1" v-show=" showState == 'gdlc' ">
  31. <view class="set-2 gdlc" :key="index" v-for="(item,index) in options">
  32. <text class="set2-test">{{item.F_OperationTime}}</text>
  33. <view class="set-view">
  34. <!-- <view class="setTitle" style="font-size: 15px !important;margin-bottom: 10px;">工单内容</view> -->
  35. <view class="setTable">
  36. <text class="setTitle">操作人员:</text>
  37. <text class="setCon">{{ item.username }}</text>
  38. </view>
  39. <view class="setTable">
  40. <text class="setTitle">内&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;容:</text>
  41. <text class="setCon">{{ item.F_LogContent}}</text>
  42. </view>
  43. </view>
  44. </view>
  45. <view class="set-2">
  46. </view>
  47. </view>
  48. </view>
  49. </template>
  50. <script>
  51. import pageData from "@/pages/myTask/repairList/addRepair/pageData.js"
  52. export default {
  53. data() {
  54. return {
  55. showState: '',
  56. departList: [],
  57. userCodeList: [],
  58. imageStyles: {
  59. width: 64,
  60. height: 64,
  61. border: {
  62. radius: '20%'
  63. }
  64. },
  65. }
  66. },
  67. props:{
  68. options: Array, //数据
  69. steteName:String
  70. },
  71. watch:{
  72. "options": function() {
  73. console.log(this.options)
  74. this.showState = this.steteName
  75. pageData.getDet((res, data) => {
  76. this.departList = data
  77. })
  78. // pageData.getApplicant('', (res) => {
  79. // this.userCodeList = res
  80. // })
  81. }
  82. },
  83. methods: {
  84. getFileData(fileData) {
  85. let newFile = []
  86. if (fileData && fileData.length > 0) {
  87. fileData.forEach((element, index) => {
  88. const obj = {}
  89. obj.url = element.F_FileUrl
  90. obj.extname = element.F_FileType.split('.')[1]
  91. obj.name = element.F_FileName
  92. newFile.push(obj);
  93. });
  94. }
  95. return newFile
  96. }
  97. }
  98. }
  99. </script>
  100. <style lang="scss" scoped>
  101. .box{
  102. margin-left: -20px;
  103. padding-bottom: 10px;
  104. }
  105. .set-2:last-child::after {
  106. display: none;
  107. }
  108. .set2-test{
  109. font-size: 26rpx;
  110. color: #78849e;
  111. }
  112. .set-1 {
  113. margin: 30upx;
  114. padding-left: 34upx;
  115. }
  116. .set-2 {
  117. height:auto;
  118. border-radius: 10upx;
  119. width: 580upx;
  120. margin-left: 90upx;
  121. margin-top: 60upx;
  122. position: relative;
  123. .set-view{
  124. width: 101%;
  125. height: auto;
  126. background-color: #ffffff;
  127. box-shadow: 0px 4px 16px 0px rgba(69, 91, 99, 0.13);
  128. border-radius: 12rpx;
  129. margin-top: 24rpx;
  130. margin-left: -10px;
  131. padding: 5px 2px 5px 10px;
  132. .setTitle{
  133. font-weight: 700;
  134. font-style: normal;
  135. font-size: 13px;
  136. color: #525252;
  137. }
  138. .setCon{
  139. color: #525252;
  140. font-size: 13px;
  141. word-break: break-all;
  142. }
  143. .setTable{
  144. margin-bottom: 10px;
  145. }
  146. }
  147. }
  148. .set-2::after {
  149. content: '';/* 必须存在如果没有图标就留空 */
  150. top: 19%;/* 定位 距离*/
  151. border-style: dotted;
  152. border-left: 1px ;/* 横线颜色 */
  153. border-color: #78849e;
  154. left: -70upx;/* 定位 距离*/
  155. height: 90%;/* 高度 */
  156. position: absolute;/* 定位 */
  157. }
  158. .set-2::before {
  159. content: "";/* 必须存在如果没有图标就留空 */
  160. background: url(../../../static/htz-rate/point.png) no-repeat;
  161. background-size: 100% 100%;
  162. width: 40rpx;
  163. height: 40rpx;
  164. position: absolute;/* 定位 */
  165. left: -86upx;/* 移动到左边 */
  166. font-weight: bold;/* 图标样式在复制的图标文件中复制相对应的图标样式必须存在 */
  167. font-family: "iconfont" !important;/* 图标样式在复制的图标文件中复制相对应的图标样式必须存在 */
  168. font-size: 54upx;/* 图标大小 */
  169. font-style: normal;/* 图标样式在复制的图标文件中复制相对应的图标样式必须存在 */
  170. -webkit-font-smoothing: antialiased;/* 图标样式在复制的图标文件中复制相对应的图标样式必须存在 */
  171. -moz-osx-font-smoothing: grayscale;/* 图标样式在复制的图标文件中复制相对应的图标样式必须存在 */
  172. }
  173. .gdlc::after {
  174. top: 30%;
  175. }
  176. </style>