ソースを参照

业务锁配置

qinbai 3 年 前
コミット
84c6650faa

+ 35 - 0
src/api/lock/lock.js

@@ -44,3 +44,38 @@ export function lockRemove(data) {
     params: data
   })
 }
+// 锁定列表查询
+export const lockConfigList = (current, size, params) => {
+  return request({
+    url: '/api/blade-client/lockconfig/list',
+    method: 'get',
+    params: {
+      ...params,
+      current,
+      size,
+    }
+  })
+}
+export function lockConfigSave(data) {
+  return request({
+    url: '/api/blade-client/lockconfig/save',
+    method: 'post',
+    data: data
+  })
+}
+export function lockConfigUpdate(data) {
+  return request({
+    url: '/api/blade-client/lockconfig/update',
+    method: 'post',
+    data: data
+  })
+}
+export function lockConfigDetail(id) {
+  return request({
+    url: '/api/blade-client/lockconfig/detail',
+    method: 'get',
+    params: {
+      id:id
+    }
+  })
+}

+ 150 - 0
src/views/system/businessLock/config/mainList.json

@@ -0,0 +1,150 @@
+{
+  "searchShow": true,
+  "searchMenuSpan": 24,
+  "searchSpan": 8,
+  "border": true,
+  "index": true,
+  "viewBtn": false,
+  "editBtn": true,
+  "delBtn": false,
+  "addBtn": true,
+  "addBtnText": "新单",
+  "align": "center",
+  "menuWidth": "120",
+  "menu": true,
+  "showSummary": true,
+  "searchIcon": true,
+  "searchIndex": 2,
+  "selection": false,
+  "tip":false,
+  "expand": false,
+  "expandWidth": 38,
+  "column": [
+    {
+      "label": "租户",
+      "prop": "tenantId",
+      "search": true,
+      "type": "select",
+      "searchValue": "000000",
+      "index": 1,
+      "minWidth": 80,
+      "overHidden": true,
+      "dicData": [
+        {
+          "label": "管理组",
+          "value": "000000"
+        },
+        {
+          "label": "达沃特",
+          "value": "681169"
+        },
+        {
+          "label": "金港",
+          "value": "888390"
+        },
+        {
+          "label": "福达",
+          "value": "577435"
+        },
+        {
+          "label": "同海",
+          "value": "096359"
+        },
+        {
+          "label": "通济学校",
+          "value": "511847"
+        }],
+      "rules": [
+        {
+          "required": true,
+          "message": " ",
+          "trigger": "blur"
+        }
+      ]
+    },
+    {
+      "label": "模块名称",
+      "prop": "moduleName",
+      "search": true,
+      "type": "select",
+      "index": 1,
+      "minWidth": 80,
+      "overHidden": true,
+      "dicData": [
+        {
+          "label": "销售",
+          "value": "xs"
+        },
+        {
+          "label": "采购",
+          "value": "cg"
+        },
+        {
+          "label": "发货",
+          "value": "fh"
+        },
+        {
+          "label": "收货",
+          "value": "sh"
+        },
+        {
+          "label": "收费",
+          "value": "sf"
+        },
+        {
+          "label": "付费",
+          "value": "ff"
+        },
+        {
+          "label": "进项",
+          "value": "jx"
+        },
+        {
+          "label": "销项",
+          "value": "xx"
+        },
+        {
+          "label": "小学部",
+          "value": "xxb"
+        }],
+      "rules": [
+        {
+          "required": true,
+          "message": " ",
+          "trigger": "blur"
+        }
+      ]
+    },
+    {
+      "label": "是否启动",
+      "prop": "isEnable",
+      "type": "select",
+      "search": true,
+      "overHidden": true,
+      "index": 2,
+      "width": 120,
+      "dicData": [
+        {
+          "label": "否",
+          "value": "0"
+        },
+        {
+          "label": "是",
+          "value": "1"
+        }],
+      "rules": [
+        {
+          "required": true,
+          "message": " ",
+          "trigger": "blur"
+        }
+      ]
+    },
+   {
+      "label": "备注",
+      "prop": "remark",
+      "index": 4,
+      "overHidden": true
+    }
+  ]
+}

+ 224 - 0
src/views/system/businessLock/index.vue

