index.js 2.03 KB
import filter from '@/utils/filter.js'
class data extends filter {
  constructor() {
    super()
  }
  columns () {
    return [
      {
        prop: 'jcjg',
        label: '检查结果',
        width: 90,
        render: (h, scope) => {
          return (
            <div>
              <span class='adopt' v-show={scope.row.receiveState == 0}>未效验</span>
              <span class='adopt' v-show={scope.row.receiveState == 1}>效验成功</span>
              <span class='warehousing' v-show={scope.row.receiveState == 2}>效验失败</span>
            </div>
          )
        }
      },
      {
        prop: 'rkjg',
        label: '入库结果',
        width: 80,
        render: (h, scope) => {
          return (
            <div>
              <span class='fail' v-show={scope.row.storageState == 0}>未入库</span>
              <span class='success' v-show={scope.row.storageState == 1}>已入库</span>
              <span class='fail' v-show={scope.row.storageState == 2}>入库失败</span>
            </div>
          )
        }
      },
      {
        prop: "areacode",
        label: "行政区代码",
        width: 70,
      },
      {
        prop: "areaName",
        label: "行政区名称",
        width: 70,
      },
      {
        prop: "bizMsgid",
        label: "业务报文ID",
      },
      {
        prop: "createdate",
        label: "创建时间",
        width: 140,
      },
      {
        prop: "recflowid",
        label: "业务流水号",
        width: 95,
      },
      {
        prop: "estatenum",
        label: "不动产单元号",
        width: 240,
      },
      {
        prop: "rectype",
        label: "业务编码",
        width: 70,
      },
      {
        prop: "rectypeName",
        label: "业务名称",
        render: (h, scope) => {
          return (
            <div>
              {scope.row.rectypeName}
            </div>
          )
        }
      },
      {
        prop: "receiveDate",
        label: "接收时间",
        width: 140
      }
    ]
  }
}
export default new data()