Your Name 3 anni fa
parent
commit
bd7f19c267

+ 2 - 2
build/utils.js

@@ -16,9 +16,9 @@ const devPathSrc = path.resolve(__dirname, '../../../src'); // node_modules应
 //       统计报表       组织机构/系统管理 采购  仓储
 //  'statisticalReport','systemConfig','TMS','WMS','workFlow']
 // let devModules = ['index','WMS']
-// let devModules = ['all']
+let devModules = ['all']
 // let devModules = ['index','SporadicManage','TMS','statisticalReport','RMS'];
-let devModules = ['index','WMS'];
+// let devModules = ['index','WMS','sale','appoint'];
 if (pathSrc.indexOf('node_modules') > -1) {
     devModules = require('../../../cors.js').devModules;
 }

+ 7 - 1
src/views/WMS/components/steel/steel_inboundReal.vue

@@ -218,7 +218,7 @@ export default {
 }
 </script>
 
-<style lang="scss" scode>
+<style lang="scss" scoped>
   .steel_inbound_real{
     .sache{
       display: flex;
@@ -227,6 +227,12 @@ export default {
       line-height: 40px;
       height: 40px;
       padding-left: 1.875rem;
+      .el-select {
+      width: 100%;
+      .el-input__inner {
+        width: 150px;
+      }
+    }
     }
   }
 </style>

+ 38 - 7
src/views/WMS/components/steel/steel_inboundStatistics.vue

@@ -17,9 +17,22 @@
       <el-button type="primary" class="btn" @click="onclick">
         <i class="el-icon-search"></i>查询
       </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 class="table">
-      <dilTable v-bind.sync="options" @func="func" highlightCurrentRow="true" :rowClassName="rowClassName">
+      <dilTable v-bind.sync="options" @func="func" :rowClassName="rowClassName">
       </dilTable>
     </div>
   </div>
@@ -59,12 +72,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)
@@ -180,6 +205,12 @@ export default {
     display: flex;
     align-items: center;
     padding-left: 1.875rem;
+    .el-select {
+      width: 100%;
+      .el-input__inner {
+        width: 150px;
+      }
+    }
   }
   .funcnum {
     display: flex;