contract.ts 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  1. export type ContractId = string
  2. // 合同相关查询params
  3. export interface ContractQueryParams {
  4. contractId: ContractId
  5. }
  6. /**
  7. * 合同数据类型
  8. */
  9. export interface Contract {
  10. /**
  11. * 合同费用状态,{ 2,"未付清"},{ 3,"已付清"},{ 4,"手动设置已付清"}
  12. */
  13. amountStatus?: number
  14. /**
  15. * 受托方id
  16. */
  17. assigneeId?: string
  18. /**
  19. * 受托方
  20. */
  21. assigneeName?: string
  22. /**
  23. * 挂靠管理费比例
  24. */
  25. attachManageRatio?: number | null
  26. /**
  27. * 合同分类, { 1,"采购合同"},{ 2,"技术服务合同"},{ 3,"技贸合同"},{ 4,"协议合同"},{ 5,"其他"}
  28. */
  29. category?: number
  30. /**
  31. * 分包和外包合同
  32. */
  33. children?: ExtraConstract[]
  34. /**
  35. * 分包和外包合同
  36. */
  37. contractSubList?: ExtraConstract[]
  38. /**
  39. * 委托方id
  40. */
  41. clientId?: string
  42. /**
  43. * 委托方
  44. */
  45. clientName?: string
  46. /**
  47. * 委托方编号
  48. */
  49. clientNumber: string
  50. /**
  51. * 合同金额
  52. */
  53. contractAmount?: number
  54. /**
  55. * 合同余额
  56. */
  57. contractBalance?: number
  58. /**
  59. * 净合同额
  60. */
  61. contractNetAmount?: number
  62. /**
  63. * 合同编号
  64. */
  65. contractNumber: string
  66. /**
  67. * 合同拿回日期
  68. */
  69. contractOff?: string
  70. /**
  71. * 合同拿出日期
  72. */
  73. contractOn?: string
  74. /**
  75. * 客户联系人
  76. */
  77. customerContact?: string
  78. /**
  79. * 客户联系人id
  80. */
  81. customerContactId?: string
  82. id: null | string
  83. /**
  84. * 流程id
  85. */
  86. instanceId?: string
  87. /**
  88. * 已开票金额
  89. */
  90. invoicedAmount?: number
  91. /**
  92. * 是否已签订,{ 0,"未签"},{1,"已签"},{ 2,"待拿回"},{ 3,"不签"}
  93. */
  94. isSign?: number
  95. /**
  96. * 合同主类型,1-规划类 2-数据工程类 3-软件类 4-采购类
  97. */
  98. mainType?: string
  99. /**
  100. * 合同名称
  101. */
  102. name?: string
  103. /**
  104. * 付款条件
  105. */
  106. paymentTerms?: string
  107. /**
  108. * 预估合同额
  109. */
  110. planContractAmount?: number
  111. /**
  112. * 项目id
  113. */
  114. projectId?: string
  115. /**
  116. * 质保金
  117. */
  118. qualityMoney?: number
  119. /**
  120. * 质保金状态
  121. */
  122. qualityMoneyStatus?: number
  123. /**
  124. * 应收账款
  125. */
  126. receivableAmount?: number
  127. /**
  128. * 已回款金额
  129. */
  130. receivedAmount?: number
  131. /**
  132. * 合同次类型,1-普通 2-技贸 3-入围 4-补充协议/变更 5-分包 6-外包 7-采购
  133. */
  134. secondType?: number
  135. /**
  136. * 签订方式,1-跟单 2-半开拓 3-开拓
  137. */
  138. signWay?: number
  139. /**
  140. * 税率与金额_不含税总额
  141. */
  142. taxBhsze?: number
  143. /**
  144. * 税率与金额_含税金额_6%服务
  145. */
  146. taxHsjeFw?: number
  147. /**
  148. * 税率与金额_含税金额_0%技术开发
  149. */
  150. taxHsjeJskf?: number
  151. /**
  152. * 税率与金额_含税金额_13%软件产品
  153. */
  154. taxHsjeRjcp?: number
  155. /**
  156. * 税率与金额_含税金额_小计
  157. */
  158. taxHsjeTotal?: number
  159. /**
  160. * 税率与金额_含税金额_13%硬件(平板)
  161. */
  162. taxHsjeYj?: number
  163. /**
  164. * 税率与金额_软件著作权
  165. */
  166. taxSoftpatent?: string
  167. /**
  168. * 税率与金额_综合税率
  169. */
  170. taxZhsl?: number
  171. /**
  172. * 流程状态 0-未开始 1-进行中 90-已完成
  173. */
  174. flowStatus: number
  175. /**
  176. * 分包理由
  177. */
  178. subReason?: string
  179. /**
  180. * 销售经理
  181. */
  182. areaManagerId: string
  183. /**
  184. * 签订时间
  185. */
  186. signTime?: string
  187. /**
  188. * 履约到期时间
  189. */
  190. dueTime?: string
  191. }
  192. export interface ExtraConstract {
  193. /**
  194. * 合同费用状态
  195. */
  196. amountStatus?: number
  197. /**
  198. * 申请人id
  199. */
  200. applicantId?: string
  201. /**
  202. * 申请人
  203. */
  204. applicantName?: string
  205. /**
  206. * 受托方id
  207. */
  208. assigneeId?: string
  209. /**
  210. * 受托方
  211. */
  212. assigneeName?: string
  213. /**
  214. * 委托方id
  215. */
  216. clientId?: string
  217. /**
  218. * 委托方
  219. */
  220. clientName?: string
  221. /**
  222. * 委托方编号
  223. */
  224. clientNumber: string
  225. /**
  226. * 公司认定金额
  227. */
  228. confirmAmount?: number
  229. /**
  230. * 合同余额
  231. */
  232. contractBalance?: number
  233. /**
  234. * 合同编号
  235. */
  236. contractNumber: string
  237. /**
  238. * 合同拿回日期
  239. */
  240. contractOff?: string
  241. /**
  242. * 合同拿出日期
  243. */
  244. contractOn?: string
  245. /**
  246. * 合同类型,1-主合同 2-分包合同 3-外包合同
  247. */
  248. contractType?: number
  249. /**
  250. * 是否已签订
  251. */
  252. isSign?: number
  253. parentId?: string
  254. /**
  255. * 付款条件
  256. */
  257. paymentTerms?: string
  258. /**
  259. * 采购内容需求
  260. */
  261. purchaseRequirements?: string
  262. /**
  263. * 已回款金额
  264. */
  265. receivedAmount?: number
  266. /**
  267. * 分包费
  268. */
  269. subAmount?: number
  270. /**
  271. * 分包理由
  272. */
  273. subReason?: string
  274. /**
  275. * 分包费用承担方式
  276. */
  277. subShareWay?: number
  278. }
  279. export interface ContractSub {
  280. id: string
  281. contractAmount: number
  282. reason: string
  283. purchaseRequirements: string
  284. subShareWay: number
  285. customerContact: string
  286. customerId: string
  287. contractOn: string
  288. contractOff: string
  289. planSignDate: string
  290. paymentTerms: string
  291. bz: string
  292. }