huangbin 4 lat temu
rodzic
commit
92fc1e4849

+ 8 - 2
src/views/manage/business-review/list/settlement/setup.ts

@@ -5,8 +5,8 @@ import { ref } from 'vue';
 
 /**
  * 获取表格列表数据
- * @param type 
- * @returns 
+ * @param type
+ * @returns
  */
 export function queryTableList(type: QueryBusinessJsReq) {
     // 加载状态
@@ -18,6 +18,12 @@ export function queryTableList(type: QueryBusinessJsReq) {
             .then((res) => {
                 tableList.value = res.map((e, i) => {
                     return { ...e, key: String(i) };
+                }).sort((a, b) => {
+                    if (a.applystatus === 1) {
+                        return b.applystatus === 1 ? 0 : -1
+                    } else {
+                        return b.applystatus === 1 ? 1 : 0
+                    }
                 });
                 loading.value = false;
                 console.log('查询列表', tableList);

+ 8 - 2
src/views/manage/business-review/list/someprice/setup.ts

@@ -5,8 +5,8 @@ import { ref } from 'vue';
 
 /**
  * 获取表格列表数据
- * @param type 
- * @returns 
+ * @param type
+ * @returns
  */
 export function queryTableList(type: QueryBusinessDjReq) {
     // 加载状态
@@ -18,6 +18,12 @@ export function queryTableList(type: QueryBusinessDjReq) {
             .then((res) => {
                 tableList.value = res.map((e, i) => {
                     return { ...e, key: String(i) };
+                }).sort((a, b) => {
+                    if (a.applystatus === 1) {
+                        return b.applystatus === 1 ? 0 : -1
+                    } else {
+                        return b.applystatus === 1 ? 1 : 0
+                    }
                 });
                 loading.value = false;
                 console.log('查询列表', tableList);