From c32014d250f304a810f39206ad4e2423ecf0fb6a Mon Sep 17 00:00:00 2001
From: yangfeng <wanwan926_4@163.com>
Date: 星期四, 07 三月 2024 18:27:06 +0800
Subject: [PATCH] 产量报表列表页和应该工资报表页部分功能页面开发

---
 src/views/reportManage/productionReport/index.vue |  121 ++++++++++++++++++++++++++++++++++++++--
 1 files changed, 115 insertions(+), 6 deletions(-)

diff --git a/src/views/reportManage/productionReport/index.vue b/src/views/reportManage/productionReport/index.vue
index ab4ef1b..4542902 100644
--- a/src/views/reportManage/productionReport/index.vue
+++ b/src/views/reportManage/productionReport/index.vue
@@ -1,21 +1,130 @@
 <template>
-  <div class="container"></div>
+  <div class="productionRreport-container">
+    <div class="filter-card">
+      <CommonSearch :show-add="false" :amount-view="false" placeholder="璇疯緭鍏ュ叧閿瘝" @searchClick="onFilterSearch">
+        <template slot="leftButton">
+          <el-button size="small" type="primary" @click="exportBtnClick">瀵煎嚭</el-button>
+        </template>
+      </CommonSearch>
+    </div>
+    <div class="body-card">
+      <div class="list-view">
+        <TableCommonView ref="tableListRef" v-loading="loading" :table-list="tableList" @selTableCol="selTableCol">
+        </TableCommonView>
+      </div>
+      <!-- <div class="btn-pager">
+        <PagerView class="page" :pager-options="pagerOptions" v-on="pagerEvents" />
+      </div> -->
+    </div>
+  </div>
 </template>
 
 <script>
+import pageMixin from "@/components/makepager/pager/mixin/pageMixin"
 export default {
   name: "productionReport",
   props: {},
   components: {},
-  mixins: [],
+  mixins: [pageMixin],
   computed: {},
   data() {
-    return {}
+    return {
+      loading: false,
+      tableList: {},
+      tableColumn: [
+        { label: "杞﹂棿", prop: "name", default: true },
+        { label: "鏈虹粍", prop: "member_name" },
+        { label: "鈪″害", prop: "client_level" },
+        { label: "娓呮磥", prop: "next_visit_time" },
+        { label: "娲佸噣", prop: "detail_address" },
+        { label: "鏈�澶х氦搴�", prop: "client_status" },
+        { label: "鏈�灏忕氦搴�", prop: "contact_name" },
+        { label: "骞冲潎绾ゅ害", prop: "contact_phone" },
+        { label: "鍏噺绾ゅ害", prop: "client_level" },
+        { label: "鏈�澶у亸宸�", prop: "next_visit_time" },
+        { label: "绾ゅ害鍋忓樊", prop: "detail_address" },
+        { label: "鏃ヤ骇閲�", prop: "client_status" },
+        { label: "绛夌骇", prop: "contact_name" },
+        { label: "缁煎悎绛夌骇", prop: "contact_phone" }
+      ],
+      showCol: [
+        "杞﹂棿",
+        "鏈虹粍",
+        "鈪″害",
+        "娓呮磥",
+        "娲佸噣",
+        "鏈�澶х氦搴�",
+        "鏈�灏忕氦搴�",
+        "骞冲潎绾ゅ害",
+        "鍏噺绾ゅ害",
+        "鏈�澶у亸宸�",
+        "绾ゅ害鍋忓樊",
+        "鏃ヤ骇閲�",
+        "绛夌骇",
+        "缁煎悎绛夌骇"
+      ]
+    }
   },
-  created() {},
-  methods: {}
+  created() {
+    this.setTable()
+  },
+  methods: {
+    setTable() {
+      this.tableList = {
+        selectIndex: true,
+        tableInfomation: [],
+        allcol: [],
+        showcol: this.showCol,
+        tableColumn: this.setColumnVisible(this.showCol)
+      }
+      this.tableList.allcol = this.tableList.tableColumn.filter((ele) => !ele.default).map((ele) => ele.label)
+      this.searchOptions = []
+      for (let i = 0; i < this.tableList.tableColumn.length; i++) {
+        const label = this.tableList.tableColumn[i].label
+        const value = this.tableList.tableColumn[i].prop
+        this.searchOptions.push({ value: value, label: label })
+      }
+    },
+    setColumnVisible(showCol) {
+      return this.tableColumn.map((ele) => {
+        return {
+          ...ele,
+          isShowColumn: showCol.includes(ele.label)
+        }
+      })
+    },
+    selTableCol(val) {
+      this.showcol = val
+      this.tableList.tableColumn = this.setColumnVisible(val)
+    },
+    // 鎼滅储
+    onFilterSearch(searchText) {
+      console.log(searchText)
+    },
+    // 瀵煎嚭
+    exportBtnClick() {}
+  }
 }
 </script>
 
 <!-- Add "scoped" attribute to limit CSS to this component only -->
-<style lang="scss" scoped></style>
+<style lang="scss" scoped>
+.productionRreport-container {
+  height: 100%;
+  .filter-card {
+    margin: 20px 30px;
+    height: 80px;
+    display: flex;
+    align-items: center;
+    padding: 0 20px 0 20px;
+    border-radius: 12px;
+    background-color: #fff;
+  }
+  .body-card {
+    margin: 0 30px;
+    background-color: #fff;
+    padding: 10px 15px;
+    height: calc(100% - 180px);
+  }
+}
+</style>

--
Gitblit v1.8.0