Commit 53d13e19 authored by zhengke's avatar zhengke

1

parent 4d881832
......@@ -98,7 +98,7 @@
<div class="row wrap">
<div class="col-12">
<q-input filled stack-label maxlength="20" :dense="false" v-model="objOption.linkMan" ref="linkMan"
class="col-12 q-pb-lg" label="联系人" />
class="col-12 q-pb-lg" label="联系人" :rules="[val => !!val || '请填写联系人']" />
</div>
</div>
<div class="row wrap">
......@@ -185,7 +185,6 @@
saveCourse() {
this.$refs.CategoryName.validate();
this.$refs.CatetoryType.validate();
if (!this.$refs.CategoryName.hasError&&!this.$refs.CatetoryType.hasError) {
this.saveCustomLoading = true;
saveCustomerCategory(this.objOption).then(res => {
......
......@@ -11,14 +11,15 @@
</div>
</div>
<q-select outlined dense stack-label label="类型" option-value="Id" option-label="Name"
:rules="[val => !!val || '请选择类型']" :options="options" v-model="Data.CustomerType" emit-value map-options />
:rules="[val => !!val || '请选择类型']" :options="options" v-model="Data.CatetoryType" emit-value map-options />
</div>
<div class="flex justify-between items-center q-my-lg" v-else @click="showEdit('CustomerType')">
<span>类型</span>
<span v-if="Data.CustomerType==1">企业</span>
<span v-if="Data.CustomerType==2">学校</span>
<span v-if="Data.CustomerType==3">个人</span>
<span v-if="Data.CustomerType==4">其他</span>
<!-- <span>{{Data.CatetoryTypeName}}</span> -->
<span v-if="Data.CatetoryType==1">企业</span>
<span v-if="Data.CatetoryType==2">学校</span>
<span v-if="Data.CatetoryType==3">个人</span>
<span v-if="Data.CatetoryType==4">其他</span>
</div>
<!-- 名称 -->
<div class="q-my-sm" v-if="editField=='CategoryName'">
......
......@@ -6,12 +6,14 @@
align="left"
style="width:400px;"
>
<q-tab :name="0" label="联系人" />
<q-tab :name="1" label="客户" />
<q-tab :name="2" label="订单" />
<q-tab :name="3" label="返佣" />
<q-tab :name="4" label="幸福存折" />
</q-tabs>
<div class="q-mb-lg">
<contract :Id="Id" v-if="tabs === 0"></contract>
<customer :Id="Id" v-if="tabs === 1"></customer>
<order :Id="Id" v-if="tabs === 2"></order>
<rakeback :Id="Id" v-if="tabs === 3"></rakeback>
......@@ -24,8 +26,9 @@ import customer from "./customer";
import order from "./order";
import passbook from "./passbook";
import rakeback from "./rakeback";
import contract from "./contractPerson";
export default {
components: { customer, order, rakeback, passbook },
components: { customer, order, rakeback, passbook, contract},
props: {
Id: {
type: Number,
......@@ -34,7 +37,7 @@ export default {
},
data() {
return {
tabs: 1,
tabs: 0
};
},
mounted() {
......
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