• 电子--用章统计


    <template>
      <div class="projectBox project_list">
        <!-- 项目列表 -->
        <basic-container class="projectManange">
          <div class="search-head">
            <el-input v-model="keywork" size="small" class="select-law" placeholder="文件名称/编号/申请人"></el-input>
            <el-date-picker
              v-model="searchDate"
              class="select-date"
              size="small"
              type="daterange"
              range-separator="~"
              start-placeholder="开始日期"
              end-placeholder="结束日期"
              value-format="yyyy-MM-dd">
            </el-date-picker>
            <el-button
              size="small"
              type="primary"
              @click="search"
              >搜索</el-button>
          </div>
          <div class="statistics-table">
            <el-table
              :data="tableData"
              style=" 100%">
              <el-table-column
                label="文件名称"
                show-overflow-tooltip>
                <template slot-scope="scope">
                  <div class="file_name">{{scope.row.FileName}}</div>
                </template>
              </el-table-column>
              <el-table-column
                prop="FileCode"
                label="编号">
              </el-table-column>
              <el-table-column
                prop="CreateName"
                label="申请人">
              </el-table-column>
               <el-table-column
                prop="CreateDate"
                label="日期">
              </el-table-column>
            </el-table>
            <div class="fenye-page clearfix">
              <div class="left">
                <span>份数:{{printInfo.SignNum}}</span>
                <span>金额:{{printInfo.SignNum * printInfo.Price}}(元)</span>
              </div>
              <div class="right">
                <el-pagination
                background
                layout="total, sizes, prev, pager, next"
                :page-size.sync="page.pageSize"
                :page-sizes=[10,20,50]
                @size-change="changeSize"
                @current-change="changeCurrent"
                :total="page.total">
                </el-pagination>
              </div>
            </div>
          </div>
        </basic-container>
      </div>
    </template>

    <script>
    import * as Api from "@/api/signature/index";
    import { encryptionObject } from "@/util/util";
    export default {
      name:"statistics",
      data(){
        return{
          keywork:'',
          searchDate:[],
          options: [{
              value: '选项1',
              label: '黄金糕'
            }, {
              value: '选项2',
              label: '双皮奶'
            }],
          tableData:[],
          page: {
            total: 0,
            pageSize: 20,
            currentPage: 1
          },
          printInfo:{}
        }
      },
      created(){
        this.getSignList();
        this.getPrintInfo();
      },
      methods:{
        getSignList(){
          const Begin = this.searchDate[0] ? new Date(this.searchDate[0]).toISOString() : "";
          const End = this.searchDate[1] ? new Date(this.searchDate[1]).toISOString() : "";
          const pageData = {
            pageNo: this.page.currentPage - 1,
            pageSize: this.page.pageSize,
            Keywork: this.keywork,
            Begin,
            End
          };
          const dataObj = encryptionObject({
            data: pageData,
            type: "Base64",
            key: "avue"
          });
          const param = {
            param: dataObj
          };
          Api.SignListOld(param).then((res )=> {
            if(res.data.Code == 200){
              this.tableData = res.data.Data.Items;
              this.page.total = res.data.Data.Count;   
            }else{
              this.$alert(res.data.ShowData, '提示', {
                confirmButtonText: '确定',
                type: 'error'
              });
            }         
          }).catch((error)=>{
            if(error.data.Code == 400){
              this.$alert(error.data.ShowData, '提示', {
                confirmButtonText: '确定',
                type: 'error'
              });
            }
          });
        },
        getPrintInfo(){
          Api.LawSign().then((res )=> {
            if(res.data.Code == 200){
              this.printInfo = res.data.Data;
            }else{
              this.$alert(res.data.ShowData, '提示', {
                confirmButtonText: '确定',
                type: 'error'
              });
            }         
          }).catch((error)=>{
            if(error.data.Code == 400){
              this.$alert(error.data.ShowData, '提示', {
                confirmButtonText: '确定',
                type: 'error'
              });
            }
          });
        },
        changeSize(value){
          this.page.currentPage = 1;
          this.page.pageSize = value;
          this.getSignList();
        },
        changeCurrent(value){
          this.page.currentPage = value;
          this.getSignList();
        },
        search(){
          this.getSignList();
        }
      }
    }
    </script>

    <style lang="scss">
    .search-head{
      .select-law{
         160px;
      }
      .select-date{
         260px;
        margin: 0 30px;
      }
    }
    .statistics-table{
      margin-top: 24px;
      .fenye-page{
        margin-top: 30px;
        line-height: 32px;
        .left{
          float: left;
          color: #666666;
          font-size: 13px;
          span{
            margin-right: 80px;
            &:last-child{
              margin-right: 0;
            }
          }
        }
        .right{
          float: right;
        }
      }
    }
    </style>
  • 相关阅读:
    从安装、管理到防御_阿里云安骑士全向测评
    云架构师前(钱)景这么好_我们该如何转型?这有两位阿里云云架构总监多年心得
    Infrastructure_as_Code——Kubernetes一键编排实践
    大中华地区(含港澳台)空气质量接口参加阿里云API_as_a_Service_大赛
    E-MapReduce集群启停HDFS/YARN服务
    云服务器ECS还原安全组规则功能介绍_安全组规则的备份与还原
    E-MapReduce集群中HDFS服务集成Kerberos
    FastReport中如何加入自定义函数
    查找算法总结
    八大排序算法总结
  • 原文地址:https://www.cnblogs.com/xiaoxiao95/p/12836075.html
Copyright © 2020-2023  润新知