moveWarehouseTaskLook.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744
  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
  25. class="position"
  26. ref="deptBudgetList"
  27. :rules="rules"
  28. :model="deptBudgetList"
  29. >
  30. <div class="small-title" style="font-size: 16px">任务详情</div>
  31. <span
  32. >移库任务编号:
  33. <span style="font-weight: 600">{{ this.moveTaskNo }}</span></span
  34. >
  35. <!-- <div v-for="(item, index) in shipment" > -->
  36. <ws-info-table class="inout">
  37. <!--出货库-->
  38. <div class="library">
  39. <span style="margin-left: 14px"
  40. >出货库:{{ shipment1.sendWarehouse }}</span
  41. >
  42. <span class="status" v-show="shipment1.taskStatus == '待审核'">{{
  43. shipment1.taskStatus
  44. }}</span>
  45. <span class="status2" v-show="shipment1.taskStatus == '执行中'">{{
  46. shipment1.taskStatus
  47. }}</span>
  48. <span class="status1" v-show="shipment1.taskStatus == '已完成'">{{
  49. shipment1.taskStatus
  50. }}</span>
  51. </div>
  52. <!--出库经办人-->
  53. <ws-form-item label="出库经办人:" span="1" prop="agent">
  54. {{ shipment1.agent }}
  55. </ws-form-item>
  56. <el-divider direction="vertical" class="line"></el-divider>
  57. <!--出库重量(吨)-->
  58. <ws-form-item label="出库重量(吨):" span="1" prop="weight">
  59. {{ shipment1.weight }}
  60. </ws-form-item>
  61. <el-divider direction="vertical" class="line"></el-divider>
  62. <!--仓位-->
  63. <ws-form-item label="仓位:" span="1" prop="deliveryVolume">
  64. {{ shipment1.binNumber == null ? '未指定' : shipment1.binNumber }}
  65. </ws-form-item>
  66. <el-divider direction="vertical" class="line"></el-divider>
  67. <!--预计出库日期-->
  68. <ws-form-item label="预计出库日期:" span="1" prop="predictDate">
  69. {{ shipment1.predictDate }}
  70. </ws-form-item>
  71. </ws-info-table>
  72. <!-- </div> -->
  73. <!-- <div v-for="(items,index) in enter"> -->
  74. <ws-info-table class="inout">
  75. <div class="library">
  76. <span style="margin-left: 14px">
  77. 入货库:{{ enter.warehouseName }}</span
  78. >
  79. <span class="status" v-show="enter.taskStatus == '待审核'">{{
  80. enter.taskStatus
  81. }}</span>
  82. <span class="status2" v-show="enter.taskStatus == '执行中'">{{
  83. enter.taskStatus
  84. }}</span>
  85. <span class="status1" v-show="enter.taskStatus == '已完成'">{{
  86. enter.taskStatus
  87. }}</span>
  88. </div>
  89. <!--入库经办人-->
  90. <ws-form-item label="入库经办人:" span="1" prop="agent">
  91. {{ enter.agent }}
  92. </ws-form-item>
  93. <el-divider direction="vertical" class="line"></el-divider>
  94. <!--入库重量(吨)-->
  95. <ws-form-item label="入库重量(吨):" span="1" prop="weight">
  96. {{ enter.weight }}
  97. </ws-form-item>
  98. <el-divider direction="vertical" class="line"></el-divider>
  99. <!-- 仓位 -->
  100. <ws-form-item label="仓位:" span="1" prop="deliveryVolume">
  101. {{ enter.binNumber == null ? '未指定' : enter.binNumber }}
  102. </ws-form-item>
  103. <el-divider direction="vertical" class="line"></el-divider>
  104. <!--预计入库日期-->
  105. <ws-form-item label="预计入库日期:" span="1" prop="predictDate">
  106. {{ enter.predictDate }}
  107. </ws-form-item>
  108. </ws-info-table>
  109. <!-- </div> -->
  110. <ws-info-table class="goods">
  111. <!--货物信息-->
  112. <div class="library">
  113. <span style="line-height: 50px; color: #323233; margin-left: 14px"
  114. >货物信息</span
  115. >
  116. </div>
  117. <el-input
  118. placeholder="信息暂无"
  119. :disabled="true"
  120. v-model="this.goodsName"
  121. ></el-input>
  122. <el-divider direction="vertical" class="line1"></el-divider>
  123. <el-input
  124. placeholder="信息暂无"
  125. :disabled="true"
  126. v-model="this.grade"
  127. ></el-input>
  128. <el-divider direction="vertical" class="line1"></el-divider>
  129. <el-input
  130. placeholder="信息暂无"
  131. :disabled="true"
  132. v-model="this.bulkDensity + 'g/L(容)'"
  133. >
  134. </el-input>
  135. <el-divider direction="vertical" class="line1"></el-divider>
  136. <el-input
  137. placeholder="信息暂无"
  138. :disabled="true"
  139. v-model="this.waterContent + '%(水)'"
  140. >
  141. </el-input>
  142. <el-divider direction="vertical" class="line1"></el-divider>
  143. <el-input
  144. placeholder="信息暂无"
  145. :disabled="true"
  146. v-model="this.weight + '(吨)'"
  147. >
  148. </el-input>
  149. <el-divider direction="vertical" class="line1"></el-divider>
  150. <el-input
  151. placeholder="信息暂无"
  152. :disabled="true"
  153. v-model="this.unitPrice + '(元/吨)'"
  154. >
  155. </el-input>
  156. </ws-info-table>
  157. <span style="line-height: 60px; text-align: center; color: #323233"
  158. >业务描述:</span
  159. >
  160. <!--业务描述-->
  161. <ws-input
  162. v-model="businessDescribe"
  163. type="textarea"
  164. row="3"
  165. placeholder="暂无"
  166. maxlength="200"
  167. />
  168. <div class="small-title" style="font-size: 16px">实际流转数量</div>
  169. <ws-info-table class="flow">
  170. <el-table :data="weights" border style="width: 100%">
  171. <el-table-column prop="weightOut" label="累计出库量(吨)">
  172. </el-table-column>
  173. <el-table-column prop="weightIn" label="累计入库量(吨)">
  174. </el-table-column>
  175. <el-table-column prop="transportLoss" label="累计运输损耗(吨)">
  176. <template scope="scope">
  177. {{ scope.row.weightOut - scope.row.weightIn - Number(count)}}
  178. </template>
  179. </el-table-column>
  180. </el-table>
  181. </ws-info-table>
  182. <ws-info-table class="flow1">
  183. <el-table
  184. :data="enter.inOutWarehouseTaskList"
  185. border
  186. style="width: 100%"
  187. >
  188. <el-table-column prop="weight" label="累计退库量(吨)">
  189. <el-table-column :label="count">
  190. <template scope="scope">
  191. {{ scope.row.weight
  192. }}<span style="margin: 0 30px; color: #8890b1">退至</span
  193. >{{ scope.row.warehouseName }}
  194. </template>
  195. </el-table-column>
  196. </el-table-column>
  197. </el-table>
  198. </ws-info-table>
  199. </ws-form>
  200. <!-- 提交 -->
  201. <div style="text-align: right; padding: 10px" class="center">
  202. <el-button
  203. class="bg-bottom"
  204. type="primary"
  205. size="small"
  206. @click="returnsales"
  207. >关闭</el-button
  208. >
  209. </div>
  210. </div>
  211. </template>
  212. <script>
  213. import { moveLook } from '@/model/tasksport/index'
  214. import WsUpload from '@/components/WsUpload'
  215. import mapDrag from '@/components/mapdrag/mapdrag'
  216. export default {
  217. name: 'viewSpareMoney',
  218. components: {
  219. WsUpload,
  220. mapDrag,
  221. },
  222. watch: {
  223. vesselId(val) {
  224. this.getVesselData()
  225. },
  226. isShow(val) {
  227. this.showType = val
  228. },
  229. },
  230. data() {
  231. return {
  232. deptBudgetList: {
  233. totalStorage: 0,
  234. },
  235. listDate: { country: '中国', level: 'country', city: '' },
  236. tranType: 2,
  237. rules: {
  238. warehouseName: [
  239. {
  240. required: true,
  241. message: '请输入仓库名称',
  242. trigger: 'blur',
  243. },
  244. {
  245. min: 2,
  246. max: 20,
  247. message: '仓库名长度不符合要求,请输入2-20字符之内',
  248. trigger: 'blur',
  249. },
  250. ],
  251. },
  252. appendixIdsAdd: '',
  253. size: 10,
  254. unitList: [],
  255. name: '',
  256. moveLookData: [],
  257. shipment: {},
  258. shipment1: {},
  259. enter: {
  260. inOutWarehouseTaskList:[],
  261. },
  262. moveTaskNo: '',
  263. weights: [
  264. {},
  265. ],
  266. weightOut: 0,
  267. weightIn: 0,
  268. transportLoss: 0,
  269. weightIn: 0,
  270. retreat: 0,
  271. goodsName: '',
  272. grade: '',
  273. bulkDensity: 0,
  274. waterContent: 0,
  275. weight: 0,
  276. unitPrice: 0,
  277. businessDescribe: '',
  278. count: '0',
  279. }
  280. },
  281. activated() {
  282. this.moveTaskNo = this.$route.query.moveTaskNo
  283. this.getList()
  284. },
  285. mounted() {
  286. this.moveTaskNo = this.$route.query.moveTaskNo
  287. this.getList()
  288. },
  289. methods: {
  290. marker: function (item) {
  291. this.deptBudgetList.warehousePositioning =
  292. item.lnglat.lat + ',' + item.lnglat.lng
  293. },
  294. confirmPositioncity() {
  295. this.listDate.level = 'city'
  296. this.listDate.country = this.name
  297. },
  298. // 关闭 dialog时 处理文件url 初始化upload组件
  299. handleClose() {
  300. this.dialogViewSpareMoney = false
  301. },
  302. returnsales() {
  303. this.moveLookData = []
  304. this.$router.go(-1)
  305. },
  306. // 上传附件
  307. uploadSuccess(data, files, url) {
  308. console.log(data, files, url)
  309. },
  310. resetForm(deptBudgetList) {
  311. this.$refs[deptBudgetList].resetFields()
  312. },
  313. getList() {
  314. moveLook({ moveTaskNo: this.moveTaskNo })
  315. .toPromise()
  316. .then((response) => {
  317. this.moveLookData = response
  318. for (var i = 0; i < this.moveLookData.length; i++) {
  319. if (this.moveLookData[i].inOutType == '移库出库') {
  320. this.shipment = this.moveLookData[i]
  321. this.shipment1 = this.moveLookData[i]
  322. this.weightOut = this.moveLookData[i].weight
  323. this.$set(
  324. this.weights[0],
  325. 'weightOut',
  326. this.moveLookData[i].weight
  327. )
  328. } else {
  329. // if (this.moveLookData[i].inOutType == '移库入库')
  330. this.enter = this.shipment = this.moveLookData[i]
  331. this.weightIn = this.moveLookData[i].weight
  332. this.$set(
  333. this.weights[0],
  334. 'weightIn',
  335. this.moveLookData[i].weight
  336. )
  337. this.businessDescribe = this.moveLookData[i].businessDescribe
  338. }
  339. this.transportLoss = this.weightOut - this.weightIn
  340. this.goodsName = this.moveLookData[0].goodsName
  341. this.grade = this.moveLookData[0].grade
  342. this.bulkDensity = this.moveLookData[0].bulkDensity
  343. this.waterContent = this.moveLookData[0].waterContent
  344. this.weight = this.moveLookData[0].weight
  345. this.unitPrice = this.moveLookData[0].unitPrice
  346. }
  347. var num = 0
  348. for (var i = 0; i < this.enter.inOutWarehouseTaskList.length; i++) {
  349. num += this.enter.inOutWarehouseTaskList[i].weight
  350. }
  351. this.count = ""+num
  352. })
  353. },
  354. selectChapterTwo(e) {
  355. for (var i = 0; i < this.ChapterTwoList.length; i++) {
  356. if (this.ChapterTwoList[i].constValue == e) {
  357. this.deptBudgetList.gradeKey = this.ChapterTwoList[i].constKey
  358. }
  359. }
  360. },
  361. selectunitList(e) {
  362. for (var i = 0; i < this.unitList.length; i++) {
  363. if (this.unitList[i].constValue == e) {
  364. this.deptBudgetList.acceptanceMethodKey = this.unitList[i].constKey
  365. }
  366. }
  367. },
  368. selectgrade(e) {
  369. for (var i = 0; i < this.gradeList.length; i++) {
  370. if (this.gradeList[i].constValue == e) {
  371. this.deptBudgetList.gradeKey = this.gradeList[i].constKey
  372. }
  373. }
  374. },
  375. selectgoodsName(e) {
  376. for (var i = 0; i < this.goodnameList.length; i++) {
  377. if (this.goodnameList[i].constValue == e) {
  378. this.deptBudgetList.goodsNameKey = this.goodnameList[i].constKey
  379. }
  380. }
  381. },
  382. selectpackingMethod(e) {
  383. for (var i = 0; i < this.packtypeList.length; i++) {
  384. if (this.packtypeList[i].constValue == e) {
  385. this.deptBudgetList.packingMethodKey = this.packtypeList[i].constKey
  386. }
  387. }
  388. },
  389. },
  390. }
  391. </script>
  392. <style lang="scss" scoped>
  393. //蓝标
  394. .small-title {
  395. position: relative;
  396. padding: 10px;
  397. font-weight: 600;
  398. }
  399. .small-title::before {
  400. position: absolute;
  401. content: '';
  402. display: block;
  403. background: #5473e8;
  404. width: 4px;
  405. height: 14px;
  406. left: 0px;
  407. top: 13px;
  408. }
  409. .amap-page-container {
  410. width: 300px;
  411. height: 300px;
  412. }
  413. .el-form {
  414. padding: 0 15%;
  415. }
  416. /deep/.ws-info-table .el-form-item {
  417. width: 23%;
  418. border: none;
  419. height: 50px;
  420. }
  421. .readonly {
  422. position: relative;
  423. }
  424. .readonly:after {
  425. content: '*';
  426. color: #ff2727;
  427. position: absolute;
  428. right: 8px;
  429. z-index: 10;
  430. top: 21%;
  431. font-size: 20px;
  432. }
  433. .title {
  434. position: relative;
  435. }
  436. .title::before {
  437. content: '';
  438. display: inline-block;
  439. width: 5px;
  440. height: 30px;
  441. background: #5473e8;
  442. position: absolute;
  443. left: 0;
  444. }
  445. .el-button--primary {
  446. background-color: #5878e8;
  447. border-color: #5878e8;
  448. }
  449. .el-col {
  450. background: #f6f7fc;
  451. }
  452. /deep/.ws-info-table .el-form-item .el-form-item__content {
  453. border: none;
  454. font-size: 14px;
  455. // color: #8890b1;
  456. }
  457. /deep/.ws-info-table .el-form-item .el-form-item__label {
  458. text-align: right;
  459. background: #fff;
  460. font-size: 14px;
  461. font-weight: 400;
  462. width: 52%;
  463. }
  464. .button-container {
  465. display: flex;
  466. flex-wrap: nowrap;
  467. justify-content: space-between;
  468. align-items: center;
  469. background-color: #fff;
  470. width: 100%;
  471. height: 50px;
  472. padding: 0 10px;
  473. & > div {
  474. margin-left: 10px;
  475. display: flex;
  476. flex-wrap: nowrap;
  477. flex-direction: row;
  478. & > span {
  479. line-height: 50px;
  480. }
  481. }
  482. /deep/.auditFlow-box {
  483. position: unset;
  484. margin-left: 10px;
  485. &/deep/.auditFlow-icon {
  486. width: auto;
  487. padding-right: 30px;
  488. }
  489. &/deep/.auditFlow-main {
  490. position: absolute;
  491. }
  492. }
  493. }
  494. .box-app {
  495. display: inline-block;
  496. float: left;
  497. margin-left: 30px;
  498. line-height: 50px;
  499. }
  500. /deep/.el-dialog {
  501. .el-form-item {
  502. margin-bottom: 0 !important;
  503. .el-input--medium {
  504. textarea {
  505. min-height: 100px !important;
  506. }
  507. }
  508. }
  509. }
  510. .collapse-bottom {
  511. margin-bottom: 20px;
  512. }
  513. .input-main .textarea .el-textarea__inner {
  514. width: 100%;
  515. z-index: 1;
  516. }
  517. .bg-left {
  518. padding-left: 30px;
  519. }
  520. .bg-right {
  521. padding-right: 10px;
  522. text-align: right;
  523. }
  524. .bg-bottom {
  525. margin: 15px 0px;
  526. }
  527. .center {
  528. width: 90%;
  529. margin: 0 auto;
  530. }
  531. .el-form-item__label {
  532. text-align: center;
  533. }
  534. /*.crt-main .textarea /deep/ .el-form-item__label {*/
  535. /* height: 82px;*/
  536. /*}*/
  537. // 控制select为只读的时候显示样式
  538. .hide-sel {
  539. .el-input__inner {
  540. border: 0px;
  541. }
  542. .el-icon-arrow-up {
  543. display: none;
  544. }
  545. .el-date-editor {
  546. i {
  547. display: none;
  548. }
  549. }
  550. .is-disabled {
  551. .el-input__inner:hover {
  552. background-color: #fff !important;
  553. border: 0;
  554. }
  555. color: #606266;
  556. .el-input__inner {
  557. background-color: #fff !important;
  558. border: 0;
  559. color: #606266;
  560. }
  561. .el-textarea__inner {
  562. background-color: #fff !important;
  563. border: 0;
  564. color: #606266;
  565. }
  566. }
  567. }
  568. // 控制select为只读的时候显示样式
  569. /deep/.ws-class-table-col {
  570. height: auto;
  571. padding: 0px 2px;
  572. /deep/.el-input__inner {
  573. padding: 0px 2px;
  574. }
  575. }
  576. /deep/.is-disabled {
  577. .el-input__prefix,
  578. .el-input__suffix {
  579. display: none;
  580. }
  581. .el-input__inner {
  582. background-color: #fff;
  583. border-color: #fff !important;
  584. color: #000 !important;
  585. font-size: 14px;
  586. cursor: text;
  587. padding: 0 !important;
  588. }
  589. }
  590. .winseaview-view {
  591. padding: 0 0 20px;
  592. }
  593. .container {
  594. overflow: scroll;
  595. height: 93vh;
  596. }
  597. .readonly:after {
  598. display: none;
  599. }
  600. .el-form {
  601. margin-top: 50px;
  602. }
  603. .readonly {
  604. width: 16%;
  605. }
  606. //去边框
  607. /deep/.el-form-item {
  608. border-right: 0px;
  609. border-bottom: 0px;
  610. width: 50%;
  611. }
  612. /deep/.ws-info-table {
  613. border-left: 0px;
  614. border-top: 0px;
  615. }
  616. //输入框
  617. /deep/.el-input {
  618. width: 14.555%;
  619. margin-left: 10px;
  620. }
  621. /deep/.is-disabled .el-input__inner {
  622. height: 40px;
  623. text-align: center;
  624. }
  625. .library {
  626. width: 100%;
  627. height: 50px;
  628. border-bottom: 1px solid #d8dce6;
  629. color: #232323;
  630. line-height: 50px;
  631. }
  632. .line {
  633. height: 50px;
  634. // left: -80px;
  635. }
  636. .line1 {
  637. height: 50px;
  638. }
  639. /deep/.is-disabled .el-input__inner {
  640. margin-top: 4px;
  641. }
  642. //业务描述
  643. /deep/.el-textarea {
  644. width: 90%;
  645. // margin-left: 24px;
  646. margin-top: 20px;
  647. }
  648. .inout {
  649. border-radius: 4px;
  650. border: 1px solid #d8dce6;
  651. margin-top: 20px;
  652. }
  653. .goods {
  654. border-radius: 4px;
  655. border: 1px solid #d8dce6;
  656. margin-top: 20px;
  657. }
  658. .flow,
  659. .flow1 {
  660. border-radius: 5px;
  661. border: 1px solid #d8dce6;
  662. margin-top: 20px;
  663. // border-bottom: 0px;
  664. border-top: 0px;
  665. }
  666. .flow {
  667. height: 95px;
  668. }
  669. /deep/.flow .el-form-item {
  670. display: inline-grid;
  671. border-bottom: 1px solid #d8dce6;
  672. width: 30%;
  673. height: 50px;
  674. text-align: center;
  675. }
  676. .flow .el-col {
  677. background: #fff;
  678. display: contents;
  679. }
  680. .flow1 {
  681. width: 33.333%;
  682. }
  683. /deep/.el-table th > .cell {
  684. text-align: center;
  685. border-right: 1px solid #d8dce6;
  686. background: #fff;
  687. }
  688. .weights {
  689. width: 100%;
  690. height: 50px;
  691. text-align: center;
  692. line-height: 50px;
  693. }
  694. /deep/.el-textarea__inner {
  695. border: none;
  696. }
  697. /deep/.el-table th > .cell {
  698. color: #000 !important;
  699. font-weight: 400;
  700. }
  701. /deep/.el-table td {
  702. text-align: center;
  703. }
  704. .status {
  705. margin-left: 10px;
  706. background: #e6eaf8;
  707. padding: 2px 5px;
  708. border-radius: 3px;
  709. color: #5473e8;
  710. }
  711. .status1 {
  712. margin-left: 10px;
  713. background: #e5f1f7;
  714. padding: 2px 5px;
  715. border-radius: 3px;
  716. color: #50cad4;
  717. }
  718. .status2 {
  719. margin-left: 10px;
  720. background: #e1e7fd;
  721. padding: 2px 5px;
  722. border-radius: 3px;
  723. color: #5473e8;
  724. }
  725. </style>