|
|
@@ -20,7 +20,7 @@
|
|
|
v-model="agentVisible"
|
|
|
width="400">
|
|
|
<selectAgent ref="member" :param="agentListPrams" :radio="true" @onSelect="agentChange" @onCancel="agentVisible = false"></selectAgent>
|
|
|
- <el-input readonly type="text" slot="reference" size="small" @focus="agentVisible=true;salerVisible = false;projectVisible=false" v-model="form.enterprisename"></el-input>
|
|
|
+ <el-input readonly type="text" slot="reference" size="small" @focus="showChange('agentVisible')" v-model="form.enterprisename"></el-input>
|
|
|
</el-popover>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -78,7 +78,7 @@
|
|
|
v-model="agentVisible"
|
|
|
width="400">
|
|
|
<selectAgent ref="member" :param="agentListPrams" :radio="true" @onSelect="agentChange" @onCancel="agentVisible = false"></selectAgent>
|
|
|
- <el-input readonly type="text" slot="reference" size="small" @focus="agentVisible=true;salerVisible = false;projectVisible=false" v-model="form.enterprisename"></el-input>
|
|
|
+ <el-input readonly type="text" slot="reference" size="small" @focus="showChange('agentVisible')"></el-input>
|
|
|
</el-popover>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -90,7 +90,7 @@
|
|
|
v-model="projectVisible"
|
|
|
width="600">
|
|
|
<seleteProject type="2" @onSelect="projectChange" @onCanel="projectVisible=false"></seleteProject>
|
|
|
- <el-input readonly type="text" slot="reference" size="small" @focus="projectVisible=true;salerVisible = false;agentVisible=false" v-model="form.projectname"></el-input>
|
|
|
+ <el-input readonly type="text" slot="reference" size="small" @focus="showChange('projectVisible')" v-model="form.projectname"></el-input>
|
|
|
</el-popover>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -148,7 +148,7 @@
|
|
|
v-model="accountVisible"
|
|
|
width="400">
|
|
|
<selectAgent ref="member" :param="agentListPrams" :radio="true" @onSelect="accountChange" @onCancel="accountVisible = false"></selectAgent>
|
|
|
- <el-input readonly type="text" slot="reference" size="small" @focus="accountVisible=true;agentVisible=false;salerVisible = false;projectVisible=false" v-model="form.enterprisename"></el-input>
|
|
|
+ <el-input readonly type="text" slot="reference" size="small" @focus="showChange('accountVisible')" v-model="form.enterprisename"></el-input>
|
|
|
</el-popover>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -160,7 +160,7 @@
|
|
|
v-model="projectVisible"
|
|
|
width="600">
|
|
|
<seleteProject type="1" @onSelect="projectChange" @onCanel="projectVisible=false"></seleteProject>
|
|
|
- <el-input readonly type="text" slot="reference" size="small" @focus="projectVisible=true;salerVisible = false;agentVisible=false;accountVisible=false" v-model="form.projectname"></el-input>
|
|
|
+ <el-input readonly type="text" slot="reference" size="small" @focus="showChange('projectVisible')" v-model="form.projectname"></el-input>
|
|
|
</el-popover>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -218,7 +218,7 @@
|
|
|
v-model="accountVisible"
|
|
|
width="400">
|
|
|
<selectAgent ref="member" :param="agentListPrams" :radio="true" @onSelect="accountChange" @onCancel="accountVisible = false"></selectAgent>
|
|
|
- <el-input readonly type="text" slot="reference" size="small" @focus="accountVisible=true;salerVisible = false" v-model="form.enterprisename"></el-input>
|
|
|
+ <el-input readonly type="text" slot="reference" size="small" @focus="showChange('accountVisible')" v-model="form.enterprisename"></el-input>
|
|
|
</el-popover>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -276,7 +276,7 @@
|
|
|
v-model="accountVisible"
|
|
|
width="400">
|
|
|
<selectAgent ref="member" :param="agentListPrams" :radio="true" @onSelect="accountChange" @onCancel="agentVisible = false"></selectAgent>
|
|
|
- <el-input readonly type="text" slot="reference" size="small" @focus="agentVisible=true;salerVisible = false;projectVisible=false;accountVisible=true" v-model="form.enterprisename"></el-input>
|
|
|
+ <el-input readonly type="text" slot="reference" size="small" @focus="showChange('accountVisible')" v-model="form.enterprisename"></el-input>
|
|
|
</el-popover>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -288,7 +288,7 @@
|
|
|
v-model="concratVisible"
|
|
|
width="600">
|
|
|
<seleteProjectContract ref="project" @onSelect="concratChange" @onCanel="concratVisible=false"></seleteProjectContract>
|
|
|
- <el-input readonly type="text" slot="reference" size="small" @focus="concratVisible=true,projectVisible=false;salerVisible = false;agentVisible=false;accountVisible=false" v-model="form.ascription_title"></el-input>
|
|
|
+ <el-input readonly type="text" slot="reference" size="small" @focus="showChange('concratVisible')" v-model="form.ascription_title"></el-input>
|
|
|
</el-popover>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -300,7 +300,7 @@
|
|
|
v-model="projectVisible"
|
|
|
width="600">
|
|
|
<seleteProject type="3" @onSelect="projectChange" @onCanel="projectVisible=false"></seleteProject>
|
|
|
- <el-input readonly type="text" slot="reference" size="small" @focus="projectVisible=true;salerVisible = false;agentVisible=false;accountVisible=false" v-model="form.projectname"></el-input>
|
|
|
+ <el-input readonly type="text" slot="reference" size="small" @focus="showChange('projectVisible')" v-model="form.projectname"></el-input>
|
|
|
</el-popover>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -514,6 +514,11 @@ export default {
|
|
|
computed: {
|
|
|
},
|
|
|
watch: {
|
|
|
+ drawer (val) {
|
|
|
+ if(!val) {
|
|
|
+ this.showChange(false)
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
created () {
|
|
|
},
|
|
|
@@ -556,6 +561,15 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ showChange (key) {
|
|
|
+ this.agentVisible = false
|
|
|
+ this.salerVisible = false
|
|
|
+ this.projectVisible = false
|
|
|
+ this.accountVisible = false
|
|
|
+ this.modelVisible = false
|
|
|
+ this.concratVisible = false
|
|
|
+ key ? this[key] = true : ''
|
|
|
+ },
|
|
|
onCancel () {
|
|
|
this.drawer = false
|
|
|
this.$refs.form.resetFlieds()
|