|
@@ -586,13 +586,25 @@
|
|
|
<a-form ref="form" :model="model" >
|
|
<a-form ref="form" :model="model" >
|
|
|
<!-- 这个的v-for是核心是重点,一定要明白! -->
|
|
<!-- 这个的v-for是核心是重点,一定要明白! -->
|
|
|
<div v-for="(item,index) in array" :key="index" >
|
|
<div v-for="(item,index) in array" :key="index" >
|
|
|
|
|
+ <a-row>
|
|
|
|
|
+ <a-col :span="10">
|
|
|
|
|
+ <a-form-model-item label=" 新办号码" prop="industry" :labelCol="{ span: 3 }" :wrapperCol="{ span: 10}" >
|
|
|
|
|
+ <span class="cornflowerblue">{{ form.value[index]}}</span>
|
|
|
|
|
+ <!-- <a-input style="width:20%;margin-right:10px" v-model="form.value[index]" placeholder="请输入新办号码" :disabled="isDisabled"></a-input>-->
|
|
|
|
|
+ <!-- <a-button type="link" @click="add">[ + ]</a-button>-->
|
|
|
|
|
+ <!-- <a-button type="link" @click="del(index)">[ - ]</a-button>-->
|
|
|
|
|
+ </a-form-model-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ <a-col :span="10">
|
|
|
|
|
+ <a-form-model-item label=" 用户编号" prop="industry" :labelCol="{ span: 3 }" :wrapperCol="{ span: 18 }" >
|
|
|
|
|
+ <span class="cornflowerblue">{{ form.phoneUserId[index]}}</span>
|
|
|
|
|
+ </a-form-model-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ </a-row>
|
|
|
|
|
|
|
|
- <a-form-model-item label=" 新办号码" prop="industry" :labelCol="{ span: 3 }" :wrapperCol="{ span: 18 }" >
|
|
|
|
|
- <span class="cornflowerblue">{{ form.value[index]}}</span>
|
|
|
|
|
-<!-- <a-input style="width:20%;margin-right:10px" v-model="form.value[index]" placeholder="请输入新办号码" :disabled="isDisabled"></a-input>-->
|
|
|
|
|
-<!-- <a-button type="link" @click="add">[ + ]</a-button>-->
|
|
|
|
|
-<!-- <a-button type="link" @click="del(index)">[ - ]</a-button>-->
|
|
|
|
|
- </a-form-model-item>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
</a-form>
|
|
</a-form>
|
|
@@ -990,7 +1002,8 @@ export default {
|
|
|
return {
|
|
return {
|
|
|
array:[], //创建一个数组
|
|
array:[], //创建一个数组
|
|
|
form:{
|
|
form:{
|
|
|
- value:[] //接收每个input框的值
|
|
|
|
|
|
|
+ value:[], //接收每个input框的值
|
|
|
|
|
+ phoneUserId:[] //接收每个input框的值
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
riskShow:true,
|
|
riskShow:true,
|
|
@@ -1453,6 +1466,7 @@ export default {
|
|
|
positionInformation: '',
|
|
positionInformation: '',
|
|
|
businessAddress: '',
|
|
businessAddress: '',
|
|
|
newPhone: '',
|
|
newPhone: '',
|
|
|
|
|
+ phoneUserId:'',
|
|
|
newPhone2: '',
|
|
newPhone2: '',
|
|
|
newPhone3: '',
|
|
newPhone3: '',
|
|
|
newPhone4: '',
|
|
newPhone4: '',
|
|
@@ -2368,6 +2382,7 @@ export default {
|
|
|
"id": this.model.id
|
|
"id": this.model.id
|
|
|
}
|
|
}
|
|
|
var newPhones;
|
|
var newPhones;
|
|
|
|
|
+ var phoneUserIds;
|
|
|
//this.getSysCompany();
|
|
//this.getSysCompany();
|
|
|
getAction(that.url.queryByCardNo, data).then((res) => {
|
|
getAction(that.url.queryByCardNo, data).then((res) => {
|
|
|
if (res.success) {
|
|
if (res.success) {
|
|
@@ -2385,6 +2400,11 @@ export default {
|
|
|
newPhones = result[0][key].split(',');
|
|
newPhones = result[0][key].split(',');
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ if (key === 'phoneUserId'){
|
|
|
|
|
+ if ( result[0][key]!==null && result[0][key]!==''){
|
|
|
|
|
+ phoneUserIds = result[0][key].split(',');
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
if (key==='industry'){
|
|
if (key==='industry'){
|
|
|
|
|
|
|
|
var a=0;
|
|
var a=0;
|
|
@@ -2405,6 +2425,10 @@ export default {
|
|
|
this.form.value.push(item)
|
|
this.form.value.push(item)
|
|
|
this.array.push(1)
|
|
this.array.push(1)
|
|
|
}
|
|
}
|
|
|
|
|
+ for (var userId of phoneUserIds){
|
|
|
|
|
+ this.form.phoneUserId.push(userId)
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
for (var item of this.sysCompany) {
|
|
for (var item of this.sysCompany) {
|
|
|
if (item.id === this.model.company) {
|
|
if (item.id === this.model.company) {
|
|
|
this.companyName = item.name;
|
|
this.companyName = item.name;
|
|
@@ -3164,8 +3188,6 @@ export default {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
let data = {
|
|
let data = {
|
|
|
"sysBusinessHall": this.model.sysBusinessHall,
|
|
"sysBusinessHall": this.model.sysBusinessHall,
|
|
|
"company": this.model.company,
|
|
"company": this.model.company,
|