Pārlūkot izejas kodu

【新增】工程订单-审核状态多选筛选

莫绍宝 3 gadi atpakaļ
vecāks
revīzija
2c1fd60d90

+ 6 - 7
src/views/supply/engin/commerce_list.vue

@@ -7,10 +7,9 @@
           <el-row :gutter="20">
             <el-col :xs="24" :sm="24" :lg="24">
               <el-form-item prop="status" label-width="0">
-                <el-radio-group v-model="screenForm.status" size="medium" @change="getList()">
-                  <el-radio-button label="">全部</el-radio-button>
-                  <el-radio-button v-for="(item, index) in statusList" :key="index" :label="item.value">{{item.label}}</el-radio-button>
-                </el-radio-group>
+                <el-checkbox-group v-model="screenForm.status" size="medium" @change="getList()">
+                  <el-checkbox-button v-for="(item, index) in statusList" :key="index" :label="item.value">{{item.label}}</el-checkbox-button>
+                </el-checkbox-group>
               </el-form-item>
             </el-col>
             <el-col :xs="24" :sm="12" :lg="6">
@@ -276,7 +275,7 @@ export default {
       dataList: null, // 列表数据
       listLoading: false, // 列表加载loading
       screenForm: { // 筛选表单数据
-        status: '',
+        status: [],
         orderNum: '',
         enginNum: '',
         loginNum: '',
@@ -315,7 +314,7 @@ export default {
   computed: {
     exParams() {
       return {
-        examineStatus: this.screenForm.status,
+        examineStatus: this.screenForm.status.join(','),
         enginOrderNo: this.screenForm.orderNum,
         refProjectNo: this.screenForm.enginNum,
         refEnginRecordNo: this.screenForm.loginNum,
@@ -360,7 +359,7 @@ export default {
       let params = {
         pageNum: this.currentPage,
         pageSize: this.pageSize,
-        examineStatus: this.screenForm.status,
+        examineStatus: this.screenForm.status.join(','),
         enginOrderNo: this.screenForm.orderNum,
         refProjectNo: this.screenForm.enginNum,
         refEnginRecordNo: this.screenForm.loginNum,

+ 6 - 7
src/views/supply/engin/engin_list.vue

@@ -7,10 +7,9 @@
           <el-row :gutter="20">
             <el-col :xs="24" :sm="24" :lg="24">
               <el-form-item prop="status" label-width="0">
-                <el-radio-group v-model="screenForm.status" size="medium" @change="getList()">
-                  <el-radio-button label="">全部</el-radio-button>
-                  <el-radio-button v-for="(item, index) in statusList" :key="index" :label="item.value">{{item.label}}</el-radio-button>
-                </el-radio-group>
+                <el-checkbox-group v-model="screenForm.status" size="medium" @change="getList()">
+                  <el-checkbox-button v-for="(item, index) in statusList" :key="index" :label="item.value">{{item.label}}</el-checkbox-button>
+                </el-checkbox-group>
               </el-form-item>
             </el-col>
             <el-col :xs="24" :sm="12" :lg="6">
@@ -223,7 +222,7 @@ export default {
         company: '',
         createMan: '',
         examineMan: '',
-        status: '',
+        status: [],
       },
       statusList: [
         { label: '已保存', value: 'SAVE' },
@@ -259,7 +258,7 @@ export default {
         useUnit: this.screenForm.company,
         createName: this.screenForm.createMan,
         confirmName: this.screenForm.examineMan,
-        examineStatus: this.screenForm.status,
+        examineStatus: this.screenForm.status.join(','),
       }
     },
   },
@@ -290,7 +289,7 @@ export default {
         useUnit: this.screenForm.company,
         createName: this.screenForm.createMan,
         confirmName: this.screenForm.examineMan,
-        examineStatus: this.screenForm.status,
+        examineStatus: this.screenForm.status.join(','),
       };
       getEnginList(params).then((res) => {
         this.dataList = res.data.records;

+ 6 - 8
src/views/supply/engin/home_list.vue

@@ -7,10 +7,9 @@
           <el-row :gutter="20">
             <el-col :xs="24" :sm="24" :lg="24">
               <el-form-item prop="status" label-width="0">
-                <el-radio-group v-model="screenForm.status" size="medium" @change="getList()">
-                  <el-radio-button label="">全部</el-radio-button>
-                  <el-radio-button v-for="(item, index) in statusList" :key="index" :label="item.value">{{item.label}}</el-radio-button>
-                </el-radio-group>
+                <el-checkbox-group v-model="screenForm.status" size="medium" @change="getList()">
+                  <el-checkbox-button v-for="(item, index) in statusList" :key="index" :label="item.value">{{item.label}}</el-checkbox-button>
+                </el-checkbox-group>
               </el-form-item>
             </el-col>
             <el-col :xs="24" :sm="12" :lg="6">
@@ -276,7 +275,7 @@ export default {
       dataList: null, // 列表数据
       listLoading: false, // 列表加载loading
       screenForm: { // 筛选表单数据
-        status: '',
+        status: [],
         orderNum: '',
         enginNum: '',
         loginNum: '',
@@ -315,7 +314,7 @@ export default {
   computed: {
     exParams() {
       return {
-        examineStatus: this.screenForm.status,
+        examineStatus: this.screenForm.status.join(','),
         enginOrderNo: this.screenForm.orderNum,
         refProjectNo: this.screenForm.enginNum,
         refEnginRecordNo: this.screenForm.loginNum,
@@ -356,11 +355,10 @@ export default {
     // 查询列表
     getList() {
       this.listLoading = true;
-
       let params = {
         pageNum: this.currentPage,
         pageSize: this.pageSize,
-        examineStatus: this.screenForm.status,
+        examineStatus: this.screenForm.status.join(','),
         enginOrderNo: this.screenForm.orderNum,
         refProjectNo: this.screenForm.enginNum,
         refEnginRecordNo: this.screenForm.loginNum,