futuresPurchaseContractExamine.vue 19 KB

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