viewMore.vue 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. <template>
  2. <div>
  3. <el-dialog title="费用信息" :visible.sync="dialogVisible" top="5vh" append-to-body width="80%" :before-close="handleClose">
  4. <span style="font-size:18px;font-weight:600;margin-left:10px;">
  5. <span style="color: #67C23A;margin-right: 10px;"> 应收本币:{{ form.amountDr || 0 }}元 </span>
  6. <span style="color: #E6A23C;margin-right: 10px;"> 应付本币:{{ form.amountCr || 0 }}元 </span>
  7. <span style="color: #67C23A;margin-right: 10px;"> 应收外币:{{ form.amountDrUsd || 0 }}元 </span>
  8. <span style="color: #E6A23C;margin-right: 10px;"> 应付外币:{{ form.amountCrUsd || 0 }}元 </span>
  9. <span style="color: #E6A23C;margin-right: 10px;"> 总合计:{{ form.amountSubLoc || 0 }}元 </span>
  10. </span>
  11. <avue-crud
  12. v-if="dialogVisible"
  13. :option="option"
  14. :data="pageData"
  15. ref="crud"
  16. :page.sync="page"
  17. @size-change="sizeChange"
  18. @current-change="currentChange"
  19. >
  20. </avue-crud>
  21. <span slot="footer" class="dialog-footer">
  22. <el-button @click="dialogVisible = false" size="mini">关 闭</el-button>
  23. </span>
  24. </el-dialog>
  25. </div>
  26. </template>
  27. <script>
  28. export default {
  29. props: {},
  30. data() {
  31. return {
  32. allData: [],
  33. pageData: [],
  34. form: {},
  35. dialogVisible: false,
  36. loading: false,
  37. option: {
  38. height: "600px",
  39. calcHeight: 30,
  40. menuWidth: 60,
  41. tip: false,
  42. menu: false,
  43. border: true,
  44. addBtn: false,
  45. viewBtn: false,
  46. editBtn: false,
  47. delBtn: false,
  48. refreshBtn: false,
  49. header: false,
  50. index: true,
  51. align: "center",
  52. column: [
  53. {
  54. label: "所属公司",
  55. prop: "branchName",
  56. width: 120,
  57. overHidden: true
  58. },
  59. {
  60. label: "客户名称",
  61. prop: "corpCnName",
  62. width: 120,
  63. overHidden: true
  64. },
  65. {
  66. label: "收付",
  67. prop: "dc",
  68. width: 60,
  69. type: "select",
  70. dicData: [
  71. {
  72. label: "收",
  73. value: "D"
  74. },
  75. {
  76. label: "付",
  77. value: "C"
  78. }
  79. ],
  80. overHidden: true
  81. },
  82. {
  83. label: "费用名称",
  84. prop: "feeCnName",
  85. width: 80,
  86. overHidden: true
  87. },
  88. {
  89. label: "申请金额",
  90. prop: "currentAmount",
  91. width: 100,
  92. overHidden: true
  93. },
  94. {
  95. label: "币别",
  96. prop: "curCode",
  97. width: 60,
  98. overHidden: true
  99. },
  100. {
  101. label: "汇率",
  102. prop: "currentExrate",
  103. width: 80,
  104. overHidden: true
  105. },
  106. {
  107. label: "MB/L NO",
  108. prop: "mblno",
  109. width: 100,
  110. overHidden: true
  111. },
  112. {
  113. label: "HB/L NO",
  114. prop: "hblno",
  115. width: 100,
  116. overHidden: true
  117. },
  118. {
  119. label: "起运港",
  120. prop: "polCnName",
  121. width: 100,
  122. overHidden: true
  123. },
  124. {
  125. label: "目的港",
  126. prop: "podCnName",
  127. width: 80,
  128. overHidden: true
  129. },
  130. {
  131. label: "箱型箱量",
  132. prop: "quantityCntrDescr",
  133. width: 80,
  134. overHidden: true
  135. },
  136. {
  137. label: "船名",
  138. prop: "vesselEnName",
  139. width: 80,
  140. overHidden: true
  141. },
  142. {
  143. label: "航次",
  144. prop: "voyageNo",
  145. width: 80,
  146. overHidden: true
  147. },
  148. {
  149. label: "备注",
  150. prop: "remarks",
  151. width: 120,
  152. overHidden: true
  153. }
  154. ]
  155. },
  156. page: {
  157. currentPage: 1,
  158. total: 0,
  159. pageSize: 50
  160. }
  161. };
  162. },
  163. created() {},
  164. methods: {
  165. openDialog(row, list) {
  166. this.dialogVisible = true;
  167. this.form = {};
  168. this.allData = [];
  169. this.page = {
  170. currentPage: 1,
  171. total: 0,
  172. pageSize: 50
  173. };
  174. this.form = row;
  175. this.allData = list;
  176. this.page.total = list.length;
  177. this.getList();
  178. },
  179. sizeChange(val) {
  180. this.page.currentPage = 1;
  181. this.page.pageSize = val;
  182. this.getList();
  183. },
  184. currentChange(val) {
  185. this.page.currentPage = val;
  186. this.getList();
  187. },
  188. getList() {
  189. const start = (this.page.currentPage - 1) * this.page.pageSize;
  190. const end = start + this.page.pageSize;
  191. this.pageData = this.allData.slice(start, end);
  192. }
  193. }
  194. };
  195. </script>
  196. <style scoped>
  197. ::v-deep#out-table .back-one {
  198. background: #ecf5ff !important;
  199. text-align: center;
  200. padding: 4px 0;
  201. }
  202. ::v-deep#out-table .back-two {
  203. background: #ecf5ff !important;
  204. text-align: center;
  205. padding: 4px 0;
  206. }
  207. </style>