dbxdata.js 2.46 KB
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',
        width: '50',
        render: (h, scope) => {
          return (
            <div>
              {(vm.pageData.currentPage - 1) * vm.pageData.pageSize + scope.$index + 1}
            </div>
          )
        }
      },
      {
        prop: "ywlymc",
        label: "业务来源",
        width: '100'
      },
      {
        label: "流程状态",
        width: '80',
        render: (h, scope) => {
          switch (scope.row.lczt) {
            case '1':
              return <span>进行中</span>
            case '2':
              return <span>已结束</span>
            case '3':
              return <span>进行中</span>
          }
        }
      },
      {
        prop: "zbhj",
        label: "在办环节",
        width: '70'
      },
      {
        label: '业务号',
        align: 'center',
        width: '100',
        render: (h, scope) => {
          return <el-button type="text" onClick={() => { vm.ywhClick(scope.row) }}>{scope.row.ywh}</el-button>
        }
      },
      {
        prop: "sqywmc",
        label: "申请业务名称",
        width: '220'
      },
      {
        label: "权利人",
        render: (h, scope) => {
          return (
            <div>
              <span>{scope.row.qlrmcStr}</span>
            </div>
          )
        }
      },
      {
        label: "义务人",
        render: (h, scope) => {
          return (
            <div>
              <span>{scope.row.ywrmcStr}</span>
            </div>
          )
        }
      },
      {
        prop: "zl",
        label: "坐落",
        width: '260'
      },
      {
        prop: "slsj",
        label: "受理时间",
        sortable: 'custom',
        width: '140'
      },
      {
        prop: "slry",
        label: "受理人员",
        width: '80'
      },
      {
        label: "转入时间",
        sortable: 'custom',
        prop: 'fromstepdate',
        width: '160'
      },
      {
        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>
        }
      }
    ]
  }
}
let datas = new data()
export {
  datas,
  sendThis
}