tranManagementDriverLook.vue 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627
  1. //添加司机
  2. <template>
  3. <div class="container">
  4. <el-row>
  5. <el-col :span="12">
  6. <h2 class="bg-left title">查看司机信息</h2>
  7. </el-col>
  8. <el-col :span="12" class="bg-right">
  9. <el-button
  10. class="bg-bottom"
  11. type="primary"
  12. size="small"
  13. @click="returnsales()"
  14. ><img
  15. width="6"
  16. height="10"
  17. style="vertical-align: bottom; margin-right: 3px"
  18. src="../../../public/img/lujing.png"
  19. alt=""
  20. />返回</el-button
  21. >
  22. </el-col>
  23. </el-row>
  24. <ws-form ref="deptBudgetList" :rules="mainReportAdd" :model="deptBudgetList"
  25. ><div class="small-title">司机信息</div>
  26. <div class="flex drivermessage">
  27. <ws-info-table>
  28. <!--司机姓名-->
  29. <ws-form-item
  30. label="姓名"
  31. span="1"
  32. prop="contractNo"
  33. class="readonly bg-right"
  34. >
  35. {{deptBudgetList.driverName}}
  36. </ws-form-item>
  37. <!--手机号-->
  38. <ws-form-item
  39. label="手机号"
  40. span="1"
  41. prop="driverPhone"
  42. class="readonly"
  43. >
  44. {{deptBudgetList.driverPhone}}
  45. </ws-form-item>
  46. <!--常驻城市-->
  47. <ws-form-item label="常驻城市" span="1" prop="acceptanceMethod">
  48. {{ deptBudgetList.residentCityProvincial
  49. }}{{ deptBudgetList.residentCityMunicipal }}
  50. </ws-form-item>
  51. <!--身份证号-->
  52. <ws-form-item
  53. label="身份证号"
  54. span="1"
  55. prop="driverNo"
  56. class="readonly"
  57. >
  58. {{deptBudgetList.numberCard}}
  59. </ws-form-item>
  60. </ws-info-table>
  61. <span v-if="age && age < 60" class="small">{{ age }}岁</span>
  62. <span v-if="age && age > 60" class="big">{{ age }}岁</span>
  63. </div>
  64. </ws-form>
  65. <ws-form
  66. ref="deptBudgetList"
  67. :rules="mainReportAdd"
  68. :model="deptBudgetList"
  69. >
  70. <div class="small-title">货车信息</div>
  71. <div
  72. style="width: 100%"
  73. class="flex position"
  74. v-for="(item, index) in deptBudgetList.driverCarInfoList"
  75. >
  76. <div class="trucks">
  77. <div class="driver">货车信息-{{ index + 1 }}</div>
  78. <div class="truckswrap">车牌号: {{ item.carNumber }}</div>
  79. <div class="truckswrap">车型: {{ item.carModel }}</div>
  80. <div class="truckswrap">不含车头车长(米): {{ item.carLength }}</div>
  81. <div class="truckswrap">载重: {{ item.carLoad }}</div>
  82. <div class="truckswrap">出厂年份: {{ item.yearManufacture }}</div>
  83. </div>
  84. </div>
  85. </ws-form>
  86. <ws-form
  87. ref="deptBudgetList"
  88. :rules="mainReportAdd"
  89. :model="deptBudgetList"
  90. >
  91. <div class="small-title">收款人账户信息</div>
  92. <div
  93. class="gathering"
  94. v-for="(item, index) in deptBudgetList.driverPayeeInfoList"
  95. >
  96. <div>
  97. <div class="driver">收款人账户信息-{{ index + 1 }}</div>
  98. <ws-info-table class="el-table">
  99. <!--账户类型-->
  100. <ws-form-item
  101. label="账户类型"
  102. span="1"
  103. prop="contractNo"
  104. class="el-car bg-right"
  105. >
  106. <span v-if="item.accountTypeFlag == 1">私人账号</span>
  107. <span v-if="item.accountTypeFlag == 2">企业账户</span>
  108. </ws-form-item>
  109. <!--账号-->
  110. <ws-form-item label="账号" span="1" prop="bankCard" class="el-car">
  111. {{ item.bankCard }}
  112. </ws-form-item>
  113. <!--开户行-->
  114. <ws-form-item
  115. label="开户行"
  116. span="1"
  117. prop="bankDeposit"
  118. class="el-car bankDeposit"
  119. >
  120. {{ item.bankDeposit }}
  121. </ws-form-item>
  122. <!--姓名-->
  123. <ws-form-item
  124. label="姓名"
  125. v-if="item.accountTypeFlag == 1"
  126. span="1"
  127. prop="payeeName"
  128. class="el-car"
  129. width="150px"
  130. >
  131. {{ item.payeeName }}
  132. </ws-form-item>
  133. <!--企业名称-->
  134. <ws-form-item
  135. label="企业名称"
  136. v-else
  137. span="1"
  138. prop="compName"
  139. class="el-car compname"
  140. width="150px"
  141. >
  142. {{ item.compName }}
  143. </ws-form-item>
  144. <!--身份证号-->
  145. <ws-form-item
  146. label="身份证号"
  147. v-if="item.accountTypeFlag == 1"
  148. span="1"
  149. prop="payeeNumberCard"
  150. class="el-car"
  151. >
  152. {{ item.payeeNumberCard }}
  153. </ws-form-item>
  154. <ws-form-item
  155. label="开户支行"
  156. span="1"
  157. prop="bankDepositBranch"
  158. class="el-car bankDeposit1"
  159. >
  160. {{ item.bankDepositBranch }}
  161. </ws-form-item>
  162. </ws-info-table>
  163. </div>
  164. </div>
  165. </ws-form>
  166. <ws-form
  167. ref="deptBudgetList"
  168. :rules="mainReportAdd"
  169. :model="deptBudgetList"
  170. >
  171. <div class="small-title">相关附件</div>
  172. <div class="flex">
  173. <div
  174. style="margin: 10px"
  175. v-for="(item, index) in deptBudgetList.addressUrlArray"
  176. >
  177. <div class="button" v-if="index == 0">行驶证</div>
  178. <div class="button" v-if="index == 1">驾驶证</div>
  179. <div class="button-green" v-if="index == 2">道路运营证</div>
  180. <div class="button-green" v-if="index == 3">从业资格证</div>
  181. <div class="button-yellow" v-if="index == 4">身份证正面</div>
  182. <div class="button-yellow" v-if="index == 5">身份证反面</div>
  183. <img width="100" height="100" :src="item" alt="" />
  184. </div>
  185. </div>
  186. </ws-form>
  187. <!-- 提交 -->
  188. <div style="text-align: right; padding: 10px" class="center">
  189. <el-button
  190. class="bg-bottom"
  191. type="primary"
  192. size="small"
  193. @click="returnsales()"
  194. >关闭</el-button
  195. >
  196. </div>
  197. </div>
  198. </template>
  199. <script>
  200. import { provinceAndCityData, CodeToText } from 'element-china-area-data'
  201. import { lookDriver } from '@/model/transport/index'
  202. import WsUpload from '@/components/WsUpload'
  203. import mapDrag from '@/components/mapdrag/mapdrag'
  204. export default {
  205. name: 'viewSpareMoney',
  206. components: {
  207. WsUpload,
  208. mapDrag,
  209. },
  210. watch: {
  211. vesselId(val) {
  212. this.getVesselData()
  213. },
  214. isShow(val) {
  215. this.showType = val
  216. },
  217. },
  218. data() {
  219. let self = this
  220. return {
  221. deptBudgetList: {
  222. totalStorage: 0,
  223. drivercarInfo: {
  224. goodsName: '',
  225. },
  226. driverPayeeInfo: {},
  227. },
  228. radio: '1',
  229. carModelList: [],
  230. carLengthList: [],
  231. options_: provinceAndCityData,
  232. heightData: '600px',
  233. zoom: 7,
  234. selectedOptions: [],
  235. center: [116.244694, 39.517344],
  236. window: '',
  237. district: null,
  238. listDate: { country: '中国', level: 'country', city: '' },
  239. citylist: [],
  240. compId: sessionStorage.getItem('ws-pf_compId'),
  241. mainReportAdd: {},
  242. appendixIdsAdd: '',
  243. size: 10,
  244. value1: '',
  245. unitList: [],
  246. accessoryBankTFs: false,
  247. freightspace: [
  248. {
  249. carNumber: '',
  250. carModel: '高栏',
  251. carModelKey: '1',
  252. carLength: '13',
  253. carLengthKey: '1',
  254. carLoad: '',
  255. yearManufacture: '',
  256. },
  257. ],
  258. freightspace1: [
  259. {
  260. account_type: '',
  261. radio: '1',
  262. payeeName: '',
  263. payeeNumberCard: '',
  264. compName: '',
  265. bankDeposit: '',
  266. addressUrlArray: [],
  267. bankCard: '',
  268. },
  269. ],
  270. name: '',
  271. age: '',
  272. }
  273. },
  274. activated() {
  275. this.loaddata()
  276. this.showType = this.isShow
  277. },
  278. computed: {},
  279. methods: {
  280. IdCard(UUserCard) {
  281. //获取年龄
  282. var myDate = new Date()
  283. var month = myDate.getMonth() + 1
  284. var day = myDate.getDate()
  285. var age = myDate.getFullYear() - UUserCard.substring(6, 10) - 1
  286. if (
  287. UUserCard.substring(10, 12) < month ||
  288. (UUserCard.substring(10, 12) == month &&
  289. UUserCard.substring(12, 14) <= day)
  290. ) {
  291. age++
  292. }
  293. this.age = age
  294. },
  295. bankcardfujian(item) {
  296. this.accessoryBankTFs = true
  297. },
  298. loaddata() {
  299. lookDriver({ id: this.$route.query.id })
  300. .toPromise()
  301. .then((response) => {
  302. this.IdCard(response.numberCard)
  303. response.addressUrlArray = response.addressUrl.split(',')
  304. this.deptBudgetList = response
  305. })
  306. // // 车型
  307. // packList({ constId: 'TRAN1' })
  308. // .toPromise()
  309. // .then((response) => {
  310. // this.carModelList = response
  311. // })
  312. // // 车长
  313. // packList({ constId: 'TRAN2' })
  314. // .toPromise()
  315. // .then((response) => {
  316. // this.carLengthList = response
  317. // })
  318. },
  319. confirmPositioncity() {
  320. this.listDate.level = 'city'
  321. this.listDate.country = this.name
  322. },
  323. uploadSuccessHandle(e, file) {
  324. const that = this
  325. this.upForm.personNoImg = e.url
  326. this.upForm.type = 'driver'
  327. this.submiting = true
  328. // personShibie(this.upForm).then((response) => {
  329. // this.list.unshift(response.data.data)
  330. // this.upForm.driver = response.data.data.driver
  331. // this.upForm.driverNo = response.data.data.driverNo
  332. // this.upForm.driverAddress = response.data.data.driverAddress
  333. // this.upFormVisible = true
  334. // this.submiting = false
  335. // })
  336. },
  337. // 关闭 dialog时 处理文件url 初始化upload组件
  338. handleClose() {
  339. this.dialogViewSpareMoney = false
  340. },
  341. identitycardfujian(item) {},
  342. handleChange(value) {
  343. this.selectedOptions = value
  344. },
  345. returnsales() {
  346. this.$router.go(-1)
  347. },
  348. resetForm(deptBudgetList) {
  349. this.$refs[deptBudgetList].resetFields()
  350. },
  351. },
  352. }
  353. </script>
  354. <style lang="scss" scoped>
  355. .position {
  356. position: relative;
  357. }
  358. .add,
  359. .del {
  360. position: absolute;
  361. right: -38px;
  362. top: 9px;
  363. cursor: pointer;
  364. }
  365. .del {
  366. right: -70px;
  367. }
  368. .amap-page-container {
  369. width: 300px;
  370. height: 300px;
  371. }
  372. .el-form {
  373. padding: 0 10%;
  374. }
  375. /deep/.ws-info-table .el-form-item {
  376. border-right: 1px solid #cdd2dc;
  377. border-bottom: 1px solid #cdd2dc;
  378. }
  379. .title {
  380. position: relative;
  381. }
  382. .el-car {
  383. width: 413px;
  384. }
  385. .title::before {
  386. content: '';
  387. display: inline-block;
  388. width: 5px;
  389. height: 30px;
  390. background: #5473e8;
  391. position: absolute;
  392. left: 0;
  393. }
  394. .el-col {
  395. background: #f6f7fc;
  396. }
  397. .drivermessage {
  398. position: relative;
  399. }
  400. .button-container {
  401. display: flex;
  402. flex-wrap: nowrap;
  403. justify-content: space-between;
  404. align-items: center;
  405. background-color: #fff;
  406. width: 100%;
  407. height: 50px;
  408. padding: 0 10px;
  409. & > div {
  410. margin-left: 10px;
  411. display: flex;
  412. flex-wrap: nowrap;
  413. flex-direction: row;
  414. & > span {
  415. line-height: 50px;
  416. }
  417. }
  418. /deep/.auditFlow-box {
  419. position: unset;
  420. margin-left: 10px;
  421. &/deep/.auditFlow-icon {
  422. width: auto;
  423. padding-right: 30px;
  424. }
  425. &/deep/.auditFlow-main {
  426. position: absolute;
  427. }
  428. }
  429. }
  430. .box-app {
  431. display: inline-block;
  432. float: left;
  433. margin-left: 30px;
  434. line-height: 50px;
  435. }
  436. /deep/.el-dialog {
  437. .el-form-item {
  438. margin-bottom: 0 !important;
  439. .el-input--medium {
  440. textarea {
  441. min-height: 100px !important;
  442. }
  443. }
  444. }
  445. }
  446. .collapse-bottom {
  447. margin-bottom: 20px;
  448. }
  449. .input-main .textarea .el-textarea__inner {
  450. width: 100%;
  451. z-index: 1;
  452. }
  453. .bg-left {
  454. padding-left: 30px;
  455. }
  456. .bg-right {
  457. padding-right: 10px;
  458. text-align: right;
  459. }
  460. .bg-bottom {
  461. margin: 15px 0px;
  462. }
  463. .el-form-item__label {
  464. text-align: center;
  465. }
  466. //蓝标
  467. .small-title {
  468. position: relative;
  469. padding: 10px;
  470. font-weight: 600;
  471. }
  472. .small-title::before {
  473. position: absolute;
  474. content: '';
  475. display: block;
  476. background: #5473e8;
  477. width: 4px;
  478. height: 14px;
  479. left: 0px;
  480. top: 13px;
  481. padding: 4px 2px;
  482. }
  483. // 控制select为只读的时候显示样式
  484. /deep/.ws-class-table-col {
  485. height: auto;
  486. padding: 0px 2px;
  487. /deep/.el-input__inner {
  488. padding: 0px 2px;
  489. }
  490. }
  491. .container {
  492. overflow: scroll;
  493. height: 93vh;
  494. }
  495. /deep/.ws-info-table .el-form-item {
  496. width: 25%;
  497. }
  498. .el-textarea__inner {
  499. display: none;
  500. }
  501. .el-form {
  502. margin-top: 50px;
  503. }
  504. .el-cascader {
  505. width: 145px;
  506. }
  507. .forlist {
  508. width: 20%;
  509. }
  510. .el-form-item.forlist.is-success.el-form-item--small {
  511. width: 20%;
  512. }
  513. .el-form-item.forlist.el-form-item--small {
  514. width: 20%;
  515. }
  516. .el-form-item.readonly.is-success.el-form-item--small.showLableToopTip {
  517. width: 20%;
  518. }
  519. .el-form-item.el-car.el-form-item--small {
  520. width: 33.3%;
  521. }
  522. .trucks {
  523. background: #f5f7fa;
  524. color: #69708c;
  525. border: 1px solid #d8dce6;
  526. width: 100%;
  527. padding: 12px;
  528. border-radius: 3px;
  529. }
  530. .truckswrap {
  531. width: 19.7%;
  532. display: inline-block;
  533. margin: 0;
  534. padding: 9px 0;
  535. }
  536. .gathering {
  537. background: #f5f7fa;
  538. border: 1px solid #d8dce6;
  539. border-radius: 3px;
  540. border-bottom: 1px solid #d8dce6;
  541. height: 125px;
  542. }
  543. /deep/.gathering .ws-info-table {
  544. border-left: none;
  545. border-top: 1px solid #d8dce6;
  546. }
  547. /deep/.gathering .driver {
  548. padding: 10px;
  549. }
  550. /deep/.gathering .el-form-item .el-form-item__label {
  551. background: #f5f7fa;
  552. text-align: center;
  553. }
  554. /deep/.gathering .ws-info-table .el-form-item .el-form-item__content {
  555. border-left: 1px solid #d8dce6;
  556. }
  557. /deep/.gathering .ws-info-table .el-form-item.compname,
  558. /deep/.gathering .ws-info-table .el-form-item.bankDeposit,
  559. /deep/.gathering .ws-info-table .el-form-item.bankDeposit1 {
  560. border-right: 1px solid transparent;
  561. }
  562. /deep/.gathering .ws-info-table .el-form-item.compname {
  563. width: 100%;
  564. }
  565. .button,
  566. .button-green,
  567. .button-yellow {
  568. height: 28px;
  569. background: #edf1ff;
  570. border-radius: 4px;
  571. color: #5473e8;
  572. font-size: 12px;
  573. text-align: center;
  574. line-height: 28px;
  575. margin: 7px auto;
  576. padding: 0 10px;
  577. }
  578. .button-green {
  579. background: #ecf8f9;
  580. color: #50cad4;
  581. }
  582. .button-yellow {
  583. background: #fff6eb;
  584. color: #ff9f24;
  585. }
  586. .el-button--primary {
  587. background: #5878e8;
  588. }
  589. .drivermessage .ws-info-table {
  590. border: none;
  591. width: 100%;
  592. }
  593. /deep/.drivermessage .ws-info-table .el-form-item__label {
  594. background: #fff;
  595. width: 80px;
  596. }
  597. /deep/.drivermessage .ws-info-table .el-form-item__content,
  598. /deep/.drivermessage .ws-info-table .el-form-item {
  599. background: #F5F7FA;
  600. border-radius: 5px;
  601. border: none;
  602. }
  603. .small,
  604. .big {
  605. color: #ccc;
  606. line-height: 16px;
  607. position: absolute;
  608. right: -60px;
  609. top: 5px;
  610. border: 1px solid #ccc;
  611. padding: 5px 10px;
  612. border-radius: 20px;
  613. }
  614. .big {
  615. color: #f46060;
  616. background: #ffeeee;
  617. }
  618. </style>