tranManagementLook.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428
  1. // 运输查看
  2. <template>
  3. <div class="container">
  4. <el-row>
  5. <el-col :span="20">
  6. <h2 class="bg-left title">查看运输任务</h2>
  7. </el-col>
  8. <el-col :span="4" class="bg-right">
  9. <el-button
  10. class="bg-bottom"
  11. type="primary"
  12. size="small"
  13. @click="revert()"
  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" :model="deptBudgetList" :rules="rules">
  25. <div class="basicInformation">
  26. <ws-info-table>
  27. <ws-form-item label="任务编号" span="1" prop="taskNo">
  28. {{ deptBudgetList.taskNo }}
  29. </ws-form-item>
  30. <ws-form-item label="合同编号/移库任务编号" span="1" prop="contractNo">
  31. {{ deptBudgetList.contractNo }}
  32. </ws-form-item>
  33. <ws-form-item label="货名" span="1" prop="goodsName" class="readonly">
  34. {{ deptBudgetList.goodsName }}
  35. </ws-form-item>
  36. <ws-form-item label="重量(吨)" span="1" prop="weight">
  37. {{ deptBudgetList.weight }}
  38. </ws-form-item>
  39. </ws-info-table>
  40. <div class="address">
  41. <ws-info-table>
  42. <ws-form-item label="始发地" span="1" prop="netWeight">
  43. {{ deptBudgetList.startPrivate }}{{ deptBudgetList.startCity
  44. }}{{ deptBudgetList.startArea
  45. }}{{ deptBudgetList.startDetailedAddress }}
  46. ({{deptBudgetList.sendWarehouse}})
  47. </ws-form-item>
  48. <ws-form-item label="终到地" span="1" prop="netWeight">
  49. {{ deptBudgetList.endPrivate }}{{ deptBudgetList.endCity
  50. }}{{ deptBudgetList.endArea}}{{ deptBudgetList.endDetailedAddress }}
  51. ({{deptBudgetList.receiveWarehouse}})
  52. </ws-form-item>
  53. </ws-info-table>
  54. </div>
  55. <div class="inspector">
  56. <span class="zi">运输方式</span>
  57. <el-checkbox-group v-model="checkList">
  58. <el-checkbox disabled label="汽运"></el-checkbox>
  59. <el-checkbox disabled label="火运"></el-checkbox>
  60. <el-checkbox disabled label="船运"></el-checkbox>
  61. </el-checkbox-group>
  62. </div>
  63. </div>
  64. <div
  65. v-for="(item, index) in deptBudgetList.tranProcessInfoList"
  66. :key="index"
  67. class="datafor"
  68. >
  69. <div class="driver">运输阶段&nbsp;&nbsp;{{ index+1 }}&nbsp;&nbsp;({{ item.processNo }})
  70. <!-- <el-checkbox
  71. class="endflag"
  72. true-label="1"
  73. disabled
  74. false-label="0"
  75. v-model="item.endFlag"
  76. :label="1"
  77. >粮款结算阶段</el-checkbox
  78. > -->
  79. </div>
  80. <ws-info-table class="el-table">
  81. <ws-form-item label="运输方式" span="1" prop="tranType">
  82. {{ item.tranType }}
  83. </ws-form-item>
  84. <ws-form-item label="发货日期" span="1" prop="deliveryDateStart">
  85. {{ item.deliveryDateStart }}
  86. </ws-form-item>
  87. <ws-form-item label="最晚到货日期" span="1" prop="deliveryDateEnd">
  88. {{ item.deliveryDateEnd }}
  89. </ws-form-item>
  90. <ws-form-item label="本阶段运输重量(吨)" span="1" prop="weight">
  91. {{ item.weight }}
  92. </ws-form-item>
  93. </ws-info-table>
  94. <ws-info-table>
  95. <ws-form-item label="发货地区" span="1" prop="waterContent">
  96. {{ item.sendPrivate }}/{{ item.sendCity }}/{{ item.sendArea }}
  97. </ws-form-item>
  98. <!-- <ws-form-item label="发货地详细地址" span="1" prop="sendDetailedAddress">{{ item.sendDetailedAddress }}</ws-form-item> -->
  99. <ws-form-item label="发货人" span="1" prop="sender">
  100. {{ item.sender }}
  101. </ws-form-item>
  102. <ws-form-item label="发货人电话" span="1" prop="senderPhone">
  103. {{ item.senderPhone }}
  104. </ws-form-item>
  105. </ws-info-table>
  106. <ws-info-table>
  107. <ws-form-item label="收货地区" span="1" prop="waterContent">
  108. {{ item.receivePrivate }}/{{ item.receiveCity
  109. }}/{{ item.receiveArea }}
  110. </ws-form-item>
  111. <!-- <ws-form-item
  112. label="收货地详细地址"
  113. span="1"
  114. prop="receiveDetailedAddress"
  115. >
  116. {{ item.receiveDetailedAddress }}
  117. </ws-form-item> -->
  118. <ws-form-item label="收货人" span="1" prop="receiver">
  119. {{ item.receiver }}
  120. </ws-form-item>
  121. <ws-form-item label="收货人电话" span="1" prop="receiverPhone">
  122. {{ item.receiverPhone }}
  123. </ws-form-item>
  124. </ws-info-table>
  125. </div>
  126. <div style="text-align: right; padding: 10px">
  127. <el-button
  128. class="bg-bottom-up"
  129. type="primary"
  130. size="small"
  131. @click="revert()"
  132. >关闭</el-button
  133. >
  134. </div>
  135. </ws-form>
  136. </div>
  137. </template>
  138. <script>
  139. import { examinetran } from '@/model/tasksport/index'
  140. import Pagination from '@/components/Pagination'
  141. import WsUpload from '@/components/WsUpload'
  142. // import { dayjs, fmoney, EventBus } from 'base-core-lib'
  143. import { dayjs, EventBus } from 'base-core-lib'
  144. export default {
  145. name: 'viewSpareMoney',
  146. components: {
  147. WsUpload,
  148. Pagination,
  149. },
  150. watch: {
  151. // vesselId(val) {
  152. // this.getList()
  153. // },
  154. isShow(val) {
  155. this.showType = val
  156. },
  157. },
  158. data() {
  159. return {
  160. //多选按钮
  161. checkList: [],
  162. //弹出框
  163. dialogViewSpareMoney: false,
  164. dialogApproveFormVisible: false,
  165. // 船舶类型
  166. monetaryKey: null,
  167. // 表格显示数据
  168. tableDate: [],
  169. // 是否显示
  170. showType: true,
  171. // 年
  172. year: '',
  173. deptBudgetTotal: 0,
  174. currentPage: 1,
  175. pageSize: 10,
  176. searchType: 1,
  177. searchKeyWord: '',
  178. contractType: 2,
  179. startDate: null,
  180. endDate: null,
  181. goodnameList: {},
  182. // 提交类型
  183. submitType: true,
  184. storageType: [],
  185. readonly: true,
  186. appendixIdsAdd: '',
  187. uploadSuccess: {},
  188. onChange: {},
  189. gradeList: [],
  190. rules: {
  191. netWeight: [
  192. {
  193. required: true,
  194. type: 'number',
  195. message: '请输入活动名称',
  196. trigger: 'blur',
  197. },
  198. ],
  199. },
  200. size: 10,
  201. compId: localStorage.getItem('ws-pf_compId'),
  202. deptCircularPage: {},
  203. packtypeList: {},
  204. date: {
  205. year: dayjs().format('YYYY'),
  206. month: dayjs().format('MM'),
  207. },
  208. contractList: [],
  209. deptBudgetList: {},
  210. historyList: [],
  211. pickerBeginDateBefore: {
  212. disabledDate: (time) => {
  213. return time.getTime() > Date.now()
  214. },
  215. },
  216. accessoryTFs: false,
  217. }
  218. },
  219. activated() {
  220. this.getList()
  221. },
  222. methods: {
  223. //返回按钮
  224. revert() {
  225. this.$router.push({ path: 'tranManagementTransport' })
  226. },
  227. getList() {
  228. examinetran({ id: this.$route.query.id })
  229. .toPromise()
  230. .then((response) => {
  231. this.checkList = response.tranType.split(',')
  232. this.deptBudgetList = response
  233. // for (let i = 0; i < this.deptBudgetList.tranProcessInfoList.length; i++) {
  234. // this.deptBudgetList.tranProcessInfoList[i].sendDetailedAddress='黑龙江省黑河市五大连池市沾河林业局'
  235. // }
  236. })
  237. },
  238. approve() {},
  239. listQuery() {},
  240. },
  241. }
  242. </script>
  243. <style lang="scss" scoped>
  244. /deep/.basicInformation {
  245. .ws-info-table {
  246. border: none;
  247. }
  248. .el-form-item {
  249. width: 33.3333%;
  250. border: none;
  251. .el-form-item__label {
  252. background: transparent;
  253. border: none;
  254. }
  255. .el-form-item__content {
  256. border: none;
  257. }
  258. }
  259. }
  260. .title {
  261. position: relative;
  262. padding-left: 10px;
  263. }
  264. .title::before {
  265. content: '';
  266. display: inline-block;
  267. width: 5px;
  268. height: 30px;
  269. background: #5473e8;
  270. position: absolute;
  271. left: 0;
  272. }
  273. .el-form {
  274. padding: 0 10%;
  275. margin-top: 50px;
  276. }
  277. .el-button--primary {
  278. background-color: #5878e8;
  279. border-color: #5878e8;
  280. }
  281. .el-col {
  282. background: #f6f7fc;
  283. }
  284. .bg-right {
  285. text-align: right;
  286. padding: 16px 20px;
  287. }
  288. /deep/.address .ws-info-table .el-form-item {
  289. width: 100%;
  290. border: none;
  291. }
  292. /deep/.address .el-form-item .el-form-item__content {
  293. width: 30%;
  294. }
  295. .container {
  296. overflow: scroll;
  297. height: 120vh;
  298. }
  299. .deliverydate {
  300. display: inline-block;
  301. width: 10%;
  302. }
  303. /deep/.ws-info-table .el-form-item .el-form-item__label {
  304. text-align: center;
  305. font-size: 14px;
  306. font-weight: 400;
  307. color: #8890b1;
  308. line-height: 16px;
  309. border: none;
  310. width: -webkit-min-content;
  311. }
  312. .inspector {
  313. margin-top: 10px;
  314. }
  315. .inspector .zi {
  316. text-align: center;
  317. margin-left: 22px;
  318. color: #69708C;
  319. font-size: 14px;
  320. }
  321. .small-title {
  322. position: relative;
  323. padding: 10px;
  324. font-weight: 600;
  325. }
  326. .small-title::before {
  327. position: absolute;
  328. content: '';
  329. display: block;
  330. background: #5473e8;
  331. width: 4px;
  332. height: 14px;
  333. left: 0px;
  334. top: 13px;
  335. padding: 4px 2px;
  336. }
  337. .el-checkbox-group {
  338. margin-left: 120px;
  339. margin-top: -20px;
  340. }
  341. //底部表格
  342. /deep/.nei {
  343. .ws-info-table {
  344. border: none;
  345. }
  346. .el-form-item {
  347. // width: 33.3333%;
  348. border: none;
  349. .el-form-item__label {
  350. background: transparent;
  351. border: none;
  352. }
  353. .el-form-item__content {
  354. border: none;
  355. }
  356. }
  357. }
  358. /deep/.neifor {
  359. .ws-info-table {
  360. border: none;
  361. }
  362. .el-form-item {
  363. // width: 33.3333%;
  364. border: none;
  365. .el-form-item__label {
  366. background: transparent;
  367. border: none;
  368. }
  369. .el-form-item__content {
  370. border: none;
  371. }
  372. }
  373. }
  374. .ws-info-table .el-form-item {
  375. width: 25%;
  376. height: 50px;
  377. color: #69708c;
  378. font-size: 14px;
  379. }
  380. /deep/.basicInformation .el-form-item .el-form-item__content {
  381. background: #f5f7fa;
  382. border-radius: 4px;
  383. border: 1px solid #d8dce6;
  384. }
  385. /deep/.inspector .el-form-item .el-form-item__label {
  386. width: 30%;
  387. }
  388. .datafor {
  389. border: 1px solid #d8dce6;
  390. border-radius: 5px;
  391. margin-top: 30px;
  392. border-left: 5px solid #8890B1;
  393. }
  394. /deep/.datafor .el-form-item .el-form-item__content {
  395. background: #f5f7fa;
  396. border-radius: 5px;
  397. }
  398. /deep/.datafor .ws-info-table .el-form-item .el-form-item__label {
  399. background: #fafbfc;
  400. background: none;
  401. }
  402. /deep/.ws-info-table,
  403. /deep/.ws-info-table .el-form-item {
  404. border: none;
  405. }
  406. /deep/.ws-info-table{
  407. width: 99%;
  408. }
  409. /deep/.ws-info-table .el-form-item .el-form-item__content {
  410. border: none;
  411. }
  412. .driver {
  413. margin-left: 20px;
  414. height: 32px;
  415. line-height: 30px;
  416. font-size: 16px;
  417. color: #69708c;
  418. }
  419. .el-form{
  420. height: 73vh;
  421. overflow: scroll;
  422. }
  423. </style>