| | |
| | | <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> |
| | |
| | | this.getData() |
| | | }, |
| | | methods: { |
| | | getUnitValue(list,val){ |
| | | getUnitValue(list,val,num,unit){ |
| | | let string='--' |
| | | if(list){ |
| | | if(list.length>0){ |
| | |
| | | } |
| | | } |
| | | } |
| | | if(unit==val){ |
| | | string=num |
| | | } |
| | | return string |
| | | }, |
| | | setTable() { |