salesContractExamine.vue 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644
  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">
  8. 查看合同详情<span>状态:{{ status }}</span>
  9. </h2>
  10. </el-col>
  11. <el-col :span="12" class="bg-right">
  12. <el-button
  13. class="bg-bottom"
  14. type="primary"
  15. size="small"
  16. @click="returnsales()"
  17. >返回</el-button
  18. >
  19. </el-col>
  20. </el-row>
  21. <div class="state">
  22. <h2>销售合同</h2>
  23. <p>【编号:{{deptBudgetList.contractNo}}】</p>
  24. <span class="icon">&nbsp;&nbsp;{{ deptBudgetList.status }}</span>
  25. </div>
  26. <div class="center">
  27. <ws-form
  28. ref="deptBudgetList"
  29. :rules="mainReportAdd"
  30. :model="deptBudgetList"
  31. >
  32. <div class="remark">
  33. <h3>基本信息</h3>
  34. </div>
  35. <ws-info-table>
  36. <ws-form-item label="合同编号" span="1" prop="contractNo">
  37. <div class="unchanged">
  38. {{ deptBudgetList.contractNo }}
  39. </div>
  40. <span class="unchangeable">*</span>
  41. </ws-form-item>
  42. <ws-form-item label="运输方式" span="1" prop="shippingType">
  43. <div class="unchanged">
  44. {{ deptBudgetList.shippingType }}
  45. </div>
  46. </ws-form-item>
  47. <ws-form-item label="买方" span="1" prop="buyer">
  48. <div class="unchanged">
  49. {{ deptBudgetList.buyer }}
  50. </div>
  51. <span class="unchangeable">*</span>
  52. </ws-form-item>
  53. <ws-form-item label="结算方式" span="1" prop="settlementMethod">
  54. <div class="unchanged">
  55. {{ deptBudgetList.settlementMethod }}
  56. </div>
  57. </ws-form-item>
  58. <ws-form-item label="卖方" span="1" prop="seller">
  59. <div class="unchanged">
  60. {{ deptBudgetList.seller }}
  61. </div>
  62. <span class="unchangeable">*</span>
  63. </ws-form-item>
  64. <ws-form-item label="货源地" span="1" prop="sourceGoods">
  65. <div class="unchanged">
  66. {{ deptBudgetList.sourceGoods }}
  67. </div>
  68. </ws-form-item>
  69. <ws-form-item label="买方电话" span="1" prop="buyerPhone">
  70. <div class="unchanged">
  71. {{ deptBudgetList.buyerPhone }}
  72. </div>
  73. </ws-form-item>
  74. <ws-form-item label="交货地" span="1" prop="placeDelivery">
  75. <div class="unchanged">
  76. {{ deptBudgetList.placeDelivery }}
  77. </div>
  78. </ws-form-item>
  79. <ws-form-item label="卖方电话" span="1" prop="sellerPhone">
  80. <div class="unchanged">
  81. {{ deptBudgetList.sellerPhone }}
  82. </div>
  83. </ws-form-item>
  84. <ws-form-item label="包装方式" span="1" prop="packingMethod">
  85. <div class="unchanged">
  86. {{ deptBudgetList.packingMethod }}
  87. </div>
  88. </ws-form-item>
  89. <ws-form-item label="重量(吨)" span="1" prop="weight">
  90. <div class="unchanged">
  91. {{ deptBudgetList.weight }}
  92. </div>
  93. </ws-form-item>
  94. <ws-form-item label="验收方式" span="1" prop="acceptanceMethod">
  95. <div class="unchanged">
  96. {{ deptBudgetList.acceptanceMethod }}
  97. </div>
  98. </ws-form-item>
  99. <ws-form-item label="溢短装(%)" span="1" prop="overShort">
  100. <div class="unchanged">
  101. {{ deptBudgetList.overShort }}
  102. </div>
  103. </ws-form-item>
  104. <ws-form-item label="交货日期(起)" span="1" prop="deliveryDateStart">
  105. <div class="unchanged">
  106. {{ deptBudgetList.deliveryDateStart }}
  107. </div>
  108. </ws-form-item>
  109. <ws-form-item
  110. label="合同单价(元/吨)"
  111. span="1"
  112. prop="unitContractPrice"
  113. >
  114. <div class="unchanged">
  115. {{ deptBudgetList.unitContractPrice }}
  116. </div>
  117. <span class="unchangeable">*</span>
  118. </ws-form-item>
  119. <ws-form-item label="交货日期(止)" span="1" prop="deliveryDateEnd">
  120. <div class="unchanged">
  121. {{ deptBudgetList.deliveryDateEnd }}
  122. </div>
  123. </ws-form-item>
  124. <ws-form-item label="合同总价(元)" span="1" prop="totalContractPrice">
  125. <div class="unchanged">
  126. {{ deptBudgetList.totalContractPrice }}
  127. </div>
  128. </ws-form-item>
  129. <ws-form-item label="签订日期" span="1" prop="signingDate">
  130. <div class="unchanged">
  131. {{ deptBudgetList.signingDate }}
  132. </div>
  133. </ws-form-item>
  134. </ws-info-table>
  135. <!-- </base-card> -->
  136. <!--面试信息-->
  137. <div class="remark">
  138. <h3>货物信息</h3>
  139. </div>
  140. <ws-info-table>
  141. <ws-form-item label="货名" span="1" prop="waterContent">
  142. <div class="unchanged">
  143. {{ deptBudgetList.contractGoodsInfo.goodsName }}
  144. </div>
  145. <span class="unchangeable">*</span>
  146. </ws-form-item>
  147. <ws-form-item label="水分(%)<=" span="1" prop="intendedShipId">
  148. <div class="unchanged">
  149. {{ deptBudgetList.contractGoodsInfo.waterContent }}
  150. </div>
  151. </ws-form-item>
  152. <ws-form-item label="品级" span="1" prop="grade">
  153. <div class="unchanged">
  154. {{ deptBudgetList.contractGoodsInfo.grade }}
  155. </div>
  156. </ws-form-item>
  157. <ws-form-item label="杂质(%)<=" span="1" prop="impurity">
  158. <div class="unchanged">
  159. {{ deptBudgetList.contractGoodsInfo.impurity }}
  160. </div>
  161. </ws-form-item>
  162. <ws-form-item label="容重(克/升)<=" span="1" prop="bulkDensity">
  163. <div class="unchanged">
  164. {{ deptBudgetList.contractGoodsInfo.bulkDensity }}
  165. </div>
  166. </ws-form-item>
  167. <ws-form-item
  168. label="霉变粒(%)<="
  169. span="1"
  170. prop="mildewGrain"
  171. class="result"
  172. >
  173. <div class="unchanged">
  174. {{ deptBudgetList.contractGoodsInfo.mildewGrain }}
  175. </div>
  176. </ws-form-item>
  177. <ws-form-item label="热损伤(%)<=" span="1" prop="jiaorenli">
  178. <div class="unchanged">
  179. {{ deptBudgetList.contractGoodsInfo.jiaorenli }}
  180. </div>
  181. </ws-form-item>
  182. <ws-form-item
  183. label="不完善粒(%)<="
  184. span="1"
  185. prop="imperfectGrain"
  186. class="result"
  187. >
  188. <div class="unchanged">
  189. {{ deptBudgetList.contractGoodsInfo.imperfectGrain }}
  190. </div>
  191. </ws-form-item>
  192. </ws-info-table>
  193. <div class="remark">
  194. <h3>流程信息</h3>
  195. </div>
  196. <ws-info-table>
  197. <ws-form-item label="合同收入(元)" span="1" prop="goodsNameKey">
  198. <div class="unchanged">
  199. {{ deptBudgetList.contractProcessInfo.goodsNameKey }}
  200. </div>
  201. </ws-form-item>
  202. <ws-form-item label="已开发票(元)" span="1" prop="goodsName">
  203. <div class="unchanged">
  204. {{ deptBudgetList.contractProcessInfo.goodsName }}
  205. </div>
  206. </ws-form-item>
  207. <ws-form-item label="费用支出(元)" span="1" prop="waterContent">
  208. <div class="unchanged">
  209. {{ deptBudgetList.contractProcessInfo.waterContent }}
  210. </div>
  211. </ws-form-item>
  212. <ws-form-item label="未开发票(元)" span="1" prop="impurity">
  213. <div class="unchanged">
  214. {{ deptBudgetList.contractProcessInfo.impurity }}
  215. </div>
  216. </ws-form-item>
  217. <ws-form-item label="未回款(元)" span="1" prop="mildewGrain">
  218. <div class="unchanged">
  219. {{ deptBudgetList.contractProcessInfo.mildewGrain }}
  220. </div>
  221. </ws-form-item>
  222. <ws-form-item
  223. label="已完成发运量(吨)"
  224. span="1"
  225. prop="imperfectGrain"
  226. class="result"
  227. >
  228. <div class="unchanged">
  229. {{ deptBudgetList.contractProcessInfo.imperfectGrain }}
  230. </div>
  231. </ws-form-item>
  232. <!-- <ws-form-item label="双章原件回收情况" span="1" prop="grade">
  233. <div class="unchanged">
  234. {{ deptBudgetList.contractProcessInfo.grade }}
  235. </div>
  236. >{{ deptBudgetList.contractProcessInfo.imperfectGrain }}
  237. </ws-form-item> -->
  238. <ws-form-item label="双章原件回收情况" span="1" prop="grade" >
  239. <div class="unchanged">
  240. {{deptBudgetList.contractProcessInfo.grade}}
  241. </div>
  242. </ws-form-item>
  243. </ws-info-table>
  244. <div class="remark">
  245. <h3>备注信息</h3>
  246. </div>
  247. <div class="unchanged beizhu">
  248. {{ deptBudgetList.remarks }}
  249. </div>
  250. <img :src="deptBudgetList.addressUrl" alt="" />
  251. <!-- </base-card> -->
  252. </ws-form>
  253. <div style="text-align: right; padding: 10px">
  254. <el-button
  255. class="bg-bottom"
  256. type="primary"
  257. size="small"
  258. @click="returnsales()"
  259. >关闭</el-button
  260. >
  261. </div>
  262. </div>
  263. </div>
  264. </template>
  265. <script>
  266. import {
  267. getList,
  268. packList,
  269. addList,
  270. xiala,
  271. addxiala,
  272. editxiala,
  273. delxiala,
  274. examineList,
  275. } from '@/model/contarct/index'
  276. import { dayjs } from 'base-core-lib'
  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. // 提交类型
  301. submitType: true,
  302. tableData: [],
  303. ruleDeptBudget: [],
  304. deptBudgetList: {
  305. contractProcessInfo: {},
  306. contractGoodsInfo: {},
  307. },
  308. mainReportAdd: {},
  309. list: {},
  310. }
  311. },
  312. activated() {
  313. this.status = this.$route.query.status
  314. this.loaddata()
  315. this.showType = this.isShow
  316. this.getList()
  317. this.examineList()
  318. },
  319. methods: {
  320. loaddata() {
  321. // 数据
  322. examineList({ id: this.$route.query.id })
  323. .toPromise()
  324. .then((response) => {
  325. this.deptBudgetList = response
  326. })
  327. // 包装方式
  328. packList({ constId: 'CON1' })
  329. .toPromise()
  330. .then((response) => {
  331. this.packtypeList = response
  332. })
  333. // 验收方式
  334. this.getUnitList()
  335. // 货名
  336. packList({ constId: 'CON2' })
  337. .toPromise()
  338. .then((response) => {
  339. this.goodnameList = response
  340. })
  341. // 品级
  342. packList({ constId: 'CON3' })
  343. .toPromise()
  344. .then((response) => {
  345. this.gradeList = response
  346. })
  347. // 双章
  348. packList({ constId: 'CON4' })
  349. .toPromise()
  350. .then((response) => {
  351. this.ChapterTwoList = response
  352. })
  353. },
  354. getUnitList() {
  355. xiala({
  356. compId: sessionStorage.getItem('ws-pf_compId'),
  357. constCode: 'TYPEYAN',
  358. })
  359. .toPromise()
  360. .then((response) => {
  361. this.unitList = response
  362. let currItem
  363. this.unitList.forEach((item, index, arr) => {
  364. item.flag = 'delete'
  365. if (this.vModel == item.constKey) {
  366. currItem = item
  367. }
  368. })
  369. //
  370. if (currItem) {
  371. this.selectContract(currItem.constValue)
  372. }
  373. })
  374. },
  375. // 关闭 dialog时 处理文件url 初始化upload组件
  376. handleClose() {
  377. this.dialogViewSpareMoney = false
  378. },
  379. handleExamine() {},
  380. approve() {},
  381. returnsales() {
  382. this.$router.push({ path: 'salesContract' })
  383. },
  384. },
  385. }
  386. </script>
  387. <style lang="scss" scoped>
  388. .button-container {
  389. display: flex;
  390. flex-wrap: nowrap;
  391. justify-content: space-between;
  392. align-items: center;
  393. background-color: #fff;
  394. width: 100%;
  395. height: 50px;
  396. padding: 0 10px;
  397. & > div {
  398. margin-left: 10px;
  399. display: flex;
  400. flex-wrap: nowrap;
  401. flex-direction: row;
  402. & > span {
  403. line-height: 50px;
  404. }
  405. }
  406. /deep/.auditFlow-box {
  407. position: unset;
  408. margin-left: 10px;
  409. &/deep/.auditFlow-icon {
  410. width: auto;
  411. padding-right: 30px;
  412. }
  413. &/deep/.auditFlow-main {
  414. position: absolute;
  415. }
  416. }
  417. }
  418. .box-app {
  419. display: inline-block;
  420. margin-left: 30px;
  421. line-height: 50px;
  422. }
  423. /deep/.el-dialog {
  424. .el-form-item {
  425. margin-bottom: 0 !important;
  426. .el-input--medium {
  427. textarea {
  428. min-height: 100px !important;
  429. }
  430. }
  431. }
  432. }
  433. .collapse-bottom {
  434. margin-bottom: 20px;
  435. }
  436. .input-main .textarea .el-textarea__inner {
  437. width: 100%;
  438. z-index: 1;
  439. }
  440. .bg-left {
  441. padding-left: 30px;
  442. }
  443. .bg-right {
  444. padding: 10px;
  445. text-align: right;
  446. }
  447. .bg-bottom {
  448. margin: 20px 0px;
  449. }
  450. .wenzi {
  451. width: 900px;
  452. margin: 0 auto;
  453. }
  454. .wenzi h3 {
  455. display: inline-block;
  456. left: 30px;
  457. }
  458. .wenzi p {
  459. display: inline-block;
  460. }
  461. .center {
  462. width: 900px;
  463. margin: 0 auto;
  464. }
  465. .el-form-item {
  466. width: 50%;
  467. }
  468. .el-form-item__label {
  469. text-align: center;
  470. }
  471. /*.crt-main .textarea /deep/ .el-form-item__label {*/
  472. /* height: 82px;*/
  473. /*}*/
  474. // 控制select为只读的时候显示样式
  475. .hide-sel {
  476. .el-input__inner {
  477. border: 0px;
  478. }
  479. .el-icon-arrow-up {
  480. display: none;
  481. }
  482. .el-textarea__inner {
  483. background-color: #fff !important;
  484. border: 0;
  485. }
  486. .el-date-editor {
  487. i {
  488. display: none;
  489. }
  490. }
  491. .is-disabled {
  492. .el-input__inner:hover {
  493. background-color: #fff !important;
  494. border: 0;
  495. }
  496. color: #606266;
  497. .el-input__inner {
  498. background-color: #fff !important;
  499. border: 0;
  500. color: #606266;
  501. }
  502. .el-textarea__inner {
  503. background-color: #fff !important;
  504. border: 0;
  505. color: #606266;
  506. }
  507. }
  508. }
  509. // 控制select为只读的时候显示样式
  510. /deep/.ws-class-table-col {
  511. height: auto;
  512. padding: 0px 2px;
  513. /deep/.el-input__inner {
  514. padding: 0px 2px;
  515. }
  516. }
  517. /deep/.is-disabled {
  518. .el-input__prefix,
  519. .el-input__suffix {
  520. display: none;
  521. }
  522. .el-input__inner {
  523. background-color: #fff;
  524. border-color: #fff !important;
  525. color: #000 !important;
  526. font-size: 14px;
  527. cursor: text;
  528. padding: 0 !important;
  529. }
  530. }
  531. .winseaview-view {
  532. padding: 10px 0 20px;
  533. }
  534. .container {
  535. overflow: scroll;
  536. height: 93vh;
  537. }
  538. .state{
  539. width: 900px;
  540. margin: 0 auto;
  541. }
  542. .state h2,.state p{
  543. display: inline-block;
  544. }
  545. .state p{
  546. display: inline-block;
  547. margin-left: 10px;
  548. width: 170px;
  549. height: 20px;
  550. font-size: 14px;
  551. font-family: PingFangSC-Regular, PingFang SC;
  552. font-weight: 400;
  553. color: #000000;
  554. line-height: 20px;
  555. }
  556. .icon{
  557. display: inline-block;
  558. width: 60px;
  559. height: 24px;
  560. background: #ECFEFF;
  561. border-radius: 12px;
  562. border: 1px solid #50CAD4;
  563. position: relative;
  564. font-family: PingFangSC-Regular, PingFang SC;
  565. font-size: 14px;
  566. color: #50CAD4;
  567. line-height: 24px;
  568. }
  569. //*号
  570. .unchangeable{
  571. position: absolute;
  572. width: 9px;
  573. height: 22px;
  574. font-size: 16px;
  575. font-family: PingFangSC-Medium, PingFang SC;
  576. font-weight: 500;
  577. color: #FF2727;
  578. line-height: 22px;
  579. display: inline-block;
  580. right: 14px;
  581. }
  582. /deep/.el-input ,/deep/.el-date-editor{
  583. font-size: 13px;
  584. width: 232px;
  585. left: 21px;
  586. }
  587. /deep/.el-textarea{
  588. width: 900px;
  589. margin: 0px;
  590. }
  591. /deep/el-date-editor--date{
  592. width: 200px;
  593. }
  594. .beizhu{
  595. position: absolute;
  596. margin: 0 auto;
  597. }
  598. .unchanged{
  599. position: absolute;
  600. left: 37px;
  601. width: 900px;
  602. height: 14px;
  603. font-size: 14px;
  604. font-family: PingFangSC-Regular, PingFang SC;
  605. font-weight: 400;
  606. color: #AFB5CB;
  607. line-height: 14px;
  608. }
  609. /deep/.ws-info-table[data-v-850a44a6] .el-form-item .el-form-item__label{
  610. width: 130px;
  611. }
  612. /deep/.el-input--small .el-input__inner {
  613. height: 32px;
  614. line-height: 32px;
  615. width: 232px;
  616. }
  617. </style>