skyouc
2025-09-09 85f15182f6a6d97ad86739967e59e80299e1b98f
zy-asrs-admin/src/views/loc/locDetl/index.vue
@@ -13,6 +13,7 @@
const TABLE_KEY = 'table-locDetl';
let currentPage = 1;
let pageSize = 10;
let allQty = 0;
const searchInput = ref("")
const orderBy = ref({});
const searchParam = ref({
@@ -33,7 +34,7 @@
let tableData = ref([]);
getColumns();
getPage();
getTotalQty();
const {
  getColumnSearchProps,
  handleResizeColumn,
@@ -248,6 +249,26 @@
  }
}
function getTotalQty() {
  state.loading = true;
  post('/api/locDetl/all/Qty').then((resp) => {
    let result = resp.data;
    if (result.code == 200) {
      let {data} = result;
      console.log("------------=======>");
      allQty = data?.allQty;
      state.loading = false;
    } else if (result.code === 401) {
      message.error(result.msg);
      logout()
    } else {
      message.error(result.msg);
    }
  })
}
function getPage() {
  state.loading = true;
  post('/api/locDetl/page', {
@@ -424,8 +445,9 @@
        </template>
      </template>
      <template #footer>
        <div>
          <span>当前页总量:{{ total }}</span>
        <div style="display: 'flex';">
          <span>总库存:{{ allQty }} </span>
          <span>, 当前页总量:{{ total }}</span>
        </div>
      </template>
    </a-table>