Blame view

src/views/sbbwcx/data/index.js 1.9 KB
任超 committed
1
import filter from '@/utils/filter.js'
任超 committed
2 3 4 5
let vm = null
const sendThis = (_this) => {
  vm = _this
}
任超 committed
6 7 8 9 10
class data extends filter {
  constructor() {
    super()
  }
  columns () {
任超 committed
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
    return [
      {
        label: '序号',
        type: 'index',
        width: '50',
        render: (h, scope) => {
          return (
            <div>
              {(vm.pageData.currentPage - 1) * vm.pageData.pageSize + scope.$index + 1}
            </div>
          )
        }
      },
      {
        label: '汇交状态',
        render: (h, scope) => {
          return (
            <div>
              <span v-show={scope.row.exchangeState == 0} class='warehousing'>未上报</span>
              <span v-show={scope.row.exchangeState == 1} class='warehousing'>上报成功未响应</span>
              <span v-show={scope.row.exchangeState == 2} class='warehousing'>上报失败</span>
              <span v-show={scope.row.exchangeState == 3} class='adopt'>上报成功响应成功</span>
              <span v-show={scope.row.exchangeState == 4} class='warehousing'>响应失败</span>
            </div>
          )
        }
      },
任超 committed
38
      {
田浩浩 committed
39 40 41
        prop: "areacode",
        label: "行政区代码",
        width: 100,
任超 committed
42 43
      },
      {
田浩浩 committed
44 45 46
        prop: "areaName",
        label: "行政区名称",
        width: 100,
任超 committed
47 48
      },
      {
田浩浩 committed
49 50
        prop: "bizMsgid",
        label: "业务报文ID",
任超 committed
51 52
      },
      {
田浩浩 committed
53 54 55 56 57 58 59 60 61 62 63
        prop: "createdate",
        label: "创建时间",
      },
      {
        prop: "recflowid",
        label: "业务流水号",
      },
      {
        prop: "estatenum",
        label: "不动产单元号",
        width: 240,
任超 committed
64 65
      },
      {
蔡俊立 committed
66
        prop: "rectype",
任超 committed
67 68 69
        label: "业务编码",
      },
      {
田浩浩 committed
70 71
        prop: "rectypeName",
        label: "业务名称",
任超 committed
72
      },
田浩浩 committed
73
      {
蔡俊立 committed
74
        prop: "uploadtime",
田浩浩 committed
75
        label: "汇交时间",
任超 committed
76
      }
任超 committed
77 78 79
    ]
  }
}
任超 committed
80 81 82 83 84 85
let datas = new data()
export {
  datas,
  sendThis
}