purchaseContractExamine.vue 16 KB

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