@@ -0,0 +1,224 @@
+<template>
+  <basic-container>
+    <avue-crud :option="option"
+               :data="dataList"
+               ref="crud"
+               v-model="form"
+               :page.sync="page"
+               :search.sync="search"
+               :table-loading="loading"
+               :before-open="beforeOpen"
+               @row-update="rowUpdate"
+               @row-save="rowSave"
+               @search-change="searchChange"
+               @search-reset="searchReset"
+               @selection-change="selectionChange"
+               @current-change="currentChange"
+               @size-change="sizeChange"
+               @refresh-change="refreshChange"
+               @saveColumn="saveColumn"
+               @resetColumn="resetColumn"
+               @on-load="onLoad">
+      <template slot-scope="scope" slot="moduleName">
+        <span>{{ scope.row.moduleName | moduleNameFormat(moduleOption) }}</span>
+      </template>
+      <template slot-scope="scope" slot="isEnable">
+        <span>{{ scope.row.isEnable == '1'?'是':'否'}}</span>
+      </template>
+    </avue-crud>
+  </basic-container>
+</template>
+
+<script>
+  import option from "./config/mainList.json";
+  import {lockConfigList, lockConfigSave ,lockConfigUpdate ,lockConfigDetail} from "@/api/lock/lock";
+  import {customerList} from "@/api/basicData/inventoryAccount"
+
+  export default {
+    data() {
+      return {
+        loading : false,
+        form: {},
+        search:{},
+        show:true,
+        detailData:{},
+        option: option,
+        parentId:0,
+        dataList: [],
+        page: {
+          currentPage: 1,
+          total: 0,
+          pageSize: 10,
+          pageSizes: [10, 50, 100, 200, 300, 400, 500,1000]
+        },
+        query:{},
+        moduleOption: [
+          {
+            label: '销售',
+            value: 'xs'
+          },
+          {
+            label: '采购',
+            value: 'cg'
+          },
+          {
+            label: '发货',
+            value: 'fh'
+          },
+          {
+            label: '收货',
+            value: 'sh'
+          },
+          {
+            label: '收费',
+            value: 'sf'
+          },
+          {
+            label: '付费',
+            value: 'ff'
+          },
+          {
+            label: '进项',
+            value: 'jx'
+          },
+          {
+            label: '销项',
+            value: 'xx'
+          },
+          {
+            label: '小学部',
+            value: 'xxb'
+          },
+        ]
+      }
+    },
+    async created() {
+      // this.option = await this.getColumnData(this.getColumnName(65), option);
+    },
+    filters: {
+      moduleNameFormat(row, moduleOption) {
+        let name;
+        moduleOption.map((e) => {
+          if (row == e.value) {
+            name = e.label
+          }
+        });
+        return name;
+      },
+    },
+    mounted() {
+    },
+    methods: {
+      beforeOpen(done, type) {
+        if (["edit", "view"].includes(type)) {
+          lockConfigDetail(this.form.id).then(res => {
+            res.data.data.isEnable = res.data.data.isEnable.toString()
+            this.form = res.data.data;
+          });
+        }
+        done();
+      },
+      rowSave(row, done, loading) {
+        lockConfigSave(row).then(() => {
+          this.onLoad(this.page,this.search);
+          this.$message({
+            type: "success",
+            message: "操作成功!"
+          });
+          done();
+        });
+      },
+      rowUpdate(row, index, done, loading) {
+        lockConfigUpdate(row).then(() => {
+          this.onLoad(this.page,this.search);
+          this.$message({
+            type: "success",
+            message: "操作成功!"
+          });
+          done();
+        });
+      },
+      rowDel(row, index, done) {
+        if(row.id){
+          this.$confirm("确定将选择数据删除?", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning"
+          }).then(() => {
+
+          });
+        }
+      },
+      //点击搜索按钮触发
+      searchChange(params, done) {
+        this.query = params;
+        this.page.currentPage = 1;
+        this.onLoad(this.page, params);
+        done()
+      },
+      searchReset() {
+        console.log('1')
+      },
+      selectionChange() {
+        console.log('1')
+      },
+      sizeChange(val) {
+        this.page.currentPage = 1;
+        this.page.pageSize = val;
+      },
+      currentChange(val) {
+        this.page.currentPage = val;
+        this.onLoad(this.page);
+      },
+      refreshChange() {
+        this.onLoad(this.page);
+      },
+      paramsAdjustment(params) {
+        params = Object.assign({}, this.search);
+        if(!params.tenantId){
+          params.tenantId = '000000'
+        }
+        return params
+      },
+
+      onLoad(page, params) {
+        this.loading = true;
+        params =  this.paramsAdjustment(params)
+
+        lockConfigList(page.currentPage,page.pageSize,params).then(res=>{
+          this.dataList = res.data.data.records
+          this.page.total = res.data.data.total
+          this.loading = false;
+        })
+      },
+      //列保存触发
+      async saveColumn() {
+        const inSave = await this.saveColumnData(
+          this.getColumnName(65),
+          this.option
+        );
+        if (inSave) {
+          this.$message.success("保存成功");
+          //关闭窗口
+          this.$refs.crud.$refs.dialogColumn.columnBox = false;
+        }
+      },
+      async resetColumn() {
+        const inSave = await this.delColumnData(
+          this.getColumnName(65),
+          option
+        );
+        if (inSave) {
+          this.$message.success("重置成功");
+          this.option = option;
+          //关闭窗口
+          this.$refs.crud.$refs.dialogColumn.columnBox = false;
+        }
+      },
+    }
+  }
+</script>
+
+<style scoped>
+
+</style>

