From d21c6354f310b9ab1b3c28c3edc511f73969b164 Mon Sep 17 00:00:00 2001
From: 小小儁爺 <1694218219@qq.com>
Date: 星期五, 20 九月 2024 14:12:50 +0800
Subject: [PATCH] 1.递交
---
src/views/kb/warehouse.vue | 152 ++++++++++++++++++++++++++------------------------
1 files changed, 78 insertions(+), 74 deletions(-)
diff --git a/src/views/kb/warehouse.vue b/src/views/kb/warehouse.vue
index 6211cca..97d974e 100644
--- a/src/views/kb/warehouse.vue
+++ b/src/views/kb/warehouse.vue
@@ -5,7 +5,7 @@
<div class="kb_backgroundCustom" />
<div class="kb_header">
<div class="kb_headTime" style="top: 35px;left: 20px">
- <span>姘稿悍甯傚寳楦e伐璐告湁闄愬叕鍙�</span>
+ <span>姘稿悍甯傚閾伐璐告湁闄愬叕鍙�</span>
</div>
<div class="kb_headTime kb_header_text" style="top: 35px;left: 800px">
@@ -22,7 +22,7 @@
<div style="height: 470px;">
<div class="smallTitle">
<svg-icon icon-class="cpdrk" class="svg_class" />
- 鐢熶骇寰呭叆搴�
+ 閲囪喘寰呭叆搴�
</div>
<div class="lineContent horn" style="height: 410px">
<el-table
@@ -37,7 +37,7 @@
<el-table-column
prop="voucherdate"
label="鍗曟嵁鏃ユ湡"
- width="151"
+ width="161"
>
<template slot-scope="{row}">
<div v-if="row.voucherdate" class="ellipsis">{{ row.voucherdate.substring(0, 10) }}</div>
@@ -47,36 +47,36 @@
<el-table-column
prop="wo"
label="鍗曟嵁缂栧彿"
- width="189"
+ width="209"
>
<template slot-scope="{row}">
<div class="ellipsis">{{ row.wo }}</div>
</template>
</el-table-column>
- <el-table-column
- prop="wkshp_name"
- label="鐢熶骇杞﹂棿"
- width="105"
- >
- <template slot-scope="{row}">
- <div class="ellipsis">{{ row.wkshp_name }}</div>
- </template>
- </el-table-column>
- <el-table-column
- prop="saleOrderCode"
- label="閿�鍞鍗曞彿"
- width="200"
- >
- <template slot-scope="{row}">
- <div v-if="row.saleOrderCode" class="ellipsis">{{ row.saleOrderCode }}</div>
- <div v-else>/</div>
- </template>
- </el-table-column>
+ <!-- <el-table-column-->
+ <!-- prop="wkshp_name"-->
+ <!-- label="鐢熶骇杞﹂棿"-->
+ <!-- width="105"-->
+ <!-- >-->
+ <!-- <template slot-scope="{row}">-->
+ <!-- <div class="ellipsis">{{ row.wkshp_name }}</div>-->
+ <!-- </template>-->
+ <!-- </el-table-column>-->
+ <!-- <el-table-column-->
+ <!-- prop="saleOrderCode"-->
+ <!-- label="閿�鍞鍗曞彿"-->
+ <!-- width="210"-->
+ <!-- >-->
+ <!-- <template slot-scope="{row}">-->
+ <!-- <div v-if="row.saleOrderCode" class="ellipsis">{{ row.saleOrderCode }}</div>-->
+ <!-- <div v-else>/</div>-->
+ <!-- </template>-->
+ <!-- </el-table-column>-->
<el-table-column
prop="materiel_name"
label="浜у搧鍚嶇О"
- width="260"
+ width="390"
>
<template slot-scope="{row}">
<div class="ellipsis">{{ row.materiel_name }}</div>
@@ -85,7 +85,7 @@
<el-table-column
prop="specification"
label="瑙勬牸鍨嬪彿"
- width="116"
+ width="146"
>
<template slot-scope="{row}">
<div v-if="row.specification" class="ellipsis">{{ row.specification }}</div>
@@ -95,7 +95,7 @@
<el-table-column
prop="stck_name"
label="棰勫叆浠撳簱"
- width="110"
+ width="145"
>
<template slot-scope="{row}">
<div v-if="row.stck_name" class="ellipsis">{{ row.stck_name }}</div>
@@ -105,15 +105,15 @@
<el-table-column
prop="quantity"
label="鏁伴噺"
- width="73"
+ width="113"
/>
<el-table-column
prop="totalStockInQuantity"
label="宸插叆搴撴暟閲�"
- width="120"
+ width="160"
>
<template slot-scope="{row}">
- <div v-if="row.totalStockInQuantity">{{ row.totalStockInQuantity }}</div>
+ <div v-if="row.countInQuantity">{{ row.countInQuantity }}</div>
<div v-else>0</div>
</template>
</el-table-column>
@@ -124,7 +124,7 @@
<div style="height: 470px;margin-top: 30px;">
<div class="smallTitle">
<svg-icon icon-class="cpdfh" class="svg_class" />
- 浜у搧寰呭彂璐�
+ 閿�鍞緟鍙戣揣
</div>
<div class="lineContent horn" style="height: 410px">
<el-table
@@ -157,28 +157,32 @@
</el-table-column>
<el-table-column
+ prop="customecode"
+ label="瀹㈡埛缂栫爜"
+ width="300"
+ />
+ <!-- <el-table-column-->
+ <!-- prop="customename"-->
+ <!-- label="瀹㈡埛鍚嶇О"-->
+ <!-- width="330"-->
+ <!-- >-->
+ <!-- <template slot-scope="{row}">-->
+ <!-- <div class="ellipsis">{{ row.customename }}</div>-->
+ <!-- </template>-->
+ <!-- </el-table-column>-->
+ <el-table-column
prop="materiel_name"
label="浜у搧鍚嶇О"
- width="258"
+ width="358"
>
<template slot-scope="{row}">
<div v-if="row.materiel_name" class="ellipsis">{{ row.materiel_name }}</div>
</template>
</el-table-column>
<el-table-column
- prop="specification"
- label="瑙勬牸鍨嬪彿"
- width="200"
- >
- <template slot-scope="{row}">
- <div v-if="row.specification" class="ellipsis">{{ row.specification }}</div>
- <div v-else>/</div>
- </template>
- </el-table-column>
- <el-table-column
prop="quantity"
label="鏁伴噺"
- width="100"
+ width="130"
>
<template slot-scope="{row}">
<div class="ellipsis">{{ row.quantity }}</div>
@@ -187,7 +191,7 @@
<el-table-column
prop="saleOutQuantity"
label="宸插彂璐ф暟閲�"
- width="120"
+ width="220"
>
<template slot-scope="{row}">
<div v-if="row.saleOutQuantity" class="ellipsis">{{ row.saleOutQuantity }}</div>
@@ -195,27 +199,27 @@
</template>
</el-table-column>
- <el-table-column
- prop="deliveryDate"
- label="棰勮浜よ揣鏃ユ湡"
- width="200"
- >
- <template slot-scope="{row}">
- <div v-if="row.deliveryDate">{{ row.deliveryDate.substring(0,10) }}</div>
- <div v-else>/</div>
- </template>
- </el-table-column>
+ <!-- <el-table-column-->
+ <!-- prop="deliveryDate"-->
+ <!-- label="棰勮浜や粯鏃ユ湡"-->
+ <!-- width="200"-->
+ <!-- >-->
+ <!-- <template slot-scope="{row}">-->
+ <!-- <div v-if="row.deliveryDate">{{ row.deliveryDate.substring(0,10) }}</div>-->
+ <!-- <div v-else>/</div>-->
+ <!-- </template>-->
+ <!-- </el-table-column>-->
- <el-table-column
- prop="warning"
- label="寤舵湡澶╂暟"
- width="130"
- >
- <template slot-scope="{row}">
- <div v-if="row.warning">{{ row.warning }}</div>
- <div v-else>/</div>
- </template>
- </el-table-column>
+ <!-- <el-table-column-->
+ <!-- prop="warning"-->
+ <!-- label="寤舵湡澶╂暟"-->
+ <!-- width="130"-->
+ <!-- >-->
+ <!-- <template slot-scope="{row}">-->
+ <!-- <div v-if="row.warning">{{ row.warning }}</div>-->
+ <!-- <div v-else>/</div>-->
+ <!-- </template>-->
+ <!-- </el-table-column>-->
</el-table>
</div>
</div>
@@ -225,7 +229,7 @@
<div style="height: 470px;">
<div class="smallTitle">
<svg-icon icon-class="ph" class="svg_class" />
- 杩戜竴鍛ㄧ敓浜у緟鍏ュ簱浜у搧鎺掕Top5
+ 杩戜竴鍛ㄩ噰璐緟鍏ュ簱鐗╂枡鎺掕Top5
</div>
<div class="lineContent horn" style="height: 410px">
<div id="bar03" style="width: 100%;height:100%; " />
@@ -235,7 +239,7 @@
<div style="height: 470px;margin-top: 30px;">
<div class="smallTitle">
<svg-icon icon-class="ph" class="svg_class" />
- 杩戜竴鍛ㄩ攢鍞緟鍙戣揣浜у搧鎺掕Top5
+ 杩戜竴鍛ㄩ攢鍞凡鍙戣揣浜у搧鎺掕Top5
</div>
<div class="lineContent horn" style="height: 410px">
<div id="bar04" style="width: 100%;height:100%;" />
@@ -253,9 +257,9 @@
import './kbCommon.css'
import { bar02, kbTop, loadEcharts } from '@/utils/myEcharts'
import {
- ProductionStockedInLeftTop,
+ ProcureOutsourcLeftTop,
ProductConsignmentLeftBottom,
- ProductionStockedInRightTop,
+ ProcureOutsourcRightTop,
ProductionStockedInRightBottom
} from '@/api/kanbanManager'
@@ -298,7 +302,7 @@
window.addEventListener('offline', this.updateOnlineStatus)
this.updateOnlineStatus({ type: this.onLine ? 'online' : 'offline', isFirst: true })
- this.getProductionStockedInLeftTop()
+ this.getProcureOutsourcLeftTop()
this.getProductConsignmentLeftBottom()
this.getEcharts()
},
@@ -330,8 +334,8 @@
}
},
// 鑾峰彇宸︿笂table鏁版嵁
- getProductionStockedInLeftTop() {
- ProductionStockedInLeftTop().then(res => {
+ getProcureOutsourcLeftTop() {
+ ProcureOutsourcLeftTop().then(res => {
this.tableDataTop = res.data
// this.number1 = this.tableDataTop.length
const divData = this.$refs.tableDataTopRef.bodyWrapper
@@ -344,12 +348,12 @@
if (divData.clientHeight + divData.scrollTop === divData.scrollHeight) {
// 閲嶇疆table璺濈椤堕儴璺濈
divData.scrollTop = 0
- ProductionStockedInLeftTop().then(res => {
+ ProcureOutsourcLeftTop().then(res => {
this.tableDataTop = res.data
// this.number1 = this.tableDataTop.length
if (this.tableDataTop.length > 10) {
clearInterval(this.tableTopTask)
- this.getProductionStockedInLeftTop()
+ this.getProcureOutsourcLeftTop()
}
})
}
@@ -387,7 +391,7 @@
// 鑾峰彇echarts
getEcharts() {
- ProductionStockedInRightTop().then(res => {
+ ProcureOutsourcRightTop().then(res => {
loadEcharts('bar03', bar02(res.data.filter(i => i.qty > 0).map(i => i.qty), res.data.filter(i => i.qty > 0).map(i => i.materiel_name)))
})
@@ -396,7 +400,7 @@
})
this.echartsRightTop = setInterval(() => {
- ProductionStockedInRightTop().then(res => {
+ ProcureOutsourcRightTop().then(res => {
loadEcharts('bar03', bar02(res.data.filter(i => i.qty > 0).map(i => i.qty), res.data.filter(i => i.qty > 0).map(i => i.materiel_name)))
})
}, 1000 * 15)
--
Gitblit v1.9.3