salsalesordermaterials.md 4.62 KB

salsalesordermaterials

订单材料表

  • Rows (estimated): 142
  • Data size: 96.0 KB
  • Engine: InnoDB
  • Collation: utf8mb3_general_ci
  • Created: 2026-04-27 18:56:52
  • Updated: 2026-04-27 18:56:52

Columns

# Name Type Null Key Default Extra Comment
1 iIncrement int NO PRI auto_increment 自增列
2 sId varchar(100) NO MUL 唯一ID
3 sBrandsId varchar(100) NO MUL 加工商ID
4 sSubsidiaryId varchar(100) NO 子公司ID
5 sSlaveId varchar(100) NO 从表Id
6 iOrder int NO 0 排序号
7 sParentId varchar(100) NO 父级ID
8 sControlId varchar(100) NO 控制表ID
9 sType varchar(255) YES 0 类型(部件材料、部件辅料、成品材料)
10 sMaterialsId varchar(100) NO 材料ID
11 sMaterialsStyle varchar(255) NO 材料规格
12 dAuxiliaryQty decimal(18,6) NO 0.000000 材料数量
13 sAuxiliaryUnit varchar(255) NO 材料单位
14 dMaterialsQty decimal(18,6) NO 0.000000 换算数量
15 dConversionQty decimal(18,6) NO 0.000000 预留数量
16 dCostMaterialsPrice decimal(18,6) NO 0.000000 成本价格
17 dCostMaterialsMoney decimal(18,6) NO 0.000000 成本金额
18 dMaterialsPrice decimal(18,6) NO 0.000000 材料价格
19 dMaterialsMoney decimal(18,6) NO 0.000000 材料金额
20 dMaterialsKQty decimal(18,6) NO 0.000000 材料开数
21 bComMaterials bit(1) NO b'0' 是否来料
22 bOutsideBandMaterials bit(1) NO b'0' 是否发外带料
23 sProcessId varchar(100) YES 工序ID
24 sProcessTbId varchar(100) NO 源单的工序表Id
25 sSrcMaterialsTbId varchar(100) YES 源单的材料表Id
26 sMaterialsMemo text YES 材料备注
27 sAReserve1 varchar(255) YES 预留字符1
28 sAReserve2 varchar(255) YES 预留字符2
29 sAReserve3 varchar(255) YES 预留字符3
30 sAReserve4 varchar(255) YES 预留字符4
31 sAReserve5 varchar(255) YES 预留字符5
32 sAReserve6 varchar(255) YES 预留字符6
33 dAReserve1 decimal(18,6) YES 预留数字1
34 dAReserve2 decimal(18,6) YES 预留数字2
35 dAReserve3 decimal(18,6) YES 预留数字3
36 iAReserve1 int YES 预留整型1
37 iAReserve2 int YES 预留整型2
38 iAReserve3 int YES 预留整型3
39 tAReserve1 datetime YES 预留日期1
40 tAReserve2 datetime YES 预留日期2
41 sMakePerson varchar(255) YES 制单人
42 bNotAuto bit(1) NO b'0' 手填数量
43 tCreateDate datetime NO CURRENT_TIMESTAMP DEFAULT_GENERATED 制单日期
44 sSrcControlId varchar(100) NO 源单控制表Id
45 sCombinePartsName longtext YES 合版信息
46 dPurchaseApplyAuxiliaryQty decimal(16,8) YES
47 dPurchaseApplyQty decimal(16,8) YES
48 bPurchaseApplyComplete bit(1) NO b'0' 采购申请完成
49 bPurchaseComplete bit(1) NO b'0' 采购完成
50 dProductionAuxiliaryQty decimal(18,6) NO 0.000000 领料张数
51 dProductionQty decimal(18,6) NO 0.000000 领料吨数
52 dPurchaseAuxiliaryQty decimal(18,6) NO 0.000000 采购张数
53 dPurchaseQty decimal(18,6) NO 0.000000 采购吨数
54 sType1 varchar(255) NO 1 sType1

Indexes

Name Unique Type Columns
IndexN_salsalesordermaterials BTREE sBrandsId, sSubsidiaryId, sParentId
IndexU_salsalesordermaterials BTREE sId, sBrandsId, sSubsidiaryId
PRIMARY BTREE iIncrement

Narrative

No human-written narrative yet — when this table is exercised by a vertical slice, link from there back to this page.