|  |  |  | @ -13,7 +13,6 @@ | 
			
		
	
		
			
				
					|  |  |  |  |           <el-button-group style="margin-left: 10px;display:flex;"> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-button type="primary" icon="el-icon-refresh" @click="onReset">重置</el-button> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-button type="primary" icon="el-icon-search" @click="onSubmit">查询</el-button> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-button type="primary" icon="el-icon-plus" @click="handleSubForm( pCode, 'add')">新增</el-button> | 
			
		
	
		
			
				
					|  |  |  |  |           </el-button-group> | 
			
		
	
		
			
				
					|  |  |  |  |         </el-form-item> | 
			
		
	
		
			
				
					|  |  |  |  |       </el-form> | 
			
		
	
	
		
			
				
					|  |  |  | @ -31,6 +30,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  |         <el-table-column prop="code" label="编码"></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-table-column label="操作" class-name="small-padding fixed-width"> | 
			
		
	
		
			
				
					|  |  |  |  |           <template slot-scope="scope"> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-button type="text"  @click="handleSubForm( scope.row, 'add')">新增</el-button> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-button type="text" v-if="scope.row.code!=10000" @click.native.stop="handleSubForm( scope.row, 'edit')">编辑</el-button> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-button type="text" v-if="scope.row.code!=10000" @click.native.stop="handleDelInv(scope.row)">删除</el-button> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-button type="text" v-if="scope.row.code!=10000"  @click.native.stop="addHospProduct( scope.row)">绑定</el-button> | 
			
		
	
	
		
			
				
					|  |  |  | @ -53,6 +53,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  |             <el-col :span="12" class="el-col"> | 
			
		
	
		
			
				
					|  |  |  |  |               <el-form-item label="上级菜单" prop="parentCode"> | 
			
		
	
		
			
				
					|  |  |  |  |                 <treeselect | 
			
		
	
		
			
				
					|  |  |  |  |                   :disabled="formName=='add'" | 
			
		
	
		
			
				
					|  |  |  |  |                   v-model="subData.parentCode" | 
			
		
	
		
			
				
					|  |  |  |  |                   :options="fromDeptOptions" | 
			
		
	
		
			
				
					|  |  |  |  |                   :normalizer="normalizer" | 
			
		
	
	
		
			
				
					|  |  |  | @ -154,8 +155,8 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |       isExpandAll: true, | 
			
		
	
		
			
				
					|  |  |  |  |       total: 0, | 
			
		
	
		
			
				
					|  |  |  |  |       formMap: { | 
			
		
	
		
			
				
					|  |  |  |  |         add: "新增", | 
			
		
	
		
			
				
					|  |  |  |  |         edit: "编辑" | 
			
		
	
		
			
				
					|  |  |  |  |         add: "新增物资字典分类", | 
			
		
	
		
			
				
					|  |  |  |  |         edit: "编辑物资字典分类" | 
			
		
	
		
			
				
					|  |  |  |  |       }, | 
			
		
	
		
			
				
					|  |  |  |  |       formName: null, | 
			
		
	
		
			
				
					|  |  |  |  |       configParms: {}, | 
			
		
	
	
		
			
				
					|  |  |  | @ -220,8 +221,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |       if (formName === "edit") { | 
			
		
	
		
			
				
					|  |  |  |  |         this.subData = JSON.parse(JSON.stringify(data)); | 
			
		
	
		
			
				
					|  |  |  |  |       } else if (formName === "add") { | 
			
		
	
		
			
				
					|  |  |  |  |         this.subData.parentCode = JSON.parse(JSON.stringify(this.pCode)); | 
			
		
	
		
			
				
					|  |  |  |  |         this.subData={}; | 
			
		
	
		
			
				
					|  |  |  |  |         this.subData.parentCode = JSON.parse(JSON.stringify(data)).code; | 
			
		
	
		
			
				
					|  |  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |  |       this.getTreeselect(); | 
			
		
	
		
			
				
					|  |  |  |  |       this.subFormVisible = true; | 
			
		
	
	
		
			
				
					|  |  |  | 
 |