|
@@ -17,9 +17,22 @@
|
|
<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>
|
|
|
|
+ <el-col :span="3" v-html="'\u2003'"/>
|
|
|
|
+ <span>生产总件数</span>
|
|
|
|
+ <el-input
|
|
|
|
+ placeholder="请输入内容"
|
|
|
|
+ v-model="input3"
|
|
|
|
+ :disabled="true" class="inputs" style="width:10%">
|
|
|
|
+ </el-input>
|
|
|
|
+ <span>生产总重量</span>
|
|
|
|
+ <el-input
|
|
|
|
+ placeholder="请输入内容"
|
|
|
|
+ v-model="input4"
|
|
|
|
+ :disabled="true" style="width:10%">
|
|
|
|
+ </el-input>
|
|
</div>
|
|
</div>
|
|
<div class="table">
|
|
<div class="table">
|
|
- <dilTable v-bind.sync="options" @func="func" highlightCurrentRow="true" :rowClassName="rowClassName">
|
|
|
|
|
|
+ <dilTable v-bind.sync="options" @func="func" :rowClassName="rowClassName">
|
|
</dilTable>
|
|
</dilTable>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -59,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)
|
|
@@ -180,6 +205,12 @@ 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 {
|
|
.funcnum {
|
|
display: flex;
|
|
display: flex;
|