futuresSalesContractExamine.vue 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666
  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="measurementStandard">
  108. {{ deptBudgetList.measurementStandard }}
  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="receiveWarehouse">
  114. {{ deptBudgetList.receiveWarehouse }}
  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">
  120. {{ deptBudgetList.deliveryProvince }}
  121. {{ deptBudgetList.deliveryCity }}
  122. {{ deptBudgetList.deliveryArea }}
  123. </ws-form-item>
  124. <ws-form-item label="合约号" span="1" prop="contractNumber">
  125. {{ deptBudgetList.contractNumber }}
  126. </ws-form-item>
  127. <ws-form-item label="交货地详细地址" span="1" prop=" placeDelivery">
  128. {{ deptBudgetList.placeDelivery }}
  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="signingDate">
  134. {{ deptBudgetList.signingDate }}
  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="deliveryDateStart">
  140. {{ deptBudgetList.deliveryDateStart }}
  141. </ws-form-item>
  142. <ws-form-item label="临时仓库负责人" span="1" prop="personCharge">
  143. {{ deptBudgetList.personCharge }}
  144. </ws-form-item>
  145. <ws-form-item label="交货日期(止)" span="1" prop="deliveryDateEnd">
  146. {{ deptBudgetList.deliveryDateEnd }}
  147. </ws-form-item>
  148. </ws-info-table>
  149. <!--货物信息-->
  150. <div class="remark">
  151. <h3>货物信息</h3>
  152. </div>
  153. <ws-info-table>
  154. <ws-form-item label="货名" span="1" prop="waterContent">
  155. {{ deptBudgetList.contractGoodsInfo.goodsName }}
  156. </ws-form-item>
  157. <ws-form-item label="水分(%)<=" span="1" prop="intendedShipId">
  158. {{ deptBudgetList.contractGoodsInfo.waterContent }}
  159. </ws-form-item>
  160. <ws-form-item label="品级" span="1" prop="grade">
  161. {{ deptBudgetList.contractGoodsInfo.grade }}
  162. </ws-form-item>
  163. <ws-form-item label="杂质(%)<=" span="1" prop="impurity">
  164. {{ deptBudgetList.contractGoodsInfo.impurity }}
  165. </ws-form-item>
  166. <ws-form-item label="容重(克/升)<=" span="1" prop="bulkDensity">
  167. {{ deptBudgetList.contractGoodsInfo.bulkDensity }}
  168. </ws-form-item>
  169. <ws-form-item
  170. label="霉变粒(%)<="
  171. span="1"
  172. prop="mildewGrain"
  173. class="result"
  174. >
  175. {{ deptBudgetList.contractGoodsInfo.mildewGrain }}
  176. </ws-form-item>
  177. <ws-form-item label="热损伤(%)<=" span="1" prop="jiaorenli">
  178. {{ deptBudgetList.contractGoodsInfo.jiaorenli }}
  179. </ws-form-item>
  180. <ws-form-item
  181. label="不完善粒(%)<="
  182. span="1"
  183. prop="imperfectGrain"
  184. class="result"
  185. >
  186. {{ deptBudgetList.contractGoodsInfo.imperfectGrain }}
  187. </ws-form-item>
  188. <ws-form-item
  189. label="蛋白(%)>="
  190. span="1"
  191. prop="protein"
  192. class="result"
  193. >
  194. {{ deptBudgetList.contractGoodsInfo.protein }}
  195. </ws-form-item>
  196. <ws-form-item label="转基因" span="1" prop="transgene">
  197. {{ deptBudgetList.contractGoodsInfo.transgene }}
  198. </ws-form-item>
  199. <ws-form-item label="产地" span="1" >
  200. {{ deptBudgetList.contractGoodsInfo.outputPrivate }}
  201. {{ deptBudgetList.contractGoodsInfo.outputCity }}
  202. </ws-form-item>
  203. </ws-info-table>
  204. <div class="remark">
  205. <h3>流程信息</h3>
  206. </div>
  207. <ws-info-table>
  208. <!--已付款(元)-->
  209. <ws-form-item label="合同收入(元)" span="1" prop="goodsNameKey">
  210. {{ deptBudgetList.contractProcessInfo.goodsNameKey }}
  211. </ws-form-item>
  212. <ws-form-item label="已开发票(元)" span="1" prop="goodsName">
  213. {{ deptBudgetList.contractProcessInfo.goodsName }}
  214. </ws-form-item>
  215. <ws-form-item label="费用支出(元)" span="1" prop="waterContent"
  216. >{{ deptBudgetList.contractProcessInfo.waterContent }}
  217. </ws-form-item>
  218. <ws-form-item label="未开发票(元)" span="1" prop="impurity"
  219. >{{ deptBudgetList.contractProcessInfo.impurity }}
  220. </ws-form-item>
  221. <ws-form-item label="未回款(元)" span="1" prop="mildewGrain">
  222. {{deptBudgetList.contractProcessInfo.mildewGrain}}
  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. id : '',
  290. }
  291. },
  292. activated() {
  293. this.status = this.$route.query.status
  294. this.loaddata()
  295. this.showType = this.isShow
  296. },
  297. methods: {
  298. loaddata() {
  299. // 数据
  300. this.id = this.$route.query.id
  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: 'CON7' })
  333. .toPromise()
  334. .then((response) => {
  335. this.transgeneList = response
  336. })
  337. // 双章
  338. packList({ constId: 'CON4' })
  339. .toPromise()
  340. .then((response) => {
  341. this.ChapterTwoList = response
  342. })
  343. },
  344. getUnitList() {
  345. xiala({
  346. compId: sessionStorage.getItem('ws-pf_compId'),
  347. constCode: 'TYPEYAN',
  348. })
  349. .toPromise()
  350. .then((response) => {
  351. this.unitList = response
  352. let currItem
  353. this.unitList.forEach((item, index, arr) => {
  354. item.flag = 'delete'
  355. if (this.vModel == item.constKey) {
  356. currItem = item
  357. }
  358. })
  359. //
  360. if (currItem) {
  361. this.selectContract(currItem.constValue)
  362. }
  363. })
  364. },
  365. history(id1) {
  366. billoperatehis({ id: id1 })
  367. .toPromise()
  368. .then((response) => {
  369. this.historyList = response
  370. })
  371. },
  372. // 关闭 dialog时 处理文件url 初始化upload组件
  373. handleClose() {
  374. this.dialogViewSpareMoney = false
  375. },
  376. returnsales() {
  377. this.$router.push({ path: 'futuresSalesContract' })
  378. },
  379. confirmationsheet() {
  380. this.$router.push({ path: 'priceConfirmationSheet',
  381. query: { contractNo: this.deptBudgetList.contractNo , contractType: this.deptBudgetList.contractType , id : this.id} })
  382. },
  383. },
  384. }
  385. </script>
  386. <style lang="scss" scoped>
  387. .status-orange,
  388. .status-bule,
  389. .status-green {
  390. border: 1px solid;
  391. border-radius: 30px;
  392. padding: 3px 10px;
  393. font-size: 16px;
  394. }
  395. .status-orange {
  396. border-color: #ff9f24;
  397. color: #ff9f24;
  398. background: #ffedd5;
  399. }
  400. .status-bule {
  401. border-color: #5473e8;
  402. color: #5473e8;
  403. background: #f0f3fe;
  404. }
  405. .status-green {
  406. border-color: #50cad4;
  407. color: #50cad4;
  408. background: #ecfeff;
  409. }
  410. .el-form {
  411. padding: 0 15%;
  412. }
  413. /deep/.ws-info-table .el-form-item {
  414. border-right: 1px solid #cdd2dc;
  415. border-bottom: 1px solid #cdd2dc;
  416. }
  417. .readonly {
  418. position: relative;
  419. }
  420. .readonly:after {
  421. content: '*';
  422. color: #ff2727;
  423. position: absolute;
  424. right: 8px;
  425. z-index: 10;
  426. top: 21%;
  427. font-size: 20px;
  428. }
  429. .title {
  430. position: relative;
  431. }
  432. .title::before {
  433. content: '';
  434. display: inline-block;
  435. width: 5px;
  436. height: 30px;
  437. background: #5473e8;
  438. position: absolute;
  439. left: 0;
  440. }
  441. .el-button--primary {
  442. background-color: #5878e8;
  443. border-color: #5878e8;
  444. }
  445. .el-col {
  446. background: #f6f7fc;
  447. }
  448. /deep/.ws-info-table .el-form-item .el-form-item__content {
  449. padding: 0 25px;
  450. border-left: 1px solid #cdd2dc;
  451. background: #fafbfc;
  452. color: #afb5cb;
  453. }
  454. /deep/.ws-info-table .el-form-item .el-form-item__label {
  455. width: 140px;
  456. text-align: center;
  457. background: #f0f2f6;
  458. // border: 1px solid #cdd2dc;
  459. }
  460. .button-container {
  461. display: flex;
  462. flex-wrap: nowrap;
  463. justify-content: space-between;
  464. align-items: center;
  465. background-color: #fff;
  466. width: 100%;
  467. height: 50px;
  468. padding: 0 10px;
  469. & > div {
  470. margin-left: 10px;
  471. display: flex;
  472. flex-wrap: nowrap;
  473. flex-direction: row;
  474. & > span {
  475. line-height: 50px;
  476. }
  477. }
  478. /deep/.auditFlow-box {
  479. position: unset;
  480. margin-left: 10px;
  481. &/deep/.auditFlow-icon {
  482. width: auto;
  483. padding-right: 30px;
  484. }
  485. &/deep/.auditFlow-main {
  486. position: absolute;
  487. }
  488. }
  489. }
  490. .box-app {
  491. display: inline-block;
  492. float: left;
  493. margin-left: 30px;
  494. line-height: 50px;
  495. }
  496. /deep/.el-dialog {
  497. .el-form-item {
  498. margin-bottom: 0 !important;
  499. .el-input--medium {
  500. textarea {
  501. min-height: 100px !important;
  502. }
  503. }
  504. }
  505. }
  506. .collapse-bottom {
  507. margin-bottom: 20px;
  508. }
  509. .input-main .textarea .el-textarea__inner {
  510. width: 100%;
  511. z-index: 1;
  512. }
  513. .bg-left {
  514. padding-left: 30px;
  515. }
  516. .bg-right {
  517. padding-right: 10px;
  518. text-align: right;
  519. }
  520. .bg-bottom {
  521. margin: 15px 0px;
  522. }
  523. .wenzi {
  524. width: 900px;
  525. margin: 0 auto;
  526. }
  527. .wenzi h3 {
  528. display: inline-block;
  529. left: 10px;
  530. }
  531. .wenzi p {
  532. display: inline-block;
  533. }
  534. .center {
  535. width: 900px;
  536. margin: 0 auto;
  537. }
  538. .el-form-item {
  539. width: 50%;
  540. }
  541. .el-form-item__label {
  542. text-align: center;
  543. }
  544. .ce {
  545. width: 900px;
  546. margin: 0 auto;
  547. }
  548. /*.crt-main .textarea /deep/ .el-form-item__label {*/
  549. /* height: 82px;*/
  550. /*}*/
  551. // 控制select为只读的时候显示样式
  552. .hide-sel {
  553. .el-input__inner {
  554. border: 0px;
  555. }
  556. .el-icon-arrow-up {
  557. display: none;
  558. }
  559. .el-textarea__inner {
  560. background-color: #fff !important;
  561. border: 0;
  562. }
  563. .el-date-editor {
  564. i {
  565. display: none;
  566. }
  567. }
  568. .is-disabled {
  569. .el-input__inner:hover {
  570. background-color: #fff !important;
  571. border: 0;
  572. }
  573. color: #606266;
  574. .el-input__inner {
  575. background-color: #fff !important;
  576. border: 0;
  577. color: #606266;
  578. }
  579. .el-textarea__inner {
  580. background-color: #fff !important;
  581. border: 0;
  582. color: #606266;
  583. }
  584. }
  585. }
  586. // 控制select为只读的时候显示样式
  587. /deep/.ws-class-table-col {
  588. height: auto;
  589. padding: 0px 2px;
  590. /deep/.el-input__inner {
  591. padding: 0px 2px;
  592. }
  593. }
  594. /deep/.is-disabled {
  595. .el-input__prefix,
  596. .el-input__suffix {
  597. display: none;
  598. }
  599. .el-input__inner {
  600. background-color: #fff;
  601. border-color: #fff !important;
  602. color: #000 !important;
  603. font-size: 14px;
  604. cursor: text;
  605. padding: 0 !important;
  606. }
  607. }
  608. .winseaview-view {
  609. padding: 0 0 20px;
  610. }
  611. .container {
  612. overflow: scroll;
  613. height: 93vh;
  614. }
  615. /deep/.ws-info-table[data-v-850a44a6] .el-form-item .el-form-item__label {
  616. width: 130px;
  617. }
  618. .vertical-text-left {
  619. width: 62px;
  620. text-align: right;
  621. }
  622. .vertical-text {
  623. margin: 0 10px;
  624. color: #8890b1;
  625. font-size: 12px;
  626. margin-top: -4px;
  627. }
  628. .vertical-line {
  629. height: 100px;
  630. border-left: 2px solid #e9ecf7;
  631. margin-left: 4px;
  632. padding: 0 3px;
  633. }
  634. .vertical-circle {
  635. width: 10px;
  636. height: 10px;
  637. border: 2px solid #5878e8;
  638. background-color: #ffffff;
  639. -webkit-border-radius: 100px;
  640. }
  641. .vertical-circle:first-child {
  642. color: red;
  643. }
  644. .icon {
  645. display: inline-block;
  646. width: 60px;
  647. height: 24px;
  648. background: #ecfeff;
  649. border-radius: 12px;
  650. border: 1px solid #50cad4;
  651. position: relative;
  652. font-size: 14px;
  653. color: #50cad4;
  654. line-height: 24px;
  655. padding: 1px 7px;
  656. }
  657. .queren{
  658. margin-left: 100%;
  659. margin-top: -60px;
  660. }
  661. </style>