Commit 4a7027b0 authored by 邓春圆's avatar 邓春圆

业务员,部门提交时提交id 和名称都要提交

parent 34bce830
...@@ -55,6 +55,7 @@ ...@@ -55,6 +55,7 @@
:key="item.id" :key="item.id"
:label="item.name" :label="item.name"
:value="item.id" :value="item.id"
@click.native="selectFn('departmentName', item.name)"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -68,12 +69,13 @@ ...@@ -68,12 +69,13 @@
:rules="{required:true,message:$t('业务员不能为空')}" :rules="{required:true,message:$t('业务员不能为空')}"
:error="$t('业务员不能为空')" :error="$t('业务员不能为空')"
> >
<el-select filterable v-model="form.salesmanName" :placeholder="$t('请选择业务员')"> <el-select filterable v-model="form.salesmanId" :placeholder="$t('请选择业务员')">
<el-option <el-option
@click.native="selectFn('salesmanName', item.nickname)"
v-for="item in creatorData" v-for="item in creatorData"
:key="item.id" :key="item.id"
:label="item.nickname" :label="item.nickname"
:value="item.nickname" :value="item.id"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -595,6 +597,10 @@ export default { ...@@ -595,6 +597,10 @@ export default {
}, },
}, },
methods: { methods: {
selectFn(keyVal, name){
this.form[keyVal] = name;
console.log(this.form,'form:')
},
getCurrencyLabel(id) { getCurrencyLabel(id) {
var label = this.currencyList.filter(item => item.id == id) var label = this.currencyList.filter(item => item.id == id)
if (label.length > 0) return this.$i18n.locale == 'zh_CN' ? label[0].titleZh : label[0].titleEn if (label.length > 0) return this.$i18n.locale == 'zh_CN' ? label[0].titleZh : label[0].titleEn
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment