|
|
@@ -33,10 +33,16 @@
|
|
|
</FormItem>
|
|
|
</Col>
|
|
|
<Col span="24">
|
|
|
+ <FormItem label="浮动比例:" label-for="floating_ratio" prop="floating_ratio">
|
|
|
+ <Input v-model="formItem.floating_ratio" placeholder="请输入浮动比例" />
|
|
|
+ </FormItem>
|
|
|
+ </Col>
|
|
|
+ <Col span="24">
|
|
|
<FormItem label="绑定用户:" label-for="mobile" prop="mobile">
|
|
|
<Button v-if="checkUser.nickname || checkUser.phone" style="margin-right: 20rpx;">昵称:{{checkUser.nickname || '暂无'}} 手机号:{{checkUser.phone || '暂无'}}</Button>
|
|
|
- <Button type="primary" @click="chooseUser" >选择员工</Button>
|
|
|
+ <Button type="primary" @click="chooseUser" >选择用户</Button>
|
|
|
</FormItem>
|
|
|
+
|
|
|
</Col>
|
|
|
<Col span="24" class="mt20">
|
|
|
<FormItem label="性别:">
|
|
|
@@ -149,7 +155,8 @@
|
|
|
address: '',
|
|
|
main_department: '',
|
|
|
direct_leader: 'ZhouFengYu',
|
|
|
- position: ''
|
|
|
+ position: '',
|
|
|
+ floating_ratio: ''
|
|
|
},
|
|
|
spinShow: false,
|
|
|
addresData: [],
|
|
|
@@ -164,7 +171,11 @@
|
|
|
message: '请输入地址地址',
|
|
|
trigger: 'blur'
|
|
|
}],
|
|
|
-
|
|
|
+ floating_ratio: [{
|
|
|
+ required: true,
|
|
|
+ message: '请输入浮动比例',
|
|
|
+ trigger: 'blur'
|
|
|
+ }],
|
|
|
mobile: [{
|
|
|
required: true,
|
|
|
validator: validatePhone,
|
|
|
@@ -220,7 +231,8 @@
|
|
|
address: '',
|
|
|
main_department: '',
|
|
|
direct_leader: 'ZhouFengYu',
|
|
|
- position: ''
|
|
|
+ position: '',
|
|
|
+ floating_ratio: ''
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
@@ -264,7 +276,8 @@
|
|
|
alias: '',
|
|
|
address: '',
|
|
|
main_department: '',
|
|
|
- direct_leader: 'ZhouFengYu'
|
|
|
+ direct_leader: 'ZhouFengYu',
|
|
|
+ floating_ratio: ''
|
|
|
}
|
|
|
this.add = 0;
|
|
|
this.isApi = 0;
|
|
|
@@ -289,6 +302,7 @@
|
|
|
if (valid) {
|
|
|
if (this.formItem.id) {
|
|
|
editYg({
|
|
|
+ floating_ratio: this.formItem.floating_ratio,
|
|
|
id: this.formItem.id,
|
|
|
name: this.formItem.name,
|
|
|
avatar: this.formItem.avatar,
|