supply.models.go 34KB

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