|
@@ -23,19 +23,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
|
|
@@ -44,18 +31,12 @@
|
|
: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">
|
|
<dilTable v-bind.sync="options" @func="func">
|
|
@@ -99,12 +80,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)
|