Blame view

src/views/zsgl/zsrk/zsrkdata.js 1.89 KB
jiaozeping@pashanhoo.com committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
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'
      },
      {
蔡俊立 committed
19 20
        prop: "batchno",
        label: "入库编号",
jiaozeping@pashanhoo.com committed
21 22
      },
      {
蔡俊立 committed
23 24
        prop: "operationtime",
        label: "入库时间",
jiaozeping@pashanhoo.com committed
25 26
      },
      {
蔡俊立 committed
27 28
        prop: "operator",
        label: "入库人员",
jiaozeping@pashanhoo.com committed
29 30
      },
      {
蔡俊立 committed
31 32
        prop: "zsnum",
        label: "不动产登记证明(本)",
jiaozeping@pashanhoo.com committed
33 34
      },
      {
蔡俊立 committed
35 36
        prop: "zsnum",
        label: "不动产权证书(本)",
jiaozeping@pashanhoo.com committed
37 38
      },
      {
蔡俊立 committed
39 40
        prop: "bz",
        label: "备注",
jiaozeping@pashanhoo.com committed
41 42
      },
      {
蔡俊立 committed
43 44 45 46 47 48 49 50 51
        label: "状态",
        render: (h, scope) => {
          switch (scope.row.state) {
            case '0':
              return <span>正在审核</span>
            case '1':
              return <span>已入库</span>
          }
        }
jiaozeping@pashanhoo.com committed
52 53 54
      },
      {
        label: '操作',
蔡俊立 committed
55
        width: '200',
jiaozeping@pashanhoo.com committed
56 57 58
        align: 'center',
        fixed: 'right',
        render: (h, scope) => {
蔡俊立 committed
59 60 61 62 63 64 65 66 67
          switch (scope.row.state) {
            case '0':
              return <div>
              <el-button type="text" icon="el-icon-edit-outline" onClick={() => { vm.openDialog(scope.row) }}>确认审核</el-button>
              <el-button type="text" icon="el-icon-delete" onClick={() => { vm.openDialog(scope.row) }}>删除</el-button>
            </div>
            case '1':
              return <el-button type="text" onClick={() => { vm.openDialog(scope) }}>查看</el-button>
          }
jiaozeping@pashanhoo.com committed
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
        }
      }
    ]
  }

  ywlys(){
    return[
      { value: 1, label: "办事大厅" },
      { value: 2, label: "微信小程序" },
      { value: 3, label: "法院端" },
      { value: 4, label: "银行端" },
    ]
  } 

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