Commit 0cc06d22 authored by zhengke's avatar zhengke

1

parent 1462068e
...@@ -125,6 +125,15 @@ ...@@ -125,6 +125,15 @@
ref="EnterpriseName" class="col-6 q-pr-lg q-pb-lg" /> ref="EnterpriseName" class="col-6 q-pr-lg q-pb-lg" />
<q-select stack-label color="primary" v-else filled label="客户" option-value="CategoryId" option-label="CategoryName" <q-select stack-label color="primary" v-else filled label="客户" option-value="CategoryId" option-label="CategoryName"
:options="customList" class="col-6 q-pr-lg q-pb-lg" v-model="objOption.CategoryId" emit-value map-options /> :options="customList" class="col-6 q-pr-lg q-pb-lg" v-model="objOption.CategoryId" emit-value map-options />
<template v-if="objOption.CustomerType!=4">
<div class="col-6" v-if="!isShowEdit">
<q-btn label="立即添加" @click="isShowEdit=true" size="sm" color="primary" />
</div>
<div class="col-6" v-if="isShowEdit">
<q-input filled stack-label maxlength="20" :dense="false" v-model="objOption.CategoryName" lazy-rules
ref="CategoryName" class="col-6 q-pb-lg" label="名称" />
</div>
</template>
</div> </div>
<div class="row wrap"> <div class="row wrap">
<div class="col-6"> <div class="col-6">
...@@ -237,7 +246,8 @@ ...@@ -237,7 +246,8 @@
WeChatPhoto: '', WeChatPhoto: '',
CustomerType: 1, //同业类型 1企业 2学校 CustomerType: 1, //同业类型 1企业 2学校
EnterpriseName: "", //企业名称 EnterpriseName: "", //企业名称
CategoryId:'' CategoryId:'',
CategoryName:''
}, },
EnterpriseLabelName: "企业名称", EnterpriseLabelName: "企业名称",
saveCustomLoading: false, saveCustomLoading: false,
...@@ -247,7 +257,8 @@ ...@@ -247,7 +257,8 @@
CustomerBrandList: [], //所属品牌下拉 CustomerBrandList: [], //所属品牌下拉
optionTitle: '', optionTitle: '',
typeOptions: [], typeOptions: [],
customList:[] customList:[],
isShowEdit: false
} }
}, },
created() {}, created() {},
...@@ -373,6 +384,7 @@ ...@@ -373,6 +384,7 @@
CatetoryType:Type CatetoryType:Type
} }
this.objOption.CategoryId = ''; this.objOption.CategoryId = '';
this.isShowEdit=false;
queryCustomerCategoryList(msg).then(res => { queryCustomerCategoryList(msg).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
this.customList = res.Data; this.customList = res.Data;
......
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