gqx 2 jaren geleden
bovenliggende
commit
0d313c45c4
3 gewijzigde bestanden met toevoegingen van 52 en 108 verwijderingen
  1. 44 0
      src/views/finance/index.vue
  2. 7 108
      src/views/stock/depository.vue
  3. 1 0
      src/views/stock/modules/SupplierForm.vue

+ 44 - 0
src/views/finance/index.vue

@@ -0,0 +1,44 @@
+<template>
+  <a-card style="width: 100%; height: 100%">
+    <a-tabs v-model="activeKey">
+      <a-tab-pane key="1">
+        <span slot="tab"> 收款汇总报表 </span>
+        <depository></depository>
+      </a-tab-pane>
+      <a-tab-pane key="2">
+        <span slot="tab"> 收退款明细报表 </span>
+        <goods v-if="activeKey == '2'"></goods>
+      </a-tab-pane>
+      <a-tab-pane key="3">
+        <span slot="tab"> 客人余额报表 </span>
+        <supplier v-if="activeKey == '3'"></supplier>
+      </a-tab-pane>
+    </a-tabs>
+  </a-card>
+</template>
+
+<script>
+// import depository from "./depository.vue";
+// import goods from "./goods.vue";
+// import supplier from "./supplier.vue";
+// import stock from "./stock.vue";
+// import depositoryingoods from './depositoryingoods'
+export default {
+  components: {
+    // depository,
+    // goods,
+    // supplier,
+    // stock,
+    // depositoryingoods
+  },
+  data() {
+    return { activeKey: "1" };
+  },
+};
+</script>
+
+<style scoped>
+.main {
+  height: 70% !important;
+}
+</style>

+ 7 - 108
src/views/stock/depository.vue

@@ -6,10 +6,7 @@
         <a-row :gutter="24">
           <a-col :span="3">
             <a-form-item label="">
-              <j-input
-                placeholder="名称"
-                v-model="queryParam.name"
-              ></j-input>
+              <j-input placeholder="名称" v-model="queryParam.name"></j-input>
             </a-form-item>
           </a-col>
           <a-col :md="6" :sm="8">
@@ -125,12 +122,12 @@
 import { JeecgListMixin } from "@/mixins/JeecgListMixin";
 import { filterObj } from "@/utils/util";
 import { getAction } from "@/api/manage";
-import DepositoryModal from './modules/DepositoryModal.vue';
+import DepositoryModal from "./modules/DepositoryModal.vue";
 export default {
   name: "memberList",
   mixins: [JeecgListMixin],
   components: {
-    DepositoryModal
+    DepositoryModal,
   },
   data() {
     return {
@@ -193,110 +190,12 @@ export default {
     };
   },
   created() {
-    // this.loadData()
-  },
-  methods: {
-    // searchQuery() {
-    //   this.loadData(1);
-    // },
-    // loadData(arg) {
-    //   //加载数据 若传入参数1则加载第一页的内容
-    //   if (arg === 1) {
-    //     this.ipagination.current = 1;
-    //   }
-    //   var params = this.getQueryParams(); //查询条件
-    //   getAction(this.url.list, params).then((res) => {
-    //     if (res.success) {
-    //       this.dataSource1 = res.result.records;
-    //       this.ipagination.total = res.result.total;
-    //     }
-    //   });
-    // },
-    // getQueryParams() {
-    //   var param = Object.assign({}, this.queryParam, this.isorter);
-    //   param.pageNo = this.ipagination.current;
-    //   param.pageSize = this.ipagination.pageSize;
-    //   return filterObj(param);
-    // },
-    getAvatarView: function (avatar) {
-      return getFileAccessHttpUrl(avatar);
-    },
-
-    batchFrozen: function (status) {
-      if (this.selectedRowKeys.length <= 0) {
-        this.$message.warning("请选择一条记录!");
-        return false;
-      } else {
-        let ids = "";
-        let that = this;
-        let isAdmin = false;
-        that.selectionRows.forEach(function (row) {
-          if (row.username == "admin") {
-            isAdmin = true;
-          }
-        });
-        if (isAdmin) {
-          that.$message.warning("管理员账号不允许此操作,请重新选择!");
-          return;
-        }
-        that.selectedRowKeys.forEach(function (val) {
-          ids += val + ",";
-        });
-        that.$confirm({
-          title: "确认操作",
-          content: "是否" + (status == 1 ? "解冻" : "冻结") + "选中账号?",
-          onOk: function () {
-            frozenBatch({ ids: ids, status: status }).then((res) => {
-              if (res.success) {
-                that.$message.success(res.message);
-                that.loadData();
-                that.onClearSelected();
-              } else {
-                that.$message.warning(res.message);
-              }
-            });
-          },
-        });
-      }
-    },
-    handleMenuClick(e) {
-      if (e.key == 1) {
-        this.batchDel();
-      } else if (e.key == 2) {
-        this.batchFrozen(2);
-      } else if (e.key == 3) {
-        this.batchFrozen(1);
-      }
-    },
-    handleFrozen: function (id, status, username) {
-      let that = this;
-      //TODO 后台校验管理员角色
-      if ("admin" == username) {
-        that.$message.warning("管理员账号不允许此操作!");
-        return;
-      }
-      frozenBatch({ ids: id, status: status }).then((res) => {
-        if (res.success) {
-          that.$message.success(res.message);
-          that.loadData();
-        } else {
-          that.$message.warning(res.message);
-        }
-      });
-    },
-    handleChangePassword(username) {
-      this.$refs.passwordmodal.show(username);
-    },
-    passwordModalOk() {
-      //TODO 密码修改完成 不需要刷新页面,可以把datasource中的数据更新一下
-    },
-    onSyncFinally({ isToLocal }) {
-      // 同步到本地时刷新下数据
-      if (isToLocal) {
-        this.loadData();
+    getAction("/finance/summary/financeSummaryPage", {}).then((res) => {
+      if (res.success) {
       }
-    },
+    });
   },
+  methods: {},
 };
 </script>
   <style scoped>

+ 1 - 0
src/views/stock/modules/SupplierForm.vue

@@ -139,6 +139,7 @@ export default {
         state: [{ required: true, message: "请输入状态!" }],
         contactName: [{ required: true, message: "请输入姓名!" }],
         mobile: [{ required: true, message: "请输入手机号!" }],
+        address: [{ required: true, message: "请输入地址!" }],
       },
       url: {
         add: "/kc/kcSupplier/add",