purchaseContractExamine.vue 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565
  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. <ws-form-item label="合同收入(元)" span="1" prop="goodsNameKey">
  162. {{ deptBudgetList.contractProcessInfo.goodsNameKey }}
  163. </ws-form-item>
  164. <ws-form-item label="已开发票(元)" span="1" prop="goodsName">
  165. {{ deptBudgetList.contractProcessInfo.goodsName }}
  166. </ws-form-item>
  167. <ws-form-item label="费用支出(元)" span="1" prop="waterContent"
  168. >{{ deptBudgetList.contractProcessInfo.waterContent }}
  169. </ws-form-item>
  170. <ws-form-item label="未开发票(元)" span="1" prop="impurity"
  171. >{{ deptBudgetList.contractProcessInfo.impurity }}
  172. </ws-form-item>
  173. <ws-form-item label="未回款(元)" span="1" prop="mildewGrain"
  174. >{{ deptBudgetList.contractProcessInfo.mildewGrain }}
  175. </ws-form-item>
  176. <ws-form-item
  177. label="已完成发运量(吨)"
  178. span="1"
  179. prop="imperfectGrain"
  180. class="result"
  181. >{{ deptBudgetList.contractProcessInfo.imperfectGrain }}
  182. </ws-form-item>
  183. <ws-form-item label="双章原件回收情况" span="1" prop="grade"
  184. >{{ deptBudgetList.contractProcessInfo.grade }}
  185. </ws-form-item>
  186. </ws-info-table>
  187. <div class="remark">
  188. <h3>备注信息</h3>
  189. </div>
  190. {{ deptBudgetList.remarks }}
  191. <img :src="deptBudgetList.addressUrl" alt="" />
  192. </ws-form>
  193. <div style="text-align: right; padding: 10px">
  194. <el-button
  195. class="bg-bottom"
  196. type="primary"
  197. size="small"
  198. @click="returnsales()"
  199. >关闭</el-button
  200. >
  201. </div>
  202. </div>
  203. </template>
  204. <script>
  205. import {
  206. packList,
  207. addList,
  208. xiala,
  209. addxiala,
  210. editxiala,
  211. delxiala,
  212. examineList,
  213. } from '@/model/contarct/index'
  214. import { dayjs } from 'base-core-lib'
  215. export default {
  216. name: 'viewSpareMoney',
  217. watch: {
  218. vesselId(val) {
  219. this.getVesselData()
  220. },
  221. isShow(val) {
  222. this.showType = val
  223. },
  224. },
  225. data() {
  226. return {
  227. //弹出框
  228. dialogViewSpareMoney: false,
  229. dialogApproveFormVisible: false,
  230. // 船舶类型
  231. monetaryKey: null,
  232. // 表格显示数据
  233. tableDate: [],
  234. // 是否显示
  235. showType: true,
  236. // 年
  237. year: '',
  238. status: '',
  239. // 提交类型
  240. submitType: true,
  241. tableData: [{ date: 1111, name: 'qqqq', address: 'errrtt' }],
  242. ruleDeptBudget: [],
  243. deptBudgetList: {
  244. contractProcessInfo: {},
  245. contractGoodsInfo: {},
  246. },
  247. mainReportAdd: {},
  248. list: {},
  249. }
  250. },
  251. activated() {
  252. this.status = this.$route.query.status
  253. this.loaddata()
  254. this.showType = this.isShow
  255. },
  256. methods: {
  257. loaddata() {
  258. // 数据
  259. examineList({ id: this.$route.query.id })
  260. .toPromise()
  261. .then((response) => {
  262. this.deptBudgetList = response
  263. if (this.deptBudgetList.deliverType == 1) {
  264. this.deptBudgetList.deliverType1 = '我方自提'
  265. } else if (this.deptBudgetList.deliverType == 2) {
  266. this.deptBudgetList.deliverType1 = '对方送货'
  267. }
  268. })
  269. // 包装方式
  270. packList({ constId: 'CON1' })
  271. .toPromise()
  272. .then((response) => {
  273. this.packtypeList = response
  274. })
  275. // 验收方式
  276. this.getUnitList()
  277. // 货名
  278. packList({ constId: 'CON2' })
  279. .toPromise()
  280. .then((response) => {
  281. this.goodnameList = response
  282. })
  283. // 品级
  284. packList({ constId: 'CON3' })
  285. .toPromise()
  286. .then((response) => {
  287. this.gradeList = response
  288. })
  289. // 双章
  290. packList({ constId: 'CON4' })
  291. .toPromise()
  292. .then((response) => {
  293. this.ChapterTwoList = response
  294. })
  295. },
  296. getUnitList() {
  297. xiala({
  298. compId: sessionStorage.getItem('ws-pf_compId'),
  299. constCode: 'TYPEYAN',
  300. })
  301. .toPromise()
  302. .then((response) => {
  303. this.unitList = response
  304. let currItem
  305. this.unitList.forEach((item, index, arr) => {
  306. item.flag = 'delete'
  307. if (this.vModel == item.constKey) {
  308. currItem = item
  309. }
  310. })
  311. //
  312. if (currItem) {
  313. this.selectContract(currItem.constValue)
  314. }
  315. })
  316. },
  317. // 关闭 dialog时 处理文件url 初始化upload组件
  318. handleClose() {
  319. this.dialogViewSpareMoney = false
  320. },
  321. handleExamine() {},
  322. approve() {},
  323. returnsales() {
  324. this.$router.push({ path: 'purchaseContract' })
  325. },
  326. },
  327. }
  328. </script>
  329. <style lang="scss" scoped>
  330. .status-orange,
  331. .status-bule,
  332. .status-green {
  333. border: 1px solid;
  334. border-radius: 30px;
  335. padding: 3px 10px;
  336. font-size: 16px;
  337. }
  338. .status-orange {
  339. border-color: #ff9f24;
  340. color: #ff9f24;
  341. background: #ffedd5;
  342. }
  343. .status-bule {
  344. border-color: #5473e8;
  345. color: #5473e8;
  346. background: #f0f3fe;
  347. }
  348. .status-green {
  349. border-color: #50cad4;
  350. color: #50cad4;
  351. background: #ecfeff;
  352. }
  353. .el-form {
  354. padding: 0 15%;
  355. }
  356. /deep/.ws-info-table .el-form-item {
  357. border-right: 1px solid #cdd2dc;
  358. border-bottom: 1px solid #cdd2dc;
  359. }
  360. .readonly {
  361. position: relative;
  362. }
  363. .readonly:after {
  364. content: '*';
  365. color: #ff2727;
  366. position: absolute;
  367. right: 8px;
  368. z-index: 10;
  369. top: 21%;
  370. font-size: 20px;
  371. }
  372. .title {
  373. position: relative;
  374. }
  375. .title::before {
  376. content: '';
  377. display: inline-block;
  378. width: 5px;
  379. height: 30px;
  380. background: #5473e8;
  381. position: absolute;
  382. left: 0;
  383. }
  384. .el-button--primary {
  385. background-color: #5878e8;
  386. border-color: #5878e8;
  387. }
  388. .el-col {
  389. background: #f6f7fc;
  390. }
  391. /deep/.ws-info-table .el-form-item .el-form-item__content {
  392. padding: 0 25px;
  393. border-left: 1px solid #cdd2dc;
  394. background: #fafbfc;
  395. }
  396. /deep/.ws-info-table .el-form-item .el-form-item__label {
  397. width: 140px;
  398. text-align: center;
  399. background: #f0f2f6;
  400. // border: 1px solid #cdd2dc;
  401. }
  402. .button-container {
  403. display: flex;
  404. flex-wrap: nowrap;
  405. justify-content: space-between;
  406. align-items: center;
  407. background-color: #fff;
  408. width: 100%;
  409. height: 50px;
  410. padding: 0 10px;
  411. & > div {
  412. margin-left: 10px;
  413. display: flex;
  414. flex-wrap: nowrap;
  415. flex-direction: row;
  416. & > span {
  417. line-height: 50px;
  418. }
  419. }
  420. /deep/.auditFlow-box {
  421. position: unset;
  422. margin-left: 10px;
  423. &/deep/.auditFlow-icon {
  424. width: auto;
  425. padding-right: 30px;
  426. }
  427. &/deep/.auditFlow-main {
  428. position: absolute;
  429. }
  430. }
  431. }
  432. .box-app {
  433. display: inline-block;
  434. float: left;
  435. margin-left: 30px;
  436. line-height: 50px;
  437. }
  438. /deep/.el-dialog {
  439. .el-form-item {
  440. margin-bottom: 0 !important;
  441. .el-input--medium {
  442. textarea {
  443. min-height: 100px !important;
  444. }
  445. }
  446. }
  447. }
  448. .collapse-bottom {
  449. margin-bottom: 20px;
  450. }
  451. .input-main .textarea .el-textarea__inner {
  452. width: 100%;
  453. z-index: 1;
  454. }
  455. .bg-left {
  456. padding-left: 30px;
  457. }
  458. .bg-right {
  459. padding-right: 10px;
  460. text-align: right;
  461. }
  462. .bg-bottom {
  463. margin: 15px 0px;
  464. }
  465. .wenzi {
  466. width: 900px;
  467. margin: 0 auto;
  468. }
  469. .wenzi h3 {
  470. display: inline-block;
  471. left: 10px;
  472. }
  473. .wenzi p {
  474. display: inline-block;
  475. }
  476. .center {
  477. width: 900px;
  478. margin: 0 auto;
  479. }
  480. .el-form-item {
  481. width: 50%;
  482. }
  483. .el-form-item__label {
  484. text-align: center;
  485. }
  486. .ce {
  487. width: 900px;
  488. margin: 0 auto;
  489. }
  490. /*.crt-main .textarea /deep/ .el-form-item__label {*/
  491. /* height: 82px;*/
  492. /*}*/
  493. // 控制select为只读的时候显示样式
  494. .hide-sel {
  495. .el-input__inner {
  496. border: 0px;
  497. }
  498. .el-icon-arrow-up {
  499. display: none;
  500. }
  501. .el-textarea__inner {
  502. background-color: #fff !important;
  503. border: 0;
  504. }
  505. .el-date-editor {
  506. i {
  507. display: none;
  508. }
  509. }
  510. .is-disabled {
  511. .el-input__inner:hover {
  512. background-color: #fff !important;
  513. border: 0;
  514. }
  515. color: #606266;
  516. .el-input__inner {
  517. background-color: #fff !important;
  518. border: 0;
  519. color: #606266;
  520. }
  521. .el-textarea__inner {
  522. background-color: #fff !important;
  523. border: 0;
  524. color: #606266;
  525. }
  526. }
  527. }
  528. // 控制select为只读的时候显示样式
  529. /deep/.ws-class-table-col {
  530. height: auto;
  531. padding: 0px 2px;
  532. /deep/.el-input__inner {
  533. padding: 0px 2px;
  534. }
  535. }
  536. /deep/.is-disabled {
  537. .el-input__prefix,
  538. .el-input__suffix {
  539. display: none;
  540. }
  541. .el-input__inner {
  542. background-color: #fff;
  543. border-color: #fff !important;
  544. color: #000 !important;
  545. font-size: 14px;
  546. cursor: text;
  547. padding: 0 !important;
  548. }
  549. }
  550. .winseaview-view {
  551. padding: 0 0 20px;
  552. }
  553. .container {
  554. overflow: scroll;
  555. height: 93vh;
  556. }
  557. /deep/.ws-info-table[data-v-850a44a6] .el-form-item .el-form-item__label {
  558. width: 130px;
  559. }
  560. </style>