|  | @@ -226,8 +226,8 @@
 | 
	
		
			
				|  |  |              <el-button v-if="isAuth('pur:commDetail:info')" type="text" size="small" @click="detailHandle(scope.row.purchaseId)">查看</el-button>
 | 
	
		
			
				|  |  |              <el-button v-if="isAuth('pur:commDetail:update')" type="text" size="small" @click="addOrUpdateHandle(scope.row.purchaseId)">编辑</el-button>
 | 
	
		
			
				|  |  |              <el-button v-if="isAuth('pur:commDetail:updatePurCommissionDetail') && (Number(scope.row.purchaseState) === 1)" type="text" size="small" @click="outsourceHandle(scope.row)">委外</el-button>
 | 
	
		
			
				|  |  | -            <el-button v-if="isAuth('pur:commDetail:infoPutIn') && (Number(scope.row.purchaseState) === 2)" type="text" size="small" @click="inBound(scope.row.purComDetailId, false)">入库</el-button>
 | 
	
		
			
				|  |  | -            <el-button v-if="isAuth('pur:commDetail:infoPutInAgain') && (Number(scope.row.purchaseState) === 5)" type="text" size="small" @click="inBound(scope.row.purComDetailId, false)">再次入库</el-button>
 | 
	
		
			
				|  |  | +            <el-button v-if="isAuth('pur:commDetail:infoPutIn') && (Number(scope.row.purchaseState) === 2)" type="text" size="small" @click="inBound(scope.row)">入库</el-button>
 | 
	
		
			
				|  |  | +            <el-button v-if="isAuth('pur:commDetail:infoPutInAgain') && (Number(scope.row.purchaseState) === 5)" type="text" size="small" @click="inBound(scope.row)">再次入库</el-button>
 | 
	
		
			
				|  |  |            </template>
 | 
	
		
			
				|  |  |          </el-table-column>
 | 
	
		
			
				|  |  |        </el-table>
 | 
	
	
		
			
				|  | @@ -487,10 +487,16 @@ export default {
 | 
	
		
			
				|  |  |        return ''
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      // 入库申请
 | 
	
		
			
				|  |  | -    inBound (id, display) {
 | 
	
		
			
				|  |  | +    inBound (row) {
 | 
	
		
			
				|  |  | +      if (!row) return
 | 
	
		
			
				|  |  | +      let dataForm = {...row,
 | 
	
		
			
				|  |  | +        buttonType: '1',
 | 
	
		
			
				|  |  | +        materialName: row.productName,
 | 
	
		
			
				|  |  | +        specifications: row.specificationExplian
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  |        this.inboundVisible = true
 | 
	
		
			
				|  |  |        this.$nextTick(() => {
 | 
	
		
			
				|  |  | -        this.$refs.inbound.init(id, display)
 | 
	
		
			
				|  |  | +        this.$refs.inbound.init(0, false, dataForm)
 | 
	
		
			
				|  |  |        })
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      // 委外
 |