purchaseContractExamine.vue 19 KB

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