From 8b46c471e28fbf0b71efbe363facf0bf05d8f6f8 Mon Sep 17 00:00:00 2001
From: nidapeng <jp@doumee.com>
Date: 星期四, 14 三月 2024 18:12:30 +0800
Subject: [PATCH] aaa

---
 company/src/views/business/solutions.vue |  111 +++++++++++++++++++++++++++++++------------------------
 1 files changed, 62 insertions(+), 49 deletions(-)

diff --git a/company/src/views/business/solutions.vue b/company/src/views/business/solutions.vue
index 03873fc..9090df9 100644
--- a/company/src/views/business/solutions.vue
+++ b/company/src/views/business/solutions.vue
@@ -11,6 +11,12 @@
                     <el-option label="绂佺敤" value="1"></el-option>
                 </el-select>
             </el-form-item>
+            <el-form-item label="绫诲瀷" prop="type" >
+                <el-select v-model="searchForm.type" placeholder="璇烽�夋嫨" @keypress.enter.native="search">
+                    <el-option label="鐩翠繚" value="0"></el-option>
+                    <el-option label="濮旀墭鎶曚繚" value="1"></el-option>
+                </el-select>
+            </el-form-item>
             <section>
                 <el-button type="primary" @click="search">鎼滅储</el-button>
                 <el-button @click="reset">閲嶇疆</el-button>
@@ -55,6 +61,12 @@
                         <span v-if="row.timeUnit === 3">骞�</span>
                     </template>
                 </el-table-column>
+                <el-table-column label="濮旀墭绫诲瀷" min-width="100px">
+                    <template slot-scope="{row}">
+                        <span v-if="row.type === 0">鐩翠繚</span>
+                        <span v-if="row.type === 1">濮旀墭锛�<span style="color: blue" >{{row.shopName||'-'}}</span></span>
+                    </template>
+                </el-table-column>
                 <el-table-column prop="status" label="鍚敤鐘舵��" min-width="100px" v-if="userInfo.type !== 1">
                     <template slot-scope="{row}">
                         <el-switch
@@ -97,54 +109,55 @@
 </template>
 
 <script>
-    import BaseTable from '@/components/base/BaseTable'
-    import TableLayout from '@/layouts/TableLayout'
-    import Pagination from '@/components/common/Pagination'
-    import OperaSolutionsWindow from '@/components/business/OperaSolutionsWindow'
-    import OperaSolutionsDescWindow from '@/components/business/OperaSolutionsDescWindow'
-    import { updateStatus } from '@/api/business/solutions'
-    import { mapState } from 'vuex'
-    export default {
-        name: 'Solutions',
-        extends: BaseTable,
-        components: { TableLayout, Pagination, OperaSolutionsWindow, OperaSolutionsDescWindow },
-        data () {
-            return {
-                // 鎼滅储
-                searchForm: {
-                    name: '',
-                    status: ''
-                }
-            }
-        },
-        computed: {
-            ...mapState(['userInfo'])
-        },
-        created () {
-            this.config({
-                module: '淇濋櫓鏂规淇℃伅琛�',
-                api: '/business/solutions',
-                'field.id': 'id',
-                'field.main': 'id'
-            })
-            if (this.userInfo.type === 1) {
-                this.searchForm.status = '0'
-            } else {
-                this.searchForm.status = ''
-            }
-            this.search()
-        },
-        methods: {
-            // 淇敼鐘舵��
-            changeStatus(status, row) {
-                updateStatus({ id: row.id, status })
-                    .then(res => {
-                        this.search()
-                    })
-                    .catch(err => {
-                        row.status = row.status === 0 ? 1 : 0
-                    })
-            }
-        }
+import BaseTable from '@/components/base/BaseTable'
+import TableLayout from '@/layouts/TableLayout'
+import Pagination from '@/components/common/Pagination'
+import OperaSolutionsWindow from '@/components/business/OperaSolutionsWindow'
+import OperaSolutionsDescWindow from '@/components/business/OperaSolutionsDescWindow'
+import { updateStatus } from '@/api/business/solutions'
+import { mapState } from 'vuex'
+export default {
+  name: 'Solutions',
+  extends: BaseTable,
+  components: { TableLayout, Pagination, OperaSolutionsWindow, OperaSolutionsDescWindow },
+  data () {
+    return {
+      // 鎼滅储
+      searchForm: {
+        name: '',
+        status: '',
+        type: ''
+      }
     }
+  },
+  computed: {
+    ...mapState(['userInfo'])
+  },
+  created () {
+    this.config({
+      module: '淇濋櫓鏂规淇℃伅琛�',
+      api: '/business/solutions',
+      'field.id': 'id',
+      'field.main': 'id'
+    })
+    if (this.userInfo.type === 1) {
+      this.searchForm.status = '0'
+    } else {
+      this.searchForm.status = ''
+    }
+    this.search()
+  },
+  methods: {
+    // 淇敼鐘舵��
+    changeStatus (status, row) {
+      updateStatus({ id: row.id, status })
+        .then(res => {
+          this.search()
+        })
+        .catch(err => {
+          row.status = row.status === 0 ? 1 : 0
+        })
+    }
+  }
+}
 </script>

--
Gitblit v1.9.3