Blame view

src/views/zsgl/zssyjl/zssyjldata.js 2.22 KB
jiaozeping@pashanhoo.com committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
import filter from '@/utils/filter.js'
let vm = null

const sendThis = (_this) => {
  vm = _this
}
class data extends filter {
  constructor() {
    super()
  }
  columns () {
    return [
      {
        label: '序号',
        type: 'index',
任超 committed
16 17 18 19 20 21 22 23
        width: '50',
        render: (h, scope) => {
          return (
            <div>
              {(vm.pageData.currentPage - 1) * vm.pageData.pageSize + scope.$index + 1}
            </div>
          )
        }
jiaozeping@pashanhoo.com committed
24 25
      },
      {
蔡俊立 committed
26
        label: "状态",
任超 committed
27
        width: '120',
蔡俊立 committed
28 29 30
        render: (h, scope) => {
          switch (scope.row.state) {
            case '1':
任超 committed
31
              return <div class='allow'>已入库未分发</div>
蔡俊立 committed
32
            case '2':
任超 committed
33
              return <div class='prohibit'>已领取未使用</div>
蔡俊立 committed
34
            case '3':
任超 committed
35
              return <div class='allow'>已制证</div>
蔡俊立 committed
36
            case '4':
任超 committed
37
              return <div class='prohibit'>已作废</div>
蔡俊立 committed
38 39
          }
        }
jiaozeping@pashanhoo.com committed
40 41
      },
      {
蔡俊立 committed
42 43
        prop: "djjg",
        label: "登记机构",
jiaozeping@pashanhoo.com committed
44 45
      },
      {
蔡俊立 committed
46 47
        prop: "operationtime",
        label: "入库时间",
jiaozeping@pashanhoo.com committed
48 49
      },
      {
蔡俊立 committed
50 51
        prop: "operator",
        label: "入库人员",
jiaozeping@pashanhoo.com committed
52 53
      },
      {
蔡俊立 committed
54 55
        prop: "usedate",
        label: "领取时间",
jiaozeping@pashanhoo.com committed
56 57
      },
      {
蔡俊立 committed
58 59
        prop: "receiver",
        label: "领取人员",
jiaozeping@pashanhoo.com committed
60 61
      },
      {
蔡俊立 committed
62 63 64 65 66 67 68 69 70
        label: "证书类型",
        render: (h, scope) => {
          switch (scope.row.zslx) {
            case 'zs':
              return <span>不动产权证书</span>
            case 'zm':
              return <span>不动产登记证明</span>
          }
        }
jiaozeping@pashanhoo.com committed
71 72
      },
      {
蔡俊立 committed
73 74
        prop: "ysxlh",
        label: "序列号"
jiaozeping@pashanhoo.com committed
75 76
      },
      {
蔡俊立 committed
77 78
        prop: "bdcqzh",
        label: "不动产权证号"
jiaozeping@pashanhoo.com committed
79 80 81 82 83
      },
      {
        label: '操作',
        width: '80',
        render: (h, scope) => {
蔡俊立 committed
84
          return <el-button type="text" icon="el-icon-view" onClick={() => { vm.openDialog(scope.row) }}>查看</el-button>
jiaozeping@pashanhoo.com committed
85 86 87 88 89
        }
      }
    ]
  }

任超 committed
90 91
  ywlys () {
    return [
jiaozeping@pashanhoo.com committed
92 93 94 95 96
      { value: 1, label: "办事大厅" },
      { value: 2, label: "微信小程序" },
      { value: 3, label: "法院端" },
      { value: 4, label: "银行端" },
    ]
任超 committed
97
  }
jiaozeping@pashanhoo.com committed
98 99 100 101 102 103 104

}
let datas = new data()
export {
  datas,
  sendThis
}