瀏覽代碼

搜索条件修改

wolyshaw 4 年之前
父節點
當前提交
c5bfae3929
共有 1 個文件被更改,包括 7 次插入2 次删除
  1. 7 2
      src/views/businessManager/orderManager/businessStatement.vue

+ 7 - 2
src/views/businessManager/orderManager/businessStatement.vue

@@ -11,9 +11,11 @@
                v-model.trim="searchForm">
         <el-form-item prop='organId'>
           <el-select class='multiple'
-                     v-model.trim="searchForm.organId"
+                     v-model.trim="searchForm.organIdList"
                      clearable
                      filterable
+                     multiple
+                     collapse-tags
                      placeholder="请选择分部">
             <el-option v-for="(item,index) in organList"
                        :key="index"
@@ -141,7 +143,8 @@ export default {
         endTime: null,
         organId: null,
         month: '',
-        schoolId: ''
+        schoolId: '',
+        organIdList: []
       },
       tableList: [],
       organList: [],
@@ -215,6 +218,7 @@ export default {
       getOperatingReport({
         ...params,
         month: (params.month ? dayjs(params.month).format('YYYY-MM-DD') : ''),
+        organIdList: [...this.searchForm.organIdList].join()
       }).then(res => {
         let result = res.data
         if (res.code == 200) {
@@ -239,6 +243,7 @@ export default {
         endTime: null,
         month: '',
         schoolId: '',
+        organIdList: []
       }
       this.getList()
     }