futuresPurchaseContractExamine.vue 17 KB

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