移动端
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

272 lines
8.2 KiB

  1. <template>
  2. <div class="app-container">
  3. <div class="header_main">
  4. 查看打卡
  5. <div class="return_btn" @click="onClickLeft"></div>
  6. </div>
  7. <baidu-map :center="center" panBy="[50,50]" :zoom="zoom" :scroll-wheel-zoom="true" :pinch-to-zoom="true" map-type="BMAP_NORMAL_MAP" style="height:150vh" >
  8. <!-- 必须给容器指高度,不然地图将显示在一个高度为0的容器中,看不到 -->
  9. <bm-geolocation anchor="BMAP_ANCHOR_BOTTOM_RIGHT" :showAddressBar="true" :autoLocation="true"></bm-geolocation>
  10. <bm-marker :position="center" :dragging="true" animation="BMAP_ANIMATION_BOUNCE" :icon="{url: '../../../../static/images/lawEnforcement/new/address.gif', size: {width: 50, height: 50}}"></bm-marker>
  11. </baidu-map>
  12. <div style="position:absolute;top: 75px;width: 100%;">
  13. <div class="main_box top_box">
  14. <van-field readonly v-model="form.caseSource" label="案件来源" :border="false" />
  15. <van-field readonly v-model="form.schemeId" label="关联方案" :border="false" />
  16. <van-field readonly v-model="form.caseName" label="案件名称" :border="false" />
  17. </div>
  18. <div class="main_box" style="margin-top: 10px;padding: 0rem 0.426667rem;">
  19. <div class="file_box">
  20. <p class="left_box">未</p>
  21. <div class="center_box">
  22. <p class="time">{{ nowTime }}<span>({{ nowDate }})</span></p>
  23. <p class="dress">{{clockinAddr}}</p>
  24. </div>
  25. <!-- <div class="file_box_btn" @click="$router.push({name:'lawEnforcementTaskRecord', query: {id:form.id,relationType:form.caseProgress,clockin_user:clockin_user}})">-->
  26. <!-- <img src="../../../../static/images/lawEnforcement/icon/task_icon.png">-->
  27. <!-- <p>打卡记录</p>-->
  28. <!-- </div>-->
  29. </div>
  30. <div class="file_box" style="border-top: 1px solid #DEDEDE">
  31. <van-uploader v-model="fileList" :show-upload="false" :deletable="false" />
  32. <van-empty v-if="fileList.length<1" description="暂无文件" />
  33. </div>
  34. <div class="bz">
  35. <van-field placeholder="暂无备注" v-model="remark" :border="false" readonly />
  36. </div>
  37. </div>
  38. <div class="main_box" style="margin-top: 10px;padding: 0.266667rem 0.426667rem;">
  39. <p class="now_dress">当前位置:{{clockinAddr}}</p>
  40. </div>
  41. </div>
  42. <!-- $router.push({name:'lawEnforcementSignInRecord'}) @click="submitForm"-->
  43. <!-- <div class="submitButton" @click="submitForm" >-->
  44. <!-- <p class="datetime">{{ nowTime }}</p>-->
  45. <!-- <p>打卡</p>-->
  46. <!-- </div>-->
  47. </div>
  48. </template>
  49. <script>
  50. import { getCase , schemeList , commonUpload , getUserProfile , addClockin , clockinGet } from "@/api/lawEnforcement/index";
  51. export default {
  52. name: "programmeDetail",
  53. data() {
  54. return {
  55. checked:'',
  56. showBankType:false,
  57. showPayeeType:false,
  58. showPicker:false,
  59. form:{
  60. clockinAddr:''
  61. },
  62. center: { lng: 122.089726, lat: 37.540728 }, //经纬度
  63. zoom: 15, //地图展示级别
  64. bankType:'',
  65. payeeType:'',
  66. value:'',
  67. bankTypeOptions:[],
  68. payeeTypeOptions:[],
  69. tEnforceSchemeHandlerList:[],
  70. minDate: new Date(2020, 0, 1),
  71. maxDate: new Date(2025, 10, 1),
  72. currentDate: new Date(2021, 0, 17),
  73. activeNames: ['1'],
  74. activeNames1: ['1'],
  75. activeNames2: ['1'],
  76. nowDate: this.format(new Date(),'yyyy-MM-dd'), // 当前日期
  77. nowTime: '', // 当前时间
  78. fileList:[],
  79. openPic:[],
  80. openPic2:[],
  81. clockinAddr:'',
  82. remark:'',
  83. clockin_user:''
  84. };
  85. },
  86. created() {
  87. // this.getDictionaries()
  88. var that = this;
  89. this.getDicts("case_source").then(response => {
  90. this.caseSourceOptions = response.data;
  91. });
  92. this.getDetail();
  93. getUserProfile().then(res => {
  94. this.clockin_user = res.data.userName;
  95. })
  96. },
  97. methods: {
  98. getDetail(){
  99. getCase(this.$route.query.caseId).then((response) => {
  100. response.data.caseSource = response.data.caseSource == '' ? '' : this.selectDictLabel(this.caseSourceOptions, response.data.caseSource);
  101. var schemeQueryParam = {
  102. applyStatus: "1",
  103. };
  104. schemeList(schemeQueryParam).then((res) => {
  105. let scheme = res.rows.filter(function (e) { return e.id == response.data.schemeId; });
  106. if (scheme.length > 0){
  107. response.data.schemeId = scheme[0].schemeName
  108. }
  109. });
  110. this.form = response.data;
  111. });
  112. clockinGet(this.$route.query.id).then((response) => {
  113. this.nowTime = response.data.clockinTime;
  114. this.nowDate = response.data.clockinDate;
  115. this.clockinAddr = response.data.clockinAddr;
  116. this.remark = response.data.remark;
  117. let fileList = response.data.attachement.split(",");
  118. fileList.map(res=>{
  119. this.fileList.push({
  120. url: '/api' + res,
  121. isImage: true
  122. })
  123. })
  124. this.center.lng = response.data.longitude;
  125. this.center.lat = response.data.latitude;
  126. console.log(response.data.attachement.split(","))
  127. })
  128. },
  129. },
  130. }
  131. </script>
  132. <style scoped lang="scss">
  133. .app-container {
  134. padding: 0;
  135. height: 100vh;
  136. overflow: hidden;
  137. }
  138. .bz{
  139. padding-bottom: 15PX;
  140. /deep/ .van-cell{
  141. padding: 2px 8px;
  142. border: 1px solid #C9C9C9;
  143. border-radius: 8px;
  144. }
  145. }
  146. .header_main{
  147. height: 116px;
  148. background: url('../../../../static/images/lawEnforcement/new/list_head.png') no-repeat;
  149. background-size: 100% 100%;
  150. position: fixed;
  151. top: 0;
  152. left: 0;
  153. width: 100%;
  154. font-size: 36px;
  155. line-height: 116px;
  156. text-align: center;
  157. color: #fff;
  158. z-index: 999;
  159. .return_btn{
  160. width: 24px;
  161. height: 43.2px;
  162. background: url('../../../assets/images/sunVillage_info/list_icon_5.png') center center no-repeat;
  163. background-size: 20px 36px;
  164. position: absolute;
  165. left: 38px;
  166. top: 36px;
  167. }
  168. .add_btn{
  169. width: 56.4px;
  170. height: 40.8px;
  171. background: url('../../../assets/images/sunVillage_info/list_icon_9.png') center center no-repeat;
  172. background-size: 47px 34px;
  173. position: absolute;
  174. right: 38px;
  175. top: 36px;
  176. }
  177. }
  178. .top_box{
  179. background: url('../../../../static/images/lawEnforcement/icon/task_icon_03.png') no-repeat 97% 10%;
  180. padding: 10PX 0;
  181. /*background-size: 100% 100%;*/
  182. /deep/ .van-cell{
  183. background: none;
  184. }
  185. }
  186. .main_box{
  187. width: 96%;
  188. margin: 0 auto;
  189. border-radius: 10PX;
  190. box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.16);
  191. overflow: hidden;
  192. background-color: #FFF;
  193. }
  194. .file_box{
  195. display: flex;
  196. align-items: center;
  197. font-size: 0.35rem;
  198. padding: 0.266667rem 0;
  199. .left_box{
  200. background: #C9C9C9;
  201. color: #ffffff;
  202. width: 27PX;
  203. height: 27PX;
  204. line-height: 27PX;
  205. text-align: center;
  206. border-radius: 100%;
  207. }
  208. .center_box{
  209. padding: 0rem 0.426667rem;
  210. .time{
  211. font-size: 0.5rem;
  212. span{
  213. font-size: 0.35rem;
  214. color: #878787;
  215. }
  216. }
  217. .dress{
  218. color: #B4B0B0;
  219. background: url('../../../../static/images/lawEnforcement/icon/task_icon_01.png') no-repeat left center;
  220. padding-left: 14PX;
  221. }
  222. }
  223. .file_box_btn{
  224. text-align: center;
  225. color: #1CB8B1;
  226. margin-left: auto;
  227. }
  228. }
  229. .now_dress{
  230. font-size: 0.35rem;
  231. background: url('../../../../static/images/lawEnforcement/icon/task_icon_02.png') no-repeat left center;
  232. padding-left: 20PX;
  233. line-height: 35PX;
  234. }
  235. .submitButton{
  236. width: 25vw;
  237. background-image: linear-gradient(to right, #2E79E9 , #77A6EF);
  238. text-align: center;
  239. color: #ffffff;
  240. height: 25vw;
  241. line-height: 70px;
  242. border-radius: 100%;
  243. position: absolute;
  244. bottom: 5%;
  245. left: 50%;
  246. transform: translateX(-50%);
  247. p{
  248. font-size: 0.4rem;
  249. line-height: 1;
  250. margin-top: 3vw;
  251. }
  252. .datetime{
  253. margin-top: 6vw;
  254. /*font-weight: bold;*/
  255. font-size: 0.6rem;
  256. }
  257. }
  258. </style>