胡半仙 il y a 3 ans
Parent
commit
904404cb0c
2 fichiers modifiés avec 21 ajouts et 28 suppressions
  1. 1 1
      build/utils.js
  2. 20 27
      src/views/WMS/components/steel/steel_inboundStatistics.vue

+ 1 - 1
build/utils.js

@@ -18,7 +18,7 @@ const devPathSrc = path.resolve(__dirname, '../../../src'); // node_modules应
 let devModules = ['all']
 // let devModules = ['index','SporadicManage','TMS','statisticalReport','RMS'];
 
-// let devModules = ['index','appoint','WMS','sale'];
+// let devModules = ['index','appoint','WMS'];
 
 if (pathSrc.indexOf('node_modules') > -1) {
     devModules = require('../../../cors.js').devModules;

+ 20 - 27
src/views/WMS/components/steel/steel_inboundStatistics.vue

@@ -23,19 +23,6 @@
       <el-button type="primary" class="btn" @click="onclick">
         <i class="el-icon-search"></i>查询
       </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'"/>
       <span>生产总件数</span>
       <el-input
@@ -44,18 +31,12 @@
         :disabled="true" class="inputs" style="width:10%">
       </el-input>
 
-      <!-- <span>生产总重量</span>
+      <span>生产总重量</span>
       <el-input
         placeholder="请输入内容"
         v-model="input4"
         :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 class="table">
       <dilTable v-bind.sync="options" @func="func">
@@ -99,12 +80,24 @@ export default {
   },
   methods:{
     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){
     //   	this.$router.push("/inboundDetails/" + scope.row.inboundId)