|  |  |  | @ -112,15 +112,15 @@ | 
			
		
	
		
			
				
					|  |  |  |  |             <el-table-column label="工位编码" prop="workplaceId" width="90"></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-table-column label="工位名称" prop="workplaceName" width="90"></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-table-column label="所属组别" prop="categoryName" width="90"></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-table-column label="来源单据类型编号" prop="busTypeCode" width="150"></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-table-column label="来源单据类型名称" prop="busTypeName" width="150"></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-table-column label="单据类型编号" prop="busTypeCode" width="100"></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-table-column label="单据类型名称" prop="busTypeName" width="100"></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-table-column label="所属仓库" prop="invName" width="90"></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-table-column label="作业方式" prop="operationType" width="90"> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-table-column label="作业方式" prop="operationType" width="120"> | 
			
		
	
		
			
				
					|  |  |  |  |               <template slot-scope="scope"> | 
			
		
	
		
			
				
					|  |  |  |  |                 <span>{{ operationTypes[scope.row.operationType] }}</span> | 
			
		
	
		
			
				
					|  |  |  |  |               </template> | 
			
		
	
		
			
				
					|  |  |  |  |             </el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-table-column label="结果处理" prop="checkInsert" width="150"> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-table-column label="结果处理" prop="checkInsert" width="100"> | 
			
		
	
		
			
				
					|  |  |  |  |               <template slot-scope="scope"> | 
			
		
	
		
			
				
					|  |  |  |  |                 <span>{{ checkInserts[scope.row.checkInsert] }}</span> | 
			
		
	
		
			
				
					|  |  |  |  |               </template> | 
			
		
	
	
		
			
				
					|  |  |  | @ -131,9 +131,9 @@ | 
			
		
	
		
			
				
					|  |  |  |  |               </template> | 
			
		
	
		
			
				
					|  |  |  |  |             </el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-table-column label="负责人" prop="employeeName" width="90"></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-table-column label="往来单位标题" prop="unitTittle" width="90"></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-table-column label="创建时间" prop="createTime" width="90"></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-table-column label="备注" prop="remake" width="90"></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-table-column label="往来单位标题" prop="unitTittle" width="120"></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-table-column label="创建时间" prop="createTime" width="120"></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-table-column label="备注" prop="remake" width="120"></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-table-column label="操作" fixed="right" width="120"> | 
			
		
	
		
			
				
					|  |  |  |  |               <template slot-scope="scope"> | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-button | 
			
		
	
	
		
			
				
					|  |  |  | @ -167,13 +167,15 @@ | 
			
		
	
		
			
				
					|  |  |  |  |             </pagination> | 
			
		
	
		
			
				
					|  |  |  |  |         </el-card> | 
			
		
	
		
			
				
					|  |  |  |  |           <el-card> | 
			
		
	
		
			
				
					|  |  |  |  |             <div>{{this.rowData.workplaceName}}-用户列表</div> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             <el-form :inline="true" :model="userQuery" class="query-form" size="mini" | 
			
		
	
		
			
				
					|  |  |  |  |                      style="margin-top: 30px;margin-bottom: 10px" v-if="rowData != null" | 
			
		
	
		
			
				
					|  |  |  |  |                      style="margin-top: 30px;margin-bottom: 10px" | 
			
		
	
		
			
				
					|  |  |  |  |             > | 
			
		
	
		
			
				
					|  |  |  |  |               <el-form-item class="query-form-item" label="工位编码/工位名称:"> | 
			
		
	
		
			
				
					|  |  |  |  |               <el-form-item class="query-form-item" label="用户账号/用户名称:"> | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-input | 
			
		
	
		
			
				
					|  |  |  |  |                   v-model="userQuery.userKey" | 
			
		
	
		
			
				
					|  |  |  |  |                   placeholder="请输入工位编码/名称" | 
			
		
	
		
			
				
					|  |  |  |  |                   placeholder="请输入用户账号/名称" | 
			
		
	
		
			
				
					|  |  |  |  |                   clearable | 
			
		
	
		
			
				
					|  |  |  |  |                 ></el-input> | 
			
		
	
		
			
				
					|  |  |  |  |               </el-form-item> | 
			
		
	
	
		
			
				
					|  |  |  | @ -195,7 +197,6 @@ | 
			
		
	
		
			
				
					|  |  |  |  |             </el-form> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             <el-table v-loading="userLoading" :data="userList" style="width: 100%;" :row-style="{height: '32px' }" | 
			
		
	
		
			
				
					|  |  |  |  |                       v-if="rowData != null" | 
			
		
	
		
			
				
					|  |  |  |  |                       highlight-current-row | 
			
		
	
		
			
				
					|  |  |  |  |             > | 
			
		
	
		
			
				
					|  |  |  |  |               <el-table-column type="index" label="序号"></el-table-column> | 
			
		
	
	
		
			
				
					|  |  |  | @ -241,16 +242,16 @@ | 
			
		
	
		
			
				
					|  |  |  |  |     <el-dialog | 
			
		
	
		
			
				
					|  |  |  |  |       :title="fromMap[fromName]" | 
			
		
	
		
			
				
					|  |  |  |  |       :visible.sync="addWorkplaceDialogVisible" | 
			
		
	
		
			
				
					|  |  |  |  |       width="40%" | 
			
		
	
		
			
				
					|  |  |  |  |       width="60%" | 
			
		
	
		
			
				
					|  |  |  |  |       v-if="addWorkplaceDialogVisible" | 
			
		
	
		
			
				
					|  |  |  |  |       :close-on-click-modal="false" | 
			
		
	
		
			
				
					|  |  |  |  |       :close-on-press-escape="false" | 
			
		
	
		
			
				
					|  |  |  |  |     > | 
			
		
	
		
			
				
					|  |  |  |  |       <el-form :model="formData" style="width: 60%;" ref="dataForm" :rules="formRules" | 
			
		
	
		
			
				
					|  |  |  |  |       <el-form :model="formData" style="width: 100%;" ref="dataForm" :rules="formRules" | 
			
		
	
		
			
				
					|  |  |  |  |                label-width="auto" | 
			
		
	
		
			
				
					|  |  |  |  |       > | 
			
		
	
		
			
				
					|  |  |  |  |         <el-row :gutter="20" class="el-row"> | 
			
		
	
		
			
				
					|  |  |  |  |           <el-col :span="24" class="el-col"> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-row :gutter="24" class="el-row"> | 
			
		
	
		
			
				
					|  |  |  |  |           <el-col :span="12" class="el-col"> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-form-item label="工位编码:" prop="workplaceId" class="query-form-item"> | 
			
		
	
		
			
				
					|  |  |  |  |               <el-input | 
			
		
	
		
			
				
					|  |  |  |  |                 disabled | 
			
		
	
	
		
			
				
					|  |  |  | @ -259,7 +260,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  |               ></el-input> | 
			
		
	
		
			
				
					|  |  |  |  |             </el-form-item> | 
			
		
	
		
			
				
					|  |  |  |  |           </el-col> | 
			
		
	
		
			
				
					|  |  |  |  |           <el-col :span="24" class="el-col"> | 
			
		
	
		
			
				
					|  |  |  |  |           <el-col :span="12" class="el-col"> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-form-item label="工位名称:" prop="workplaceName" class="query-form-item"> | 
			
		
	
		
			
				
					|  |  |  |  |               <el-input | 
			
		
	
		
			
				
					|  |  |  |  |                 v-model="formData.workplaceName" style="width: 80%" | 
			
		
	
	
		
			
				
					|  |  |  | @ -267,9 +268,10 @@ | 
			
		
	
		
			
				
					|  |  |  |  |               ></el-input> | 
			
		
	
		
			
				
					|  |  |  |  |             </el-form-item> | 
			
		
	
		
			
				
					|  |  |  |  |           </el-col> | 
			
		
	
		
			
				
					|  |  |  |  |         </el-row> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |           <el-col :span="24" class="el-col"> | 
			
		
	
		
			
				
					|  |  |  |  |           <el-row :gutter="24" class="el-row"> | 
			
		
	
		
			
				
					|  |  |  |  |           <el-col :span="12" class="el-col"> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-form-item label="作业方式:" prop="operationType" class="query-form-item"> | 
			
		
	
		
			
				
					|  |  |  |  |               <el-select v-model="formData.operationType" style="width: 80%" placeholder="选择扫码方式" clearable> | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-option label="扫码生成业务单" :value="1"></el-option> | 
			
		
	
	
		
			
				
					|  |  |  | @ -280,7 +282,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  |           </el-col> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |           <el-col :span="24" class="el-col"> | 
			
		
	
		
			
				
					|  |  |  |  |           <el-col :span="12" class="el-col"> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-form-item label="结果处理:" prop="checkInsert" class="query-form-item"> | 
			
		
	
		
			
				
					|  |  |  |  |               <el-select v-model="formData.checkInsert" style="width: 80%" placeholder="选择扫码方式" clearable> | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-option label="不插入" :value="1"></el-option> | 
			
		
	
	
		
			
				
					|  |  |  | @ -289,7 +291,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  |             </el-form-item> | 
			
		
	
		
			
				
					|  |  |  |  |           </el-col> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |           <el-col :span="24" class="el-col"> | 
			
		
	
		
			
				
					|  |  |  |  |           <el-col :span="12" class="el-col"> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-form-item label="提醒方式:" prop="warnType" class="query-form-item"> | 
			
		
	
		
			
				
					|  |  |  |  |               <el-select v-model="formData.warnType" style="width: 80%" placeholder="选择扫码方式" clearable> | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-option label="信息提醒" :value="1"></el-option> | 
			
		
	
	
		
			
				
					|  |  |  | @ -298,7 +300,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  |             </el-form-item> | 
			
		
	
		
			
				
					|  |  |  |  |           </el-col> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |           <el-col :span="24" class="el-col"> | 
			
		
	
		
			
				
					|  |  |  |  |           <el-col :span="12" class="el-col"> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-form-item label="所属仓库:" prop="invCode" class="query-form-item"> | 
			
		
	
		
			
				
					|  |  |  |  |               <el-select v-model="formData.invCode" placeholder="请选择所属仓库" | 
			
		
	
		
			
				
					|  |  |  |  |                          style="width: 80%" | 
			
		
	
	
		
			
				
					|  |  |  | @ -316,7 +318,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  |               </el-select> | 
			
		
	
		
			
				
					|  |  |  |  |             </el-form-item> | 
			
		
	
		
			
				
					|  |  |  |  |           </el-col> | 
			
		
	
		
			
				
					|  |  |  |  |           <el-col :span="24" class="el-col"> | 
			
		
	
		
			
				
					|  |  |  |  |           <el-col :span="12" class="el-col"> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-form-item label="工位负责人:" prop="chargeUser" class="query-form-item"> | 
			
		
	
		
			
				
					|  |  |  |  |               <el-select v-model="formData.chargeUser" placeholder="请选择负责人" | 
			
		
	
		
			
				
					|  |  |  |  |                          style="width: 80%" | 
			
		
	
	
		
			
				
					|  |  |  | @ -337,7 +339,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  |               <!--></el-input>--> | 
			
		
	
		
			
				
					|  |  |  |  |             </el-form-item> | 
			
		
	
		
			
				
					|  |  |  |  |           </el-col> | 
			
		
	
		
			
				
					|  |  |  |  |           <el-col :span="24" class="el-col"> | 
			
		
	
		
			
				
					|  |  |  |  |           <el-col :span="12" class="el-col"> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-form-item label="单据类型:" prop="busType" class="query-form-item"> | 
			
		
	
		
			
				
					|  |  |  |  |               <el-select v-model="formData.orderId" placeholder="请选择单据类型" | 
			
		
	
		
			
				
					|  |  |  |  |                          style="width: 80%" | 
			
		
	
	
		
			
				
					|  |  |  | @ -373,7 +375,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  |           <!--</el-col>--> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |           <el-col :span="24" class="el-col"> | 
			
		
	
		
			
				
					|  |  |  |  |           <el-col :span="12" class="el-col"> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-form-item label="往来类型标题:" prop="remake" class="query-form-item"> | 
			
		
	
		
			
				
					|  |  |  |  |               <el-input | 
			
		
	
		
			
				
					|  |  |  |  |                 v-model="formData.unitTittle" style="width: 80%" | 
			
		
	
	
		
			
				
					|  |  |  | @ -381,17 +383,18 @@ | 
			
		
	
		
			
				
					|  |  |  |  |               ></el-input> | 
			
		
	
		
			
				
					|  |  |  |  |             </el-form-item> | 
			
		
	
		
			
				
					|  |  |  |  |           </el-col> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |           <el-col :span="24" class="el-col"> | 
			
		
	
		
			
				
					|  |  |  |  |         </el-row> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-row :gutter="24" class="el-row"> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-col :span="22" class="el-col"> | 
			
		
	
		
			
				
					|  |  |  |  |           <el-form-item label="备注:" prop="unitTittle" class="query-form-item"> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-input | 
			
		
	
		
			
				
					|  |  |  |  |                 v-model="formData.remake" style="width: 80%" | 
			
		
	
		
			
				
					|  |  |  |  |               v-model="formData.remake" style="width: 100%" | 
			
		
	
		
			
				
					|  |  |  |  |               auto-complete="off" | 
			
		
	
		
			
				
					|  |  |  |  |             ></el-input> | 
			
		
	
		
			
				
					|  |  |  |  |           </el-form-item> | 
			
		
	
		
			
				
					|  |  |  |  |         </el-col> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         </el-row> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |       </el-form> | 
			
		
	
		
			
				
					|  |  |  |  |       <div slot="footer" class="dialog-footer"> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-button @click.native="hideForm">取消</el-button> | 
			
		
	
	
		
			
				
					|  |  |  | @ -496,7 +499,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |         code: null | 
			
		
	
		
			
				
					|  |  |  |  |       }, | 
			
		
	
		
			
				
					|  |  |  |  |       showSearch: true, | 
			
		
	
		
			
				
					|  |  |  |  |       Dictionary: true, | 
			
		
	
		
			
				
					|  |  |  |  |       Dictionary: false, | 
			
		
	
		
			
				
					|  |  |  |  |       loading: false, | 
			
		
	
		
			
				
					|  |  |  |  |       list: [], | 
			
		
	
		
			
				
					|  |  |  |  |       treeList: [ | 
			
		
	
	
		
			
				
					|  |  |  | @ -555,12 +558,14 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |       }, | 
			
		
	
		
			
				
					|  |  |  |  |       userList: [], | 
			
		
	
		
			
				
					|  |  |  |  |       userLoading: false, | 
			
		
	
		
			
				
					|  |  |  |  |       rowData: null, | 
			
		
	
		
			
				
					|  |  |  |  |       rowData: { | 
			
		
	
		
			
				
					|  |  |  |  |         workplaceName: '工位' | 
			
		
	
		
			
				
					|  |  |  |  |       }, | 
			
		
	
		
			
				
					|  |  |  |  |       userQuery: { | 
			
		
	
		
			
				
					|  |  |  |  |         page: 1, | 
			
		
	
		
			
				
					|  |  |  |  |         limit: 10, | 
			
		
	
		
			
				
					|  |  |  |  |         userKey: null, | 
			
		
	
		
			
				
					|  |  |  |  |         workplaceId: null | 
			
		
	
		
			
				
					|  |  |  |  |         workplaceCode: null | 
			
		
	
		
			
				
					|  |  |  |  |       }, | 
			
		
	
		
			
				
					|  |  |  |  |       formName: 'add', | 
			
		
	
		
			
				
					|  |  |  |  |       formMap: { | 
			
		
	
	
		
			
				
					|  |  |  | @ -718,7 +723,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |       this.invQuery.invCode = invCode | 
			
		
	
		
			
				
					|  |  |  |  |       getUsers(this.invQuery).then(res => { | 
			
		
	
		
			
				
					|  |  |  |  |         if (res.code == 20000) { | 
			
		
	
		
			
				
					|  |  |  |  |           this.users = res.data || [] | 
			
		
	
		
			
				
					|  |  |  |  |           this.users = res.data.list || [] | 
			
		
	
		
			
				
					|  |  |  |  |         } else { | 
			
		
	
		
			
				
					|  |  |  |  |           this.$message.error('错误') | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
	
		
			
				
					|  |  |  | @ -777,11 +782,11 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |     handCurrentChange(row) { | 
			
		
	
		
			
				
					|  |  |  |  |       this.rowData = row | 
			
		
	
		
			
				
					|  |  |  |  |       this.userQuery.workplaceId = row.workplaceId | 
			
		
	
		
			
				
					|  |  |  |  |       this.userQuery.workplaceCode = row.workplaceId | 
			
		
	
		
			
				
					|  |  |  |  |       this.getUserBindWork(this.userQuery) | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |     loadUserList() { | 
			
		
	
		
			
				
					|  |  |  |  |       this.userQuery.workplaceId = this.rowData.workplaceId | 
			
		
	
		
			
				
					|  |  |  |  |       this.userQuery.workplaceCode = this.rowData.workplaceId | 
			
		
	
		
			
				
					|  |  |  |  |       this.getUserBindWork(this.userQuery) | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |     onUserReset() { | 
			
		
	
	
		
			
				
					|  |  |  | @ -789,7 +794,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |         page: 1, | 
			
		
	
		
			
				
					|  |  |  |  |         limit: 10, | 
			
		
	
		
			
				
					|  |  |  |  |         userKey: null, | 
			
		
	
		
			
				
					|  |  |  |  |         workplaceId: this.rowData.workplaceId | 
			
		
	
		
			
				
					|  |  |  |  |         workplaceCode: this.rowData.workplaceId | 
			
		
	
		
			
				
					|  |  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |  |       this.getUserBindWork(this.userQuery) | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
	
		
			
				
					|  |  |  | @ -814,7 +819,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         delUserBindWork(query).then(res => { | 
			
		
	
		
			
				
					|  |  |  |  |           if (res.code == 20000) { | 
			
		
	
		
			
				
					|  |  |  |  |             this.userQuery.workplaceId = this.rowData.workplaceId | 
			
		
	
		
			
				
					|  |  |  |  |             this.userQuery.workplaceCode = this.rowData.workplaceId | 
			
		
	
		
			
				
					|  |  |  |  |             this.getUserBindWork(this.userQuery) | 
			
		
	
		
			
				
					|  |  |  |  |             this.$message.success('移除成功') | 
			
		
	
		
			
				
					|  |  |  |  |           } else { | 
			
		
	
	
		
			
				
					|  |  |  | 
 |