Commit f5b46909 authored by zhengke's avatar zhengke

修改

parent 62115fe6
...@@ -144,7 +144,7 @@ ...@@ -144,7 +144,7 @@
<div class="col-6" v-if="isShowEdit" style="position:relative"> <div class="col-6" v-if="isShowEdit" style="position:relative">
<q-input filled stack-label maxlength="20" :dense="false" v-model="objOption.CategoryName" lazy-rules <q-input filled stack-label maxlength="20" :dense="false" v-model="objOption.CategoryName" lazy-rules
ref="CategoryName" class="col-6 q-pb-lg" label="名称" /> ref="CategoryName" class="col-6 q-pb-lg" label="名称" />
<div class="custom_Close" @click="isShowEdit=false"> <div class="custom_Close" @click="closeCageName()">
<i style="position" class="iconfont icon-guanbi1"></i> <i style="position" class="iconfont icon-guanbi1"></i>
</div> </div>
</div> </div>
...@@ -283,6 +283,10 @@ ...@@ -283,6 +283,10 @@
this.getCustomList(1); this.getCustomList(1);
}, },
methods: { methods: {
closeCageName(){
this.isShowEdit=false;
this.objOption.CategoryName='';
},
//初始化表单 //初始化表单
initObj() { initObj() {
if (this.customerObj && this.customerObj.CustomerId > 0) { if (this.customerObj && this.customerObj.CustomerId > 0) {
...@@ -337,9 +341,8 @@ ...@@ -337,9 +341,8 @@
saveCourse() { saveCourse() {
this.$refs.CustomerName.validate(); this.$refs.CustomerName.validate();
// this.$refs.ContactNumber.validate(); // this.$refs.ContactNumber.validate();
this.$refs.Address.validate();
if(this.objOption.CustomerType!=4){ if(this.objOption.CustomerType!=4){
if (this.objOption.CategoryId=='' && this.objOption.CategoryName=='') { if (!this.objOption.CategoryId && this.objOption.CategoryName=='') {
this.$q.notify({ this.$q.notify({
type:'warning', type:'warning',
message: "请选择客户或立即添加", message: "请选择客户或立即添加",
...@@ -367,7 +370,7 @@ ...@@ -367,7 +370,7 @@
}); });
return return
} }
if (!this.$refs.CustomerName.hasError && !this.$refs.Address.hasError) { if (!this.$refs.CustomerName.hasError) {
this.saveCustomLoading = true; this.saveCustomLoading = true;
SetCustomer(this.objOption).then(res => { SetCustomer(this.objOption).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
......
...@@ -109,7 +109,7 @@ ...@@ -109,7 +109,7 @@
"QQ", "QQ",
"WeChatNo", "WeChatNo",
], ],
tabCheck: 2, tabCheck: 1,
//审核状态列表 //审核状态列表
ApproveStateList: [ ApproveStateList: [
{ {
......
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