| | |
| | | <a-form-model-item label="车间分配" :labelCol="labelCol" :wrapperCol="wrapperCol" v-show="!productionDisabled"> |
| | | <j-select-production v-model="model.selectedProduction" :multi="true" @back="backProductionInfo" :backProduction="true" :treeProductOpera="true"></j-select-production> |
| | | </a-form-model-item> |
| | | <a-form-model-item label="班组分配" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="teamId"> |
| | | <j-dict-select-tag |
| | | v-model="model.teamId" |
| | | :triggerChange="true" |
| | | dictCode="mom_base_team,name,id,del_flag = 0" |
| | | placeholder="请维护班组" |
| | | ></j-dict-select-tag> |
| | | </a-form-model-item> |
| | | |
| | | <a-form-model-item label="负责部门" :labelCol="labelCol" :wrapperCol="wrapperCol" v-if="departIdShow==true"> |
| | | <j-multi-select-tag |
| | |
| | | roles:{}, |
| | | workNo:[ { required: true, message: '请输入工号' }, |
| | | { validator: this.validateWorkNo }], |
| | | telephone: [{ pattern: /^0\d{2,3}-[1-9]\d{6,7}$/, message: '请输入正确的座机号码' },] |
| | | telephone: [{ pattern: /^0\d{2,3}-[1-9]\d{6,7}$/, message: '请输入正确的座机号码' },], |
| | | teamId:[ { required: true, message: '请维护班组' }] |
| | | |
| | | }, |
| | | departIdShow:false, |
| | | title:"操作", |
| | |
| | | //根据屏幕宽度自适应抽屉宽度 |
| | | this.resetScreenSize(); |
| | | that.userId = record.id; |
| | | |
| | | that.model = Object.assign({},{selectedroles:'',selecteddeparts:''}, record); |
| | | that.model = Object.assign({},{selectedroles:'',selectedProduction:''}, record); |
| | | |
| | | //身份为上级显示负责部门,否则不显示 |
| | | if(this.model.userIdentity==2){ |
| | | this.departIdShow=true; |
| | |
| | | that.getUserRoles(record.id); |
| | | that.getUserDeparts(record.id); |
| | | } |
| | | console.log('that.model=',that.model) |
| | | console.log('that.model',that.model) |
| | | }, |
| | | isDisabledAuth(code){ |
| | | return disabledAuthFilter(code); |
| | |
| | | return c; |
| | | }) |
| | | }, |
| | | |
| | | |
| | | |
| | | refresh () { |
| | | this.userId="" |