+ 0 - 1
src/views/system/dept.vue

@@ -322,7 +322,6 @@
         }
         if (["edit", "view"].includes(type)) {
           getDept(this.form.id).then(res => {
-            console.log(res.data.data)
             this.form = res.data.data;
           });
         }

+ 19 - 11
src/views/workManagement/main-items/configuration/detailsPage.json

@@ -131,10 +131,18 @@
       "width": 100
     },
     {
+      "label": "未知明细",
+      "prop": "otheramt",
+      "overHidden": true,
+      "hide": true,
+      "index": 10,
+      "width": 100
+    },
+    {
       "label": "合计金额",
       "prop": "amount",
       "overHidden": true,
-      "index": 10,
+      "index": 11,
       "width": 100,
       "rules": [
         {
@@ -145,18 +153,18 @@
       ]
     },
     {
-      "label": "账户名称",
+      "label": "收款方式",
       "prop": "accountName",
       "overHidden": true,
-      "index": 11,
+      "index": 12,
       "width": 120
     },
     {
-      "label": "结算日期",
+      "label": "收款日期",
       "prop": "payTime",
       "width": 120,
       "overHidden": true,
-      "index": 12,
+      "index": 13,
       "valueFormat": "yyyy-MM-dd",
       "format": "yyyy-MM-dd",
       "type": "date"
@@ -171,7 +179,7 @@
         "value": "dictKey"
       },
       "overHidden": true,
-      "index": 13,
+      "index": 14,
       "width": 100,
       "cell": true
     },
@@ -182,7 +190,7 @@
       "format": "yyyy-MM-dd",
       "type": "date",
       "overHidden": true,
-      "index": 14,
+      "index": 15,
       "width": 100,
       "cell": true
     },
@@ -191,7 +199,7 @@
       "prop": "createUserName",
       "disabled": true,
       "overHidden": true,
-      "index": 15,
+      "index": 16,
       "width": 100
     },
     {
@@ -199,21 +207,21 @@
       "prop": "createTime",
       "disabled": true,
       "overHidden": true,
-      "index": 16,
+      "index": 17,
       "width": 100
     },
     {
       "label": "最新修改人",
       "prop": "updateUserName",
       "overHidden": true,
-      "index": 17,
+      "index": 18,
       "width": 100
     },
     {
       "label": "最新修改时间",
       "prop": "updateTime",
       "overHidden": true,
-      "index": 18,
+      "index": 19,
       "width": 100
     }
   ]

+ 8 - 1
src/views/workManagement/main-items/detailsPage.vue

@@ -773,7 +773,7 @@
       getDeptTree("096359").then(res=>{
         this.optionTable.column.forEach(item=>{
           if(item.prop === "deptid"){
-            item.dicData = res.data.data
+            item.dicData = res.data.data;
           }
         })
       })
@@ -859,6 +859,13 @@
           this.secondDisable = 0
           await  this.switchTab("first")
           this.data = this.data_one  //切换数据
+          getDeptTree("096359").then(res=>{
+            this.optionTable.column.forEach(item=>{
+              if(item.prop === "deptid"){
+                item.dicData = res.data.data;
+              }
+            })
+          })
         } else if(tab.name == "second") {
 
           this.tab1 = false;

+ 7 - 0
src/views/workManagement/receipt/configuration/statisticalList.json

@@ -140,6 +140,13 @@
       "width": 120
     },
     {
+      "label": "未知明细收入",
+      "prop": "otheramt",
+      "index": 7,
+      "overHidden": true,
+      "width": 120
+    },
+    {
       "label": "合计金额",
       "prop": "amount",
       "index": 8,