onWaywarehouseReceiptRegulation.vue 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. //贸易服务管理
  2. <template>
  3. <div class="container">
  4. <div class='tip'>火爆开发中...</div>
  5. </div>
  6. </template>
  7. <script>
  8. import mapDrag from '@/components/mapdrag/warehouseReceiptMap'
  9. import {
  10. getList
  11. } from '@/model/tradeServicesManagement/index'
  12. import {
  13. selectWarehouseSelf,
  14. } from '@/model/houseSelfCollect/index'
  15. export default {
  16. components: {
  17. mapDrag
  18. },
  19. data() {
  20. return {
  21. searchVal: '',
  22. searchKeyWord: '',
  23. isActive: false,
  24. radio: '1',
  25. tradeServicesList: [],
  26. currentPage: 1,
  27. pageSize: 10,
  28. deptBudgetTotal: 0,
  29. deptCircularPage: {},
  30. searchType: '0',
  31. warehouseList: [],
  32. compId:'',
  33. }
  34. },
  35. activated() {},
  36. beforeCreate() {
  37. document.querySelector('body').setAttribute('style', 'overflow:hidden;')
  38. },
  39. mounted() {
  40. let height = document.body.offsetHeight - 57
  41. document.querySelector('.container').setAttribute('style', 'height:' + height + 'px;')
  42. let _showPage = sessionStorage.getItem('warehouseReceiptRegulation_selectShowType')
  43. if (_showPage == "1") {
  44. this.radio = '1'
  45. this.isActive = false
  46. } else if (_showPage == "2") {
  47. this.radio = '2'
  48. this.isActive = true
  49. } else {
  50. this.radio = '1'
  51. this.isActive = false
  52. }
  53. this.compId = sessionStorage.getItem('ws-pf_compId')
  54. this.getList()
  55. // this.getWarehouseList()
  56. this.tradeServicesList = [{
  57. authenticationStatus: 'test'
  58. }]
  59. },
  60. methods: {
  61. findList() {
  62. this.currentPage=1
  63. this.pageSize=10
  64. this.getList()
  65. },
  66. handlestatus(status) {
  67. this.searchType = status
  68. // this.currentPage:=1
  69. // this.pageSize=10
  70. // this.getList()
  71. },
  72. lookBtnClick(val1, val2) {
  73. this.$router.push({
  74. name: 'warehouseReceiptLook'
  75. })
  76. },
  77. toExamineBtnClick(val1, val2) {
  78. this.$router.push({
  79. name: 'reviewWarehouseReceipt'
  80. })
  81. },
  82. approveBtnClick(val1, val2) {
  83. this.$router.push({
  84. name: 'approveWarehouseReceipt'
  85. })
  86. },
  87. repaymentBtnClick(val1, val2) {
  88. this.$router.push({
  89. name: 'repayment'
  90. })
  91. },
  92. rowEditBtnClick(val1, val2) {
  93. this.$router.push({
  94. name: 'warehouseReceiptEdit'
  95. })
  96. },
  97. rowDeleteBtnClick(val1, val2) {},
  98. handleSizeChange(val) {
  99. console.log(`每页 ${val} 条`)
  100. this.pageSize = val
  101. this.getWarehouseList()
  102. this.getList()
  103. },
  104. handleCurrentChange(val) {
  105. this.currentPage = val
  106. console.log(`当前页: ${val}`)
  107. this.getList()
  108. },
  109. startHacking() {
  110. this.isActive = true
  111. },
  112. startHacking1() {
  113. this.isActive = false
  114. },
  115. getWarehouseList() {
  116. selectWarehouseSelf({
  117. compId: this.compId
  118. })
  119. .toPromise()
  120. .then(response => {
  121. this.warehouseList = response
  122. })
  123. },
  124. getList(e, type) {
  125. if (type == 1) {
  126. this.isActive = true
  127. }
  128. getList({
  129. compId: this.compId,
  130. currentPage: this.currentPage,
  131. pageSize: this.pageSize,
  132. searchType: this.searchType,
  133. searchKeyWord: this.searchKeyWord,
  134. })
  135. .toPromise()
  136. .then((response) => {
  137. console.log('列表数据', response)
  138. this.tradeServicesList = response.data.records
  139. })
  140. },
  141. selectShowType(e) {
  142. this.activated = !this.activated;
  143. sessionStorage.setItem('warehouseReceiptRegulation_selectShowType', e)
  144. },
  145. add() {
  146. this.$router.push({
  147. name: 'warehouseReceiptAdd'
  148. })
  149. }
  150. }
  151. }
  152. </script>
  153. <style lang="scss" scoped>
  154. .tip{
  155. width: 300px;
  156. height: 100px;
  157. font-size: 48px;
  158. position: absolute;
  159. top: 0;
  160. bottom: 0;
  161. left: 0;
  162. right: 0;
  163. margin: auto;
  164. }
  165. .container {
  166. position: relative;
  167. }
  168. .icon{
  169. transform: rotate(90deg);
  170. margin: 0 10px;
  171. }
  172. .active {
  173. height: 0 !important;
  174. overflow: hidden;
  175. }
  176. .bottom,
  177. .top {
  178. display: flex;
  179. justify-items: flex-end;
  180. height: 5%;
  181. align-content: center;
  182. .bottom-content,
  183. .top-content {
  184. display: flex;
  185. justify-content: flex-end;
  186. width: 100%;
  187. padding-right: 25px;
  188. }
  189. .bottom-item,
  190. .top-item {
  191. display: flex;
  192. align-items: center;
  193. }
  194. }
  195. .content2 {
  196. // background: pink;
  197. padding: 20px;
  198. height: calc(100% - 44px);
  199. .header {
  200. position: relative;
  201. .add {
  202. position: absolute;
  203. right: 0;
  204. }
  205. }
  206. .search-input {
  207. width: 300px;
  208. margin-left: 10px;
  209. }
  210. }
  211. .paging {
  212. margin-top: 10px;
  213. text-align: center;
  214. }
  215. </style>