contract.ts 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  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. bankaccount?: string
  111. /**
  112. * 预估合同额
  113. */
  114. planContractAmount?: number
  115. /**
  116. * 项目id
  117. */
  118. projectId?: string
  119. /**
  120. * 质保金
  121. */
  122. qualityMoney?: number
  123. /**
  124. * 质保金状态
  125. */
  126. qualityMoneyStatus?: number
  127. /**
  128. * 应收账款
  129. */
  130. receivableAmount?: number
  131. /**
  132. * 已回款金额
  133. */
  134. receivedAmount?: number
  135. /**
  136. * 合同次类型,1-普通 2-技贸 3-入围 4-补充协议/变更 5-分包 6-外包 7-采购
  137. */
  138. secondType?: number
  139. /**
  140. * 签订方式,1-跟单 2-半开拓 3-开拓
  141. */
  142. signWay?: number
  143. /**
  144. * 税率与金额_不含税总额
  145. */
  146. taxBhsze?: number
  147. /**
  148. * 税率与金额_含税金额_6%服务
  149. */
  150. taxHsjeFw?: number
  151. /**
  152. * 税率与金额_含税金额_0%技术开发
  153. */
  154. taxHsjeJskf?: number
  155. /**
  156. * 税率与金额_含税金额_13%软件产品
  157. */
  158. taxHsjeRjcp?: number
  159. /**
  160. * 税率与金额_含税金额_小计
  161. */
  162. taxHsjeTotal?: number
  163. /**
  164. * 税率与金额_含税金额_13%硬件(平板)
  165. */
  166. taxHsjeYj?: number
  167. /**
  168. * 税率与金额_软件著作权
  169. */
  170. taxSoftpatent?: string
  171. /**
  172. * 税率与金额_综合税率
  173. */
  174. taxZhsl?: number
  175. /**
  176. * 流程状态 0-未开始 1-进行中 90-已完成
  177. */
  178. flowStatus: number
  179. /**
  180. * 分包理由
  181. */
  182. subReason?: string
  183. /**
  184. * 销售经理
  185. */
  186. areaManagerId: string
  187. /**
  188. * 签订时间
  189. */
  190. signTime?: string
  191. /**
  192. * 履约到期时间
  193. */
  194. dueTime?: string
  195. }
  196. export interface ExtraConstract {
  197. /**
  198. * 合同费用状态
  199. */
  200. amountStatus?: number
  201. /**
  202. * 申请人id
  203. */
  204. applicantId?: string
  205. /**
  206. * 申请人
  207. */
  208. applicantName?: string
  209. /**
  210. * 受托方id
  211. */
  212. assigneeId?: string
  213. /**
  214. * 受托方
  215. */
  216. assigneeName?: string
  217. /**
  218. * 委托方id
  219. */
  220. clientId?: string
  221. /**
  222. * 委托方
  223. */
  224. clientName?: string
  225. /**
  226. * 委托方编号
  227. */
  228. clientNumber: string
  229. /**
  230. * 公司认定金额
  231. */
  232. confirmAmount?: number
  233. /**
  234. * 合同余额
  235. */
  236. contractBalance?: number
  237. /**
  238. * 合同编号
  239. */
  240. contractNumber: string
  241. /**
  242. * 合同拿回日期
  243. */
  244. contractOff?: string
  245. /**
  246. * 合同拿出日期
  247. */
  248. contractOn?: string
  249. /**
  250. * 合同类型,1-主合同 2-分包合同 3-外包合同
  251. */
  252. contractType?: number
  253. /**
  254. * 是否已签订
  255. */
  256. isSign?: number
  257. parentId?: string
  258. /**
  259. * 付款条件
  260. */
  261. paymentTerms?: string
  262. /**
  263. * 采购内容需求
  264. */
  265. purchaseRequirements?: string
  266. /**
  267. * 已回款金额
  268. */
  269. receivedAmount?: number
  270. /**
  271. * 分包费
  272. */
  273. subAmount?: number
  274. /**
  275. * 分包理由
  276. */
  277. subReason?: string
  278. /**
  279. * 分包费用承担方式
  280. */
  281. subShareWay?: number
  282. }
  283. export interface ContractSub {
  284. id: string
  285. contractAmount: number
  286. reason: string
  287. purchaseRequirements: string
  288. subShareWay: number
  289. customerContact: string
  290. customerId: string
  291. contractOn: string
  292. contractOff: string
  293. planSignDate: string
  294. paymentTerms: string
  295. bz: string
  296. }