purchaseContractExamine.vue 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643
  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" v-if="deptBudgetList.deliverType == 1">
  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="mildewGrain">
  192. {{deptBudgetList.contractProcessInfo.mildewGrain}}
  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. <ws-upload
  221. ref="upload"
  222. :comp-id="compId"
  223. :appendix-ids="deptBudgetList.addressUrl"
  224. :editable="false"
  225. accept=".jpg, .jpeg, .png, .pdf, .doc, .zip, .rar"
  226. />
  227. </ws-form>
  228. <div style="text-align: right; padding: 10px">
  229. <el-button
  230. class="bg-bottom"
  231. type="primary"
  232. size="small"
  233. @click="returnsales()"
  234. >关闭</el-button
  235. >
  236. </div>
  237. </div>
  238. </template>
  239. <script>
  240. import {
  241. packList,
  242. xiala,
  243. examineList,
  244. billoperatehis,
  245. } from '@/model/contarct/index'
  246. export default {
  247. name: 'viewSpareMoney',
  248. watch: {
  249. vesselId(val) {
  250. this.getVesselData()
  251. },
  252. isShow(val) {
  253. this.showType = val
  254. },
  255. },
  256. data() {
  257. return {
  258. //弹出框
  259. dialogViewSpareMoney: false,
  260. dialogApproveFormVisible: false,
  261. // 船舶类型
  262. monetaryKey: null,
  263. // 表格显示数据
  264. tableDate: [],
  265. // 是否显示
  266. showType: true,
  267. // 年
  268. year: '',
  269. status: '',
  270. // 提交类型
  271. submitType: true,
  272. historyList:[],
  273. tableData: [{ date: 1111, name: 'qqqq', address: 'errrtt' }],
  274. ruleDeptBudget: [],
  275. deptBudgetList: {
  276. contractProcessInfo: {},
  277. contractGoodsInfo: {},
  278. },
  279. mainReportAdd: {},
  280. list: {},
  281. compId: sessionStorage.getItem('ws-pf_compId'),
  282. }
  283. },
  284. activated() {
  285. this.status = this.$route.query.status
  286. this.loaddata()
  287. this.showType = this.isShow
  288. },
  289. methods: {
  290. loaddata() {
  291. // 数据
  292. examineList({ id: this.$route.query.id })
  293. .toPromise()
  294. .then((response) => {
  295. this.deptBudgetList = response
  296. if (this.deptBudgetList.deliverType == 1) {
  297. this.deptBudgetList.deliverType1 = '我方自提'
  298. } else if (this.deptBudgetList.deliverType == 2) {
  299. this.deptBudgetList.deliverType1 = '对方送货'
  300. }
  301. })
  302. // 包装方式
  303. packList({ constId: 'CON1' })
  304. .toPromise()
  305. .then((response) => {
  306. this.packtypeList = response
  307. })
  308. // 验收方式
  309. this.getUnitList()
  310. // 货名
  311. packList({ constId: 'CON2' })
  312. .toPromise()
  313. .then((response) => {
  314. this.goodnameList = response
  315. })
  316. // 品级
  317. packList({ constId: 'CON3' })
  318. .toPromise()
  319. .then((response) => {
  320. this.gradeList = response
  321. })
  322. // 双章
  323. packList({ constId: 'CON4' })
  324. .toPromise()
  325. .then((response) => {
  326. this.ChapterTwoList = response
  327. })
  328. },
  329. getUnitList() {
  330. xiala({
  331. compId: sessionStorage.getItem('ws-pf_compId'),
  332. constCode: 'TYPEYAN',
  333. })
  334. .toPromise()
  335. .then((response) => {
  336. this.unitList = response
  337. let currItem
  338. this.unitList.forEach((item, index, arr) => {
  339. item.flag = 'delete'
  340. if (this.vModel == item.constKey) {
  341. currItem = item
  342. }
  343. })
  344. //
  345. if (currItem) {
  346. this.selectContract(currItem.constValue)
  347. }
  348. })
  349. },
  350. history(id1) {
  351. billoperatehis({ id: id1 })
  352. .toPromise()
  353. .then((response) => {
  354. this.historyList = response
  355. })
  356. },
  357. // 关闭 dialog时 处理文件url 初始化upload组件
  358. handleClose() {
  359. this.dialogViewSpareMoney = false
  360. },
  361. returnsales() {
  362. this.$router.go(-1)
  363. },
  364. },
  365. }
  366. </script>
  367. <style lang="scss" scoped>
  368. .status-orange,
  369. .status-bule,
  370. .status-green {
  371. border: 1px solid;
  372. border-radius: 30px;
  373. padding: 3px 10px;
  374. font-size: 16px;
  375. }
  376. .status-orange {
  377. border-color: #ff9f24;
  378. color: #ff9f24;
  379. background: #ffedd5;
  380. }
  381. .status-bule {
  382. border-color: #5473e8;
  383. color: #5473e8;
  384. background: #f0f3fe;
  385. }
  386. .status-green {
  387. border-color: #50cad4;
  388. color: #50cad4;
  389. background: #ecfeff;
  390. }
  391. .el-form {
  392. padding: 0 15%;
  393. }
  394. /deep/.ws-info-table .el-form-item {
  395. border-right: 1px solid #cdd2dc;
  396. border-bottom: 1px solid #cdd2dc;
  397. }
  398. .readonly {
  399. position: relative;
  400. }
  401. .readonly:after {
  402. content: '*';
  403. color: #ff2727;
  404. position: absolute;
  405. right: 8px;
  406. z-index: 10;
  407. top: 21%;
  408. font-size: 20px;
  409. }
  410. .title {
  411. position: relative;
  412. }
  413. .title::before {
  414. content: '';
  415. display: inline-block;
  416. width: 5px;
  417. height: 30px;
  418. background: #5473e8;
  419. position: absolute;
  420. left: 0;
  421. }
  422. .el-button--primary {
  423. background-color: #5878e8;
  424. border-color: #5878e8;
  425. }
  426. .el-col {
  427. background: #f6f7fc;
  428. }
  429. /deep/.ws-info-table .el-form-item .el-form-item__content {
  430. padding: 0 25px;
  431. border-left: 1px solid #cdd2dc;
  432. background: #fafbfc;
  433. color: #afb5cb;
  434. }
  435. /deep/.ws-info-table .el-form-item .el-form-item__label {
  436. width: 140px;
  437. text-align: center;
  438. background: #f0f2f6;
  439. // border: 1px solid #cdd2dc;
  440. }
  441. .button-container {
  442. display: flex;
  443. flex-wrap: nowrap;
  444. justify-content: space-between;
  445. align-items: center;
  446. background-color: #fff;
  447. width: 100%;
  448. height: 50px;
  449. padding: 0 10px;
  450. & > div {
  451. margin-left: 10px;
  452. display: flex;
  453. flex-wrap: nowrap;
  454. flex-direction: row;
  455. & > span {
  456. line-height: 50px;
  457. }
  458. }
  459. /deep/.auditFlow-box {
  460. position: unset;
  461. margin-left: 10px;
  462. &/deep/.auditFlow-icon {
  463. width: auto;
  464. padding-right: 30px;
  465. }
  466. &/deep/.auditFlow-main {
  467. position: absolute;
  468. }
  469. }
  470. }
  471. .box-app {
  472. display: inline-block;
  473. float: left;
  474. margin-left: 30px;
  475. line-height: 50px;
  476. }
  477. /deep/.el-dialog {
  478. .el-form-item {
  479. margin-bottom: 0 !important;
  480. .el-input--medium {
  481. textarea {
  482. min-height: 100px !important;
  483. }
  484. }
  485. }
  486. }
  487. .collapse-bottom {
  488. margin-bottom: 20px;
  489. }
  490. .input-main .textarea .el-textarea__inner {
  491. width: 100%;
  492. z-index: 1;
  493. }
  494. .bg-left {
  495. padding-left: 30px;
  496. }
  497. .bg-right {
  498. padding-right: 10px;
  499. text-align: right;
  500. }
  501. .bg-bottom {
  502. margin: 15px 0px;
  503. }
  504. .wenzi {
  505. width: 900px;
  506. margin: 0 auto;
  507. }
  508. .wenzi h3 {
  509. display: inline-block;
  510. left: 10px;
  511. }
  512. .wenzi p {
  513. display: inline-block;
  514. }
  515. .center {
  516. width: 900px;
  517. margin: 0 auto;
  518. }
  519. .el-form-item {
  520. width: 50%;
  521. }
  522. .el-form-item__label {
  523. text-align: center;
  524. }
  525. .ce {
  526. width: 900px;
  527. margin: 0 auto;
  528. }
  529. /*.crt-main .textarea /deep/ .el-form-item__label {*/
  530. /* height: 82px;*/
  531. /*}*/
  532. // 控制select为只读的时候显示样式
  533. .hide-sel {
  534. .el-input__inner {
  535. border: 0px;
  536. }
  537. .el-icon-arrow-up {
  538. display: none;
  539. }
  540. .el-textarea__inner {
  541. background-color: #fff !important;
  542. border: 0;
  543. }
  544. .el-date-editor {
  545. i {
  546. display: none;
  547. }
  548. }
  549. .is-disabled {
  550. .el-input__inner:hover {
  551. background-color: #fff !important;
  552. border: 0;
  553. }
  554. color: #606266;
  555. .el-input__inner {
  556. background-color: #fff !important;
  557. border: 0;
  558. color: #606266;
  559. }
  560. .el-textarea__inner {
  561. background-color: #fff !important;
  562. border: 0;
  563. color: #606266;
  564. }
  565. }
  566. }
  567. // 控制select为只读的时候显示样式
  568. /deep/.ws-class-table-col {
  569. height: auto;
  570. padding: 0px 2px;
  571. /deep/.el-input__inner {
  572. padding: 0px 2px;
  573. }
  574. }
  575. /deep/.is-disabled {
  576. .el-input__prefix,
  577. .el-input__suffix {
  578. display: none;
  579. }
  580. .el-input__inner {
  581. background-color: #fff;
  582. border-color: #fff !important;
  583. color: #000 !important;
  584. font-size: 14px;
  585. cursor: text;
  586. padding: 0 !important;
  587. }
  588. }
  589. .winseaview-view {
  590. padding: 0 0 20px;
  591. }
  592. .container {
  593. overflow: scroll;
  594. height: 93vh;
  595. }
  596. /deep/.ws-info-table[data-v-850a44a6] .el-form-item .el-form-item__label {
  597. width: 130px;
  598. }
  599. .vertical-text-left {
  600. width: 62px;
  601. text-align: right;
  602. }
  603. .vertical-text {
  604. margin: 0 10px;
  605. color: #8890b1;
  606. font-size: 12px;
  607. margin-top: -4px;
  608. }
  609. .vertical-line {
  610. height: 100px;
  611. border-left: 2px solid #e9ecf7;
  612. margin-left: 4px;
  613. padding: 0 3px;
  614. }
  615. .vertical-circle {
  616. width: 10px;
  617. height: 10px;
  618. border: 2px solid #5878e8;
  619. background-color: #ffffff;
  620. -webkit-border-radius: 100px;
  621. }
  622. .vertical-circle:first-child {
  623. color: red;
  624. }
  625. .icon {
  626. display: inline-block;
  627. width: 60px;
  628. height: 24px;
  629. background: #ecfeff;
  630. border-radius: 12px;
  631. border: 1px solid #50cad4;
  632. position: relative;
  633. font-size: 14px;
  634. color: #50cad4;
  635. line-height: 24px;
  636. padding: 1px 7px;
  637. }
  638. </style>