purchaseContractExamine.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703
  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="feedbackLeader" v-if="deptBudgetList.deliverType1 == '对方送货'">{{ deptBudgetList.feedbackLeader }}
  75. </ws-form-item>
  76. <ws-form-item label="包装方式" span="1" prop="packingMethod">
  77. {{ deptBudgetList.packingMethod }}
  78. </ws-form-item>
  79. <ws-form-item label="卖方电话" span="1" prop="sellerPhone">
  80. {{ deptBudgetList.sellerPhone }}
  81. </ws-form-item>
  82. <ws-form-item label="验收方式" span="1" prop="acceptanceMethod">
  83. {{ deptBudgetList.acceptanceMethod }}
  84. </ws-form-item>
  85. <ws-form-item label="重量(吨)" span="1" prop="weight">
  86. {{ deptBudgetList.weight }}
  87. </ws-form-item>
  88. <ws-form-item label="交货日期(起)" span="1" prop="deliveryDateStart">
  89. {{ deptBudgetList.deliveryDateStart }}
  90. </ws-form-item>
  91. <ws-form-item label="溢短装(%)" span="1" prop="overShort">
  92. {{ deptBudgetList.overShort }}
  93. </ws-form-item>
  94. <ws-form-item label="交货日期(止)" span="1" prop="deliveryDateEnd">
  95. {{ deptBudgetList.deliveryDateEnd }}
  96. </ws-form-item>
  97. <ws-form-item label="合同单价(元/吨)" span="1" prop="unitContractPrice">
  98. {{ deptBudgetList.unitContractPrice }}
  99. </ws-form-item>
  100. <ws-form-item label="合同总价(元)" span="1" prop="totalContractPrice">
  101. {{ deptBudgetList.totalContractPrice }}
  102. </ws-form-item>
  103. <ws-form-item label="货源所在地区" span="1">
  104. {{ deptBudgetList.sourceProvince }}
  105. {{ deptBudgetList.sourceCity }}
  106. {{ deptBudgetList.sourceArea }}
  107. </ws-form-item>
  108. <ws-form-item label="货源详细地址" span="1" prop="sourceGoods">
  109. {{ deptBudgetList.sourceGoods }}
  110. </ws-form-item>
  111. <ws-form-item label="交货地所在地区" span="1">
  112. {{ deptBudgetList.deliveryProvince }}
  113. {{ deptBudgetList.deliveryCity }}
  114. {{ deptBudgetList.deliveryArea }}
  115. </ws-form-item>
  116. <ws-form-item label="交货地详细地址" span="1" prop=" placeDelivery">
  117. {{ deptBudgetList.placeDelivery }}
  118. </ws-form-item>
  119. <ws-form-item label="签订日期" span="1" prop="signingDate">
  120. {{ deptBudgetList.signingDate }}
  121. </ws-form-item>
  122. <ws-form-item label="最终实际交易量(吨)" span="1" prop="finalTradingVolume">
  123. {{ deptBudgetList.finalTradingVolume }}
  124. </ws-form-item>
  125. <ws-form-item label="临时仓库负责人" span="1" prop="personCharge" v-if="deptBudgetList.deliverType == 1">
  126. {{ deptBudgetList.personCharge }}
  127. </ws-form-item>
  128. </ws-info-table>
  129. <!--面试信息-->
  130. <div class="remark">
  131. <h3>货物信息</h3>
  132. </div>
  133. <ws-info-table>
  134. <ws-form-item label="货名" span="1" prop="waterContent">
  135. {{ deptBudgetList.contractGoodsInfo.goodsName }}
  136. </ws-form-item>
  137. <ws-form-item label="水分(%)<=" span="1" prop="intendedShipId">
  138. {{ deptBudgetList.contractGoodsInfo.waterContent }}
  139. </ws-form-item>
  140. <ws-form-item label="品级" span="1" prop="grade">
  141. {{ deptBudgetList.contractGoodsInfo.grade }}
  142. </ws-form-item>
  143. <ws-form-item label="杂质(%)<=" span="1" prop="impurity">
  144. {{ deptBudgetList.contractGoodsInfo.impurity }}
  145. </ws-form-item>
  146. <ws-form-item label="容重(克/升)>=" span="1" prop="bulkDensity">
  147. {{ deptBudgetList.contractGoodsInfo.bulkDensity }}
  148. </ws-form-item>
  149. <ws-form-item label="霉变粒(%)<=" span="1" prop="mildewGrain" class="result">
  150. {{ deptBudgetList.contractGoodsInfo.mildewGrain }}
  151. </ws-form-item>
  152. <ws-form-item label="热损伤(%)<=" span="1" prop="jiaorenli">
  153. {{ deptBudgetList.contractGoodsInfo.jiaorenli }}
  154. </ws-form-item>
  155. <ws-form-item label="不完善粒(%)<=" span="1" prop="imperfectGrain" class="result">
  156. {{ deptBudgetList.contractGoodsInfo.imperfectGrain }}
  157. </ws-form-item>
  158. </ws-info-table>
  159. <div class="remark">
  160. <h3>流程信息</h3>
  161. </div>
  162. <ws-info-table>
  163. <!--已付款(元)-->
  164. <ws-form-item label="已付款(元)" span="1" prop="mildewGrain">
  165. {{deptBudgetList.contractProcessInfo.mildewGrain}}
  166. </ws-form-item>
  167. <ws-form-item label="已开发票(元)" span="1" prop="goodsName">
  168. {{ deptBudgetList.contractProcessInfo.goodsName }}
  169. </ws-form-item>
  170. <ws-form-item label="费用支出(元)" span="1" prop="waterContent">{{ deptBudgetList.contractProcessInfo.waterContent }}
  171. </ws-form-item>
  172. <ws-form-item label="未开发票(元)" span="1" prop="impurity">{{ deptBudgetList.contractProcessInfo.impurity }}
  173. </ws-form-item>
  174. <ws-form-item label="已完成发运量(吨)" span="1" prop="imperfectGrain" class="result">
  175. {{ deptBudgetList.contractProcessInfo.imperfectGrain }}
  176. </ws-form-item>
  177. <ws-form-item label="双章原件回收情况" span="1" prop="grade">{{ deptBudgetList.contractProcessInfo.grade }}
  178. </ws-form-item>
  179. </ws-info-table>
  180. <div class="remark">
  181. <h3>备注信息</h3>
  182. </div>
  183. <div style=" color: #afb5cb;margin-left: 20px;">
  184. {{ deptBudgetList.remarks }}
  185. </div>
  186. <ws-upload ref="upload" :comp-id="compId" :appendix-ids="deptBudgetList.addressUrl" :editable="false"
  187. accept=".jpg, .jpeg, .png, .pdf, .doc, .zip, .rar" />
  188. <el-table class="wenzi" :data="taskhistories" style="width: 100%">
  189. <el-table-column prop="operatorMajorRoleName" label="审核人">
  190. <template scope="scope">
  191. {{scope.row.operatorMajorRoleName}}{{scope.row.operatorName}}
  192. </template>
  193. </el-table-column>
  194. <el-table-column prop="inOutTaskNo" label="审核结果">
  195. <template scope="scope">
  196. <span v-if='scope.row.approved'>通过</span>
  197. <span v-if='!scope.row.approved'>驳回</span>
  198. </template>
  199. </el-table-column>
  200. <el-table-column prop="endTime" label="审核时间"></el-table-column>
  201. <el-table-column prop="auditMind" label="审核意见"></el-table-column>
  202. </el-table>
  203. </ws-form>
  204. <div style="text-align: right; padding: 10px">
  205. <el-button class="bg-bottom" type="primary" size="small" @click="returnsales()">关闭</el-button>
  206. </div>
  207. </div>
  208. </template>
  209. <script>
  210. import {
  211. packList,
  212. xiala,
  213. examineList,
  214. billoperatehis,
  215. } from '@/model/contarct/index'
  216. import {
  217. gettaskhistories
  218. } from '@/model/tasksport/index'
  219. export default {
  220. name: 'viewSpareMoney',
  221. watch: {
  222. vesselId(val) {
  223. this.getVesselData()
  224. },
  225. isShow(val) {
  226. this.showType = val
  227. },
  228. },
  229. data() {
  230. return {
  231. //弹出框
  232. dialogViewSpareMoney: false,
  233. dialogApproveFormVisible: false,
  234. // 船舶类型
  235. monetaryKey: null,
  236. // 表格显示数据
  237. tableDate: [],
  238. // 是否显示
  239. showType: true,
  240. // 年
  241. year: '',
  242. status: '',
  243. // 提交类型
  244. submitType: true,
  245. historyList: [],
  246. tableData: [{
  247. date: 1111,
  248. name: 'qqqq',
  249. address: 'errrtt'
  250. }],
  251. ruleDeptBudget: [],
  252. taskhistories: [],
  253. deptBudgetList: {
  254. contractProcessInfo: {},
  255. contractGoodsInfo: {},
  256. },
  257. mainReportAdd: {},
  258. list: {},
  259. compId: localStorage.getItem('ws-pf_compId'),
  260. }
  261. },
  262. activated() {
  263. this.status = this.$route.query.status
  264. this.loaddata()
  265. this.showType = this.isShow
  266. },
  267. methods: {
  268. loaddata() {
  269. gettaskhistories({
  270. businessKey: this.$route.query.id,
  271. workflowId: this.$route.query.workflowId
  272. }).toPromise()
  273. .then((response) => {
  274. this.taskhistories = response
  275. })
  276. // 数据
  277. examineList({
  278. id: this.$route.query.id
  279. })
  280. .toPromise()
  281. .then((response) => {
  282. this.deptBudgetList = response
  283. if (this.deptBudgetList.deliverType == 1) {
  284. this.deptBudgetList.deliverType1 = '我方自提'
  285. } else if (this.deptBudgetList.deliverType == 2) {
  286. this.deptBudgetList.deliverType1 = '对方送货'
  287. }
  288. })
  289. // 包装方式
  290. packList({
  291. constId: 'CON1'
  292. })
  293. .toPromise()
  294. .then((response) => {
  295. this.packtypeList = response
  296. })
  297. // 验收方式
  298. this.getUnitList()
  299. // 货名
  300. packList({
  301. constId: 'CON2'
  302. })
  303. .toPromise()
  304. .then((response) => {
  305. this.goodnameList = response
  306. })
  307. // 品级
  308. packList({
  309. constId: 'CON3'
  310. })
  311. .toPromise()
  312. .then((response) => {
  313. this.gradeList = response
  314. })
  315. // 双章
  316. packList({
  317. constId: 'CON4'
  318. })
  319. .toPromise()
  320. .then((response) => {
  321. this.ChapterTwoList = response
  322. })
  323. },
  324. getUnitList() {
  325. xiala({
  326. compId: localStorage.getItem('ws-pf_compId'),
  327. constCode: 'TYPEYAN',
  328. })
  329. .toPromise()
  330. .then((response) => {
  331. this.unitList = response
  332. let currItem
  333. this.unitList.forEach((item, index, arr) => {
  334. item.flag = 'delete'
  335. if (this.vModel == item.constKey) {
  336. currItem = item
  337. }
  338. })
  339. //
  340. if (currItem) {
  341. this.selectContract(currItem.constValue)
  342. }
  343. })
  344. },
  345. history(id1) {
  346. billoperatehis({
  347. id: id1
  348. })
  349. .toPromise()
  350. .then((response) => {
  351. this.historyList = response
  352. })
  353. },
  354. // 关闭 dialog时 处理文件url 初始化upload组件
  355. handleClose() {
  356. this.dialogViewSpareMoney = false
  357. },
  358. returnsales() {
  359. this.$router.go(-1)
  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. </style>