月度统计报表模块  期初,期末,本月入库,本月入库 4个部分主单位对应的数量显示逻辑出现
1个文件已修改
37 ■■■■ 已修改文件
src/views/reportForm/monthboundDetail/index.vue 37 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/reportForm/monthboundDetail/index.vue
@@ -25,88 +25,88 @@
              <el-table-column label="期初库存" prop='inventoryStart'>
                <el-table-column label="件" prop='inventoryStart' min="90">
                  <template slot-scope="scope">
                    {{getUnitValue(scope.row.beginMoreUnitsArr,'件')}}
                    {{getUnitValue(scope.row.beginMoreUnitsArr,'件',scope.row.beginAmount,scope.row.unit)}}
                  </template>
                </el-table-column>
                <el-table-column label="匹" prop='inventoryStart' min="90">
                  <template slot-scope="scope">
                    {{getUnitValue(scope.row.beginMoreUnitsArr,'匹')}}
                    {{getUnitValue(scope.row.beginMoreUnitsArr,'匹',scope.row.beginAmount,scope.row.unit)}}
                  </template>
                </el-table-column>
                <el-table-column label="米数" prop='inventoryStart' min="90">
                  <template slot-scope="scope">
                    {{getUnitValue(scope.row.beginMoreUnitsArr,'米数')}}
                    {{getUnitValue(scope.row.beginMoreUnitsArr,'米数',scope.row.beginAmount,scope.row.unit)}}
                  </template>
                </el-table-column>
                <el-table-column label="重量" prop='inventoryStart' min="90">
                  <template slot-scope="scope">
                    {{getUnitValue(scope.row.beginMoreUnitsArr,'重量')}}
                    {{getUnitValue(scope.row.beginMoreUnitsArr,'重量',scope.row.beginAmount,scope.row.unit)}}
                  </template>
                </el-table-column>
              </el-table-column>
              <el-table-column label="本月入库" prop='inInventoryCurrentMonth'>
                <el-table-column label="件" prop='inventoryStart' min="90">
                  <template slot-scope="scope">
                    {{getUnitValue(scope.row.inputMoreUnitsArr,'件')}}
                    {{getUnitValue(scope.row.inputMoreUnitsArr,'件',scope.row.inputAmount,scope.row.unit)}}
                  </template>
                </el-table-column>
                <el-table-column label="匹" prop='inventoryStart' min="90">
                  <template slot-scope="scope">
                    {{getUnitValue(scope.row.inputMoreUnitsArr,'匹')}}
                    {{getUnitValue(scope.row.inputMoreUnitsArr,'匹',scope.row.inputAmount,scope.row.unit)}}
                  </template>
                </el-table-column>
                <el-table-column label="米数" prop='inventoryStart' min="90">
                  <template slot-scope="scope">
                    {{getUnitValue(scope.row.inputMoreUnitsArr,'米数')}}
                    {{getUnitValue(scope.row.inputMoreUnitsArr,'米数',scope.row.inputAmount,scope.row.unit)}}
                  </template>
                </el-table-column>
                <el-table-column label="重量" prop='inventoryStart' min="90">
                  <template slot-scope="scope">
                    {{getUnitValue(scope.row.inputMoreUnitsArr,'重量')}}
                    {{getUnitValue(scope.row.inputMoreUnitsArr,'重量',scope.row.inputAmount,scope.row.unit)}}
                  </template>
                </el-table-column>
              </el-table-column>
              <el-table-column label="本月出库" prop='outInventoryCurrentMonth'>
                <el-table-column label="件" prop='inventoryStart' min="90">
                  <template slot-scope="scope">
                    {{getUnitValue(scope.row.outputMoreUnitsArr,'件')}}
                    {{getUnitValue(scope.row.outputMoreUnitsArr,'件',scope.row.outputAmount,scope.row.unit)}}
                  </template>
                </el-table-column>
                <el-table-column label="匹" prop='inventoryStart' min="90">
                  <template slot-scope="scope">
                    {{getUnitValue(scope.row.outputMoreUnitsArr,'匹')}}
                    {{getUnitValue(scope.row.outputMoreUnitsArr,'匹',scope.row.outputAmount,scope.row.unit)}}
                  </template>
                </el-table-column>
                <el-table-column label="米数" prop='inventoryStart' min="90">
                  <template slot-scope="scope">
                    {{getUnitValue(scope.row.outputMoreUnitsArr,'米数')}}
                    {{getUnitValue(scope.row.outputMoreUnitsArr,'米数',scope.row.outputAmount,scope.row.unit)}}
                  </template>
                </el-table-column>
                <el-table-column label="重量" prop='inventoryStart' min="90">
                  <template slot-scope="scope">
                    {{getUnitValue(scope.row.outputMoreUnitsArr,'重量')}}
                    {{getUnitValue(scope.row.outputMoreUnitsArr,'重量',scope.row.outputAmount,scope.row.unit)}}
                  </template>
                </el-table-column>
              </el-table-column>
              <el-table-column label="期末库存" prop='inventoryEnd'>
                <el-table-column label="件" prop='inventoryStart' min="90">
                  <template slot-scope="scope">
                    {{getUnitValue(scope.row.MoreUnitsArr,'件')}}
                    {{getUnitValue(scope.row.MoreUnitsArr,'件',scope.row.amount,scope.row.unit)}}
                  </template>
                </el-table-column>
                <el-table-column label="匹" prop='inventoryStart' min="90">
                  <template slot-scope="scope">
                    {{getUnitValue(scope.row.MoreUnitsArr,'匹')}}
                    {{getUnitValue(scope.row.MoreUnitsArr,'匹',scope.row.amount,scope.row.unit)}}
                  </template>
                </el-table-column>
                <el-table-column label="米数" prop='inventoryStart' min="90">
                  <template slot-scope="scope">
                    {{getUnitValue(scope.row.MoreUnitsArr,'米数')}}
                    {{getUnitValue(scope.row.MoreUnitsArr,'米数',scope.row.amount,scope.row.unit)}}
                  </template>
                </el-table-column>
                <el-table-column label="重量" prop='inventoryStart' min="90">
                  <template slot-scope="scope">
                    {{getUnitValue(scope.row.MoreUnitsArr,'重量')}}
                    {{getUnitValue(scope.row.MoreUnitsArr,'重量',scope.row.amount,scope.row.unit)}}
                  </template>
                </el-table-column>
              </el-table-column>
@@ -153,7 +153,7 @@
    this.getData()
  },
  methods: {
    getUnitValue(list,val){
    getUnitValue(list,val,num,unit){
      let  string='--'
      if(list){
        if(list.length>0){
@@ -165,6 +165,9 @@
          }
        }
      }
      if(unit==val){
        string=num
      }
      return string
    },
    setTable() {