Browse Source

坏账搜索

谢杰标 2 years ago
parent
commit
c1b9845bcd
1 changed files with 29 additions and 9 deletions
  1. 29 9
      src/views/financed/arap/index.vue

+ 29 - 9
src/views/financed/arap/index.vue

@@ -270,6 +270,25 @@ export default {
       },
       // 表单
       tableSet0: [
+        {
+          label: "坏账",
+          prop: "badBill",
+          hidden: true,
+          scope: "isOptions",
+          options: [
+            {
+              label: "否",
+              value: false,
+            },
+            {
+              label: "是",
+              value: true,
+              style: {
+                color: "red",
+              },
+            },
+          ],
+        },
         {
           label: "下单时间",
           prop: "buyTime",
@@ -565,7 +584,7 @@ export default {
       remarkDialogVisible: false,
       examineDialogVisible: false,
       badBillDialogVisible: false,
-      type: 1,
+      type: 0,
       activeOrderInfo: {},
       roleList: [],
       countInfo: {},
@@ -640,11 +659,12 @@ export default {
       ];
       fn(this.formData)
         .then((res) => {
-          res.rows.forEach((e) => {
-            e.children = [];
-            e.hasChildren = true;
-            e.monthTime = this.parseTime(e.monthTime, "{y}-{m}");
-          });
+          this.type != 0 &&
+            res.rows.forEach((e) => {
+              e.children = [];
+              e.hasChildren = true;
+              e.monthTime = this.parseTime(e.monthTime, "{y}-{m}");
+            });
           this.tableData = res.rows;
           this.total = res.total;
           this.navText.index = res.total;
@@ -766,12 +786,12 @@ export default {
       if (this.type == 0) {
         data.push(
           {
-            prop: "badStatus",
+            prop: "badBill",
             placeholder: "坏账选择",
             scope: "select",
             options: [
-              { label: "是", value: 0 },
-              { label: "否", value: 1 },
+              { label: "是", value: 1 },
+              { label: "否", value: 2 },
             ],
           },
           {