supply.models.go 35KB

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