Parcourir la source

周转率改为周转次数

lxf il y a 1 an
Parent
commit
5a5306532d

+ 3 - 3
src/views/group/data-board/material-control-purchasing/index.vue

@@ -46,7 +46,7 @@ const sourceList = ref({
 const sortField = ref([
   {
     dictKey: "turnoverRate",
-    dictValue: "周转率",
+    dictValue: "90天周转次数",
   },
   {
     dictKey: "predictOutStorageDays",
@@ -201,9 +201,9 @@ const config = computed(() => {
     },
     {
       attrs: {
-        label: "周转率",
+        label: "90天周转次数",
         prop: "turnoverRate",
-        width: 100,
+        width: 150,
       },
     },
     {

+ 2 - 2
src/views/group/data-board/material-in-transit/index.vue

@@ -147,9 +147,9 @@ const config = computed(() => {
     },
     {
       attrs: {
-        label: "周转率",
+        label: "90天周转次数",
         prop: "turnoverRate",
-        width: 90,
+        width: 150,
       },
     },
     {

+ 14 - 26
src/views/group/data-board/turnover-rate/index.vue

@@ -41,38 +41,29 @@
           </el-tooltip>
         </div>
       </template>
-      <template #turnoverRateThirtyDays="{ item }">
-        <div>{{ Math.round(item.turnoverRateThirtyDays * 100 * 100) / 100 }}%</div>
-      </template>
       <template #turnoverRateThirtyDaysHeader>
-        <span>30天周转</span>
+        <span>30天周转次数</span>
         <el-tooltip class="box-item" effect="dark" placement="bottom">
           <template #content>
-            <div>库存周转=时间段天数/(时间段天数X (1/2) X (期初库存数量+期末库存数量)/时间段销售量)</div>
+            <div>库存周转次数=时间段天数/(时间段天数X (1/2) X (期初库存数量+期末库存数量)/时间段销售量)</div>
           </template>
           <el-icon style="cursor: pointer; margin-left: 4px; transform: translateY(2px)"><QuestionFilled /></el-icon>
         </el-tooltip>
       </template>
-      <template #turnoverRateSixtyDays="{ item }">
-        <div>{{ Math.round(item.turnoverRateSixtyDays * 100 * 100) / 100 }}%</div>
-      </template>
       <template #turnoverRateSixtyDaysHeader>
-        <span>60天周转</span>
+        <span>60天周转次数</span>
         <el-tooltip class="box-item" effect="dark" placement="bottom">
           <template #content>
-            <div>库存周转=时间段天数/(时间段天数X (1/2) X (期初库存数量+期末库存数量)/时间段销售量)</div>
+            <div>库存周转次数=时间段天数/(时间段天数X (1/2) X (期初库存数量+期末库存数量)/时间段销售量)</div>
           </template>
           <el-icon style="cursor: pointer; margin-left: 4px; transform: translateY(2px)"><QuestionFilled /></el-icon>
         </el-tooltip>
       </template>
-      <template #turnoverRateNinetyDays="{ item }">
-        <div>{{ Math.round(item.turnoverRateNinetyDays * 100 * 100) / 100 }}%</div>
-      </template>
       <template #turnoverRateNinetyDaysHeader>
-        <span>90天周转</span>
+        <span>90天周转次数</span>
         <el-tooltip class="box-item" effect="dark" placement="bottom">
           <template #content>
-            <div>库存周转=时间段天数/(时间段天数X (1/2) X (期初库存数量+期末库存数量)/时间段销售量)</div>
+            <div>库存周转次数=时间段天数/(时间段天数X (1/2) X (期初库存数量+期末库存数量)/时间段销售量)</div>
           </template>
           <el-icon style="cursor: pointer; margin-left: 4px; transform: translateY(2px)"><QuestionFilled /></el-icon>
         </el-tooltip>
@@ -172,10 +163,9 @@ const config = computed(() => {
     },
     {
       attrs: {
-        label: "30天周转",
+        label: "30天周转次数",
         prop: "turnoverRateThirtyDays",
-        slot: "turnoverRateThirtyDays",
-        width: 140,
+        width: 155,
         slotHeader: "turnoverRateThirtyDaysHeader",
       },
       sortable: true,
@@ -190,10 +180,9 @@ const config = computed(() => {
     },
     {
       attrs: {
-        label: "60天周转",
+        label: "60天周转次数",
         prop: "turnoverRateSixtyDays",
-        slot: "turnoverRateSixtyDays",
-        width: 140,
+        width: 155,
         slotHeader: "turnoverRateSixtyDaysHeader",
       },
       sortable: true,
@@ -208,10 +197,9 @@ const config = computed(() => {
     },
     {
       attrs: {
-        label: "90天周转",
+        label: "90天周转次数",
         prop: "turnoverRateNinetyDays",
-        slot: "turnoverRateNinetyDays",
-        width: 140,
+        width: 155,
         slotHeader: "turnoverRateNinetyDaysHeader",
       },
       sortable: true,
@@ -285,9 +273,9 @@ const deriveExcel = () => {
           fileReader.readAsText(res);
         } else {
           if (activeName.value == "1") {
-            proxy.downloadFile(res, "周转-裸垫-" + moment().format("yyyy-MM-DD") + ".xlsx");
+            proxy.downloadFile(res, "周转次数-裸垫-" + moment().format("yyyy-MM-DD") + ".xlsx");
           } else {
-            proxy.downloadFile(res, "周转-裸砖-" + moment().format("yyyy-MM-DD") + ".xlsx");
+            proxy.downloadFile(res, "周转次数-裸砖-" + moment().format("yyyy-MM-DD") + ".xlsx");
           }
         }
       });