Blame view

src/views/ywbl/dbx/dbxdata.js 2.71 KB
任超 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>
          )
        }
任超 committed
24 25
      },
      {
1  
liangyifan committed
26
        prop: "ywlymc",
任超 committed
27
        label: "业务来源",
任超 committed
28
        width: '100'
任超 committed
29 30 31
      },
      {
        label: "流程状态",
任超 committed
32
        width: '80',
liangyifan committed
33
        render: (h, scope) => {
蔡俊立 committed
34 35 36 37 38 39
          if(scope.row.cfgqzt == '1'){
            return <div class='suspend'>查封挂起</div>
          }
          if(scope.row.yygqzt == '1'){
            return <div class='suspend'>异议挂起</div>
          }
liangyifan committed
40 41
          switch (scope.row.lczt) {
            case '1':
任超 committed
42
              return <div class='allow'>进行中</div>
liangyifan committed
43
            case '2':
任超 committed
44
              return <div class='prohibit'>已结束</div>
任超 committed
45
            case '3':
蔡俊立 committed
46
              return <div class='allow'>进行中</div>
liangyifan committed
47 48
          }
        }
任超 committed
49 50 51 52
      },
      {
        prop: "zbhj",
        label: "在办环节",
1  
jiaozeping@pashanhoo.com committed
53
        width: '80'
任超 committed
54 55
      },
      {
liangyifan committed
56 57
        label: '业务号',
        align: 'center',
任超 committed
58
        width: '100',
liangyifan committed
59
        render: (h, scope) => {
任超 committed
60
          return <el-button type="text" onClick={() => { vm.ywhClick(scope.row) }}>{scope.row.ywh}</el-button>
liangyifan committed
61 62 63
        }
      },
      {
任超 committed
64 65
        prop: "sqywmc",
        label: "申请业务名称",
任超 committed
66
        width: '220'
任超 committed
67 68 69
      },
      {
        label: "权利人",
蔡俊立 committed
70 71 72 73 74 75 76
        render: (h, scope) => {
          return (
            <div>
              <span>{scope.row.qlrmcStr}</span>
            </div>
          )
        }
任超 committed
77 78 79
      },
      {
        label: "义务人",
蔡俊立 committed
80 81 82 83 84 85 86
        render: (h, scope) => {
          return (
            <div>
              <span>{scope.row.ywrmcStr}</span>
            </div>
          )
        }
任超 committed
87 88 89 90
      },
      {
        prop: "zl",
        label: "坐落",
任超 committed
91
        width: '260'
任超 committed
92 93 94 95
      },
      {
        prop: "slsj",
        label: "受理时间",
liangyifan committed
96
        sortable: 'custom',
任超 committed
97
        width: '140'
任超 committed
98 99 100 101
      },
      {
        prop: "slry",
        label: "受理人员",
任超 committed
102
        width: '80'
任超 committed
103 104 105
      },
      {
        label: "转入时间",
1  
liangyifan committed
106
        sortable: 'custom',
任超 committed
107 108
        prop: 'fromstepdate',
        width: '160'
任超 committed
109 110 111 112 113 114 115 116 117
      },
      {
        label: '操作',
        width: '80',
        align: 'center',
        fixed: 'right',
        render: (h, scope) => {
          return <el-button type="text" icon="el-icon-delete" onClick={() => { vm.del(scope.row) }}>删除</el-button>
        }
任超 committed
118 119 120 121 122 123 124 125 126
      }
    ]
  }
}
let datas = new data()
export {
  datas,
  sendThis
}