purchaseContractExamine.vue 15 KB

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