Artifact 99e702af5f1b39386d36fc26d355ff6d6fa82e1b2e2ffaa3a7749964d507ad32:
- File
shared/ql361api/src/ql361api/models.gleam
— part of check-in
[74ded990b8]
at
2026-10-23 05:24:52
on branch trunk
— 总仓的采购入库单改为只读同步,并在本地生成批次码。
轮询和人工同步都只拉取已记账的总仓采购入库单,红冲和只作显示的仓库不入库。批次码写在本地,不回来肯。 (user: pluto size: 3290)
pub type ApiSession { ApiSession(s: String, tok: String, cookie: String) } pub type ApiError { HttpError(status: Int, body: String) NetworkError(message: String) JsonError(message: String) AuthExpired(message: String) ApiFailure(message: String) UrlParseError } pub type QlWarehouse { QlWarehouse( id: Int, code: String, fullname: String, easycode: String, ) } pub type GoodsItem { GoodsItem( id: Int, code: String, name: String, barcode: String, unit: String, spec: String, shelf_life: String, shelf_life_days: Int, position_code: String, disabled: Bool, is_category: Bool, modified_at: String, created_at: String, ) } pub type Page(item) { Page(items: List(item), total: Int) } pub type SalesOrderItem { SalesOrderItem( bill_detail_id: Int, sku_id: Int, goods_code: String, goods_name: String, barcode: String, spec: String, package_qty: Float, package_unit: String, base_qty: Float, base_unit: String, price: Float, total_money: Float, position_code: String, area_code: String, ) } pub type SalesOrderSummary { SalesOrderSummary( bill_id: Int, bill_code: String, customer_name: String, contact_person: String, phone: String, warehouse_name: String, warehouse_id: Int, bill_date: String, status: Int, status_name: String, total_qty: Float, total_money: Float, remark: String, ) } pub type SalesOrder { SalesOrder( bill_id: Int, bill_code: String, customer_name: String, contact_person: String, phone: String, warehouse_name: String, warehouse_id: Int, bill_date: String, status: Int, status_name: String, total_qty: Float, total_money: Float, remark: String, items: List(SalesOrderItem), ) } pub type PurchaseOrderItem { PurchaseOrderItem( bill_detail_id: Int, sku_id: Int, goods_code: String, goods_name: String, barcode: String, spec: String, package_qty: Float, package_unit: String, base_qty: Float, base_unit: String, price: Float, total_money: Float, position_code: String, area_code: String, ) } pub type PurchaseOrderSummary { PurchaseOrderSummary( bill_id: Int, bill_code: String, supplier_name: String, contact_person: String, phone: String, warehouse_name: String, warehouse_id: Int, bill_date: String, status: Int, status_name: String, total_qty: Float, total_money: Float, remark: String, ifred: Int, ) } pub type PurchaseOrder { PurchaseOrder( bill_id: Int, bill_code: String, supplier_name: String, contact_person: String, phone: String, warehouse_name: String, warehouse_id: Int, bill_date: String, status: Int, status_name: String, total_qty: Float, total_money: Float, remark: String, items: List(PurchaseOrderItem), ) } pub type RawEnvelope { RawEnvelope( response_type: String, msg: String, product_version: String, ) } pub type LoginResult { LoginResult( success: Bool, company_name: String, agent_real_name: String, token: String, sign: String, msg: String, ) }