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

billeditor

v0.1.2

Published

基于 Vue 发票编辑组件

Downloads

5

Readme

billeditor

Project setup

npm install billEditor --save 

how to use the component

// main.js
import billEditor from 'billEditor';
Vue.use(billEditor);

slot

| name | 说明 | |---------- |-------- | | active-container | 自定义交互区 |

  <basic-invoice :invoiceData="invoiceNormalData" @invoiceDataChange="invoiceDataChange">
    <div slot="active-container" class="active-container">
      <button @click="submit">提交</button>
    </div>
  </basic-invoice>

props

| 参数 | 说明 | 类型 | 可选值 | 默认值 | |---------- |-------- |---------- |------------- |-------- | | invoiceData | 发票明细字段 | Object | - | {} |

invoiceData - 机动车

当传入数据的invoiceTypeCode'03'时,票面为机动车销售发票 | 参数 | 说明 | 类型 | |---------- |-------- |---------- | | invoiceTypeCode | 发票类型 | String | | invoiceCode | 发票代码 | String/Number | | invoiceNo | 发票号码 | String/Number | | invoiceDate | 开票日期 | String | | machineCode | 机器编号 | String | | buyerName | 购方名称 | String | | buyerTaxNo | 购方税号 | String | | cardid | 身份证号 | String | | cartype | 车辆类型 | String | | makeModel | 厂牌型号 | String | | makeAddress | 产地 | String | | certificationNo | 合格证号 | String | | importBookNo | 进口证明书号 | String | | inspectionNo | 商检单号 | String | | engineNo | 发动机号码 | String | | frameNo | 车辆识别代号/车架号码 | String | | sellerName | 销货名称 | String | | phoneNo | 电话 | String | | sellerTaxNo | 销方税号 | String | | account | 账号 | String | | address | 地址 | String | | bank | 开户银行 | String | | competentTaxName | 主管税务机关 | String | | competentTaxCode | 税务机关代码 | String | | goodsTaxRate | 税率 | String | | invoiceTotalTax | 税额 | String | | invoiceTotalPrice | 不含税金额 | String | | invoiceTotalPriceTax | 价税合计小写 | String | | invoiceTotalPriceTaxCn | 价税合计大写 | String | | taxReceiptNo | 完税凭证号码 | String | | tonnage | 吨位 | String | | maxCapacity | 限乘人数 | String | | checkCode | 校验码 | String | | receivingClerk | 收货员 | String |

invoiceData - 专/普/电/通行费/卷

专票

当传入数据的invoiceTypeCode'01'时,票面为专票

普票

当传入数据的invoiceTypeCode'04'时,票面为普票

电票

当传入数据的invoiceTypeCode'10'时,票面为电票

卷票

当传入数据的invoiceTypeCode'11'时,票面为卷票

通行费电子发票

当传入数据的invoiceTypeCode'14'时,票面为通行费电子发票 | 参数 | 说明 | 类型 | |---------- |-------- |---------- | | invoiceTypeCode | 发票类型 | String | | invoiceCode | 发票代码 | String/Number | | invoiceNo | 发票号码 | String/Number | | invoiceDate | 开票日期 | String | | machineCode | 机器编号 | String | | buyerName | 购方名称 | String | | buyerTaxNo | 购方税号 | String | | buyerAddressPhone | 购方地址、电话 | String | | buyerBankAccount | 购方开户行及账号 | String | | sellerName | 销货名称 | String | | sellerTaxNo | 销方税号 | String | | sellerAddressPhone | 销方地址、电话 | String | | sellerBankAccount | 销方开户行及账号 | String | | remarks | 备注 | String | | createDate | 填开日期 | String | | detailList | 明细列表 | Array |

detailList - 明细列表

| 参数 | 说明 | 类型 | |---------- |-------- |---------- | | goodsName | 货物或应税劳务、服务名称 | String | | goodsSpecification | 规格型号 | String | | goodsUnit | 单位 | String | | goodsQuantity | 数量 | String | | goodsPrice | 单价 | String | | goodsTotalPrice | 金额 | String | | goodsTaxRate | 税率 | String | | goodsTotalTax | 税额 | String | | LicensePlateNum | 车牌号通行费 | String | | Type | 类型通行费 | String | | CurrentDateStart | 通行日期起通行费 | String | | CurrentDateEnd | 通行日期止通行费 | String |

methos

| 参数 | 说明 | 类型 | 可选值 | 默认值 | |---------- |-------- |---------- |------------- |-------- | | invoiceDataChange | 发票明细字段 | Object | - | invoiceData |

Customize configuration

See Configuration Reference.