|  |  | @ -19,7 +19,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |                 </el-form-item> |  |  |  |                 </el-form-item> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 <el-form-item class="query-form-item"> |  |  |  |                 <el-form-item class="query-form-item"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                     <el-select v-model="query.thirdSysFk" placeholder="请选择第三方系统" |  |  |  |                     <el-select v-model="query.thirdSysFk" placeholder="请选择第三方系统" | 
			
		
	
		
		
			
				
					
					|  |  |  |                                @change="thirdSysFkChange(query.thirdSysFk)"> |  |  |  |                                @change="thirdSysFkChange()"> | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                         <el-option |  |  |  |                         <el-option | 
			
		
	
		
		
			
				
					
					|  |  |  |                             v-for="item in thirdSys" |  |  |  |                             v-for="item in thirdSys" | 
			
		
	
		
		
			
				
					
					|  |  |  |                             :key="item.thirdId" |  |  |  |                             :key="item.thirdId" | 
			
		
	
	
		
		
			
				
					|  |  | @ -36,6 +36,10 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |                                    :disabled="!configParms.basicThirdInv" |  |  |  |                                    :disabled="!configParms.basicThirdInv" | 
			
		
	
		
		
			
				
					
					|  |  |  |                         >添加仓库 |  |  |  |                         >添加仓库 | 
			
		
	
		
		
			
				
					
					|  |  |  |                         </el-button> |  |  |  |                         </el-button> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | <!--                        <el-button type="primary" @click.native="downloadWarehouse()"--> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | <!--                                   v-if="this.thirdSysDetail.enabled && this.thirdSysDetail.fromType==3"--> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | <!--                        >下载仓库--> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | <!--                        </el-button>--> | 
			
		
	
		
		
			
				
					
					|  |  |  |                     </el-button-group> |  |  |  |                     </el-button-group> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 </el-form-item> |  |  |  |                 </el-form-item> | 
			
		
	
		
		
			
				
					
					|  |  |  |             </el-form> |  |  |  |             </el-form> | 
			
		
	
	
		
		
			
				
					|  |  | @ -44,8 +48,8 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |                 style="width: 100%;margin-bottom: 20px;" |  |  |  |                 style="width: 100%;margin-bottom: 20px;" | 
			
		
	
		
		
			
				
					
					|  |  |  |                 row-key="id" |  |  |  |                 row-key="id" | 
			
		
	
		
		
			
				
					
					|  |  |  |                 border |  |  |  |                 border | 
			
		
	
		
		
			
				
					
					|  |  |  |                 default-expand-all |  |  |  |                 highlight-current-row | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 :tree-props="{children: 'children', hasChildren: 'hasChildren'}"> |  |  |  |                 @current-change="handInvCurrentChange"> | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                 <el-table-column type="index" label="序号" width="50"></el-table-column> |  |  |  |                 <el-table-column type="index" label="序号" width="50"></el-table-column> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 <el-table-column |  |  |  |                 <el-table-column | 
			
		
	
		
		
			
				
					
					|  |  |  |                     prop="code" |  |  |  |                     prop="code" | 
			
		
	
	
		
		
			
				
					|  |  | @ -72,6 +76,15 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |                 <el-table-column label="操作" fixed="right"> |  |  |  |                 <el-table-column label="操作" fixed="right"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                     <template slot-scope="scope"> |  |  |  |                     <template slot-scope="scope"> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         <el-button | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             type="text" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             size="small" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             @click.native.stop="handleSubForm( scope.row, 'add')" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         >添加分库 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         </el-button | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         > | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |                         <el-button |  |  |  |                         <el-button | 
			
		
	
		
		
			
				
					
					|  |  |  |                             type="text" |  |  |  |                             type="text" | 
			
		
	
		
		
			
				
					
					|  |  |  |                             size="small" |  |  |  |                             size="small" | 
			
		
	
	
		
		
			
				
					|  |  | @ -92,6 +105,53 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |                 </el-table-column> |  |  |  |                 </el-table-column> | 
			
		
	
		
		
			
				
					
					|  |  |  |             </el-table> |  |  |  |             </el-table> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             <el-table | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 :data="subList" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 border | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 highlight-current-row | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 style="width: 100%;"> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 <el-table-column type="index" label="序号" width="50"></el-table-column> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 <el-table-column | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     prop="code" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     label="分库编码" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 > | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 </el-table-column> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 <el-table-column | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     prop="name" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     label="分库名称" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 > | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 </el-table-column> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 <el-table-column | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     prop="parentId" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     label="所属仓库" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 > | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 </el-table-column> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 <el-table-column label="操作" fixed="right"> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     <template slot-scope="scope"> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         <el-button | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             type="text" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             size="small" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             @click.native.stop="handleSubForm( scope.row, 'edit')" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         >编辑 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         </el-button | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         > | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         <el-button | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             type="text" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             size="small" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             :disabled="!configParms.basicInv" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             @click.native.stop="handleSubDel(scope.row)" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         >删除 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         </el-button | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         > | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     </template> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 </el-table-column> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             </el-table> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         </el-card> |  |  |  |         </el-card> | 
			
		
	
		
		
			
				
					
					|  |  |  |         <el-pagination |  |  |  |         <el-pagination | 
			
		
	
		
		
			
				
					
					|  |  |  |             :page-size="query.limit" |  |  |  |             :page-size="query.limit" | 
			
		
	
	
		
		
			
				
					|  |  | @ -100,34 +160,21 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |             :total="total" |  |  |  |             :total="total" | 
			
		
	
		
		
			
				
					
					|  |  |  |         > |  |  |  |         > | 
			
		
	
		
		
			
				
					
					|  |  |  |         </el-pagination> |  |  |  |         </el-pagination> | 
			
		
	
		
		
			
				
					
					|  |  |  |         <!--表单界面--> |  |  |  |         <!--仓库弹窗编辑页面--> | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         <el-dialog |  |  |  |         <el-dialog | 
			
		
	
		
		
			
				
					
					|  |  |  |             :title="formMap[formName]" |  |  |  |             :title="formMap[formName]" | 
			
		
	
		
		
			
				
					
					|  |  |  |             :close-on-click-modal="false" |  |  |  |             :close-on-click-modal="false" | 
			
		
	
		
		
			
				
					
					|  |  |  |             :close-on-press-escape="false" |  |  |  |             :close-on-press-escape="false" | 
			
		
	
		
		
			
				
					
					|  |  |  |             :visible.sync="subFormVisible" |  |  |  |             :visible.sync="formVisible" | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             :before-close="hideForm" |  |  |  |             :before-close="hideForm" | 
			
		
	
		
		
			
				
					
					|  |  |  |             width="40%" |  |  |  |             width="40%" | 
			
		
	
		
		
			
				
					
					|  |  |  |             top="5vh" |  |  |  |             top="5vh" | 
			
		
	
		
		
			
				
					
					|  |  |  |         > |  |  |  |         > | 
			
		
	
		
		
			
				
					
					|  |  |  |             <el-form :model="formData" :rules="formRules" ref="dataForm"> |  |  |  |             <el-form :model="formData" :rules="formRules" ref="dataForm"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 <el-form-item label="本企业仓库" prop="pid"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                     <el-select v-model="formData.pid" placeholder="顶级" disabled> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                         <el-option |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                             v-for="item in mergeList" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                             :key="item.id" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                             :label="item.name" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                             :value="item.id" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                         > |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                           <span style="float: left" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                           ><span v-html="item.html"></span>{{ item.name }}</span |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                           > |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                         </el-option> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                     </el-select> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 </el-form-item> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |                 <el-form-item label="仓库编码" prop="title" class="query-form-item"> |  |  |  |                 <el-form-item label="仓库编码" prop="code" class="query-form-item"> | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                     <el-input |  |  |  |                     <el-input | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         disabled | 
			
		
	
		
		
			
				
					
					|  |  |  |                         v-model.trim="formData.code" style="width: 80%" |  |  |  |                         v-model.trim="formData.code" style="width: 80%" | 
			
		
	
		
		
			
				
					
					|  |  |  |                         auto-complete="off" |  |  |  |                         auto-complete="off" | 
			
		
	
		
		
			
				
					
					|  |  |  |                     ></el-input> |  |  |  |                     ></el-input> | 
			
		
	
	
		
		
			
				
					|  |  | @ -140,10 +187,21 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |                 </el-form-item> |  |  |  |                 </el-form-item> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |                 <el-form-item class="query-form-item" label="仓库类型:"> |  |  |  |                 <el-form-item class="query-form-item" prop="advanceType" label="仓库类型"> | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                     <el-select v-model="formData.advanceType" placeholder="仓库类型" clearable> |  |  |  |                     <el-select v-model="formData.advanceType" placeholder="仓库类型" clearable> | 
			
		
	
		
		
			
				
					
					|  |  |  |                         <el-option label="寄售" :value=true></el-option> |  |  |  |                         <el-option label="寄售" :value='true'></el-option> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                         <el-option label="仓库" :value=false></el-option> |  |  |  |                         <el-option label="仓库" :value='false'></el-option> | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     </el-select> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 </el-form-item> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 <el-form-item class="query-form-item" prop="thirdSysFk" label="第三方系统"> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     <el-select v-model="formData.thirdSysFk" placeholder="请选择第三方系统" clearable> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         <el-option | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             v-for="item in thirdSys" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             :key="item.thirdId" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             :lable="item.thirdName" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             :value="item.thirdName" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         > | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         </el-option> | 
			
		
	
		
		
			
				
					
					|  |  |  |                     </el-select> |  |  |  |                     </el-select> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 </el-form-item> |  |  |  |                 </el-form-item> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 <el-form-item label="状态:" prop="status" class="query-form-item"> |  |  |  |                 <el-form-item label="状态:" prop="status" class="query-form-item"> | 
			
		
	
	
		
		
			
				
					|  |  | @ -165,67 +223,60 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |                 > |  |  |  |                 > | 
			
		
	
		
		
			
				
					
					|  |  |  |             </div> |  |  |  |             </div> | 
			
		
	
		
		
			
				
					
					|  |  |  |         </el-dialog> |  |  |  |         </el-dialog> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         <!-- 分库弹窗编辑页面--> | 
			
		
	
		
		
			
				
					
					|  |  |  |         <el-dialog |  |  |  |         <el-dialog | 
			
		
	
		
		
			
				
					
					|  |  |  |             :title="formMap[formName]" |  |  |  |             :title="formMap[formName]" | 
			
		
	
		
		
			
				
					
					|  |  |  |             :close-on-click-modal="false" |  |  |  |             :close-on-click-modal="false" | 
			
		
	
		
		
			
				
					
					|  |  |  |             :close-on-press-escape="false" |  |  |  |             :close-on-press-escape="false" | 
			
		
	
		
		
			
				
					
					|  |  |  |             :visible.sync="formVisible" |  |  |  |             :visible.sync="subFormVisible" | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             :before-close="hideForm" |  |  |  |             :before-close="hideForm" | 
			
		
	
		
		
			
				
					
					|  |  |  |             width="40%" |  |  |  |             width="60%" | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             top="5vh" |  |  |  |             top="5vh" | 
			
		
	
		
		
			
				
					
					|  |  |  |         > |  |  |  |         > | 
			
		
	
		
		
			
				
					
					|  |  |  |             <el-form :model="formData" :rules="formRules" ref="dataForm"> |  |  |  |             <el-form :model="subData" ref="dataForm"> | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 <el-form-item label="所属仓库" prop="pid"> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     <el-select v-model="subData.parentId" placeholder="顶级" disabled> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         <el-option | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             v-for="item in mergeList" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             :key="item.code" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             :label="item.name" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             :value="item.code" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         > | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                           <span style="float: left" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                           ><span v-html="item.html"></span>{{ item.name }}</span | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                           > | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         </el-option> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     </el-select> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 </el-form-item> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |                 <el-form-item label="仓库编码" prop="title" class="query-form-item"> |  |  |  |                 <el-form-item label="分库编码" prop="title" class="query-form-item"> | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                     <el-input |  |  |  |                     <el-input | 
			
		
	
		
		
			
				
					
					|  |  |  |                         v-model="formData.code" style="width: 80%" |  |  |  |                         v-model="subData.code" style="width: 80%" | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                         auto-complete="off" |  |  |  |                         auto-complete="off" | 
			
		
	
		
		
			
				
					
					|  |  |  |                     ></el-input> |  |  |  |                     ></el-input> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 </el-form-item> |  |  |  |                 </el-form-item> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 <el-form-item label="仓库名称" prop="name" class="query-form-item"> |  |  |  |                 <el-form-item label="分库名称" prop="name" class="query-form-item"> | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                     <el-input |  |  |  |                     <el-input | 
			
		
	
		
		
			
				
					
					|  |  |  |                         v-model="formData.name" style="width: 80%" |  |  |  |                         v-model="subData.name" style="width: 80%" | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                         auto-complete="off" |  |  |  |                         auto-complete="off" | 
			
		
	
		
		
			
				
					
					|  |  |  |                     ></el-input> |  |  |  |                     ></el-input> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 </el-form-item> |  |  |  |                 </el-form-item> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 <el-form-item class="query-form-item" label="仓库类型:"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                     <el-select v-model="formData.advanceType" placeholder="仓库类型" clearable> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                         <el-option label="寄售" :value='true'></el-option> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                         <el-option label="仓库" :value='false'></el-option> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                     </el-select> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 </el-form-item> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 <el-form-item class="query-form-item" prop="thirdSysFk" label="第三方系统:"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                     <el-select v-model="formData.thirdSysFk" placeholder="请选择第三方系统" clearable> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                         <el-option |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                             v-for="item in thirdSys" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                             :key="item.thirdId" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                             :lable="item.thirdName" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                             :value="item.thirdName" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                         > |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                         </el-option> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                     </el-select> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 </el-form-item> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 <el-form-item label="状态:" prop="status" class="query-form-item"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                     <el-radio-group v-model="formData.status"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                         <el-radio :label="0">禁用</el-radio> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                         <el-radio :label="1">正常</el-radio> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                     </el-radio-group> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 </el-form-item> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             </el-form> |  |  |  |             </el-form> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <div slot="footer" class="dialog-footer"> |  |  |  |             <div slot="footer" class="dialog-footer"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 <el-button @click.native="hideForm">取消</el-button> |  |  |  |                 <el-button @click.native="hideForm">取消</el-button> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 <el-button |  |  |  |                 <el-button | 
			
		
	
		
		
			
				
					
					|  |  |  |                     type="primary" |  |  |  |                     type="primary" | 
			
		
	
		
		
			
				
					
					|  |  |  |                     @click.native="formSubmit()" |  |  |  |                     @click.native="forSubSubmit()" | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                     :loading="formLoading" |  |  |  |                     :loading="formLoading" | 
			
		
	
		
		
			
				
					
					|  |  |  |                 >提交 |  |  |  |                 >提交 | 
			
		
	
		
		
			
				
					
					|  |  |  |                 </el-button |  |  |  |                 </el-button | 
			
		
	
		
		
			
				
					
					|  |  |  |                 > |  |  |  |                 > | 
			
		
	
		
		
			
				
					
					|  |  |  |             </div> |  |  |  |             </div> | 
			
		
	
		
		
			
				
					
					|  |  |  |         </el-dialog> |  |  |  |         </el-dialog> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     </div> |  |  |  |     </div> | 
			
		
	
		
		
			
				
					
					|  |  |  | </template> |  |  |  | </template> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  |  | @ -235,8 +286,16 @@ import { | 
			
		
	
		
		
			
				
					
					|  |  |  |     saveThrWarehouse, |  |  |  |     saveThrWarehouse, | 
			
		
	
		
		
			
				
					
					|  |  |  |     deleteThrWarehouse, |  |  |  |     deleteThrWarehouse, | 
			
		
	
		
		
			
				
					
					|  |  |  | } from "../../api/thrsys/thrInvWarehouse"; |  |  |  | } from "../../api/thrsys/thrInvWarehouse"; | 
			
		
	
		
		
			
				
					
					|  |  |  | import {getBasicThirdSys} from "../../api/basic/basicThirdSys"; |  |  |  | import {filterDetailByKey, getBasicThirdSys} from "../../api/basic/basicThirdSys"; | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | import {findConfig} from "@/api/thrsys/spsSyncStatus"; |  |  |  | import {findConfig} from "@/api/thrsys/spsSyncStatus"; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | import {isBlank} from "@/utils/strUtil"; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | import { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     filterThridSubAll, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     filterSubByInv, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     deleteSubWarehouse, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     saveSubWarehouse | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | } from "@/api/thrsys/thrdSubInvWarehouse"; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | const formJson = { |  |  |  | const formJson = { | 
			
		
	
		
		
			
				
					
					|  |  |  |     id: null, |  |  |  |     id: null, | 
			
		
	
	
		
		
			
				
					|  |  | @ -262,13 +321,22 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 isDefault: null, |  |  |  |                 isDefault: null, | 
			
		
	
		
		
			
				
					
					|  |  |  |                 page: 1, |  |  |  |                 page: 1, | 
			
		
	
		
		
			
				
					
					|  |  |  |                 limit: 20, |  |  |  |                 limit: 20, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 thirdSysFk: null, | 
			
		
	
		
		
			
				
					
					|  |  |  |             }, |  |  |  |             }, | 
			
		
	
		
		
			
				
					
					|  |  |  |             mergeList: [], |  |  |  |             mergeList: [], | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             subList: [], | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             subData: {}, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             currentCode: null, | 
			
		
	
		
		
			
				
					
					|  |  |  |             node: null, |  |  |  |             node: null, | 
			
		
	
		
		
			
				
					
					|  |  |  |             defaultProps: { |  |  |  |             defaultProps: { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 children: "children", |  |  |  |                 children: "children", | 
			
		
	
		
		
			
				
					
					|  |  |  |                 label: "name" |  |  |  |                 label: "name" | 
			
		
	
		
		
			
				
					
					|  |  |  |             }, |  |  |  |             }, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             thirdSysDetail: { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 enabled: false, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 fromType: 0, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             }, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |             total: 0, |  |  |  |             total: 0, | 
			
		
	
		
		
			
				
					
					|  |  |  |             treeList: [], |  |  |  |             treeList: [], | 
			
		
	
		
		
			
				
					
					|  |  |  |             loading: true, |  |  |  |             loading: true, | 
			
		
	
	
		
		
			
				
					|  |  | @ -296,6 +364,9 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 ], |  |  |  |                 ], | 
			
		
	
		
		
			
				
					
					|  |  |  |                 thirdSysFk: [ |  |  |  |                 thirdSysFk: [ | 
			
		
	
		
		
			
				
					
					|  |  |  |                     {required: true, message: "请选择第三方系统", trigger: "blur"} |  |  |  |                     {required: true, message: "请选择第三方系统", trigger: "blur"} | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 ], | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 advanceType: [ | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     {required: true, message: "请选择仓库类型", trigger: "blur"} | 
			
		
	
		
		
			
				
					
					|  |  |  |                 ] |  |  |  |                 ] | 
			
		
	
		
		
			
				
					
					|  |  |  |             }, |  |  |  |             }, | 
			
		
	
		
		
			
				
					
					|  |  |  |             pidData: {}, |  |  |  |             pidData: {}, | 
			
		
	
	
		
		
			
				
					|  |  | @ -311,33 +382,25 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.query.page = val; |  |  |  |             this.query.page = val; | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.getList(); |  |  |  |             this.getList(); | 
			
		
	
		
		
			
				
					
					|  |  |  |         }, |  |  |  |         }, | 
			
		
	
		
		
			
				
					
					|  |  |  |         renderContent(h, {node, data, store}) { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             return ( |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 <span |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                     style="flex: 1; display: flex; align-items: center; justify-content: space-between; font-size: 14px; padding-right: 8px;"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                     <span> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                     <span title={data.name} style="margin-left:8px">{node.label}</span> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                        <span style="margin-left:18px">(编码:{data.code})</span> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                     </span> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                     <span> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |                 <el-button |  |  |  |         handInvCurrentChange(row) { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                     style="font-size: 12px;" |  |  |  |             this.subList = []; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                     type="text" |  |  |  |             this.currentCode = row.code; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                     on-click={() => this.handleForm(node, data, "edit")} |  |  |  |             this.loadSubData(row); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 > |  |  |  |         }, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 编辑 |  |  |  | 
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 </el-button> |  |  |  |         loadSubData(row) { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 <el-button |  |  |  |             let subQuery = { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                     style="font-size: 12px;" |  |  |  |                 parentId: row.code, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                     type="text" |  |  |  |                 thirdSysFk: row.thirdSysFk, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                     on-click={() => this.handleDel(node, data)} |  |  |  |             } | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 > |  |  |  |             filterThridSubAll(subQuery).then((res) => { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 删除 |  |  |  |                 if (res.code == 20000) { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 </el-button> |  |  |  |                     this.subList = res.data.list; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 </span> |  |  |  | 
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 </span> |  |  |  |                 } | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             ); |  |  |  |             }).catch((error) => { | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             }); | 
			
		
	
		
		
			
				
					
					|  |  |  |         }, |  |  |  |         }, | 
			
		
	
		
		
			
				
					
					|  |  |  |         onReset() { |  |  |  |         onReset() { | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.$router.push({ |  |  |  |             this.$router.push({ | 
			
		
	
	
		
		
			
				
					|  |  | @ -439,27 +502,76 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |             } |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |         }, |  |  |  |         }, | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         handleSubForm(node, data, formName) { |  |  |  |         handleSubForm(data, formName) { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             this.subFromName = formName; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             if (formName === "edit") { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 this.subData = data; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             } else if (formName === "add") { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 this.subData = {}; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 this.subData.parentId = data.code; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 this.subData.thirdSysFk = data.thirdSysFk; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.subFormVisible = true; |  |  |  |             this.subFormVisible = true; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         }, | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.pidData = data || null; |  |  |  |         handleSubDel(row) { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             formJson.pid = (data && parseInt(data.id)) || ""; |  |  |  |             if (row.id) { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             this.formData = JSON.parse(JSON.stringify(formJson)); |  |  |  |                 this.$confirm("确认删除该分库吗?", "提示", { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             if (formName === "edit") { |  |  |  |                     type: "warning", | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 this.formData = Object.assign({}, data); |  |  |  |                 }) | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 this.node = node; |  |  |  |                     .then(() => { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             } else { |  |  |  |                         this.deleteLoading = true; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 let no = this.getProjectNum() + Math.floor(Math.random() * 10000); |  |  |  |                         let para = {id: row.id}; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 this.formData.code = no; |  |  |  |                         deleteSubWarehouse(para) | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             .then((response) => { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                                 this.deleteLoading = false; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                                 if (response.code !== 20000) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                                     this.$message.error(response.message); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                                     return false; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                                 } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                                 this.$message.success("删除成功"); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                                 this.loadSubData(row.parentId); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             }) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             .catch(() => { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                                 this.deleteLoading = false; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             }); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     }) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     .catch(() => { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         this.$message.info("取消删除"); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     }); | 
			
		
	
		
		
			
				
					
					|  |  |  |             } |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.formData.pid = !this.formData.pid ? "" : this.formData.pid; |  |  |  |         }, | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.formName = formName; |  |  |  |         //添加分库 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             if (data && data.id) { |  |  |  |         forSubSubmit() { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 this.index = this.mergeList.findIndex((d) => d.id === data.id); |  |  |  | 
 | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             if (this.$isBlank(this.subData.name)) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 this.$message.error("分库名称不能为空!"); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 return; | 
			
		
	
		
		
			
				
					
					|  |  |  |             } |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             saveSubWarehouse(this.subData, this.subFromName).then((response) => { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 if (response.code == 20000) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     this.loadSubData(this.subData.parentId); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     this.subFormVisible = false; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 } else { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     this.$message.error(response.message); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     this.subFormVisible = false; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             }).catch(() => { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 this.subFormVisible = false; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             }); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         }, |  |  |  |         }, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         formSubmit() { |  |  |  |         formSubmit() { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             if (!isBlank(this.formData.code)) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 if (Number(this.formData.code) + '' === NaN + '') { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     this.$message.error("仓库编码格式错误!") | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     return; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.$refs["dataForm"].validate((valid) => { |  |  |  |             this.$refs["dataForm"].validate((valid) => { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 if (valid) { |  |  |  |                 if (valid) { | 
			
		
	
		
		
			
				
					
					|  |  |  |                     this.formLoading = true; |  |  |  |                     this.formLoading = true; | 
			
		
	
	
		
		
			
				
					|  |  | @ -491,11 +603,6 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |                                         this.mergeList.push(data); |  |  |  |                                         this.mergeList.push(data); | 
			
		
	
		
		
			
				
					
					|  |  |  |                                     } |  |  |  |                                     } | 
			
		
	
		
		
			
				
					
					|  |  |  |                                 } |  |  |  |                                 } | 
			
		
	
		
		
			
				
					
					|  |  |  |                             } else { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                                 // const parent = this.node.parent; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                                 // const children = parent.data.children || parent.data; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                                 // const index = children.findIndex((d) => d.id === data.id); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                                 // children.splice(index, 1, data); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                             } |  |  |  |                             } | 
			
		
	
		
		
			
				
					
					|  |  |  |                             // 刷新表单 |  |  |  |                             // 刷新表单 | 
			
		
	
		
		
			
				
					
					|  |  |  |                             this.resetForm(); |  |  |  |                             this.resetForm(); | 
			
		
	
	
		
		
			
				
					|  |  | @ -570,14 +677,59 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |             getBasicThirdSys(query) |  |  |  |             getBasicThirdSys(query) | 
			
		
	
		
		
			
				
					
					|  |  |  |                 .then((response) => { |  |  |  |                 .then((response) => { | 
			
		
	
		
		
			
				
					
					|  |  |  |                     this.thirdSys = response.data.list || []; |  |  |  |                     this.thirdSys = response.data.list || []; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     this.query.thirdSysFk = this.thirdSys[0].thirdId; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     this.getThirdSysDetail(); | 
			
		
	
		
		
			
				
					
					|  |  |  |                 }) |  |  |  |                 }) | 
			
		
	
		
		
			
				
					
					|  |  |  |                 .catch(() => { |  |  |  |                 .catch(() => { | 
			
		
	
		
		
			
				
					
					|  |  |  |                     this.loading = false; |  |  |  |                     this.loading = false; | 
			
		
	
		
		
			
				
					
					|  |  |  |                     this.list = []; |  |  |  |                     this.list = []; | 
			
		
	
		
		
			
				
					
					|  |  |  |                 }); |  |  |  |                 }); | 
			
		
	
		
		
			
				
					
					|  |  |  |         }, |  |  |  |         }, | 
			
		
	
		
		
			
				
					
					|  |  |  |         thirdSysFkChange(thirdSysFk) { |  |  |  |         downloadWarehouse() { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             console.log(thirdSysFk); |  |  |  |             if (null == this.query.thirdSysFk) { | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 this.$message.warning("请选择需要下载的第三方系统"); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 return; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             this.getQueryThirdSysFk(); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             let params = { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 thirdSysFk: this.query.thirdSysFk | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             this.getQueryThirdSysFkName(); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             download(params).then((res) => { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 if (res.code == 20000) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     this.$message.success("下载完成"); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     this.getList(); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 } else { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     this.$message.error(res.message); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             }).catch((error) => { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 this.$message.error("下载失败"); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             }) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         }, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         thirdSysFkChange() { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             this.getThirdSysDetail(); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         }, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         getThirdSysDetail() { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             let query = { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 thirdSysFk: this.query.thirdSysFk, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 key: "warehouseQueryUrl", | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             }; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             filterDetailByKey(query) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 .then((response) => { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     if (response.code == 20000) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         if (response.data != null) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             this.thirdSysDetail = response.data; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         } else { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 }) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 .catch(() => { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     this.loading = false; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     this.list = []; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 }); | 
			
		
	
		
		
			
				
					
					|  |  |  |         }, |  |  |  |         }, | 
			
		
	
		
		
			
				
					
					|  |  |  |         getSyncConfig() { |  |  |  |         getSyncConfig() { | 
			
		
	
		
		
			
				
					
					|  |  |  |             findConfig() |  |  |  |             findConfig() | 
			
		
	
	
		
		
			
				
					|  |  | @ -589,7 +741,8 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 .catch(() => { |  |  |  |                 .catch(() => { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 }); |  |  |  |                 }); | 
			
		
	
		
		
			
				
					
					|  |  |  |         }, |  |  |  |         }, | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     } | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     , | 
			
		
	
		
		
			
				
					
					|  |  |  |     filters: { |  |  |  |     filters: { | 
			
		
	
		
		
			
				
					
					|  |  |  |         statusFilterType(status) { |  |  |  |         statusFilterType(status) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             const statusMap = { |  |  |  |             const statusMap = { | 
			
		
	
	
		
		
			
				
					|  |  | @ -597,24 +750,30 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 1: "success", |  |  |  |                 1: "success", | 
			
		
	
		
		
			
				
					
					|  |  |  |             }; |  |  |  |             }; | 
			
		
	
		
		
			
				
					
					|  |  |  |             return statusMap[status]; |  |  |  |             return statusMap[status]; | 
			
		
	
		
		
			
				
					
					|  |  |  |         }, |  |  |  |         } | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         , | 
			
		
	
		
		
			
				
					
					|  |  |  |         statusFilterName(status) { |  |  |  |         statusFilterName(status) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             const statusMap = { |  |  |  |             const statusMap = { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 0: "禁用", |  |  |  |                 0: "禁用", | 
			
		
	
		
		
			
				
					
					|  |  |  |                 1: "正常", |  |  |  |                 1: "正常", | 
			
		
	
		
		
			
				
					
					|  |  |  |             }; |  |  |  |             }; | 
			
		
	
		
		
			
				
					
					|  |  |  |             return statusMap[status]; |  |  |  |             return statusMap[status]; | 
			
		
	
		
		
			
				
					
					|  |  |  |         }, |  |  |  |         } | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |         , | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     , | 
			
		
	
		
		
			
				
					
					|  |  |  |     mounted() { |  |  |  |     mounted() { | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     } | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     , | 
			
		
	
		
		
			
				
					
					|  |  |  |     created() { |  |  |  |     created() { | 
			
		
	
		
		
			
				
					
					|  |  |  |         // 加载表格数据 |  |  |  |         // 加载表格数据 | 
			
		
	
		
		
			
				
					
					|  |  |  |         this.getBasicThirdSys(); |  |  |  |         this.getBasicThirdSys(); | 
			
		
	
		
		
			
				
					
					|  |  |  |         this.getSyncConfig(); |  |  |  |         this.getSyncConfig(); | 
			
		
	
		
		
			
				
					
					|  |  |  |         this.getList(); |  |  |  |         this.getList(); | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     } | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | }; |  |  |  |     , | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | ; | 
			
		
	
		
		
			
				
					
					|  |  |  | </script> |  |  |  | </script> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | <style type="text/scss" lang="scss"> |  |  |  | <style type="text/scss" lang="scss"> | 
			
		
	
	
		
		
			
				
					|  |  | 
 |