futuresSalesContractExamine.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703
  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 class="bg-bottom" type="primary" size="small" @click="returnsales()"><img width="6" height="10"
  10. style="vertical-align: bottom; margin-right: 3px" src="../../../public/img/lujing.png" alt="" />返回
  11. </el-button>
  12. </el-col>
  13. </el-row>
  14. <ws-form ref="deptBudgetList" :rules="mainReportAdd" :model="deptBudgetList">
  15. <div class="title-top">
  16. 采购合同<span class="title-number">【编号:{{ deptBudgetList.contractNo }}】</span>
  17. <div class="icon">
  18. <template>
  19. <el-popover placement="right" :width="285" trigger="click" visible-arrow="false"
  20. @show="history(deptBudgetList.id)">
  21. <template>
  22. <div slot="reference"> {{deptBudgetList.status }}</div>
  23. </template>
  24. <div>
  25. <p style="margin-top: 0; padding-left: 10px">操作历史</p>
  26. <div v-for="(item, index) in historyList" class="flex">
  27. <div class="vertical-text vertical-text-left">
  28. {{ item.updateDate }}
  29. </div>
  30. <div>
  31. <div class="vertical-circle"></div>
  32. <div v-if="index != historyList.length - 1" class="vertical-line"></div>
  33. </div>
  34. <div class="vertical-text">
  35. {{ item.operateUser }}<br />{{ item.dealMsg }}
  36. </div>
  37. </div>
  38. </div>
  39. </el-popover>
  40. </template>
  41. </div>
  42. </div>
  43. <div class="remark">
  44. <h3>基本信息</h3>
  45. <div class="queren">
  46. <el-button class="bg-bottom" type="primary" size="small" @click="confirmationsheet()">确认单</el-button>
  47. </div>
  48. </div>
  49. <ws-info-table>
  50. <ws-form-item label="合同编号" span="1" prop="contractNo">
  51. {{ deptBudgetList.contractNo }}
  52. </ws-form-item>
  53. <ws-form-item label="运输方式" span="1" prop="shippingType">
  54. {{ deptBudgetList.shippingType }}
  55. </ws-form-item>
  56. <ws-form-item label="买方" span="1" prop="buyer">
  57. {{ deptBudgetList.buyer }}
  58. </ws-form-item>
  59. <ws-form-item label="结算方式" span="1" prop="settlementMethod">{{ deptBudgetList.settlementMethod }}
  60. </ws-form-item>
  61. <ws-form-item label="买方电话" span="1" prop="buyerPhone">{{ deptBudgetList.buyerPhone }}
  62. </ws-form-item>
  63. <ws-form-item label="交货方式" span="1" prop="deliverType1">{{ deptBudgetList.deliverType1 }}
  64. </ws-form-item>
  65. <ws-form-item label="卖方" span="1" prop="seller">{{ deptBudgetList.seller }}
  66. </ws-form-item>
  67. <ws-form-item label="包装方式" span="1" prop="packingMethod">
  68. {{ deptBudgetList.packingMethod }}
  69. </ws-form-item>
  70. <ws-form-item label="卖方电话" span="1" prop="sellerPhone">
  71. {{ deptBudgetList.sellerPhone }}
  72. </ws-form-item>
  73. <ws-form-item label="验收方式" span="1" prop="acceptanceMethod">
  74. {{ deptBudgetList.acceptanceMethod }}
  75. </ws-form-item>
  76. <ws-form-item label="交易数量(吨)" span="1" prop="weight">
  77. {{ deptBudgetList.weight }}
  78. </ws-form-item>
  79. <ws-form-item label="计量标准" span="1" prop="measurementStandard">
  80. {{ deptBudgetList.measurementStandard }}
  81. </ws-form-item>
  82. <ws-form-item label="基差(元/吨)" span="1" prop="basisPrice">
  83. {{ deptBudgetList.basisPrice }}
  84. </ws-form-item>
  85. <ws-form-item label="出货库" span="1" prop="receiveWarehouse">
  86. {{ deptBudgetList.receiveWarehouse }}
  87. </ws-form-item>
  88. <ws-form-item label="交易所" span="1" prop="transactionsPlace">
  89. {{ deptBudgetList.transactionsPlace }}
  90. </ws-form-item>
  91. <ws-form-item label="交货地所在地区" span="1">
  92. {{ deptBudgetList.deliveryProvince }}
  93. {{ deptBudgetList.deliveryCity }}
  94. {{ deptBudgetList.deliveryArea }}
  95. </ws-form-item>
  96. <ws-form-item label="合约号" span="1" prop="contractNumber">
  97. {{ deptBudgetList.contractNumber }}
  98. </ws-form-item>
  99. <ws-form-item label="交货地详细地址" span="1" prop=" placeDelivery">
  100. {{ deptBudgetList.placeDelivery }}
  101. </ws-form-item>
  102. <ws-form-item label="点价(元/吨)" span="1" prop="pointPrice">
  103. {{ deptBudgetList.pointPrice }}
  104. </ws-form-item>
  105. <ws-form-item label="签订日期" span="1" prop="signingDate">
  106. {{ deptBudgetList.signingDate }}
  107. </ws-form-item>
  108. <ws-form-item label="点价日期" span="1" prop="pointPriceDate">
  109. {{ deptBudgetList.pointPriceDate }}
  110. </ws-form-item>
  111. <ws-form-item label="交货日期(起)" span="1" prop="deliveryDateStart">
  112. {{ deptBudgetList.deliveryDateStart }}
  113. </ws-form-item>
  114. <ws-form-item label="临时仓库负责人" span="1" prop="personCharge">
  115. {{ deptBudgetList.personCharge }}
  116. </ws-form-item>
  117. <ws-form-item label="交货日期(止)" span="1" prop="deliveryDateEnd">
  118. {{ deptBudgetList.deliveryDateEnd }}
  119. </ws-form-item>
  120. </ws-info-table>
  121. <!--货物信息-->
  122. <div class="remark">
  123. <h3>货物信息</h3>
  124. </div>
  125. <ws-info-table>
  126. <ws-form-item label="货名" span="1" prop="waterContent">
  127. {{ deptBudgetList.contractGoodsInfo.goodsName }}
  128. </ws-form-item>
  129. <ws-form-item label="水分(%)<=" span="1" prop="intendedShipId">
  130. {{ deptBudgetList.contractGoodsInfo.waterContent }}
  131. </ws-form-item>
  132. <ws-form-item label="品级" span="1" prop="grade">
  133. {{ deptBudgetList.contractGoodsInfo.grade }}
  134. </ws-form-item>
  135. <ws-form-item label="杂质(%)<=" span="1" prop="impurity">
  136. {{ deptBudgetList.contractGoodsInfo.impurity }}
  137. </ws-form-item>
  138. <ws-form-item label="容重(克/升)>=" span="1" prop="bulkDensity">
  139. {{ deptBudgetList.contractGoodsInfo.bulkDensity }}
  140. </ws-form-item>
  141. <ws-form-item label="霉变粒(%)<=" span="1" prop="mildewGrain" class="result">
  142. {{ deptBudgetList.contractGoodsInfo.mildewGrain }}
  143. </ws-form-item>
  144. <ws-form-item label="热损伤(%)<=" span="1" prop="jiaorenli">
  145. {{ deptBudgetList.contractGoodsInfo.jiaorenli }}
  146. </ws-form-item>
  147. <ws-form-item label="不完善粒(%)<=" span="1" prop="imperfectGrain" class="result">
  148. {{ deptBudgetList.contractGoodsInfo.imperfectGrain }}
  149. </ws-form-item>
  150. <ws-form-item label="蛋白(%)>=" span="1" prop="protein" class="result">
  151. {{ deptBudgetList.contractGoodsInfo.protein }}
  152. </ws-form-item>
  153. <ws-form-item label="转基因" span="1" prop="transgene">
  154. {{ deptBudgetList.contractGoodsInfo.transgene }}
  155. </ws-form-item>
  156. <ws-form-item label="产地" span="1">
  157. {{ deptBudgetList.contractGoodsInfo.outputPrivate }}
  158. {{ deptBudgetList.contractGoodsInfo.outputCity }}
  159. </ws-form-item>
  160. </ws-info-table>
  161. <div class="remark">
  162. <h3>流程信息</h3>
  163. </div>
  164. <ws-info-table>
  165. <!--已付款(元)-->
  166. <ws-form-item label="合同收入(元)" span="1" prop="goodsNameKey">
  167. {{ deptBudgetList.contractProcessInfo.goodsNameKey }}
  168. </ws-form-item>
  169. <ws-form-item label="已开发票(元)" span="1" prop="goodsName">
  170. {{ deptBudgetList.contractProcessInfo.goodsName }}
  171. </ws-form-item>
  172. <ws-form-item label="费用支出(元)" span="1" prop="waterContent">{{ deptBudgetList.contractProcessInfo.waterContent }}
  173. </ws-form-item>
  174. <ws-form-item label="未开发票(元)" span="1" prop="impurity">{{ deptBudgetList.contractProcessInfo.impurity }}
  175. </ws-form-item>
  176. <ws-form-item label="未回款(元)" span="1" prop="mildewGrain">
  177. {{deptBudgetList.contractProcessInfo.mildewGrain}}
  178. </ws-form-item>
  179. <ws-form-item label="双章原件回收情况" span="1" prop="grade">{{ deptBudgetList.contractProcessInfo.grade }}
  180. </ws-form-item>
  181. </ws-info-table>
  182. <div class="remark">
  183. <h3>备注信息</h3>
  184. </div>
  185. <div style=" color: #afb5cb;margin-left: 20px;">
  186. {{ deptBudgetList.remarks }}
  187. </div>
  188. <ws-upload ref="upload" :comp-id="compId" :appendix-ids="deptBudgetList.addressUrl" :editable="false"
  189. accept=".jpg, .jpeg, .png, .pdf, .doc, .zip, .rar" />
  190. </ws-form>
  191. <div style="text-align: right; padding: 10px">
  192. <el-button class="bg-bottom" type="primary" size="small" @click="returnsales()">关闭</el-button>
  193. </div>
  194. </div>
  195. </template>
  196. <script>
  197. import {
  198. packList,
  199. xiala,
  200. examineList,
  201. billoperatehis,
  202. } from '@/model/contarct/index'
  203. export default {
  204. name: 'viewSpareMoney',
  205. watch: {
  206. vesselId(val) {
  207. this.getVesselData()
  208. },
  209. isShow(val) {
  210. this.showType = val
  211. },
  212. },
  213. data() {
  214. return {
  215. //弹出框
  216. dialogViewSpareMoney: false,
  217. dialogApproveFormVisible: false,
  218. // 船舶类型
  219. monetaryKey: null,
  220. // 表格显示数据
  221. tableDate: [],
  222. // 是否显示
  223. showType: true,
  224. // 年
  225. year: '',
  226. status: '',
  227. // 提交类型
  228. submitType: true,
  229. historyList: [],
  230. tableData: [{
  231. date: 1111,
  232. name: 'qqqq',
  233. address: 'errrtt'
  234. }],
  235. ruleDeptBudget: [],
  236. deptBudgetList: {
  237. contractProcessInfo: {},
  238. contractGoodsInfo: {},
  239. },
  240. mainReportAdd: {},
  241. list: {},
  242. id: '',
  243. compId: localStorage.getItem('ws-pf_compId'),
  244. }
  245. },
  246. activated() {
  247. this.status = this.$route.query.status
  248. this.loaddata()
  249. this.showType = this.isShow
  250. },
  251. methods: {
  252. loaddata() {
  253. // 数据
  254. this.id = this.$route.query.id
  255. examineList({
  256. id: this.$route.query.id
  257. })
  258. .toPromise()
  259. .then((response) => {
  260. this.deptBudgetList = response
  261. if (this.deptBudgetList.deliverType == 1) {
  262. this.deptBudgetList.deliverType1 = '我方自提'
  263. } else if (this.deptBudgetList.deliverType == 2) {
  264. this.deptBudgetList.deliverType1 = '对方送货'
  265. }
  266. })
  267. // 包装方式
  268. packList({
  269. constId: 'CON1'
  270. })
  271. .toPromise()
  272. .then((response) => {
  273. this.packtypeList = response
  274. })
  275. // 验收方式
  276. this.getUnitList()
  277. // 货名
  278. packList({
  279. constId: 'CON2'
  280. })
  281. .toPromise()
  282. .then((response) => {
  283. this.goodnameList = response
  284. })
  285. // 品级
  286. packList({
  287. constId: 'CON3'
  288. })
  289. .toPromise()
  290. .then((response) => {
  291. this.gradeList = response
  292. })
  293. //转基因
  294. packList({
  295. constId: 'CON7'
  296. })
  297. .toPromise()
  298. .then((response) => {
  299. this.transgeneList = response
  300. })
  301. // 双章
  302. packList({
  303. constId: 'CON4'
  304. })
  305. .toPromise()
  306. .then((response) => {
  307. this.ChapterTwoList = response
  308. })
  309. },
  310. getUnitList() {
  311. xiala({
  312. compId: localStorage.getItem('ws-pf_compId'),
  313. constCode: 'TYPEYAN',
  314. })
  315. .toPromise()
  316. .then((response) => {
  317. this.unitList = response
  318. let currItem
  319. this.unitList.forEach((item, index, arr) => {
  320. item.flag = 'delete'
  321. if (this.vModel == item.constKey) {
  322. currItem = item
  323. }
  324. })
  325. //
  326. if (currItem) {
  327. this.selectContract(currItem.constValue)
  328. }
  329. })
  330. },
  331. history(id1) {
  332. billoperatehis({
  333. id: id1
  334. })
  335. .toPromise()
  336. .then((response) => {
  337. this.historyList = response
  338. })
  339. },
  340. // 关闭 dialog时 处理文件url 初始化upload组件
  341. handleClose() {
  342. this.dialogViewSpareMoney = false
  343. },
  344. returnsales() {
  345. this.$router.go(-1)
  346. },
  347. confirmationsheet() {
  348. this.$router.push({
  349. path: 'priceConfirmationSheet',
  350. query: {
  351. contractNo: this.deptBudgetList.contractNo,
  352. contractType: this.deptBudgetList.contractType,
  353. id: this.deptBudgetList.id
  354. }
  355. })
  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. background: #ecfeff;
  622. border-radius: 12px;
  623. border: 1px solid #50cad4;
  624. position: relative;
  625. font-size: 14px;
  626. color: #50cad4;
  627. padding: 1px 7px;
  628. }
  629. .title-top {
  630. margin-top: 20px;
  631. font-size: 21px;
  632. font-weight: 600;
  633. }
  634. .title-number {
  635. font-size: 14px;
  636. font-weight: 400;
  637. }
  638. .queren {
  639. margin-left: 100%;
  640. margin-top: -60px;
  641. }
  642. </style>