caojunjie пре 4 година
родитељ
комит
4572b4cb8c
2 измењених фајлова са 60 додато и 21 уклоњено
  1. 30 6
      src/views/finance/charge/index.vue
  2. 30 15
      src/views/finance/payment/index.vue

+ 30 - 6
src/views/finance/charge/index.vue

@@ -936,7 +936,10 @@ export default {
       })
     },
     charGe() {
-      this.queryParameter.fToCorpid = this.queryParams.fCorpid
+      this.queryParameter = {
+        fToCorpid: this.queryParams.fCorpid,
+      }
+      // this.queryParameter.fToCorpid = this.queryParams.fCorpid
       this.innerVisible = true
     },
     getSummaries(param) {
@@ -1086,13 +1089,34 @@ export default {
       // console.log(this.queryParameter[0].fFeeid.join(','))
       // .join(',')
       this.chargeList_s = []
-      this.$refs['form'].validate(valid => {
-        if (valid) {
-          search(this.queryParameter).then(response => {
-            this.chargeList_s = response.rows
+      if(this.queryParameter.fStatementNo){
+        this.rules = {}
+        search(this.queryParameter).then(response => {
+          this.chargeList_s = response.rows
+          this.$message.success('查询成功');
+        })
+      }else {
+        this.rules = {
+          fToCorpid: [
+            { required: true, message: ' ', trigger: 'blur' }
+          ],
+          timeExamine: [
+            { required: true, message: ' ', trigger: 'blur' }
+          ]
+        }
+        if (this.rules){
+          this.$refs['form'].validate(valid => {
+            if (valid) {
+              search(this.queryParameter).then(response => {
+                this.chargeList_s = response.rows
+                this.$message.success('查询成功');
+              })
+            }
           })
+        }else {
+          this.$message.error('操作频繁');
         }
-      })
+      }
     },
     /** 远程模糊查询用户 */
     corpsRemoteMethod(name) {

+ 30 - 15
src/views/finance/payment/index.vue

@@ -648,15 +648,6 @@ export default {
       },
       // 表单校验
       rules: {
-        fBilltype: [
-          { required: true, message: ' ', trigger: 'change' }
-        ],
-        fBillstatus: [
-          { required: true, message: ' ', trigger: 'blur' }
-        ],
-        fDeptid: [
-          { required: true, message: ' ', trigger: 'blur' }
-        ],
         fToCorpid: [
           { required: true, message: ' ', trigger: 'blur' }
         ],
@@ -938,7 +929,10 @@ export default {
       })
     },
     charGe() {
-      this.queryParameter.fToCorpid = this.queryParams.fCorpid
+      this.queryParameter = {
+        fToCorpid: this.queryParams.fCorpid,
+      }
+      // this.queryParameter.fToCorpid = this.queryParams.fCorpid
       this.innerVisible = true
     },
     getSummaries(param) {
@@ -1088,13 +1082,34 @@ export default {
       // console.log(this.queryParameter[0].fFeeid.join(','))
       // .join(',')
       this.chargeList_s = []
-      this.$refs['form'].validate(valid => {
-        if (valid) {
-          search(this.queryParameter).then(response => {
-            this.chargeList_s = response.rows
+      if(this.queryParameter.fStatementNo){
+        this.rules = {}
+        search(this.queryParameter).then(response => {
+          this.chargeList_s = response.rows
+          this.$message.success('查询成功');
+        })
+      }else {
+        this.rules = {
+          fToCorpid: [
+            { required: true, message: ' ', trigger: 'blur' }
+          ],
+            timeExamine: [
+            { required: true, message: ' ', trigger: 'blur' }
+          ]
+        }
+        if (this.rules){
+          this.$refs['form'].validate(valid => {
+            if (valid) {
+              search(this.queryParameter).then(response => {
+                this.chargeList_s = response.rows
+                this.$message.success('查询成功');
+              })
+            }
           })
+        }else {
+          this.$message.error('操作频繁');
         }
-      })
+      }
     },
     /** 远程模糊查询用户 */
     corpsRemoteMethod(name) {