问题清单修改
This commit is contained in:
		
							parent
							
								
									685e229511
								
							
						
					
					
						commit
						dab779659c
					
				| 
						 | 
				
			
			@ -491,14 +491,14 @@ export default {
 | 
			
		|||
            trigger: 'blur'
 | 
			
		||||
          }
 | 
			
		||||
        ],
 | 
			
		||||
        phone: [
 | 
			
		||||
        /* phone: [
 | 
			
		||||
          // { required: true, message: '联系电话不能为空', trigger: 'blur' },
 | 
			
		||||
          {
 | 
			
		||||
            pattern: /^(?:(?:\+|00)86)?1[3-9]\d{9}$/,
 | 
			
		||||
            message: '请输入正确的手机号码',
 | 
			
		||||
            trigger: 'blur'
 | 
			
		||||
          }
 | 
			
		||||
        ],
 | 
			
		||||
        ], */
 | 
			
		||||
        supplierTime: [
 | 
			
		||||
          {
 | 
			
		||||
            required: true,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -507,7 +507,15 @@ export default {
 | 
			
		|||
                this.form.typeModel = []
 | 
			
		||||
                this.getList()
 | 
			
		||||
                this.getTreeData()
 | 
			
		||||
                this.open = false
 | 
			
		||||
                // this.open = false
 | 
			
		||||
                // 不关闭弹窗,但重置部分表单字段以便继续添加
 | 
			
		||||
                this.form.typeIds = []
 | 
			
		||||
                this.form.typeModel = []
 | 
			
		||||
                this.typeModelOptions = []
 | 
			
		||||
                // 清除验证状态
 | 
			
		||||
                this.$nextTick(() => {
 | 
			
		||||
                  this.$refs['form'].clearValidate(['typeIds', 'typeModel'])
 | 
			
		||||
                })
 | 
			
		||||
                loading.close()
 | 
			
		||||
              })
 | 
			
		||||
              .catch(err => {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue