collectionContractExamine.vue 17 KB

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