purchaseContractExamine.vue 18 KB

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