npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

fc-bms-aging

v1.0.0

Published

fc-bms-aging

Downloads

2

Readme

antd-timeinfotable-fy

运单时效信息展示

Installation

npm i antd-timeinfotable-fy

or

yarn add antd-timeinfotable-fy

注意

由于使用了react-Hooks,需安装 react 16.8.0 版本以上,依赖antd,需要安装antd

"antd": "3.18.2",
 "react": "^16.8.4",

参数格式示例

const goodsTimeInfo = {
    "pointList": [{
      "id": 20880428,
      "orderSn": "429120560622",
      "address": "藁城区人民法院",
      "status": 0,
      "statusEnum": "DEFAULT",
      "provinceId": 10,
      "cityId": 138,
      "districtId": 1086,
      "provinceName": "河北",
      "cityName": "石家庄",
      "districtName": "藁城区",
      "longitude": 114.835362,
      "latitude": 38.020827,
      "contactName": "测试",
      "contactMobile": "18000000001",
      "createTime": 1575541212000,
      "planInTime": 1575616810000,
      "planOutTime": 1575627610000,
      "realInTime": 1575541492000,
      "realOutTime": 1575541505000,
      "deductInTime": 1575541492000,
      "deductOutTime": 1575541205000,
      "pointType": 1,
      "pointTypeEnum": "POINT_START"
    }, {
      "id": 20880429,
      "orderSn": "429120560622",
      "address": "保定东站",
      "status": 0,
      "statusEnum": "DEFAULT",
      "provinceId": 10,
      "cityId": 139,
      "districtId": 1110,
      "provinceName": "河北",
      "cityName": "保定",
      "districtName": "清苑区",
      "longitude": 115.600776,
      "latitude": 38.863801,
      "createTime": 1575541365000,
      "realInTime": 1575541530000,
      "deductInTime": 1575541530000,
      "pointType": 2,
      "pointTypeEnum": "POINT_CENTER"
    }, {
      "id": 20880430,
      "orderSn": "429120560622",
      "address": "金隅嘉华大厦",
      "status": 0,
      "statusEnum": "DEFAULT",
      "provinceId": 2,
      "cityId": 52,
      "districtId": 502,
      "provinceName": "北京",
      "cityName": "北京",
      "districtName": "海淀区",
      "longitude": 116.307951,
      "latitude": 40.036804,
      "contactName": "测试",
      "contactMobile": "18000000001",
      "createTime": 1575541212000,
      "planInTime": 1575670810000,
      "realInTime": 1575541542000,
      "realOutTime": 1575541542000,
      "deductInTime": 1575541842000,
      "deductOutTime": 1575541542000,
      "pointType": 3,
      "pointTypeEnum": "POINT_END"
    }],
    "planTransTime": 43200
  };

const isdeBang =0://0表示非德邦,1表示德邦;
 const titleForRows = ['客户计划', '司机打点', '进出围栏', '福佑调整', '德邦系统'];//自定义横栏标题

示例

import TimeInfoDispaly from 'antd-timeinfotable-fy';

class App extends Component {
  constructor(props) {
    super(props);
  }

  render() {
    return (
         <TimeInfoDispaly
          goodsTimeInfo={goodsTimeInfo}
          isdeBang={isDebang}
          titleForRows={titleForRows}
        />
    );
  }
}