purchaseContractExamine.vue 17 KB

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