|
|
@@ -8,7 +8,7 @@
|
|
|
<el-col :span="24">
|
|
|
<el-form-item label="经销商:" prop="enterprisename">
|
|
|
<selectAgent ref="agent" @selectRow="agentChange">
|
|
|
- <el-input readonly type="text" slot="input" size="small" @focus="$refs.agent.visible=true" v-model="form.enterprisename"></el-input>
|
|
|
+<!-- <el-input readonly type="text" slot="input" size="small" @focus="$refs.agent.visible=true" v-model="form.enterprisename"></el-input>-->
|
|
|
</selectAgent>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -72,7 +72,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import selectAgent from '@/template/selectAgent/index'
|
|
|
+import selectAgent from '@/template/selectAgent/index1'
|
|
|
import selectOrder from './selectOrder'
|
|
|
export default {
|
|
|
name: "add",
|
|
|
@@ -114,12 +114,12 @@ export default {
|
|
|
dialogFormVisible (val) {
|
|
|
if (!val) {
|
|
|
this.$refs['form'].resetFields()
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
created () {
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
methods:{
|
|
|
editBtn () {
|
|
|
@@ -128,6 +128,7 @@ export default {
|
|
|
this.form = Object.assign({},this.form,this.data)
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs.order.param.content.sys_enterpriseid = this.form.sys_enterpriseid
|
|
|
+ this.$refs.agent.param.content.where.condition = this.form.enterprisename
|
|
|
})
|
|
|
|
|
|
},
|
|
|
@@ -182,4 +183,4 @@ export default {
|
|
|
.el-input {
|
|
|
width: 100% !important;
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|