|
@@ -2,12 +2,6 @@
|
|
<template>
|
|
<template>
|
|
<div class="steel_inboundStatistics">
|
|
<div class="steel_inboundStatistics">
|
|
<div class="sache">
|
|
<div class="sache">
|
|
- <!-- <el-input
|
|
|
|
- placeholder="请输入内容"
|
|
|
|
- v-model="inputText"
|
|
|
|
- clearable>
|
|
|
|
- </el-input>
|
|
|
|
- -->
|
|
|
|
<span>入库时间:</span>
|
|
<span>入库时间:</span>
|
|
<el-date-picker v-model="startTime" type="datetime" placeholder="选择日期">
|
|
<el-date-picker v-model="startTime" type="datetime" placeholder="选择日期">
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
@@ -23,19 +17,6 @@
|
|
<el-button type="primary" class="btn" @click="onclick">
|
|
<el-button type="primary" class="btn" @click="onclick">
|
|
<i class="el-icon-search"></i>查询
|
|
<i class="el-icon-search"></i>查询
|
|
</el-button>
|
|
</el-button>
|
|
- </div>
|
|
|
|
- <div>
|
|
|
|
- <span style="font-size:10px">炉号</span>
|
|
|
|
- <el-input
|
|
|
|
- v-model="input1"
|
|
|
|
- :disabled="true" class="inputs" style="width:15%;">
|
|
|
|
- </el-input>
|
|
|
|
- <!-- <span>物资名称</span>
|
|
|
|
- <el-input
|
|
|
|
- placeholder="请输入内容"
|
|
|
|
- v-model="input2"
|
|
|
|
- :disabled="true" style="width:13%">
|
|
|
|
- </el-input> -->
|
|
|
|
<el-col :span="3" v-html="'\u2003'"/>
|
|
<el-col :span="3" v-html="'\u2003'"/>
|
|
<span>生产总件数</span>
|
|
<span>生产总件数</span>
|
|
<el-input
|
|
<el-input
|
|
@@ -43,29 +24,15 @@
|
|
v-model="input3"
|
|
v-model="input3"
|
|
:disabled="true" class="inputs" style="width:10%">
|
|
:disabled="true" class="inputs" style="width:10%">
|
|
</el-input>
|
|
</el-input>
|
|
-
|
|
|
|
- <!-- <span>生产总重量</span>
|
|
|
|
|
|
+ <span>生产总重量</span>
|
|
<el-input
|
|
<el-input
|
|
placeholder="请输入内容"
|
|
placeholder="请输入内容"
|
|
v-model="input4"
|
|
v-model="input4"
|
|
:disabled="true" style="width:10%">
|
|
:disabled="true" style="width:10%">
|
|
- </el-input> -->
|
|
|
|
- <!-- <span>第一件物资生产时间</span>
|
|
|
|
- <el-input
|
|
|
|
- placeholder="请输入内容"
|
|
|
|
- v-model="input5"
|
|
|
|
- :disabled="true" style="width:13%">
|
|
|
|
- </el-input> -->
|
|
|
|
|
|
+ </el-input>
|
|
</div>
|
|
</div>
|
|
<div class="table">
|
|
<div class="table">
|
|
- <dilTable v-bind.sync="options" @func="func">
|
|
|
|
- <!-- <el-table-column fixed="right" label="操作" width="150">
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- <el-button type="text" size="mini" @click="inboundDetails(scope)">
|
|
|
|
- 详情
|
|
|
|
- </el-button>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column> -->
|
|
|
|
|
|
+ <dilTable v-bind.sync="options" @func="func" :rowClassName="rowClassName">
|
|
</dilTable>
|
|
</dilTable>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -77,6 +44,12 @@ import { getCookie } from '@/utils/util.js';
|
|
export default {
|
|
export default {
|
|
data(){
|
|
data(){
|
|
return{
|
|
return{
|
|
|
|
+ rowClassName({row, rowIndex}) {
|
|
|
|
+ if (rowIndex === 0) {
|
|
|
|
+ return 'success-row';
|
|
|
|
+ }
|
|
|
|
+ return '';
|
|
|
|
+ },
|
|
input1: '',
|
|
input1: '',
|
|
input2: '',
|
|
input2: '',
|
|
input3: '',
|
|
input3: '',
|
|
@@ -99,12 +72,24 @@ export default {
|
|
},
|
|
},
|
|
methods:{
|
|
methods:{
|
|
func(res){
|
|
func(res){
|
|
- console.log(res.list[0])
|
|
|
|
- this.input1 = res.list[0].furnaceNumber1,
|
|
|
|
- this.input2 = res.list[0].materialName,
|
|
|
|
- this.input3 = res.list[0].count,
|
|
|
|
- this.input4 = res.list[0].weight,
|
|
|
|
- this.input5 = res.list[0].onetime
|
|
|
|
|
|
+ // console.log(res.list[0])
|
|
|
|
+ // this.input1 = this.input1 + e.furnaceNumber1,
|
|
|
|
+ let num1 = 0;
|
|
|
|
+ let num2 = 0;
|
|
|
|
+ res.list.forEach(e => {
|
|
|
|
+ console.log(e)
|
|
|
|
+ console.log(e.count)
|
|
|
|
+ console.log(e.weight)
|
|
|
|
+ num1 = num1 + e.count,
|
|
|
|
+ num2 = num2 + e.weight
|
|
|
|
+ });
|
|
|
|
+ this.input3 = num1;
|
|
|
|
+ this.input4 = num2;
|
|
|
|
+ // this.input1 = res.list[0].furnaceNumber1,
|
|
|
|
+ // this.input2 = res.list[0].materialName,
|
|
|
|
+ // this.input3 = res.list[0].count,
|
|
|
|
+ // this.input4 = res.list[0].weight,
|
|
|
|
+ // this.input5 = res.list[0].onetime
|
|
},
|
|
},
|
|
// inboundDetails(scope){
|
|
// inboundDetails(scope){
|
|
// this.$router.push("/inboundDetails/" + scope.row.inboundId)
|
|
// this.$router.push("/inboundDetails/" + scope.row.inboundId)
|
|
@@ -220,11 +205,19 @@ export default {
|
|
display: flex;
|
|
display: flex;
|
|
align-items: center;
|
|
align-items: center;
|
|
padding-left: 1.875rem;
|
|
padding-left: 1.875rem;
|
|
|
|
+ .el-select {
|
|
|
|
+ width: 100%;
|
|
|
|
+ .el-input__inner {
|
|
|
|
+ width: 150px;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ .funcnum {
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: center;
|
|
|
|
+ align-items: center;
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-.inputs el-input is-disabled /deep/ el-input__inner{
|
|
|
|
-
|
|
|
|
- color: #f80808;
|
|
|
|
- background-color: #f80808;
|
|
|
|
-}
|
|
|
|
|
|
+
|
|
</style>
|
|
</style>
|