From e2660740818a17f4b5d97df4c224affa87b95ebc Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期五, 14 四月 2023 16:29:15 +0800
Subject: [PATCH] 1.递交
---
src/views/kb/cgdd.vue | 83 +++++++++++++++++++++--------------------
1 files changed, 42 insertions(+), 41 deletions(-)
diff --git a/src/views/kb/cgdd.vue b/src/views/kb/cgdd.vue
index 69fe599..8170849 100644
--- a/src/views/kb/cgdd.vue
+++ b/src/views/kb/cgdd.vue
@@ -3,9 +3,9 @@
<div class="kb_dashboard">
<!-- 鏄熺┖鑳屾櫙-->
- <div ref="starsRef" class="stars">
- <div v-for="(item, index) in starsCount" :key="index" class="star" />
- </div>
+ <!-- <div ref="starsRef" class="stars">-->
+ <!-- <div v-for="(item, index) in starsCount" :key="index" class="star" />-->
+ <!-- </div>-->
<div class="kb_header">
<div class="flex_c_c kb_header_text">
@@ -49,7 +49,7 @@
<el-table-column
prop="PurchaseOrder"
label="閲囪喘璁㈠崟"
- width="207"
+ width="225"
>
<template slot-scope="{row}">
<div class="ellipsis">{{ row.PurchaseOrder }}</div>
@@ -58,7 +58,7 @@
<el-table-column
prop="suppername"
label="渚涘簲鍟�"
- width="163"
+ width="183"
>
<template slot-scope="{row}">
<div v-if="row.suppername" class="ellipsis">{{ row.suppername }}</div>
@@ -84,7 +84,7 @@
<el-table-column
prop="partname"
label="浜у搧鍚嶇О"
- width="175"
+ width="215"
>
<template slot-scope="{row}">
<div v-if="row.partname" class="ellipsis">{{ row.partname }}</div>
@@ -104,37 +104,37 @@
<el-table-column
prop="quantity"
label="璁㈠崟鏁伴噺"
- width="94"
+ width="114"
>
<template slot-scope="{row}">
<div v-if="row.quantity">{{ parseFloat(row.quantity) }}</div>
<div v-else>0</div>
</template>
</el-table-column>
- <el-table-column
- prop="checktype"
- label="妫�楠岀姸鎬�"
- width="94"
- >
- <template slot-scope="{row}">
- <div v-if="row.checktype===null">鏈楠�</div>
- <div v-else>宸叉楠�</div>
- </template>
- </el-table-column>
- <el-table-column
- prop="checkuser"
- label="妫�楠屼汉鍛�"
- width="94"
- >
- <template slot-scope="{row}">
- <div v-if="row.checkuser===null">/</div>
- <div v-else>{{ row.checkuser }}</div>
- </template>
- </el-table-column>
+ <!-- <el-table-column-->
+ <!-- prop="checktype"-->
+ <!-- label="妫�楠岀姸鎬�"-->
+ <!-- width="104"-->
+ <!-- >-->
+ <!-- <template slot-scope="{row}">-->
+ <!-- <div v-if="row.checktype===null">鏈楠�</div>-->
+ <!-- <div v-else>宸叉楠�</div>-->
+ <!-- </template>-->
+ <!-- </el-table-column>-->
+ <!-- <el-table-column-->
+ <!-- prop="checkuser"-->
+ <!-- label="妫�楠屼汉鍛�"-->
+ <!-- width="94"-->
+ <!-- >-->
+ <!-- <template slot-scope="{row}">-->
+ <!-- <div v-if="row.checkuser===null">/</div>-->
+ <!-- <div v-else>{{ row.checkuser }}</div>-->
+ <!-- </template>-->
+ <!-- </el-table-column>-->
<el-table-column
prop="quantity1"
label="宸叉敹鏁伴噺"
- width="94"
+ width="114"
>
<template slot-scope="{row}">
<div v-if="row.quantity1">{{ parseFloat(row.quantity1) }}</div>
@@ -143,7 +143,7 @@
</el-table-column>
<el-table-column
label="鏈敹鏁伴噺"
- width="94"
+ width="114"
>
<template slot-scope="{row}">
<div v-if="row.quantity- row.quantity1">{{ parseFloat(row.quantity - row.quantity1) }}</div>
@@ -153,7 +153,7 @@
<el-table-column
prop="acceptDate"
label="棰勮浜ゆ湡"
- width="115"
+ width="135"
>
<template slot-scope="{row}">
<div v-if="row.acceptDate">{{ row.acceptDate.substring(0, 10) }}</div>
@@ -163,18 +163,18 @@
<el-table-column
prop="warning"
label="寤舵湡澶╂暟"
- width="114"
+ width="144"
>
<template slot-scope="{row}">
<div v-if="parseFloat(row.warning)<0" style="color: red">{{
Math.abs(parseFloat(row.warning))
}}
</div>
- <div v-else-if="row.warning===null||row.warning===''||row.warning===0">0</div>
- <div v-else-if="parseFloat(row.warning)>3">{{ row.warning }}</div>
- <div v-else-if="parseFloat(row.warning)>0&&parseFloat(row.warning)<=3" style="color:yellow;">
- {{ row.warning }}
- </div>
+ <div v-else-if="row.warning===null||row.warning===''||row.warning>=0">0</div>
+ <!-- <div v-else-if="parseFloat(row.warning)>3">{{ row.warning }}</div>-->
+ <!-- <div v-else-if="parseFloat(row.warning)>0&&parseFloat(row.warning)<=3" style="color:yellow;">-->
+ <!-- {{ row.warning }}-->
+ <!-- </div>-->
</template>
</el-table-column>
</el-table>
@@ -287,7 +287,7 @@
this.getPurchaseLeftBottom()
this.getPurchaseRight()
- this.setStarsRef()
+ // this.setStarsRef()
},
methods: {
@@ -320,12 +320,13 @@
this.purchaseLeftTopData = res.data[0]
loadEcharts('cgddchart', cgddchart(this.purchaseLeftTopData.ThisMonthPurchaseOrderCont, this.purchaseLeftTopData.ThisMonthPurchaseArrivalOrderCont, this.purchaseLeftTopData.ThisMonthWareHouseOrderCont))
})
- }, 1000 * 6)
+ }, 1000 * 30)
},
getPurchaseLeftBottom() {
PurchaseLeftBottom().then(res => {
this.tableData = res.data.filter(i => !parseFloat(i.quantity1))// 杩囨护鎺夊凡鏀舵暟閲忓ぇ浜庨浂鐨勫��
- this.number1 = this.tableData.length
+
+ // this.number1 = this.tableData.length
const divData = this.$refs.tableData.bodyWrapper
// 鎷垮埌鍏冪礌鍚庯紝瀵瑰厓绱犺繘琛屽畾鏃跺鍔犺窛绂婚《閮ㄨ窛绂伙紝瀹炵幇婊氬姩鏁堟灉(姝ら厤缃负姣�100姣绉诲姩1鍍忕礌)
@@ -345,7 +346,7 @@
}
})
}
- }, this.tableData.length <= 13 ? 1000 * 3 : 100)
+ }, this.tableData.length <= 13 ? 1000 * 10 : 100)
})
},
getPurchaseRight() {
@@ -368,7 +369,7 @@
}
})
}
- }, this.tableDataRank.length <= 21 ? 1000 * 3 : 100)
+ }, this.tableDataRank.length <= 23 ? 1000 * 10 : 100)
})
},
tableRowClassName({ row, rowIndex }) {
--
Gitblit v1.9.3