|
|
@@ -130,13 +130,6 @@
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
|
|
|
- <el-form-item label="Auto Place"><!--自动安置区位-->
|
|
|
- <el-radio-group v-model="form.autoPlace" @change="setAutoPlace">
|
|
|
- <el-radio-button label="left">Left</el-radio-button>
|
|
|
- <el-radio-button label="right">Right</el-radio-button>
|
|
|
- </el-radio-group>
|
|
|
- </el-form-item>
|
|
|
-
|
|
|
<el-form-item label="Placement code"><!--接点人编号-->
|
|
|
<el-input v-model="form.conUserName" @change="handleChkConUser">
|
|
|
<template slot="append">【{{conRealName}}】</template>
|
|
|
@@ -145,11 +138,16 @@
|
|
|
|
|
|
<el-form-item label="Placement tree"><!--安置区位-->
|
|
|
<el-radio-group v-model="form.location">
|
|
|
- <el-radio-button :label="1">Left</el-radio-button><!--左区-->
|
|
|
- <el-radio-button :label="2">Right</el-radio-button><!--中区-->
|
|
|
- <!-- <el-radio-button :label="3">Right</el-radio-button> --><!--右区-->
|
|
|
+ <el-radio :label="1" >Left</el-radio><!--左区-->
|
|
|
+ <el-radio :label="2" >Right</el-radio><!--右区-->
|
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
|
+
|
|
|
+ <el-form-item label=""><!--自动安置区位-->
|
|
|
+ <el-button type="primary" @click="setAutoPlace('left')">Placement Auto Location: L</el-button>
|
|
|
+ <el-button type="primary" @click="setAutoPlace('right')">Placement Auto Location: R</el-button>
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
<div class="hr-tip"><span>Personal Information<!--个人信息--></span></div>
|
|
|
<el-form-item>
|
|
|
<template slot="label">
|
|
|
@@ -389,7 +387,8 @@ export default {
|
|
|
lgaName: '',
|
|
|
way: 'express',
|
|
|
payType: '',
|
|
|
- autoPlace: ''
|
|
|
+ autoPlace: '',
|
|
|
+ location: ''
|
|
|
},
|
|
|
conRealName: '-',
|
|
|
recRealName: '-',
|
|
|
@@ -527,18 +526,22 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
setAutoPlace (val) {
|
|
|
- this.loading = true
|
|
|
if (this.recRealName !== '-') {
|
|
|
+ this.loading = true
|
|
|
network.getData('user/get-auto-place', {userName: this.form.recUserName, side: val}).then(response => {
|
|
|
// console.log(response)
|
|
|
this.form.conUserName = response.USER_NAME
|
|
|
this.handleChkConUser()
|
|
|
- // this.form.location = 1
|
|
|
+ this.form.location = 1
|
|
|
+ this.form.autoPlace = val
|
|
|
this.loading = false
|
|
|
}).catch(response => {
|
|
|
// this.recRealName = '-'
|
|
|
this.loading = false
|
|
|
})
|
|
|
+ } else {
|
|
|
+ this.form.autoPlace = ''
|
|
|
+ return false
|
|
|
}
|
|
|
// console.log(val)
|
|
|
},
|