master
lion 6 months ago
parent 7ef1e60f88
commit 2c5061fa11

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

@ -24,6 +24,7 @@
<Table <Table
ref="currentRowTable" ref="currentRowTable"
:loading="loadingtable"
highlight-row highlight-row
:columns="wuziColumns" :columns="wuziColumns"
:data="wzList" :data="wzList"
@ -57,6 +58,7 @@ export default {
return { return {
// //
showLoading: false, showLoading: false,
loadingtable:false,
isShowWuzi: false, isShowWuzi: false,
wuziPageIndex: 1, wuziPageIndex: 1,
wuzibianmakeyword: '', wuzibianmakeyword: '',
@ -129,6 +131,7 @@ export default {
this.getWuzi() this.getWuzi()
}else{ }else{
this.wzList = [] this.wzList = []
this.loadingtable = false
this.wuziPageIndex = 1 this.wuziPageIndex = 1
} }
} }
@ -136,6 +139,7 @@ export default {
methods: { methods: {
async getWuzi() { async getWuzi() {
this.showLoading = true this.showLoading = true
this.loadingtable = true
const res = await index({ const res = await index({
page_size: 40, page_size: 40,
page: this.wuziPageIndex, page: this.wuziPageIndex,
@ -153,7 +157,7 @@ export default {
}] }]
}) })
console.log("res.list.data",res.list.data)
let arr = this.processInventoryData(res.list.data) let arr = this.processInventoryData(res.list.data)
for (var m of arr) { for (var m of arr) {
m.isSelect = false m.isSelect = false
@ -162,6 +166,7 @@ export default {
console.log("this.wzList",this.wzList) console.log("this.wzList",this.wzList)
this.wuziTotal = res.list.total this.wuziTotal = res.list.total
this.showLoading = false this.showLoading = false
this.loadingtable = false
console.log('res', this.wzList) console.log('res', this.wzList)
}, },
wuziSelect(e) { wuziSelect(e) {
@ -197,7 +202,7 @@ export default {
processInventoryData(data) { processInventoryData(data) {
// wuzileixing = // wuzileixing =
const matchedData = data const matchedData = data
.filter(item => item.wuzileixing === '一物一码' && parseFloat(item.zaikushuliang) !== 0 && parseFloat(item.wait_num)> 0 ); // zaikushuliang !== 0 .filter(item => item.wuzileixing === '一物一码' && parseFloat(item.zaikushuliang) !== 0 && parseFloat(item.wait_num) === 0 ); // zaikushuliang !== 0
// //
const unmatchedData = data const unmatchedData = data

@ -12,13 +12,14 @@
</div> </div>
<div class="jscC-center"> <div class="jscC-center">
<div class="jscC-center-left" > <div class="jscC-center-left" >
<Pie3DChart :data="upList"></Pie3DChart> <!-- <Pie3DChart :data="upList"></Pie3DChart> -->
<!-- <div class="jscC-center-left-title">物资数量统计</div> --> <div class="jscC-center-left-title">重要防汛物资</div>
<!-- <div class="jscC-center-left-content"> --> <div class="jscC-center-left-content">
<!-- <div v-for="item in upList"> <div v-for="item in upList">
<img :src="item.img" alt="">
<span>{{item.name}}</span> <span>{{item.name}}</span>
<span>{{item.total}}{{item.unit?item.unit:''}}</span> <span>{{item.value}}{{item.unit?item.unit:''}}</span>
</div> --> </div>
<!-- <Pie3DChart :data="upList"></Pie3DChart> --> <!-- <Pie3DChart :data="upList"></Pie3DChart> -->
<!-- <span <!-- <span
v-for="item in Object.keys(chartDataMap)" v-for="item in Object.keys(chartDataMap)"
@ -28,7 +29,7 @@
> >
{{ item }} {{ item }}
</span> --> </span> -->
<!-- </div> --> </div>
<!-- <Bar3DChart></Bar3DChart> --> <!-- <Bar3DChart></Bar3DChart> -->
<!-- <fenleiChart :chart-data="chartData" /> --> <!-- <fenleiChart :chart-data="chartData" /> -->
</div> </div>
@ -159,7 +160,16 @@ export default {
}, { }, {
id: 'weihu', id: 'weihu',
value: '维护' value: '维护'
}] }],
imgList:{
'袋类':require("@/assets/dailei.jpg"),
'排水类':require('@/assets/beng.jpg'),
'土工布类':require('@/assets/tugongbu.jpg'),
'动力及照明类':require('@/assets/zhaoming.jpg'),
'移动泵车':require('@/assets/bengche.jpg'),
'桩类':require('@/assets/zhuanglei.jpg'),
'砂石类':require('@/assets/shashi.jpg'),
}
} }
}, },
computed: { computed: {
@ -220,6 +230,9 @@ export default {
// unit:item.unit // unit:item.unit
// }) // })
// }) // })
res.upList.map(item=>{
item.img = this.imgList[item.name]
})
this.upList = this.mergeAndRename(res.upList) this.upList = this.mergeAndRename(res.upList)
console.log("this.upList",this.upList) console.log("this.upList",this.upList)
}, },
@ -228,30 +241,31 @@ export default {
let pumpTotal = 0; // let pumpTotal = 0; //
let mobilePumpTotal = 0; // let mobilePumpTotal = 0; //
let pumpUnit = ""; // let pumpUnit = ""; //
let pumpImg = this.imgList['排水类']
// //
arr.forEach(item => { arr.forEach(item => {
const { name, total, unit } = item; const { name, total, unit, img } = item;
const value = total; const value = total;
if (name === "排水类") { if (name === "排水类") {
pumpTotal += value; pumpTotal += value;
// unitunit // unitunit
if (!pumpUnit) pumpUnit = unit; if (!pumpUnit) pumpUnit = unit;
} else if (name === "移动泵车") { } else if (name === "移动泵车") {
mobilePumpTotal += value; mobilePumpTotal += value;
// //
if (resultMap.has(name)) { if (resultMap.has(name)) {
resultMap.get(name).value += value; resultMap.get(name).value += value;
} else { } else {
resultMap.set(name, { name, value, unit }); resultMap.set(name, { name, value, unit,img });
} }
} else { } else {
// //
if (resultMap.has(name)) { if (resultMap.has(name)) {
resultMap.get(name).value += value; resultMap.get(name).value += value;
} else { } else {
resultMap.set(name, { name, value, unit }); resultMap.set(name, { name, value, unit,img });
} }
} }
}); });
@ -259,7 +273,7 @@ export default {
// //
if (pumpTotal > 0) { if (pumpTotal > 0) {
const finalPumpValue = pumpTotal - mobilePumpTotal; const finalPumpValue = pumpTotal - mobilePumpTotal;
resultMap.set("泵", { name: "泵", value: finalPumpValue, unit: pumpUnit }); resultMap.set("泵", { name: "泵", value: finalPumpValue, unit: pumpUnit,img:pumpImg });
} }
return Array.from(resultMap.values()); return Array.from(resultMap.values());
@ -430,7 +444,7 @@ export default {
// flex-wrap: wrap; // flex-wrap: wrap;
&-left { &-left {
height: 400px;
&-title { &-title {
color: #6dcde6; color: #6dcde6;
text-align: center; text-align: center;
@ -440,12 +454,21 @@ export default {
} }
&-content{ &-content{
width: 450px; width: 450px;
height: 400px; display:flex;
flex-wrap: wrap;
&>div{ &>div{
text-align: center; flex-basis: 50%;
text-align: left;
margin:10px 0; margin:10px 0;
color:#fff; color:#fff;
font-size: 16px; font-size: 16px;
display: flex;
align-items: center;
&>img{
width:30px;
height:30px;
margin-right:10px;
}
} }
} }
.custom-btn { .custom-btn {

@ -1,7 +1,8 @@
<template> <template>
<div class="printwrap"> <div class="printwrap">
<Modal v-model="isShow" width="70" title="出库"> <Modal v-model="isShow" width="70" title="出库">
<div id="printmodal" class="print" :class="{'watermark':!showwatermark}"> <!-- :class="{'watermark':!showwatermark}" -->
<div id="printmodal" class="print">
<div class="printtitle">苏州市河道管理处物资出库记录单</div> <div class="printtitle">苏州市河道管理处物资出库记录单</div>
<div class="printtop"> <div class="printtop">
<span>业务科室:{{ form.jieyongbumen }}</span> <span>业务科室:{{ form.jieyongbumen }}</span>
@ -226,11 +227,11 @@ export default {
table_name: this.tableName table_name: this.tableName
}) })
this.form = res this.form = res
if (res.zhuangtai == '已办结') { // if (res.zhuangtai == 2) {
this.showwatermark = true // this.showwatermark = true
} else { // } else {
this.showwatermark = false // this.showwatermark = false
} // }
this.mingxiList = res.id_outbounds_items_outbounds_id_relation this.mingxiList = res.id_outbounds_items_outbounds_id_relation
}, },
handlePrint() { handlePrint() {

Loading…
Cancel
Save