storageContractExamine.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692
  1. <!--采购合同查看-->
  2. <!--2019年5月30日 20:25:16 by jlx-->
  3. <template>
  4. <div class="container">
  5. <el-row>
  6. <el-col :span="12">
  7. <h2 class="bg-left title">查看合同详情</h2>
  8. </el-col>
  9. <el-col :span="12" class="bg-right">
  10. <el-button class="bg-bottom" type="primary" size="small" @click="returnsales()"><img width="6" height="10"
  11. style="vertical-align: bottom; margin-right: 3px" src="../../../public/img/lujing.png" alt="" />返回
  12. </el-button>
  13. </el-col>
  14. </el-row>
  15. <ws-form ref="deptBudgetList" :rules="mainReportAdd" :model="deptBudgetList">
  16. <div class="title-top">
  17. 代储合同<span class="title-number">【编号:{{ deptBudgetList.contractNo }}】</span>
  18. <div class="icon" v-if="deptBudgetList.status">
  19. <template>
  20. <el-popover placement="right" :width="285" trigger="click" visible-arrow="false"
  21. @show="history(deptBudgetList.id)">
  22. <template>
  23. <div slot="reference"> {{deptBudgetList.status }}</div>
  24. </template>
  25. <div>
  26. <p style="margin-top: 0; padding-left: 10px">操作历史</p>
  27. <div v-for="(item, index) in historyList" class="flex">
  28. <div class="vertical-text vertical-text-left">
  29. {{ item.updateDate }}
  30. </div>
  31. <div>
  32. <div class="vertical-circle"></div>
  33. <div v-if="index != historyList.length - 1" class="vertical-line"></div>
  34. </div>
  35. <div class="vertical-text">
  36. {{ item.operateUser }}<br />{{ item.dealMsg }}
  37. </div>
  38. </div>
  39. </div>
  40. </el-popover>
  41. </template>
  42. </div>
  43. </div>
  44. <div class="remark">
  45. <h3>基本信息</h3>
  46. </div>
  47. <ws-info-table>
  48. <ws-form-item label="合同编号" span="1" prop="contractNo">
  49. {{ deptBudgetList.contractNo }}
  50. </ws-form-item>
  51. <ws-form-item label="运输方式" span="1" prop="shippingType">
  52. {{ deptBudgetList.shippingType }}
  53. </ws-form-item>
  54. <ws-form-item label="买方" span="1" prop="buyer">
  55. {{ deptBudgetList.buyer }}
  56. </ws-form-item>
  57. <ws-form-item label="结算方式" span="1" prop="settlementMethod">{{ deptBudgetList.settlementMethod }}
  58. </ws-form-item>
  59. <ws-form-item label="卖方" span="1" prop="seller">{{ deptBudgetList.seller }}
  60. </ws-form-item>
  61. <ws-form-item label="交货方式" span="1" prop="deliverType1">{{ deptBudgetList.deliverType1 }}
  62. </ws-form-item>
  63. <ws-form-item label="买方电话" span="1" prop="buyerPhone">{{ deptBudgetList.buyerPhone }}
  64. </ws-form-item>
  65. <ws-form-item label="包装方式" span="1" prop="packingMethod">
  66. {{ deptBudgetList.packingMethod }}
  67. </ws-form-item>
  68. <ws-form-item label="卖方电话" span="1" prop="sellerPhone">
  69. {{ deptBudgetList.sellerPhone }}
  70. </ws-form-item>
  71. <ws-form-item label="验收方式" span="1" prop="acceptanceMethod">
  72. {{ deptBudgetList.acceptanceMethod }}
  73. </ws-form-item>
  74. <ws-form-item label="重量(吨)" span="1" prop="weight">
  75. {{ deptBudgetList.weight }}
  76. </ws-form-item>
  77. <ws-form-item label="交货日期(起)" span="1" prop="deliveryDateStart">
  78. {{ deptBudgetList.deliveryDateStart }}
  79. </ws-form-item>
  80. <ws-form-item label="溢短装(%)" span="1" prop="overShort">
  81. {{ deptBudgetList.overShort }}
  82. </ws-form-item>
  83. <ws-form-item label="交货日期(止)" span="1" prop="deliveryDateEnd">
  84. {{ deptBudgetList.deliveryDateEnd }}
  85. </ws-form-item>
  86. <ws-form-item label="货源所在地区" span="1">
  87. {{ deptBudgetList.sourceProvince }}
  88. {{ deptBudgetList.sourceCity }}
  89. {{ deptBudgetList.sourceArea }}
  90. </ws-form-item>
  91. <ws-form-item label="货源详细地址" span="1" prop="sourceGoods">
  92. {{ deptBudgetList.sourceGoods }}
  93. </ws-form-item>
  94. <ws-form-item label="交货地所在地区" span="1">
  95. {{ deptBudgetList.deliveryProvince }}
  96. {{ deptBudgetList.deliveryCity }}
  97. {{ deptBudgetList.deliveryArea }}
  98. </ws-form-item>
  99. <ws-form-item label="交货地详细地址" span="1" prop=" placeDelivery">
  100. {{ deptBudgetList.placeDelivery }}
  101. </ws-form-item>
  102. <ws-form-item label="代储费(元/吨·天)" span="1" prop="storageFee">
  103. {{deptBudgetList.storageFee}}
  104. </ws-form-item>
  105. <ws-form-item label="合同单价(元/吨)" span="1" prop="unitContractPrice" v-if="deptBudgetList.priceType == '定价采购'">
  106. {{ deptBudgetList.unitContractPrice }}
  107. </ws-form-item>
  108. <ws-form-item label="代储费起算重量" span="1" prop="storageFeeWeight">
  109. {{deptBudgetList.storageFeeWeight}}
  110. </ws-form-item>
  111. <ws-form-item label="合同总价(元)" span="1" prop="totalContractPrice" v-if="deptBudgetList.priceType == '定价采购'">
  112. {{ deptBudgetList.totalContractPrice }}
  113. </ws-form-item>
  114. <ws-form-item label="代储费起算日期" span="1" prop="storageFeeStartdate">
  115. {{deptBudgetList.storageFeeStartdate}}
  116. </ws-form-item>
  117. <ws-form-item label="签订日期" span="1" prop="signingDate">
  118. {{ deptBudgetList.signingDate }}
  119. </ws-form-item>
  120. <ws-form-item label="代储费预计终止日期" span="1" prop="storageFeeEnddate">
  121. {{deptBudgetList.storageFeeEnddate}}
  122. </ws-form-item>
  123. <ws-form-item label="最终实际交易量(吨)" span="1" prop="finalTradingVolume">
  124. {{ deptBudgetList.finalTradingVolume }}
  125. </ws-form-item>
  126. </ws-info-table>
  127. <div class="remark">
  128. <h3>货物信息</h3>
  129. </div>
  130. <ws-info-table>
  131. <ws-form-item label="货名" span="1" prop="waterContent">
  132. {{ deptBudgetList.contractGoodsInfo.goodsName }}
  133. </ws-form-item>
  134. <ws-form-item label="水分(%)<=" span="1" prop="intendedShipId">
  135. {{ deptBudgetList.contractGoodsInfo.waterContent }}
  136. </ws-form-item>
  137. <ws-form-item label="品级" span="1" prop="grade">
  138. {{ deptBudgetList.contractGoodsInfo.grade }}
  139. </ws-form-item>
  140. <ws-form-item label="杂质(%)<=" span="1" prop="impurity">
  141. {{ deptBudgetList.contractGoodsInfo.impurity }}
  142. </ws-form-item>
  143. <ws-form-item label="容重(克/升)>=" span="1" prop="bulkDensity">
  144. {{ deptBudgetList.contractGoodsInfo.bulkDensity }}
  145. </ws-form-item>
  146. <ws-form-item label="霉变粒(%)<=" span="1" prop="mildewGrain" class="result">
  147. {{ deptBudgetList.contractGoodsInfo.mildewGrain }}
  148. </ws-form-item>
  149. <ws-form-item label="热损伤(%)<=" span="1" prop="jiaorenli">
  150. {{ deptBudgetList.contractGoodsInfo.jiaorenli }}
  151. </ws-form-item>
  152. <ws-form-item label="不完善粒(%)<=" span="1" prop="imperfectGrain" class="result">
  153. {{ deptBudgetList.contractGoodsInfo.imperfectGrain }}
  154. </ws-form-item>
  155. </ws-info-table>
  156. <div class="remark">
  157. <h3>流程信息</h3>
  158. </div>
  159. <ws-info-table>
  160. <!--已付款(元)-->
  161. <ws-form-item label="已付款(元)" span="1" prop="mildewGrain">
  162. {{deptBudgetList.contractProcessInfo.mildewGrain}}
  163. </ws-form-item>
  164. <ws-form-item label="已开销售发票(元)" span="1" prop="goodsName">
  165. {{ deptBudgetList.contractProcessInfo.goodsName }}
  166. </ws-form-item>
  167. <ws-form-item label="费用支出(元)" span="1" prop="waterContent">{{ deptBudgetList.contractProcessInfo.waterContent }}
  168. </ws-form-item>
  169. <ws-form-item label="未开销售发票(元)" span="1" prop="impurity">{{ deptBudgetList.contractProcessInfo.impurity }}
  170. </ws-form-item>
  171. <!--未回款(元)-->
  172. <ws-form-item label="未回款(元)" span="1" prop="mildewGrain">
  173. {{deptBudgetList.contractProcessInfo.mildewGrain}}
  174. </ws-form-item>
  175. <ws-form-item label="双章原件回收情况" span="1" prop="grade">{{ deptBudgetList.contractProcessInfo.grade }}
  176. </ws-form-item>
  177. </ws-info-table>
  178. <div class="remark">
  179. <h3>备注信息</h3>
  180. </div>
  181. <div style=" color: #afb5cb;margin-left: 20px;">
  182. {{ deptBudgetList.remarks }}
  183. </div>
  184. <ws-upload ref="upload" :comp-id="compId" :appendix-ids="deptBudgetList.addressUrl" :editable="false"
  185. accept=".jpg, .jpeg, .png, .pdf, .doc, .zip, .rar" />
  186. </ws-form>
  187. <div style="text-align: right; padding: 10px">
  188. <el-button class="bg-bottom" type="primary" size="small" @click="returnsales()">关闭</el-button>
  189. </div>
  190. </div>
  191. </template>
  192. <script>
  193. import {
  194. packList,
  195. xiala,
  196. examineList,
  197. billoperatehis,
  198. } from '@/model/contarct/index'
  199. import {
  200. gettaskhistories
  201. } from '@/model/tasksport/index'
  202. import WsUpload from '@/components/WsUpload'
  203. export default {
  204. name: 'viewSpareMoney',
  205. components: {
  206. WsUpload,
  207. },
  208. watch: {
  209. vesselId(val) {
  210. this.getVesselData()
  211. },
  212. isShow(val) {
  213. this.showType = val
  214. },
  215. },
  216. data() {
  217. return {
  218. //弹出框
  219. dialogViewSpareMoney: false,
  220. dialogApproveFormVisible: false,
  221. // 船舶类型
  222. monetaryKey: null,
  223. // 表格显示数据
  224. tableDate: [],
  225. // 是否显示
  226. showType: true,
  227. // 年
  228. year: '',
  229. status: '',
  230. // 提交类型
  231. submitType: true,
  232. historyList: [],
  233. tableData: [{
  234. date: 1111,
  235. name: 'qqqq',
  236. address: 'errrtt'
  237. }],
  238. ruleDeptBudget: [],
  239. taskhistories: [],
  240. deptBudgetList: {
  241. contractProcessInfo: {},
  242. contractGoodsInfo: {},
  243. },
  244. mainReportAdd: {},
  245. list: {},
  246. compId: localStorage.getItem('ws-pf_compId'),
  247. }
  248. },
  249. activated() {
  250. this.status = this.$route.query.status
  251. this.loaddata()
  252. this.showType = this.isShow
  253. },
  254. methods: {
  255. loaddata() {
  256. gettaskhistories({
  257. businessKey: this.$route.query.id,
  258. workflowId: this.$route.query.workflowId
  259. }).toPromise()
  260. .then((response) => {
  261. this.taskhistories = response
  262. })
  263. // 数据
  264. examineList({
  265. id: this.$route.query.id
  266. })
  267. .toPromise()
  268. .then((response) => {
  269. this.deptBudgetList = response
  270. if (this.deptBudgetList.deliverType == 1) {
  271. this.deptBudgetList.deliverType1 = '我方自提'
  272. } else if (this.deptBudgetList.deliverType == 2) {
  273. this.deptBudgetList.deliverType1 = '对方送货'
  274. }
  275. })
  276. // 包装方式
  277. packList({
  278. constId: 'CON1'
  279. })
  280. .toPromise()
  281. .then((response) => {
  282. this.packtypeList = response
  283. })
  284. // 验收方式
  285. this.getUnitList()
  286. // 货名
  287. packList({
  288. constId: 'CON2'
  289. })
  290. .toPromise()
  291. .then((response) => {
  292. this.goodnameList = response
  293. })
  294. // 品级
  295. packList({
  296. constId: 'CON3'
  297. })
  298. .toPromise()
  299. .then((response) => {
  300. this.gradeList = response
  301. })
  302. // 双章
  303. packList({
  304. constId: 'CON4'
  305. })
  306. .toPromise()
  307. .then((response) => {
  308. this.ChapterTwoList = response
  309. })
  310. },
  311. getUnitList() {
  312. xiala({
  313. compId: localStorage.getItem('ws-pf_compId'),
  314. constCode: 'TYPEYAN',
  315. })
  316. .toPromise()
  317. .then((response) => {
  318. this.unitList = response
  319. let currItem
  320. this.unitList.forEach((item, index, arr) => {
  321. item.flag = 'delete'
  322. if (this.vModel == item.constKey) {
  323. currItem = item
  324. }
  325. })
  326. //
  327. if (currItem) {
  328. this.selectContract(currItem.constValue)
  329. }
  330. })
  331. },
  332. history(id1) {
  333. billoperatehis({
  334. id: id1
  335. })
  336. .toPromise()
  337. .then((response) => {
  338. this.historyList = response
  339. })
  340. },
  341. // 关闭 dialog时 处理文件url 初始化upload组件
  342. handleClose() {
  343. this.dialogViewSpareMoney = false
  344. },
  345. returnsales() {
  346. this.$router.go(-1)
  347. },
  348. },
  349. }
  350. </script>
  351. <style lang="scss" scoped>
  352. // .status-orange,
  353. // .status-bule,
  354. // .status-green {
  355. // border: 1px solid;
  356. // border-radius: 30px;
  357. // padding: 3px 10px;
  358. // font-size: 16px;
  359. // }
  360. // .status-orange {
  361. // border-color: #ff9f24;
  362. // color: #ff9f24;
  363. // background: #ffedd5;
  364. // }
  365. // .status-bule {
  366. // border-color: #5473e8;
  367. // color: #5473e8;
  368. // background: #f0f3fe;
  369. // }
  370. // .status-green {
  371. // border-color: #50cad4;
  372. // color: #50cad4;
  373. // background: #ecfeff;
  374. // }
  375. .el-form {
  376. padding: 0 15%;
  377. }
  378. /deep/.ws-info-table .el-form-item {
  379. border-right: 1px solid #cdd2dc;
  380. border-bottom: 1px solid #cdd2dc;
  381. }
  382. // .readonly {
  383. // position: relative;
  384. // }
  385. // .readonly:after {
  386. // content: '*';
  387. // color: #ff2727;
  388. // position: absolute;
  389. // right: 8px;
  390. // z-index: 10;
  391. // top: 21%;
  392. // font-size: 20px;
  393. // }
  394. .title {
  395. position: relative;
  396. }
  397. .title::before {
  398. content: '';
  399. display: inline-block;
  400. width: 5px;
  401. height: 30px;
  402. background: #5473e8;
  403. position: absolute;
  404. left: 0;
  405. }
  406. .el-button--primary {
  407. background-color: #5878e8;
  408. border-color: #5878e8;
  409. }
  410. .el-col {
  411. background: #f6f7fc;
  412. }
  413. /deep/.ws-info-table .el-form-item .el-form-item__content {
  414. padding: 0 25px;
  415. border-left: 1px solid #cdd2dc;
  416. background: #fafbfc;
  417. color: #afb5cb;
  418. }
  419. /deep/.ws-info-table .el-form-item .el-form-item__label {
  420. width: 140px;
  421. text-align: center;
  422. background: #f0f2f6;
  423. // border: 1px solid #cdd2dc;
  424. }
  425. // .button-container {
  426. // display: flex;
  427. // flex-wrap: nowrap;
  428. // justify-content: space-between;
  429. // align-items: center;
  430. // background-color: #fff;
  431. // width: 100%;
  432. // height: 50px;
  433. // padding: 0 10px;
  434. // &>div {
  435. // margin-left: 10px;
  436. // display: flex;
  437. // flex-wrap: nowrap;
  438. // flex-direction: row;
  439. // &>span {
  440. // line-height: 50px;
  441. // }
  442. // }
  443. // /deep/.auditFlow-box {
  444. // position: unset;
  445. // margin-left: 10px;
  446. // &/deep/.auditFlow-icon {
  447. // width: auto;
  448. // padding-right: 30px;
  449. // }
  450. // &/deep/.auditFlow-main {
  451. // position: absolute;
  452. // }
  453. // }
  454. // }
  455. .box-app {
  456. display: inline-block;
  457. float: left;
  458. margin-left: 30px;
  459. line-height: 50px;
  460. }
  461. /deep/.el-dialog {
  462. .el-form-item {
  463. margin-bottom: 0 !important;
  464. .el-input--medium {
  465. textarea {
  466. min-height: 100px !important;
  467. }
  468. }
  469. }
  470. }
  471. .collapse-bottom {
  472. margin-bottom: 20px;
  473. }
  474. .input-main .textarea .el-textarea__inner {
  475. width: 100%;
  476. z-index: 1;
  477. }
  478. .bg-left {
  479. padding-left: 30px;
  480. }
  481. .bg-right {
  482. padding-right: 10px;
  483. text-align: right;
  484. }
  485. .bg-bottom {
  486. margin: 15px 0px;
  487. }
  488. // .wenzi {
  489. // width: 900px;
  490. // margin: 0 auto;
  491. // }
  492. // .wenzi h3 {
  493. // display: inline-block;
  494. // left: 10px;
  495. // }
  496. // .wenzi p {
  497. // display: inline-block;
  498. // }
  499. .center {
  500. width: 900px;
  501. margin: 0 auto;
  502. }
  503. .el-form-item {
  504. width: 50%;
  505. }
  506. .el-form-item__label {
  507. text-align: center;
  508. }
  509. // .ce {
  510. // width: 900px;
  511. // margin: 0 auto;
  512. // }
  513. /*.crt-main .textarea /deep/ .el-form-item__label {*/
  514. /* height: 82px;*/
  515. /*}*/
  516. // 控制select为只读的时候显示样式
  517. // .hide-sel {
  518. // .el-input__inner {
  519. // border: 0px;
  520. // }
  521. // .el-icon-arrow-up {
  522. // display: none;
  523. // }
  524. // .el-textarea__inner {
  525. // background-color: #fff !important;
  526. // border: 0;
  527. // }
  528. // .el-date-editor {
  529. // i {
  530. // display: none;
  531. // }
  532. // }
  533. // .is-disabled {
  534. // .el-input__inner:hover {
  535. // background-color: #fff !important;
  536. // border: 0;
  537. // }
  538. // color: #606266;
  539. // .el-input__inner {
  540. // background-color: #fff !important;
  541. // border: 0;
  542. // color: #606266;
  543. // }
  544. // .el-textarea__inner {
  545. // background-color: #fff !important;
  546. // border: 0;
  547. // color: #606266;
  548. // }
  549. // }
  550. // }
  551. // 控制select为只读的时候显示样式
  552. /deep/.ws-class-table-col {
  553. height: auto;
  554. padding: 0px 2px;
  555. /deep/.el-input__inner {
  556. padding: 0px 2px;
  557. }
  558. }
  559. /deep/.is-disabled {
  560. .el-input__prefix,
  561. .el-input__suffix {
  562. display: none;
  563. }
  564. .el-input__inner {
  565. background-color: #fff;
  566. border-color: #fff !important;
  567. color: #000 !important;
  568. font-size: 14px;
  569. cursor: text;
  570. padding: 0 !important;
  571. }
  572. }
  573. .winseaview-view {
  574. padding: 0 0 20px;
  575. }
  576. .container {
  577. overflow: scroll;
  578. height: 93vh;
  579. }
  580. /deep/.ws-info-table[data-v-850a44a6] .el-form-item .el-form-item__label {
  581. width: 130px;
  582. }
  583. .vertical-text-left {
  584. width: 62px;
  585. text-align: right;
  586. }
  587. .vertical-text {
  588. margin: 0 10px;
  589. color: #8890b1;
  590. font-size: 12px;
  591. margin-top: -4px;
  592. }
  593. .vertical-line {
  594. height: 100px;
  595. border-left: 2px solid #e9ecf7;
  596. margin-left: 4px;
  597. padding: 0 3px;
  598. }
  599. .vertical-circle {
  600. width: 10px;
  601. height: 10px;
  602. border: 2px solid #5878e8;
  603. background-color: #ffffff;
  604. -webkit-border-radius: 100px;
  605. }
  606. .vertical-circle:first-child {
  607. color: red;
  608. }
  609. .icon {
  610. display: inline-block;
  611. width: 60px;
  612. background: #ecfeff;
  613. border-radius: 12px;
  614. border: 1px solid #50cad4;
  615. position: relative;
  616. font-size: 14px;
  617. color: #50cad4;
  618. padding: 1px 7px;
  619. }
  620. .title-top {
  621. margin-top: 20px;
  622. font-size: 21px;
  623. font-weight: 600;
  624. }
  625. .title-number {
  626. font-size: 14px;
  627. font-weight: 400;
  628. }
  629. </style>