|
|
|
@ -12,7 +12,7 @@ |
|
|
|
|
<a-spin :spinning="confirmLoading"> |
|
|
|
|
<a-form-model ref="form" :model="model" :rules="validatorRules"> |
|
|
|
|
|
|
|
|
|
<a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="departId" label="部门编号"> |
|
|
|
|
<a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="departId" label="部门"> |
|
|
|
|
<!-- <a-input placeholder="请输入部门编号" v-model="model.departId"/>--> |
|
|
|
|
<j-select-depart placeholder="请选择部门" v-model="model.departId"/> |
|
|
|
|
</a-form-model-item> |
|
|
|
@ -20,10 +20,12 @@ |
|
|
|
|
<a-input placeholder="请输入班组名称" v-model="model.groupName"/> |
|
|
|
|
</a-form-model-item> |
|
|
|
|
<a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="enterprisesManager" label="负责人"> |
|
|
|
|
<a-input placeholder="请输入负责人" v-model="model.enterprisesManager"/> |
|
|
|
|
<!-- <a-input placeholder="请输入负责人" v-model="model.enterprisesManager"/>--> |
|
|
|
|
<j-select-multi-user placeholder="请选择负责人" v-model="model.enterprisesManager" @change="getMobile()"/> |
|
|
|
|
</a-form-model-item> |
|
|
|
|
<a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="mobile" label="手机号"> |
|
|
|
|
<a-input placeholder="请输入手机号" v-model="model.mobile"/> |
|
|
|
|
<a-input placeholder="请输入手机号" v-model="model.mobile" :dictCode="mobileVal"/> |
|
|
|
|
<!-- <j-dict-select-tag type="list" v-model="model.mobile" :dictCode="mobileVal"></j-dict-select-tag>--> |
|
|
|
|
</a-form-model-item> |
|
|
|
|
|
|
|
|
|
</a-form-model> |
|
|
|
@ -46,6 +48,7 @@ export default { |
|
|
|
|
return { |
|
|
|
|
title: "操作", |
|
|
|
|
visible: false, |
|
|
|
|
mobileVal: "", |
|
|
|
|
model: {}, |
|
|
|
|
labelCol: { |
|
|
|
|
xs: {span: 24}, |
|
|
|
@ -59,13 +62,13 @@ export default { |
|
|
|
|
confirmLoading: false, |
|
|
|
|
validatorRules: { |
|
|
|
|
departId: [ |
|
|
|
|
{required: true}, |
|
|
|
|
{required: true, message: "部门名称不能为空"}, |
|
|
|
|
], |
|
|
|
|
groupName: [ |
|
|
|
|
{required: true}, |
|
|
|
|
{required: true, message: "班组名称不能为空"}, |
|
|
|
|
], |
|
|
|
|
enterprisesManager: [ |
|
|
|
|
{required: true}, |
|
|
|
|
{required: true, message: "负责人不能为空"}, |
|
|
|
|
], |
|
|
|
|
mobile: [ |
|
|
|
|
{required: false}, |
|
|
|
@ -82,6 +85,10 @@ export default { |
|
|
|
|
created() { |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
getMobile() { |
|
|
|
|
alert(this.model.enterprisesManager); |
|
|
|
|
this.mobileVal = "sys_user,phone,username,username='" + this.model.enterprisesManager + "'"; |
|
|
|
|
}, |
|
|
|
|
add() { |
|
|
|
|
//初始化默认值 |
|
|
|
|
this.edit({}); |
|
|
|
|