batchApproveOutbound.vue 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <template>
  2. <div class="batchApproveOutbound">
  3. <div class="top">
  4. <el-form :inline='true'>
  5. <!-- 查询按钮 -->
  6. <el-button icon="el-icon-search" type="primary" size="mini" @click="searchData">查询</el-button>
  7. <el-button icon="el-icon-circle-plus-outline" type="goon" size="mini" @click="confirmData">审批</el-button>
  8. </el-form>
  9. </div>
  10. <div class="main common-table-div" style="margin-bottom:0;margin-top:0">
  11. <el-table v-loading="dataLoading4" ref="dataTable4" border :height="height_bot" highlight-current-row
  12. @selection-change="handleSelectionChange4" :data="table.list" :icore-filter-flag="icoreFilterFlag"
  13. :header-cell-style="tableHeaderCellStyle" :cell-class-name="tableRowClassName4" @row-click="getRowCheck3"
  14. :exchangeFilterMap="{ 'validFlag': { '0': '已停用', '1': '已启用' }, }">
  15. <el-table-column type="index" label="NO" fixed="left" align="center"></el-table-column>
  16. <el-table-column type="selection" width="55" fixed="left" align="center"></el-table-column>
  17. <el-table-column sortable :show-overflow-tooltip="true" min-width="80px" label="数据状态" align="center">
  18. <template slot-scope="scope">
  19. <span v-if="scope.row.validFlag == 0">无效</span>
  20. <span v-else-if="scope.row.state == 1">已审批</span>
  21. <span v-else-if="scope.row.state == 0">待审批</span>
  22. <span v-else-if="scope.row.state == 2">已发放</span>
  23. </template>
  24. </el-table-column>
  25. <el-table-column sortable :show-overflow-tooltip="true" min-width="130px" prop="outId" label="出库记录号"
  26. align="center"></el-table-column>
  27. <!-- <el-table-column sortable width="100px" prop="hetongName" label="出库单号" align="center"></el-table-column> -->
  28. <el-table-column sortable :show-overflow-tooltip="true" min-width="140px" prop="stuffNo" label="物品编码"
  29. align="center"></el-table-column>
  30. <el-table-column sortable :show-overflow-tooltip="true" min-width="140px" prop="strNo" label="库房名称"
  31. align="center"></el-table-column>
  32. <el-table-column sortable :show-overflow-tooltip="true" min-width="100px" prop="stuffName" label="物品名称"
  33. align="center"></el-table-column>
  34. <el-table-column sortable :show-overflow-tooltip="true" min-width="100px" prop="stuffUnit" label="计量单位"
  35. align="center"></el-table-column>
  36. <el-table-column sortable :show-overflow-tooltip="true" min-width="100px" prop="outstkType" label="出库类型"
  37. align="center"></el-table-column>
  38. <el-table-column sortable :show-overflow-tooltip="true" min-width="100px" prop="qtyOutstk" label="出库数量"
  39. align="center"></el-table-column>
  40. <el-table-column sortable :show-overflow-tooltip="true" min-width="120px" prop="merchName" label="供应商"
  41. align="center"></el-table-column>
  42. <el-table-column sortable :show-overflow-tooltip="true" min-width="120px" prop="outstkApp" label="出库申请人"
  43. align="center"></el-table-column>
  44. <el-table-column sortable :show-overflow-tooltip="true" min-width="120px" prop="outstkHnd" label="出库审批人"
  45. align="center"></el-table-column>
  46. <el-table-column sortable :show-overflow-tooltip="true" min-width="140px" prop="outstkTime" label="出库时间"
  47. align="center"></el-table-column>
  48. <el-table-column sortable :show-overflow-tooltip="true" min-width="120px" prop="memo1" label="出库发放人"
  49. align="center"></el-table-column>
  50. <el-table-column sortable :show-overflow-tooltip="true" min-width="140px" prop="memo2" label="出库发放时间"
  51. align="center"></el-table-column>
  52. <el-table-column sortable :show-overflow-tooltip="true" min-width="130px" prop="stkId" label="库存记录号"
  53. align="center"></el-table-column>
  54. <el-table-column sortable :show-overflow-tooltip="true" min-width="100px" label="是否有效" align="center">
  55. <template slot-scope="scope">
  56. <span v-if="scope.row.validFlag == 1">已启用</span>
  57. <span v-else-if="scope.row.validFlag == 0">已停用</span>
  58. </template>
  59. </el-table-column>
  60. <el-table-column sortable :show-overflow-tooltip="true" min-width="120px" prop="createMan" label="创建人"
  61. align="center"></el-table-column>
  62. <el-table-column sortable :show-overflow-tooltip="true" min-width="140px" prop="createTime" label="创建时间"
  63. align="center"></el-table-column>
  64. <el-table-column sortable :show-overflow-tooltip="true" min-width="120px" prop="updateMan" label="更新人"
  65. align="center"></el-table-column>
  66. <el-table-column sortable :show-overflow-tooltip="true" min-width="140px" prop="updateTime" label="更新时间"
  67. align="center"></el-table-column>
  68. <el-table-column sortable :show-overflow-tooltip="true" min-width="100px" prop="memo" label="备注"
  69. align="center"></el-table-column>
  70. </el-table>
  71. </div>
  72. </div>
  73. </template>
  74. <script>
  75. export default {
  76. data() {
  77. return {
  78. table: {
  79. list: [],
  80. },
  81. page4: {
  82. pageSize: 50,
  83. pageNum: 1,
  84. totalPage: 0
  85. },
  86. dataLoading4: false
  87. }
  88. },
  89. created() {
  90. },
  91. mounted() {
  92. this.getDataList();
  93. },
  94. methods: {
  95. getDataList(stuffNo) {
  96. this.dataLoading4 = true;
  97. let startTime = ''
  98. let endTime = ''
  99. if (!this.search1.time) {
  100. startTime = null
  101. endTime = null
  102. } else {
  103. startTime = this.search.time[0] + ' 00:00:00'
  104. endTime = this.search.time[1] + ' 23:59:59'
  105. }
  106. if (stuffNo === null || stuffNo === '') {
  107. this.table.list = [];
  108. this.dataLoading4 = false;
  109. return 0
  110. } else {
  111. this.axios.get('pass/baseManagement/v1/limslrcstuffos/' + '?pageNum=' + this.page4.pageNum + '&pageSize=' + this.page4.pageSize + '&stuffNo=' + stuffNo + '&startTime=' + startTime + '&endTime=' + endTime)
  112. .then(res => {
  113. this.dataLoading4 = false;
  114. this.table.list = res.data.list;
  115. this.page4.totalPage = res.data.total;
  116. }).catch(e => {
  117. this.dataLoading4 = false;
  118. });
  119. }
  120. },
  121. pageSizeChange4(size) {
  122. this.page4.pageSize = size;
  123. this.getDataList4();
  124. },
  125. pageCurrentChange4(index) {
  126. this.page4.pageNum = index;
  127. this.getDataList4();
  128. },
  129. handleSelectionChange4(val) {
  130. this.multipleSelection6 = val;
  131. },
  132. }
  133. }
  134. </script>
  135. <style lang="scss" scoped>
  136. .batchApproveOutbound {}
  137. </style>