purchaseContractExamine.vue 13 KB

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