Commit f5b46909 authored by zhengke's avatar zhengke

修改

parent 62115fe6
......@@ -144,7 +144,7 @@
<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
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>
</div>
</div>
......@@ -283,6 +283,10 @@
this.getCustomList(1);
},
methods: {
closeCageName(){
this.isShowEdit=false;
this.objOption.CategoryName='';
},
//初始化表单
initObj() {
if (this.customerObj && this.customerObj.CustomerId > 0) {
......@@ -337,9 +341,8 @@
saveCourse() {
this.$refs.CustomerName.validate();
// this.$refs.ContactNumber.validate();
this.$refs.Address.validate();
if(this.objOption.CustomerType!=4){
if (this.objOption.CategoryId=='' && this.objOption.CategoryName=='') {
if (!this.objOption.CategoryId && this.objOption.CategoryName=='') {
this.$q.notify({
type:'warning',
message: "请选择客户或立即添加",
......@@ -367,7 +370,7 @@
});
return
}
if (!this.$refs.CustomerName.hasError && !this.$refs.Address.hasError) {
if (!this.$refs.CustomerName.hasError) {
this.saveCustomLoading = true;
SetCustomer(this.objOption).then(res => {
if (res.Code == 1) {
......
......@@ -109,7 +109,7 @@
"QQ",
"WeChatNo",
],
tabCheck: 2,
tabCheck: 1,
//审核状态列表
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