details.vue 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  1. <template>
  2. <div class="lookDetail">
  3. <div class="left">
  4. <div class="list-item">
  5. <el-carousel
  6. :interval="5000"
  7. height="400px"
  8. arrow="always"
  9. >
  10. <el-carousel-item
  11. v-for="item in vehiclePicture"
  12. :key="item"
  13. >
  14. <!-- <h3>{{ item }}</h3> -->
  15. </el-carousel-item>
  16. </el-carousel>
  17. </div>
  18. </div>
  19. <div class="right">
  20. <div class="list-item">
  21. <template>
  22. <div
  23. style="height:32px"
  24. v-for="(item,index) in cols"
  25. :key="index"
  26. >
  27. <el-col :span="8">{{item.name}}</el-col>
  28. <el-col :span="16">{{item.label}}</el-col>
  29. <!-- <el-input
  30. placeholder="请输入内容"
  31. v-show='item.details'
  32. ></el-input>
  33. <el-tooltip
  34. class="item"
  35. effect="light"
  36. placement="bottom"
  37. content="编辑"
  38. v-show='item.details'
  39. >
  40. <i
  41. class="zoniot_font zoniot-icon-bianji"
  42. v-on:click="addClass(index,$event)"
  43. ></i>
  44. </el-tooltip> -->
  45. <div v-if="index+1 == 1">
  46. <el-col :span="8">车牌号码</el-col>
  47. <div v-if="flag">
  48. <el-col :span="12">{{licensePlate}}</el-col>
  49. <el-tooltip
  50. class="item"
  51. effect="light"
  52. placement="bottom"
  53. content="编辑"
  54. >
  55. <i
  56. class="zoniot_font zoniot-icon-bianji"
  57. @click="addClass"
  58. ></i>
  59. </el-tooltip>
  60. </div>
  61. <div v-else>
  62. <el-col :span="16">
  63. <el-input
  64. v-model="licensePlate"
  65. clearable
  66. >
  67. </el-input>
  68. <el-button
  69. size="mini"
  70. type="success"
  71. style="margin-left:5px"
  72. @click="licensePlatebtn"
  73. >保存</el-button>
  74. </el-col>
  75. </div>
  76. </div>
  77. <div v-if="index+1 ==5">
  78. <el-col :span="8">车辆类型</el-col>
  79. <div v-if="flags">
  80. <el-col :span="12">{{vehicleType == 0 ? '小型车' : vehicleType == 1 ? '大型车' :vehicleType == 2 ? '货车' : vehicleType == 3 ? '摩托车' : vehicleType == 4 ? '其他' : vehicleType}}</el-col>
  81. <!-- <el-col :span="12"> {{vehicleType }}</el-col> -->
  82. <el-tooltip
  83. class="item"
  84. effect="light"
  85. placement="bottom"
  86. content="编辑"
  87. >
  88. <i
  89. class="zoniot_font zoniot-icon-bianji"
  90. @click="vehicleTypes"
  91. ></i>
  92. </el-tooltip>
  93. </div>
  94. <div v-else>
  95. <el-col :span="16">
  96. <el-select v-model="vehicleType">
  97. <el-option
  98. value="0"
  99. label="小型车"
  100. ></el-option>
  101. <el-option
  102. value="1"
  103. label="大型车"
  104. ></el-option>
  105. <el-option
  106. value="2"
  107. label="货车"
  108. ></el-option>
  109. <el-option
  110. label="摩托车"
  111. value="3"
  112. ></el-option>
  113. <el-option
  114. label="其他"
  115. value="4"
  116. ></el-option>
  117. </el-select>
  118. <el-button
  119. size="mini"
  120. type="success"
  121. style="margin-left:5px"
  122. @click="vehicle"
  123. >保存</el-button>
  124. </el-col>
  125. </div>
  126. </div>
  127. </div>
  128. </template>
  129. </div>
  130. </div>
  131. </div>
  132. </template>
  133. <script>
  134. export default {
  135. props: ['params'],
  136. data () {
  137. return {
  138. cols: [
  139. {
  140. name: '车场名称',
  141. label: '',
  142. }, {
  143. name: '识别车牌',
  144. label: '',
  145. }, {
  146. name: '进程地点',
  147. label: ''
  148. }, {
  149. name: '进场时间',
  150. label: ''
  151. },
  152. // {
  153. // name: '更新时间',
  154. // label: '2020-04-06 09:42:11'
  155. // },
  156. {
  157. name: '车牌类型',
  158. label: ''
  159. },
  160. // {
  161. // name: '凭据号码',
  162. // label: '-'
  163. // },
  164. // {
  165. // name: '进场凭据',
  166. // label: '车牌识别'
  167. // },
  168. // {
  169. // name: '放行类型',
  170. // label: '长抬放行'
  171. // }, {
  172. // name: '放行渠道',
  173. // label: '线下车场'
  174. // }, {
  175. // name: '进场备注',
  176. // label: '服务到期长抬进出'
  177. // }
  178. ],
  179. flag: true,
  180. flags: true,
  181. licensePlate: '',
  182. vehicleType: '',
  183. vehiclePicture: [],
  184. }
  185. },
  186. methods: {
  187. addClass () {
  188. this.flag = !this.flag;
  189. },
  190. licensePlatebtn () {
  191. this.flag = !this.flag;
  192. // /sc-community-web/parkingCar/modifyPlateNumber
  193. if (this.licensePlate.length == 0) {
  194. this.$message.error('请输入车牌号')
  195. } else {
  196. this.$http.post('/sc-community-web/parkingCar/modifyPlateNumber', { oldplateNo: (this.params.row.plateNo == "" ? this.licensePlate : this.params.row.plateNo), plateNo: this.licensePlate, parkId: this.params.parkId }).then(({ data, status, msg }) => {
  197. // console.log(data);
  198. this.$message.success('成功');
  199. });
  200. }
  201. },
  202. vehicleTypes () {
  203. this.flags = !this.flags
  204. },
  205. vehicle () {
  206. this.flags = !this.flags
  207. // console.log(this.vehicleType);
  208. this.$http.post('/sc-community-web/parkingCar/modifyType', { carStyle: this.vehicleType, parkId: this.params.parkId, plateNo: this.licensePlate }).then(({ data, status, msg }) => {
  209. // console.log(data);
  210. this.$message.success('成功');
  211. });
  212. },
  213. // OnSiteVehicleDetails () {
  214. // debugger
  215. // this.$http.post('/sc-community-web/parkingCar/queryPresenceVehicles', { parkId: this.params.parkId, nodeId: this.params.nodeId }).then(({ data, status, msg }) => {
  216. // console.log(data);
  217. // });
  218. // },
  219. },
  220. created () {
  221. console.log(this.params.row);
  222. this.cols[0].label = this.params.row.parkName;
  223. this.cols[1].label = this.params.row.plateNo;
  224. this.cols[2].label = this.params.row.entryPlace;
  225. this.cols[3].label = this.params.row.entryTime;
  226. this.cols[4].label = this.params.row.carType == 0 ? '临时车'
  227. : this.params.row.carType == 1 ? 'VIP车'
  228. : this.params.row.carType == 2 ? '月租车'
  229. : this.params.row.carType == 3 ? '充时车'
  230. : this.params.row.carType == 4 ? '时租车'
  231. : this.params.row.carType == 5 ? '产权车'
  232. : this.params.row.carType == 6 ? '计次车'
  233. : this.params.row.carType == 7 ? '贵宾卡'
  234. : this.params.row.carType == 8 ? '员工卡' : '--';
  235. this.licensePlate = this.params.row.plateNo;
  236. this.vehicleType = this.params.row.carStyle == 0 ? '小轿车' : this.params.row.carStyle == 1 ? '大型车' : this.params.row.carStyle == 2 ? '货车' : this.params.row.carStyle == 3 ? '摩托车' : '其他';
  237. this.vehiclePicture.push(this.params.row.imgName)
  238. }
  239. }
  240. </script>
  241. <style lang="scss" scoped>
  242. @import '@assets/css/public-style.scss';
  243. .el-col {
  244. height: 32px !important;
  245. }
  246. .el-select {
  247. width: 120px !important;
  248. }
  249. .el-input {
  250. width: 120px !important;
  251. }
  252. .lookDetail {
  253. /deep/ .el-form-item__label,
  254. /deep/.el-form-item__content {
  255. font-size: 12px;
  256. }
  257. /deep/ .el-step__title.is-finish,
  258. /deep/ .el-step__title.is-process,
  259. /deep/ .el-step__description.is-finish {
  260. font-weight: 500 !important;
  261. color: #424656 !important;
  262. }
  263. display: flex;
  264. justify-content: space-between;
  265. .formContent-item_title {
  266. clear: both;
  267. }
  268. .left {
  269. width: 600px;
  270. }
  271. .right {
  272. width: calc(100% - 620px);
  273. }
  274. .list-item {
  275. clear: inherit;
  276. }
  277. }
  278. .el-carousel__container {
  279. height: 456px !important;
  280. }
  281. .el-carousel__container {
  282. height: 500px !important;
  283. }
  284. // 轮播图
  285. .el-carousel__item h3 {
  286. color: #475669;
  287. font-size: 18px;
  288. opacity: 0.75;
  289. line-height: 300px;
  290. margin: 0;
  291. }
  292. .el-carousel__item:nth-child(2n) {
  293. background-color: #99a9bf;
  294. }
  295. .el-carousel__item:nth-child(2n + 1) {
  296. background-color: #d3dce6;
  297. }
  298. </style>