| | |
| | | <el-table-column label="操作" align="center" width="120" class-name="small-padding fixed-width" fixed="right"> |
| | | <template slot-scope="scope" v-if="scope.row.storehouseName !== '本库区合计' && scope.row.storehouseName !== '合计'"> |
| | | <el-button type="text" @click="showEnterprises(scope.row)">查看详情</el-button> |
| | | <el-button type="text" @click="delData(scope.row)">删除</el-button> |
| | | <!-- <el-button type="text" @click="delData(scope.row)">删除</el-button>--> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | } |
| | | }) |
| | | } |
| | | console.log(gData,'gData') |
| | | |
| | | if(Array.isArray(gData)){ |
| | | gData.map(item=>{ |
| | | if(Array.isArray(item.storehouse.warehouses) && item.storehouse.whTotal){ |
| | |
| | | item.storehouse.warehouses.map((subRes, subIndex)=>{ |
| | | let content2 = {} |
| | | content2 = subRes |
| | | content2['gId'] = item.enterpriseId |
| | | content2['gId'] = item.gId |
| | | content2['ggId'] = item.enterpriseId |
| | | content2['gStock'] = item.gStock |
| | | content2['gName'] = item.gName |
| | | content2['gNum'] = item.gNum || null |
| | |
| | | topId: null, |
| | | reserveName: total.name, |
| | | gId: null, |
| | | ggId: null, |
| | | gName: total.name, |
| | | gStock: total.enterpriseTotalStock, |
| | | storehouseName: total.name, |
| | |
| | | } |
| | | this.stateStockData.push(totalObj) |
| | | } |
| | | console.log(this.stateStockData,'G') |
| | | }else{ |
| | | this.$message({ |
| | | type:'warning', |
| | |
| | | |
| | | showEnterprises(row){ |
| | | const t = this |
| | | t.$refs.enterStock.open(row) |
| | | t.$refs.enterStock.open(row,'汇总') |
| | | }, |
| | | |
| | | openStock(type,data){ |