tranManagementLook.vue 11 KB

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