Explorar el Código

订单管理添加分类查询功能

lph hace 1 año
padre
commit
ac2651b8fb

+ 9 - 0
zkqy-ui/src/api/tablelist/commonTable.js

@@ -20,6 +20,15 @@ export function unionListTableData(query) {
     baseURL: process.env.VUE_APP_BASE_API1
   })
 }
+// 定制的订单列表查询方法
+export function getTableList1(query) {
+  return request({
+    url: '/dragform/common/getTableList1',
+    method: 'get',
+    params: query,
+    baseURL: process.env.VUE_APP_BASE_API1
+  })
+}
 
 // 查询动态表单列表
 export function dragTableInfo(query) {

+ 11 - 3
zkqy-ui/src/views/orderMange/index.vue

@@ -816,7 +816,9 @@ export default {
   },
   methods: {
     // 订单类型改变回调
-    orderTypeChange(type) {},
+    orderTypeChange(type) {
+      this.getList(false, type);
+    },
     // 重置审计表单数据
     resetFormData() {
       Object.assign(this.formData, {
@@ -955,7 +957,7 @@ export default {
       ];
     },
     /** 查询列表 */
-    getList(queryParams) {
+    getList(queryParams, orderType = 0) {
       this.loading = true;
       // 序列化当前查询参数列表
       queryParams && (this.queryParams.queryMap = queryParams.queryMap);
@@ -1010,7 +1012,13 @@ export default {
             this.queryParams.orderByColumn || ""
           );
           // 根据sql语句查询当前表数据
-          unionListTableData(this.queryParams).then(async (res) => {
+          let getListFun = orderType == 0 ? unionListTableData : getTableList1;
+          if (orderType != 0) {
+            this.queryParams.conditionMap = {
+              orderType,
+            };
+          }
+          getListFun(this.queryParams).then(async (res) => {
             this.tableList = [];
             res.rows.forEach((item) => {
               this.tableList.push(item.resultMap);