purchaseContractExamine.vue 19 KB

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