| | |
| | | models.Material: |
| | | properties: |
| | | HSCode: |
| | | description: HS编码 |
| | | type: string |
| | | amount: |
| | | description: 数量 |
| | | type: number |
| | | barcode: |
| | | description: 条码 |
| | | type: string |
| | | buyExplain: |
| | | description: 采购说明 |
| | | type: string |
| | | canBePurchased: |
| | | description: 是否可采购 |
| | |
| | | description: 产品类别id |
| | | type: integer |
| | | companyId: |
| | | description: 公司id |
| | | type: integer |
| | | companyName: |
| | | description: 公司名称 |
| | | type: string |
| | | controlStrategy: |
| | | $ref: '#/definitions/constvar.InvoicingStrategy' |
| | | allOf: |
| | | - $ref: '#/definitions/constvar.InvoicingStrategy' |
| | | description: 控制策略 |
| | | cost: |
| | | description: 成本 |
| | | type: number |
| | | currencyName: |
| | | description: 币种名称 |
| | | type: string |
| | | customerTaxes: |
| | | description: 客户税百分比 |
| | | type: number |
| | | deliveryAdvanceTime: |
| | | description: 交货提前时间(天) |
| | | type: integer |
| | | id: |
| | | type: string |
| | | inStorageExplain: |
| | | description: 入库说明 |
| | | type: string |
| | | internalNotes: |
| | | description: 内部说明 |
| | |
| | | description: 内部参考 |
| | | type: string |
| | | internalTransferExplain: |
| | | description: 内部调拨说明 |
| | | type: string |
| | | invoicingStrategy: |
| | | allOf: |
| | |
| | | json:"purchaseType"` |
| | | type: boolean |
| | | maxInventory: |
| | | description: 最大库存 |
| | | type: number |
| | | minInventory: |
| | | description: |- |
| | |
| | | description: MaterialType constvar.ProductType `gorm:"index;type:int(11);comment:物料类型(数字)" |
| | | json:"materialType"` |
| | | name: |
| | | description: 物料名称 |
| | | type: string |
| | | orderCreation: |
| | | $ref: '#/definitions/constvar.OrderCreation' |
| | | allOf: |
| | | - $ref: '#/definitions/constvar.OrderCreation' |
| | | description: 订单创建 |
| | | originCountryId: |
| | | description: 原产地id |
| | | type: integer |
| | | originCountryName: |
| | | description: 原产地名称 |
| | | type: string |
| | | outStorageExplain: |
| | | description: 出库说明 |
| | | type: string |
| | | principal: |
| | | description: 负责人 |
| | | type: string |
| | | productTagId: |
| | | description: 产品标签 |
| | | description: 产品标签id |
| | | type: integer |
| | | productTagName: |
| | | description: 产品标签名称 |
| | | type: string |
| | | purchasePrice: |
| | | description: 采购价格 |
| | | type: number |
| | | salePrice: |
| | | description: 销售单价 |
| | | type: number |
| | | selectProduct: |
| | | description: 可选产品id |
| | | type: integer |
| | | sellExplain: |
| | | description: 销售说明 |
| | | type: string |
| | | supplier: |
| | | description: |- |
| | | FSource string `gorm:"type:varchar(191);comment:生产车间" json:"-"` |
| | | Status constvar.MaterialStatus `gorm:"type:int(11);comment:状态" json:"status"` |
| | | type: string |
| | | templateID: |
| | | description: Note string `gorm:"type:varchar(1024);comment:备注" |
| | | json:"note"` |
| | | type: string |
| | | unit: |
| | | description: LockAmount decimal.Decimal `gorm:"type:decimal(35,18);default:0;comment:锁定数量" |
| | |
| | | description: 上级id |
| | | type: integer |
| | | routeId: |
| | | description: 路线id |
| | | type: integer |
| | | routeName: |
| | | description: 公司 |