supply.models.go 35KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445
  1. package models
  2. // 供应商联系人
  3. type SpSupplierContacts struct {
  4. ID int64 `gorm:"column:id" json:"id" form:"id"`
  5. Name string `gorm:"column:name" json:"name" form:"name"`
  6. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  7. Address string `gorm:"column:address" json:"address" form:"address"`
  8. IsFirst int64 `gorm:"column:is_first" json:"is_first" form:"is_first"`
  9. SupplierCode string `gorm:"column:supplier_code" json:"supplier_code" form:"supplier_code"`
  10. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  11. Status int64 `gorm:"column:status" json:"status" form:"status"`
  12. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  13. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  14. }
  15. func (SpSupplierContacts) TableName() string {
  16. return "xt_supplier_contacts"
  17. }
  18. type SpBaseDrug struct {
  19. ID int64 `gorm:"column:id" json:"id" form:"id"`
  20. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  21. DrugCategory int64 `gorm:"column:drug_category" json:"drug_category" form:"drug_category"`
  22. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  23. DrugType int64 `gorm:"column:drug_type" json:"drug_type" form:"drug_type"`
  24. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  25. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  26. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  27. Dose string `gorm:"column:dose" json:"dose" form:"dose"`
  28. DoseUnit string `gorm:"column:dose_unit" json:"dose_unit" form:"dose_unit"`
  29. DrugDose float64 `gorm:"column:drug_dose" json:"drug_dose" form:"drug_dose"`
  30. DrugDoseUnit int64 `gorm:"column:drug_dose_unit" json:"drug_dose_unit" form:"drug_dose_unit"`
  31. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  32. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  33. Number string `gorm:"column:number" json:"number" form:"number"`
  34. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  35. DrugWarehouseInfo []*SpDrugWarehouseInfo `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug_warehouse_info"`
  36. DrugStatus string `gorm:"column:drug_status" json:"drug_status" form:"drug_status"`
  37. MinPrice float64 `gorm:"column:min_price" json:"min_price" form:"min_price"`
  38. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  39. }
  40. func (SpBaseDrug) TableName() string {
  41. return "xt_base_drug"
  42. }
  43. type SpGoodInformation struct {
  44. ID int64 `gorm:"column:id" json:"id" form:"id"`
  45. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  46. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  47. GoodUnit int64 `gorm:"column:good_unit" json:"good_unit" form:"good_unit"`
  48. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  49. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  50. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  51. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  52. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  53. GoodStatus string `gorm:"column:good_status" json:"good_status" form:"good_status"`
  54. GoodWarehouseInfo []*SpWarehouseInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"good_warehouse_info"`
  55. Number string `gorm:"column:number" json:"number" form:"number"`
  56. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  57. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  58. }
  59. func (SpGoodInformation) TableName() string {
  60. return "xt_good_information"
  61. }
  62. type SpWarehouseInfo struct {
  63. ID int64 `gorm:"column:id" json:"id" form:"id"`
  64. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  65. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  66. Status int64 `gorm:"column:status" json:"status" form:"status"`
  67. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  68. SupplyWarehouseDetailInfo int64 `gorm:"column:supply_warehouse_detail_info" json:"supply_warehouse_detail_info" form:"supply_warehouse_detail_info"`
  69. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  70. }
  71. func (SpWarehouseInfo) TableName() string {
  72. return "xt_warehouse_info"
  73. }
  74. type SpDrugWarehouseInfo struct {
  75. ID int64 `gorm:"column:id" json:"id" form:"id"`
  76. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  77. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  78. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  79. StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number" form:"stock_max_number"`
  80. StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number" form:"stock_min_number"`
  81. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  82. Status int64 `gorm:"column:status" json:"status" form:"status"`
  83. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  84. SupplyWarehouseDetailInfo int64 `gorm:"column:supply_warehouse_detail_info" json:"supply_warehouse_detail_info" form:"supply_warehouse_detail_info"`
  85. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  86. }
  87. func (SpDrugWarehouseInfo) TableName() string {
  88. return "xt_drug_warehouse_info"
  89. }
  90. type SpSupplierName struct {
  91. ID int64 `gorm:"column:id" json:"id" form:"id"`
  92. SupplierCode string `gorm:"column:supplier_code" json:"supplier_code" form:"supplier_code"`
  93. SupplierName string `gorm:"column:supplier_name" json:"supplier_name" form:"supplier_name"`
  94. SupplierType int64 `gorm:"column:supplier_type" json:"supplier_type" form:"supplier_type"`
  95. VatRate float64 `gorm:"column:vat_rate" json:"vat_rate" form:"vat_rate"`
  96. Number string `gorm:"column:number" json:"number" form:"number"`
  97. Bank string `gorm:"column:bank" json:"bank" form:"bank"`
  98. BankAccount string `gorm:"column:bank_account" json:"bank_account" form:"bank_account"`
  99. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  100. Status int64 `gorm:"column:status" json:"status" form:"status"`
  101. ContactsId int64 `gorm:"column:contacts_id" json:"contacts_id" form:"contacts_id"`
  102. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  103. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  104. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  105. Modify int64 `gorm:"column:modify" json:"modify" form:"modify"`
  106. }
  107. func (SpSupplierName) TableName() string {
  108. return "xt_supplier_name"
  109. }
  110. type SupplierWarehousingInfoOrder struct {
  111. ID int64 `gorm:"column:id" json:"id" form:"id"`
  112. OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"`
  113. IsSource int64 `gorm:"column:is_source" json:"is_source" form:"is_source"`
  114. Count int64 `gorm:"column:count" json:"count" form:"count"`
  115. Price float64 `gorm:"column:price" json:"price" form:"price"`
  116. Amount float64 `gorm:"column:amount" json:"amount" form:"amount"`
  117. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  118. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  119. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  120. Status int64 `gorm:"column:status" json:"status" form:"status"`
  121. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  122. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  123. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  124. SupplyLicenseNumber string `gorm:"column:supply_license_number" json:"supply_license_number" form:"supply_license_number"`
  125. SupplyType string `gorm:"column:supply_type" json:"supply_type" form:"supply_type"`
  126. SupplySpecificationName string `gorm:"column:supply_specification_name" json:"supply_specification_name" form:"supply_specification_name"`
  127. SupplyTotal string `gorm:"column:supply_total" json:"supply_total" form:"supply_total"`
  128. SupplyManufacturer string `gorm:"column:supply_manufacturer" json:"supply_manufacturer" form:"supply_manufacturer"`
  129. Name string `gorm:"column:name" json:"name" form:"name"`
  130. SupplyUnit string `gorm:"column:supply_unit" json:"supply_unit" form:"supply_unit"`
  131. ManufacturerId int64 `gorm:"column:manufacturer_id" json:"manufacturer_id" form:"manufacturer_id"`
  132. }
  133. func (SupplierWarehousingInfoOrder) TableName() string {
  134. return "xt_supplier_warehousing_info_order"
  135. }
  136. type SupplierWarehouseInfo struct {
  137. ID int64 `gorm:"column:id" json:"id" form:"id"`
  138. Number string `gorm:"column:number" json:"number" form:"number"`
  139. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  140. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  141. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  142. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  143. Status int64 `gorm:"column:status" json:"status" form:"status"`
  144. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  145. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  146. RateOfConcession float64 `gorm:"column:rate_of_concession" json:"rate_of_concession" form:"rate_of_concession"`
  147. DiscountAmount float64 `gorm:"column:discount_amount" json:"discount_amount" form:"discount_amount"`
  148. DocumentDate int64 `gorm:"column:document_date" json:"document_date" form:"document_date"`
  149. DeliveryDate int64 `gorm:"column:delivery_date" json:"delivery_date" form:"delivery_date"`
  150. SupplierId int64 `gorm:"column:supplier_id" json:"supplier_id" form:"supplier_id"`
  151. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  152. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  153. IsWarehouse int64 `gorm:"column:is_warehouse" json:"is_warehouse" form:"is_warehouse"`
  154. ReturnRemake string `gorm:"column:return_remake" json:"return_remake" form:"return_remake"`
  155. }
  156. func (SupplierWarehouseInfo) TableName() string {
  157. return "xt_supplier_warehouse_info"
  158. }
  159. type VmSupplierWarehouseInfo struct {
  160. ID int64 `gorm:"column:id" json:"id" form:"id"`
  161. Number string `gorm:"column:number" json:"number" form:"number"`
  162. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  163. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  164. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  165. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  166. Status int64 `gorm:"column:status" json:"status" form:"status"`
  167. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  168. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  169. RateOfConcession float64 `gorm:"column:rate_of_concession" json:"rate_of_concession" form:"rate_of_concession"`
  170. DiscountAmount float64 `gorm:"column:discount_amount" json:"discount_amount" form:"discount_amount"`
  171. DocumentDate int64 `gorm:"column:document_date" json:"document_date" form:"document_date"`
  172. DeliveryDate int64 `gorm:"column:delivery_date" json:"delivery_date" form:"delivery_date"`
  173. SupplierId int64 `gorm:"column:supplier_id" json:"supplier_id" form:"supplier_id"`
  174. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  175. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  176. IsWarehouse int64 `gorm:"column:is_warehouse" json:"is_warehouse" form:"is_warehouse"`
  177. SupplierWarehousingInfoOrder []*SupplierWarehousingInfoOrder `gorm:"ForeignKey:WarehousingId;AssociationForeignKey:ID" json:"orderInfo"`
  178. SpSupplierWarehouseOut []*SpSupplierWarehouseOut `gorm:"ForeignKey:WarehousingId;AssociationForeignKey:ID" json:"orderOut"`
  179. }
  180. func (VmSupplierWarehouseInfo) TableName() string {
  181. return "xt_supplier_warehouse_info"
  182. }
  183. type SpSupplierWarehousingOutOrder struct {
  184. ID int64 `gorm:"column:id" json:"id" form:"id"`
  185. OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"`
  186. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  187. IsSource int64 `gorm:"column:is_source" json:"is_source" form:"is_source"`
  188. Count int64 `gorm:"column:count" json:"count" form:"count"`
  189. Price float64 `gorm:"column:price" json:"price" form:"price"`
  190. Amount float64 `gorm:"column:amount" json:"amount" form:"amount"`
  191. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  192. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  193. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  194. Status int64 `gorm:"column:status" json:"status" form:"status"`
  195. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  196. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  197. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  198. Type int64 `gorm:"column:type" json:"type" form:"type"`
  199. SupplyBatchNumber string `gorm:"column:supply_batch_number" json:"supply_batch_number" form:"supply_batch_number"`
  200. SupplyProductDate int64 `gorm:"column:supply_product_date" json:"supply_product_date" form:"supply_product_date"`
  201. SupplyExpiryDate int64 `gorm:"column:supply_expiry_date" json:"supply_expiry_date" form:"supply_expiry_date"`
  202. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  203. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  204. SupplyType string `gorm:"column:supply_type" json:"supply_type" form:"supply_type"`
  205. SupplySpecificationName string `gorm:"column:supply_specification_name" json:"supply_specification_name" form:"supply_specification_name"`
  206. SupplyTotal string `gorm:"column:supply_total" json:"supply_total" form:"supply_total"`
  207. SupplyManufacturer string `gorm:"column:supply_manufacturer" json:"supply_manufacturer" form:"supply_manufacturer"`
  208. Name string `gorm:"column:name" json:"name" form:"name"`
  209. SupplyUnit string `gorm:"column:supply_unit" json:"supply_unit" form:"supply_unit"`
  210. ManufacturerId int64 `gorm:"column:manufacturer_id" json:"manufacturer_id" form:"manufacturer_id"`
  211. SupplyLicenseNumber string `gorm:"column:supply_license_number" json:"supply_license_number" form:"supply_license_number"`
  212. GoodNumber string `gorm:"column:good_number" json:"good_number" form:"good_number"`
  213. MinPrice float64 `gorm:"column:min_price" json:"min_price" form:"min_price"`
  214. IsWarehosue int64 `gorm:"column:is_warehouse" json:"is_warehouse" form:"is_warehouse"`
  215. GoodWarehouseInfo []*SpWarehouseInfo `gorm:"ForeignKey:ProjectId;AssociationForeignKey:GoodId" json:"good_warehouse_info"`
  216. DrugWarehouseInfo []*SpDrugWarehouseInfo `gorm:"ForeignKey:ProjectId;AssociationForeignKey:DrugId" json:"drug_warehouse_info"`
  217. SpBaseDrug XtBaseDrug `gorm:"ForeignKey:ProjectId;AssociationForeignKey:ID" json:"drug"`
  218. }
  219. func (SpSupplierWarehousingOutOrder) TableName() string {
  220. return "xt_supplier_warehousing_out_order"
  221. }
  222. type SpSupplierWarehouseOut struct {
  223. ID int64 `gorm:"column:id" json:"id" form:"id"`
  224. Number string `gorm:"column:number" json:"number" form:"number"`
  225. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  226. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  227. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  228. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  229. Status int64 `gorm:"column:status" json:"status" form:"status"`
  230. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  231. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  232. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  233. GoodNumber string `gorm:"column:good_number" json:"good_number" form:"good_number"`
  234. Arrearage float64 `gorm:"column:arrearage" json:"arrearage" form:"arrearage"`
  235. Payment float64 `gorm:"column:payment" json:"payment" form:"payment"`
  236. RateOfConcession float64 `gorm:"column:rate_of_concession" json:"rate_of_concession" form:"rate_of_concession"`
  237. DiscountAmount float64 `gorm:"column:discount_amount" json:"discount_amount" form:"discount_amount"`
  238. DocumentDate int64 `gorm:"column:document_date" json:"document_date" form:"document_date"`
  239. SupplierId int64 `gorm:"column:supplier_id" json:"supplier_id" form:"supplier_id"`
  240. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  241. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  242. ReturnRemake string `gorm:"column:return_remake" json:"return_remake" form:"return_remake"`
  243. SpSupplierWarehousingOutOrder []*SpSupplierWarehousingOutOrder `gorm:"ForeignKey:warehouse_out_id;AssociationForeignKey:ID" json:"order"`
  244. }
  245. func (SpSupplierWarehouseOut) TableName() string {
  246. return "xt_supplier_warehouse_out"
  247. }
  248. type VmSupplierWarehouseOut struct {
  249. ID int64 `gorm:"column:id" json:"id" form:"id"`
  250. Number string `gorm:"column:number" json:"number" form:"number"`
  251. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  252. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  253. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  254. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  255. Status int64 `gorm:"column:status" json:"status" form:"status"`
  256. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  257. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  258. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  259. GoodNumber string `gorm:"column:good_number" json:"good_number" form:"good_number"`
  260. Arrearage float64 `gorm:"column:arrearage" json:"arrearage" form:"arrearage"`
  261. Payment float64 `gorm:"column:payment" json:"payment" form:"payment"`
  262. RateOfConcession float64 `gorm:"column:rate_of_concession" json:"rate_of_concession" form:"rate_of_concession"`
  263. DiscountAmount float64 `gorm:"column:discount_amount" json:"discount_amount" form:"discount_amount"`
  264. DocumentDate int64 `gorm:"column:document_date" json:"document_date" form:"document_date"`
  265. SupplierId int64 `gorm:"column:supplier_id" json:"supplier_id" form:"supplier_id"`
  266. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  267. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  268. SpSupplierWarehousingOutOrder []*SpSupplierWarehousingOutOrder `gorm:"ForeignKey:warehouse_out_id;AssociationForeignKey:ID" json:"orderOut"`
  269. SpSupplierWarehousingCancelOrder []*SpSupplierWarehousingCancelOrder `gorm:"ForeignKey:warehouse_out_id;AssociationForeignKey:ID" json:"cancelOut"`
  270. }
  271. func (VmSupplierWarehouseOut) TableName() string {
  272. return "xt_supplier_warehouse_out"
  273. }
  274. type VSpSupplierWarehousingOutOrder struct {
  275. ID int64 `gorm:"column:id" json:"id" form:"id"`
  276. OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"`
  277. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  278. Count int64 `gorm:"column:count" json:"count" form:"count"`
  279. Status int64 `gorm:"column:status" json:"status" form:"status"`
  280. SupplyUnit string `gorm:"column:supply_unit" json:"supply_unit" form:"supply_unit"`
  281. IsSource int64 `gorm:"column:is_source" json:"is_source" form:"is_source"`
  282. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  283. IsWarehosue int64 `gorm:"column:is_warehosue" json:"is_warehosue" form:"is_warehosue"`
  284. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  285. }
  286. func (VSpSupplierWarehousingOutOrder) TableName() string {
  287. return "xt_supplier_warehousing_out_order"
  288. }
  289. type VSupplierWarehousingInfoOrder struct {
  290. Count int64 `gorm:"column:count" json:"count" form:"count"`
  291. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  292. SupplyUnit string `gorm:"column:supply_unit" json:"supply_unit" form:"supply_unit"`
  293. IsSource int64 `gorm:"column:is_source" json:"is_source" form:"is_source"`
  294. }
  295. func (VSupplierWarehousingInfoOrder) TableName() string {
  296. return "xt_supplier_warehousing_info_order"
  297. }
  298. type SpSupplierWarehouseCancel struct {
  299. ID int64 `gorm:"column:id" json:"id" form:"id"`
  300. Number string `gorm:"column:number" json:"number" form:"number"`
  301. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  302. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  303. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  304. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  305. Status int64 `gorm:"column:status" json:"status" form:"status"`
  306. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  307. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  308. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  309. RateOfConcession float64 `gorm:"column:rate_of_concession" json:"rate_of_concession" form:"rate_of_concession"`
  310. DiscountAmount float64 `gorm:"column:discount_amount" json:"discount_amount" form:"discount_amount"`
  311. DocumentDate int64 `gorm:"column:document_date" json:"document_date" form:"document_date"`
  312. SupplierId int64 `gorm:"column:supplier_id" json:"supplier_id" form:"supplier_id"`
  313. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  314. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  315. Arrearage float64 `gorm:"column:arrearage" json:"arrearage" form:"arrearage"`
  316. Payment float64 `gorm:"column:payment" json:"payment" form:"payment"`
  317. ReturnRemark string `gorm:"column:return_remark" json:"return_remark" form:"return_remark"`
  318. }
  319. func (SpSupplierWarehouseCancel) TableName() string {
  320. return "xt_supplier_warehouse_cancel"
  321. }
  322. type SpSupplierWarehousingCancelOrder struct {
  323. ID int64 `gorm:"column:id" json:"id" form:"id"`
  324. ManufacturerId int64 `gorm:"column:manufacturer_id" json:"manufacturer_id" form:"manufacturer_id"`
  325. OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"`
  326. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  327. GoodNumber string `gorm:"column:good_number" json:"good_number" form:"good_number"`
  328. IsSource int64 `gorm:"column:is_source" json:"is_source" form:"is_source"`
  329. Count string `gorm:"column:count" json:"count" form:"count"`
  330. Price float64 `gorm:"column:price" json:"price" form:"price"`
  331. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  332. RateOfConcession float64 `gorm:"column:rate_of_concession" json:"rate_of_concession" form:"rate_of_concession"`
  333. DiscountAmount float64 `gorm:"column:discount_amount" json:"discount_amount" form:"discount_amount"`
  334. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  335. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  336. Status int64 `gorm:"column:status" json:"status" form:"status"`
  337. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  338. WarehouseCancelId int64 `gorm:"column:warehouse_cancel_id" json:"warehouse_cancel_id" form:"warehouse_cancel_id"`
  339. Type int64 `gorm:"column:type" json:"type" form:"type"`
  340. ReturnNumber string `gorm:"column:return_number" json:"return_number" form:"return_number"`
  341. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  342. SupplySpecificationName string `gorm:"column:supply_specification_name" json:"supply_specification_name" form:"supply_specification_name"`
  343. SupplyType string `gorm:"column:supply_type" json:"supply_type" form:"supply_type"`
  344. SupplyTotal string `gorm:"column:supply_total" json:"supply_total" form:"supply_total"`
  345. SupplyManufacturer string `gorm:"column:supply_manufacturer" json:"supply_manufacturer" form:"supply_manufacturer"`
  346. Name string `gorm:"column:name" json:"name" form:"name"`
  347. SupplyUnit string `gorm:"column:supply_unit" json:"supply_unit" form:"supply_unit"`
  348. SupplyLicenseNumber string `gorm:"column:supply_license_number" json:"supply_license_number" form:"supply_license_number"`
  349. SupplyBatchNumber string `gorm:"column:supply_batch_number" json:"supply_batch_number" form:"supply_batch_number"`
  350. SupplyProductDate int64 `gorm:"column:supply_product_date" json:"supply_product_date" form:"supply_product_date"`
  351. SupplyExpiryDate int64 `gorm:"column:supply_expiry_date" json:"supply_expiry_date" form:"supply_expiry_date"`
  352. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  353. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  354. SourceCount string `gorm:"column:source_count" json:"source_count" form:"source_count"`
  355. SupplyWarehouseDetailInfo int64 `gorm:"column:supply_warehouse_detail_info" json:"supply_warehouse_detail_info" form:"supply_warehouse_detail_info"`
  356. SupplyCount int64 `gorm:"column:supply_count" json:"supply_count" form:"supply_count"`
  357. DepositRate float64 `gorm:"column:deposit_rate" json:"deposit_rate" form:"deposit_rate"`
  358. }
  359. func (SpSupplierWarehousingCancelOrder) TableName() string {
  360. return "xt_supplier_warehousing_cancel_order"
  361. }
  362. type VmSpSupplierWarehouseCancel struct {
  363. ID int64 `gorm:"column:id" json:"id" form:"id"`
  364. Number string `gorm:"column:number" json:"number" form:"number"`
  365. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  366. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  367. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  368. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  369. Status int64 `gorm:"column:status" json:"status" form:"status"`
  370. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  371. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  372. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  373. RateOfConcession float64 `gorm:"column:rate_of_concession" json:"rate_of_concession" form:"rate_of_concession"`
  374. DiscountAmount float64 `gorm:"column:discount_amount" json:"discount_amount" form:"discount_amount"`
  375. DocumentDate int64 `gorm:"column:document_date" json:"document_date" form:"document_date"`
  376. SupplierId int64 `gorm:"column:supplier_id" json:"supplier_id" form:"supplier_id"`
  377. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  378. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  379. Arrearage float64 `gorm:"column:arrearage" json:"arrearage" form:"arrearage"`
  380. Payment float64 `gorm:"column:payment" json:"payment" form:"payment"`
  381. ReturnRemark string `gorm:"column:return_remark" json:"return_remark" form:"return_remark"`
  382. SpSupplierWarehousingCancelOrder []*SpSupplierWarehousingCancelOrder `gorm:"ForeignKey:warehouse_cancel_id;AssociationForeignKey:ID" json:"cancelOrder"`
  383. }
  384. func (VmSpSupplierWarehouseCancel) TableName() string {
  385. return "xt_supplier_warehouse_cancel"
  386. }
  387. type VmSpSupplierWarehousingOutOrder struct {
  388. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  389. IsSource int64 `gorm:"column:is_source" json:"is_source" form:"is_source"`
  390. Count int64 `gorm:"column:count" json:"count" form:"count"`
  391. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  392. SupplyUnit string `gorm:"column:supply_unit" json:"supply_unit" form:"supply_unit"`
  393. }
  394. func (VmSpSupplierWarehousingOutOrder) TableName() string {
  395. return "xt_supplier_warehousing_out_order"
  396. }
  397. type VmSpSupplierWarehousingCancelOrder struct {
  398. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  399. IsSource int64 `gorm:"column:is_source" json:"is_source" form:"is_source"`
  400. Count string `gorm:"column:count" json:"count" form:"count"`
  401. SupplyUnit string `gorm:"column:supply_unit" json:"supply_unit" form:"supply_unit"`
  402. SupplyCount int64 `gorm:"column:supply_count" json:"supply_count" form:"supply_count"`
  403. }
  404. func (VmSpSupplierWarehousingCancelOrder) TableName() string {
  405. return "xt_supplier_warehousing_cancel_order"
  406. }