Blame view

src/views/ywbl/ybx/ybxdata.js 2.06 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
        prop: "ywlymc",
jiaozeping@pashanhoo.com committed
27
        label: "业务来源",
28
        width: '100',
jiaozeping@pashanhoo.com committed
29 30 31
      },
      {
        label: "流程状态",
蔡俊立 committed
32
        width: '80',
蔡俊立 committed
33
        render: (h, scope) => {
34
          if (scope.row.cfgqzt == '1') {
蔡俊立 committed
35 36
            return <div class='suspend'>查封挂起</div>
          }
37
          if (scope.row.yygqzt == '1') {
蔡俊立 committed
38 39
            return <div class='suspend'>异议挂起</div>
          }
蔡俊立 committed
40 41
          switch (scope.row.lczt) {
            case '1':
蔡俊立 committed
42
              return <div class='allow'>进行中</div>
蔡俊立 committed
43
            case '2':
蔡俊立 committed
44
              return <div class='prohibit'>已结束</div>
蔡俊立 committed
45 46 47 48
            case '3':
              return <span>进行中</span>
          }
        }
jiaozeping@pashanhoo.com committed
49 50 51
      },
      {
        label: "业务号",
52
        width: '90',
53
        render: (h, scope) => {
任超 committed
54
          return <el-button type="text" onClick={() => { vm.ywhClick(scope.row) }}>{scope.row.ywh}</el-button>
55
        }
jiaozeping@pashanhoo.com committed
56 57 58 59 60 61
      },
      {
        prop: "sqywmc",
        label: "申请业务名称",
      },
      {
蔡俊立 committed
62
        prop: "qlrmc",
jiaozeping@pashanhoo.com committed
63 64 65
        label: "权利人",
      },
      {
蔡俊立 committed
66
        prop: "ywrmc",
jiaozeping@pashanhoo.com committed
67 68 69 70 71
        label: "义务人",
      },
      {
        prop: "zl",
        label: "坐落",
72 73
        showOverflowTooltip: true,
        minWidth: '130'
jiaozeping@pashanhoo.com committed
74 75 76 77
      },
      {
        prop: "slsj",
        label: "受理时间",
任超 committed
78
        width: '140',
jiaozeping@pashanhoo.com committed
79 80 81 82 83 84 85
        sortable: 'custom'
      },
      {
        prop: "slry",
        label: "受理人员",
      },
      {
liangyifan committed
86
        label: "转出时间",
任超 committed
87
        width: '140',
蔡俊立 committed
88
        sortable: 'custom',
任超 committed
89
        prop: 'outstepdate'
jiaozeping@pashanhoo.com committed
90 91 92 93 94 95 96 97 98
      }
    ]
  }
}
let datas = new data()
export {
  datas,
  sendThis
}