lxf 1 ano atrás
pai
commit
5203070c9b
1 arquivos alterados com 75 adições e 0 exclusões
  1. 75 0
      src/views/group/data-board/turnover-rate/index.vue

+ 75 - 0
src/views/group/data-board/turnover-rate/index.vue

@@ -0,0 +1,75 @@
+<template>
+  <el-card class="box-card">
+    <byTable
+      :hidePagination="true"
+      :source="sourceList.data"
+      :config="config"
+      :loading="loading"
+      highlight-current-row
+      :action-list="[
+        {
+          text: '刷新',
+          action: () => getList(),
+        },
+      ]"
+      @get-list="getList">
+      <template #purchaseCode="{ item }">
+        <div>
+          <a style="color: #409eff; cursor: pointer; word-break: break-all" @click="clickPurchaseCode(item)">{{ item.purchaseCode }}</a>
+        </div>
+      </template>
+    </byTable>
+  </el-card>
+</template>
+
+<script setup>
+import byTable from "/src/components/byTable/index";
+
+const { proxy } = getCurrentInstance();
+const sourceList = ref({
+  data: [],
+  pagination: {},
+});
+const loading = ref(false);
+const config = computed(() => {
+  return [
+    {
+      attrs: {
+        label: "品号",
+        prop: "bomSpecCode",
+        width: 160,
+      },
+    },
+    {
+      attrs: {
+        label: "品名",
+        prop: "bomSpecName",
+        "min-width": 420,
+      },
+    },
+    {
+      attrs: {
+        label: "周转率",
+        prop: "turnoverRate",
+        width: 160,
+      },
+    },
+  ];
+});
+const getList = () => {
+  loading.value = true;
+  proxy.post("/turnoverRateBoard/getTurnoverRateStatisticsList", sourceList.value.pagination).then((res) => {
+    sourceList.value.data = res;
+    setTimeout(() => {
+      loading.value = false;
+    }, 200);
+  });
+};
+getList();
+</script>
+
+<style lang="scss" scoped>
+::v-deep(.colorDim) {
+  color: red;
+}
+</style>