purchaseContractExamine.vue 12 KB

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