warehouseReceiptRegulation.vue 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. //贸易服务管理
  2. <template>
  3. <div class="container">
  4. <map-drag :class="{active:isActive}"></map-drag>
  5. <div class="bottom" :class="{active:isActive}">
  6. <div class="bottom-content">
  7. <div class="bottom-item" @click="startHacking">查看申请记录</div>
  8. <div class="bottom-item">》》</div>
  9. <el-radio class="bottom-item" v-model="radio" label="1" @change="selectShowType">默认地图</el-radio>
  10. </div>
  11. </div>
  12. <div class="top">
  13. <div class="top-content">
  14. <div class="top-item" @click="startHacking1">查看地图</div>
  15. <div class="top-item">》》</div>
  16. <el-radio class="top-item" v-model="radio" label="2" @change="selectShowType">默认列表</el-radio>
  17. </div>
  18. </div>
  19. <div class="content2">
  20. <div class="header">
  21. <el-button type="" :type="searchType == 1 ? 'primary' : ''" @click="handlestatus(1)">全部</el-button>
  22. <el-button type="" :type="searchType == 2 ? 'primary' : ''" @click="handlestatus(2)">待审核</el-button>
  23. <el-button type="" :type="searchType == 3 ? 'primary' : ''" @click="handlestatus(3)">待审批</el-button>
  24. <el-button type="" :type="searchType == 4 ? 'primary' : ''" @click="handlestatus(4)">待还</el-button>
  25. <el-button type="" :type="searchType == 5 ? 'primary' : ''" @click="handlestatus(5)">已还</el-button>
  26. <el-input placeholder="可按业务编号、合同编号、仓库名查找" class="search-input" v-model="searchKeyWord"></el-input>
  27. <el-button type="primary" @click='findList'>查找</el-button>
  28. <el-button type="primary" class="add" @click="add">添加</el-button>
  29. </div>
  30. <el-table :data="tradeServicesList" style="width: 100%; margin-top: 20px" ref="tradeServicesList" border
  31. height="calc(100% - 90px)">
  32. <el-table-column type="index" label="序号">
  33. <template scope="scope">
  34. <span v-if="scope.$index < 9">0{{ scope.$index + 1 }}</span>
  35. <span v-else>{{ scope.$index + 1 }}</span>
  36. </template>
  37. </el-table-column>
  38. <el-table-column prop="authenticationStatus" label="业务编号"></el-table-column>
  39. <el-table-column prop="authenticationStatus" label="合同编号"></el-table-column>
  40. <el-table-column prop="authenticationStatus" label="仓库名"></el-table-column>
  41. <el-table-column prop="authenticationStatus" label="仓位号">
  42. <!-- <template slot-scope="scope">
  43. <div>{{scope.row.bankDeposit}}-{{scope.row.bankDepositBranch}}</div>
  44. </template> -->
  45. </el-table-column>
  46. <el-table-column prop="authenticationStatus" label="货名"></el-table-column>
  47. <el-table-column prop="authenticationStatus" label="重量(吨)"></el-table-column>
  48. <el-table-column prop="authenticationStatus" label="单价(元/吨)"></el-table-column>
  49. <el-table-column prop="authenticationStatus" label="总价值(元)"></el-table-column>
  50. <el-table-column prop="authenticationStatus" label="发放金额(元)"></el-table-column>
  51. <el-table-column prop="authenticationStatus" label="应还金额(元)"></el-table-column>
  52. <el-table-column prop="authenticationStatus" label="已还金额(元)"></el-table-column>
  53. <el-table-column prop="authenticationStatus" label="待还金额(元)"></el-table-column>
  54. <el-table-column prop="authenticationStatus" label="状态">
  55. <!-- <template slot-scope="scope">
  56. <div>{{scope.row.bankDeposit}}-{{scope.row.bankDepositBranch}}</div>
  57. </template> -->
  58. </el-table-column>
  59. <el-table-column prop="address" label="操作" width="430">
  60. <template slot-scope="scope">
  61. <el-button size="mini" @click="lookBtnClick(scope.row, 2)" v-show="scope.row.authenticationStatus!='已删除'">
  62. 查看</el-button>
  63. <el-button size="mini" @click="toExamineBtnClick(scope.row, 2)"
  64. v-show="scope.row.authenticationStatus!='已删除'">
  65. 审核</el-button>
  66. <el-button size="mini" @click="approveBtnClick(scope.row, 2)"
  67. v-show="scope.row.authenticationStatus!='已删除'">
  68. 审批</el-button>
  69. <el-button size="mini" @click="repaymentBtnClick(scope.row, 2)"
  70. v-show="scope.row.authenticationStatus!='已删除'">
  71. 还款</el-button>
  72. <el-button size="mini" @click="rowEditBtnClick(scope.row, 3)"
  73. v-show="scope.row.authenticationStatus!='已删除'">修改</el-button>
  74. <el-button size="mini" type="danger" @click="rowDeleteBtnClick(scope.row, '')">删除</el-button>
  75. </template>
  76. </el-table-column>
  77. </el-table>
  78. <div class="paging">
  79. <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage"
  80. :page-size="deptCircularPage.pageSize" layout="total, sizes, prev, pager, next, jumper"
  81. :total="deptBudgetTotal"></el-pagination>
  82. </div>
  83. </div>
  84. </div>
  85. </template>
  86. <script>
  87. import mapDrag from '@/components/mapdrag/warehouseReceiptMap'
  88. import {
  89. getList
  90. } from '@/model/tradeServicesManagement/index'
  91. export default {
  92. components: {
  93. mapDrag
  94. },
  95. data() {
  96. return {
  97. searchVal: '',
  98. searchKeyWord: '',
  99. isActive: false,
  100. radio: '1',
  101. tradeServicesList: [],
  102. currentPage: 1,
  103. pageSize: 10,
  104. deptBudgetTotal: 0,
  105. deptCircularPage: {},
  106. searchType: '1',
  107. }
  108. },
  109. activated() {},
  110. beforeCreate() {
  111. document.querySelector('body').setAttribute('style', 'overflow:hidden;')
  112. },
  113. mounted() {
  114. let height = document.body.offsetHeight - 57
  115. document.querySelector('.container').setAttribute('style', 'height:' + height + 'px;')
  116. let _showPage = sessionStorage.getItem('warehouseReceiptRegulation_selectShowType')
  117. if (_showPage == "1") {
  118. this.radio = '1'
  119. this.isActive = false
  120. } else if (_showPage == "2") {
  121. this.radio = '2'
  122. this.isActive = true
  123. } else {
  124. this.radio = '1'
  125. this.isActive = false
  126. }
  127. // this.getList()
  128. this.tradeServicesList = [{
  129. authenticationStatus: 'test'
  130. }]
  131. },
  132. methods: {
  133. findList() {
  134. // this.currentPage:=1
  135. // this.pageSize=10
  136. // this.getList()
  137. },
  138. handlestatus(status) {
  139. this.searchType = status
  140. // this.currentPage:=1
  141. // this.pageSize=10
  142. // this.getList()
  143. },
  144. lookBtnClick(val1, val2) {},
  145. toExamineBtnClick(val1, val2) {},
  146. approveBtnClick(val1, val2) {},
  147. repaymentBtnClick(val1, val2) {},
  148. rowEditBtnClick(val1, val2) {},
  149. rowDeleteBtnClick(val1, val2) {},
  150. handleSizeChange(val) {
  151. console.log(`每页 ${val} 条`)
  152. this.pageSize = val
  153. this.getList()
  154. },
  155. handleCurrentChange(val) {
  156. this.currentPage = val
  157. console.log(`当前页: ${val}`)
  158. this.getList()
  159. },
  160. startHacking() {
  161. this.isActive = true
  162. },
  163. startHacking1() {
  164. this.isActive = false
  165. },
  166. add() {},
  167. getList(e, type) {
  168. if (type == 1) {
  169. this.isActive = true
  170. }
  171. getList({
  172. compId: sessionStorage.getItem('ws-pf_compId'),
  173. currentPage: this.currentPage,
  174. pageSize: this.pageSize,
  175. searchType: this.searchType,
  176. searchKeyWord: this.searchKeyWord,
  177. })
  178. .toPromise()
  179. .then((response) => {
  180. console.log('列表数据', response)
  181. })
  182. },
  183. selectShowType(e) {
  184. this.activated = !this.activated;
  185. sessionStorage.setItem('warehouseReceiptRegulation_selectShowType', e)
  186. }
  187. }
  188. }
  189. </script>
  190. <style lang="scss" scoped>
  191. .container {}
  192. .active {
  193. height: 0 !important;
  194. overflow: hidden;
  195. }
  196. .bottom,.top {
  197. display: flex;
  198. justify-items: flex-end;
  199. height: 5%;
  200. align-content: center;
  201. .bottom-content,.top-content {
  202. display: flex;
  203. justify-content: flex-end;
  204. width: 100%;
  205. padding-right: 25px;
  206. }
  207. .bottom-item,.top-item {
  208. display: flex;
  209. align-items: center;
  210. }
  211. }
  212. .content2 {
  213. background: pink;
  214. padding: 20px;
  215. height: calc(100% - 44px);
  216. .header {
  217. position: relative;
  218. .add {
  219. position: absolute;
  220. right: 0;
  221. }
  222. }
  223. .search-input {
  224. width: 300px;
  225. margin-left: 10px;
  226. }
  227. }
  228. .paging {
  229. margin-top: 10px;
  230. text-align: center;
  231. }
  232. </style>