column.js 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467
  1. export const Columns = [
  2. {
  3. key: "puOrgName",
  4. title: "采购组织",
  5. inputType: "PopoverSelect",
  6. referName: "ORG_PARAM",
  7. dataMapping: {
  8. puOrg: "code",
  9. puOrgName: "name",
  10. },
  11. require: true,
  12. },
  13. { key: "code", title: "合同编码", inputType: "Input" },
  14. {
  15. key: "lastPuMoney",
  16. title: "上年度采购额",
  17. inputType: "Input",
  18. require: true,
  19. },
  20. {
  21. key: "buyerName",
  22. title: "采购员",
  23. inputType: "PopoverSelect",
  24. referName: "CONTACTS_PARAM",
  25. dataMapping: {
  26. buyer: "code",
  27. buyerName: "name",
  28. puDept: "deptId",
  29. puDeptName: "deptName",
  30. },
  31. require: true,
  32. },
  33. {
  34. key: "supplierName",
  35. title: "供应商",
  36. inputType: "PopoverSelect",
  37. referName: "SUPPLIER_PARAM",
  38. dataMapping: {
  39. supplier: "code",
  40. supplierName: "name",
  41. },
  42. require: true,
  43. },
  44. {
  45. key: "contractType",
  46. title: "合同类型",
  47. inputType: "Select",
  48. require: true,
  49. referName: "purchase_contract_contract_type",
  50. },
  51. {
  52. key: "puMoneyYear",
  53. title: "本年度采购额",
  54. inputType: "InputNumber",
  55. require: true,
  56. },
  57. {
  58. key: "puDeptName",
  59. title: "采购部门",
  60. inputType: "PopoverSelect",
  61. referName: "DEPT_PARAM",
  62. dataMapping: {
  63. puDept: "code",
  64. puDeptName: "name",
  65. },
  66. require: true,
  67. },
  68. {
  69. key: "supplierTier",
  70. title: "供应商层级",
  71. inputType: "Select",
  72. require: true,
  73. referName: "purchase_contract_supplier_tier",
  74. },
  75. { key: "contractName", title: "合同名称", inputType: "Input", require: true },
  76. {
  77. key: "grossRateAverage",
  78. title: "平均毛利率",
  79. inputType: "Input",
  80. require: true,
  81. },
  82. {
  83. key: "approveFlow",
  84. title: "审批流程",
  85. inputType: "Select",
  86. require: true,
  87. referName: "purchase_contract_approve_flow",
  88. },
  89. {
  90. key: "consumableClass",
  91. title: "耗材类别",
  92. inputType: "Select",
  93. require: true,
  94. referName: "purchase_contract_consumable_class",
  95. },
  96. {
  97. key: "effectiveDate",
  98. title: "合同生效日期",
  99. inputType: "DatePicker",
  100. require: true,
  101. },
  102. {
  103. key: "brandGrossRate",
  104. title: "同类品牌及毛利率",
  105. inputType: "Input",
  106. require: true,
  107. },
  108. {
  109. key: "contractFormat",
  110. title: "合同格式",
  111. inputType: "Input",
  112. require: true,
  113. },
  114. {
  115. key: "productName",
  116. title: "产品类别&名称",
  117. inputType: "Input",
  118. require: true,
  119. },
  120. {
  121. key: "endDate",
  122. title: "合同终止日期",
  123. inputType: "DatePicker",
  124. require: true,
  125. },
  126. {
  127. key: "invoiceTax",
  128. title: "发票税率",
  129. inputType: "PopoverSelect",
  130. referName: "ORG_PARAM",
  131. dataMapping: {
  132. invoiceTax: "mattaxesname",
  133. },
  134. require: true,
  135. },
  136. {
  137. key: "emergencyDegree",
  138. title: "紧急程度",
  139. inputType: "Select",
  140. require: true,
  141. referName: "purchase_contract_emergency_degree",
  142. },
  143. { key: "project", title: "项目医院", inputType: "Input", require: true },
  144. {
  145. key: "signDate",
  146. title: "合同签订日期",
  147. inputType: "DatePicker",
  148. require: true,
  149. },
  150. {
  151. key: "deliveryType",
  152. title: "交货方式",
  153. inputType: "Select",
  154. referName: "purchase_contract_delivery_type",
  155. },
  156. {
  157. key: "source",
  158. title: "合同来源",
  159. inputType: "Input",
  160. value: "自制",
  161. disabled: true,
  162. },
  163. {
  164. key: "contractPartycName",
  165. title: "合同丙方",
  166. inputType: "PopoverSelect",
  167. referName: "SUPPLIER_PARAM",
  168. dataMapping: {
  169. contractPartyc: "code",
  170. contractPartycName: "name",
  171. },
  172. },
  173. {
  174. key: "guaranteePeriodEnd",
  175. title: "质保期限",
  176. inputType: "Input",
  177. require: true,
  178. },
  179. {
  180. key: "freightMethods",
  181. title: "运费承担方式",
  182. inputType: "Select",
  183. referName: "purchase_contract_freight_methods",
  184. },
  185. {
  186. key: "signDate",
  187. title: "合同创建时间",
  188. inputType: "DatePicker",
  189. disabled: true,
  190. },
  191. {
  192. key: "isTarget",
  193. title: "是否有指标",
  194. inputType: "Select",
  195. require: true,
  196. referName: "purchase_contract_is_target",
  197. },
  198. {
  199. key: "contractTarget",
  200. title: "合同指标",
  201. inputType: "Input",
  202. require: true,
  203. placeholder: '当【是否有指标】="有"时,必填',
  204. },
  205. {
  206. key: "exemptionPostageCondtion",
  207. title: "包邮条件",
  208. inputType: "Input",
  209. placeholder:
  210. "当运费承担方式为供应商有条件承担时,该字段必填,填写要求,写明什么条件下供应商承担全部,什么条件下我方承担,什么条件下分别承担",
  211. span: 12,
  212. },
  213. {
  214. key: "isRebate",
  215. title: "是否有返利",
  216. inputType: "Select",
  217. require: true,
  218. referName: "purchase_contract_is_rebate",
  219. },
  220. {
  221. key: "rebatePolicy",
  222. title: "返利政策",
  223. inputType: "Input",
  224. placeholder: '当【是否有返利】="有"时,必填',
  225. span: 18,
  226. },
  227. { key: "externalContract", title: "外部合同号", inputType: "Input" },
  228. {
  229. key: "rollbackPolicy",
  230. title: "退换货政策",
  231. inputType: "Input",
  232. require: true,
  233. },
  234. {
  235. key: "contractContent",
  236. title: "合同主要内容",
  237. inputType: "Textarea",
  238. require: true,
  239. span: 24,
  240. },
  241. { key: "refusalReasons", title: "拒绝理由", inputType: "Input", span: 24 },
  242. { key: "enquiryCode", title: "询价单号", inputType: "Input" },
  243. { key: "externalFile", title: "对外附件", inputType: "Upload", span: 24 },
  244. { key: "puFile", title: "采购商盖章合同附件", inputType: "Upload", span: 24 },
  245. {
  246. key: "supplierFile",
  247. title: "供应商盖章合同附件",
  248. inputType: "Upload",
  249. span: 24,
  250. },
  251. { key: "projectCode", title: "项目编号", inputType: "Input" },
  252. { key: "projectName", title: "项目名称", inputType: "Input" },
  253. { key: "area", title: "区域", inputType: "Input" },
  254. { key: "consigneePhone", title: "收货人联系方式", inputType: "Input" },
  255. {
  256. key: "paymentAgreementName",
  257. title: "付款协议",
  258. inputType: "PopoverSelect",
  259. referName: "PAYAGREEMENT_PARAM",
  260. dataMapping: {
  261. paymentAgreement: "code",
  262. paymentAgreementName: "name",
  263. },
  264. require: true,
  265. },
  266. {
  267. key: "taxPrice",
  268. title: "价税合计",
  269. inputType: "InputNumber",
  270. },
  271. {
  272. key: "currencyName",
  273. title: "币种",
  274. inputType: "PopoverSelect",
  275. referName: "CURRENCY_PARAM",
  276. dataMapping: {
  277. currency: "code",
  278. currencyName: "name",
  279. },
  280. require: true,
  281. },
  282. { key: "guaranteePeriod", title: "质保期", inputType: "Input" },
  283. ];
  284. export const SearchColumns = [
  285. { key: "contractName", title: "合同名称", search: true, inputType: "Input" },
  286. ];
  287. export const TabColumns = [
  288. {
  289. show: {
  290. contractType: [1, 2],
  291. },
  292. title: "物料基本信息",
  293. key: "contractItemList",
  294. tableColumns: [
  295. { title: "物料编码", key: "material", width: 200 },
  296. {
  297. title: "物料名称",
  298. key: "materialName",
  299. inputType: "PopoverSelect",
  300. width: 200,
  301. referName: "MATERIAL_PARAM",
  302. dataMapping: {
  303. material: "code",
  304. materialName: "name",
  305. },
  306. },
  307. {
  308. title: "规格",
  309. key: "specification",
  310. width: 200,
  311. referName: "MATERIAL_PARAM",
  312. dataMapping: {
  313. material: "code",
  314. materialName: "name",
  315. },
  316. },
  317. {
  318. title: "品牌",
  319. key: "brand",
  320. inputType: "PopoverSelect",
  321. width: 200,
  322. referName: "MATERIAL_PARAM",
  323. dataMapping: {
  324. material: "code",
  325. materialName: "name",
  326. },
  327. },
  328. {
  329. title: "生产厂家",
  330. key: "manufacturer",
  331. inputType: "Input",
  332. width: 200,
  333. },
  334. {
  335. title: "采购单位",
  336. key: "puUnit",
  337. inputType: "PopoverSelect",
  338. width: 200,
  339. referName: "MATERIAL_PARAM",
  340. dataMapping: {
  341. material: "code",
  342. materialName: "name",
  343. },
  344. },
  345. {
  346. title: "税率%",
  347. key: "tax",
  348. inputType: "PopoverSelect",
  349. referName: "MATERIAL_PARAM",
  350. dataMapping: {
  351. material: "code",
  352. materialName: "name",
  353. },
  354. width: 200,
  355. },
  356. {
  357. title: "采购数量",
  358. key: "qty",
  359. inputType: "InputNumber",
  360. width: 200,
  361. },
  362. {
  363. title: "含税单价",
  364. key: "taxPrice",
  365. inputType: "InputNumber",
  366. width: 200,
  367. },
  368. { title: "含税金额合计", key: "taxMoney", width: 200 },
  369. { title: "无税单价", key: "taxFreePrice" },
  370. { title: "无税金额合计", key: "taxFreeMoney", width: 200 },
  371. {
  372. title: "注册证号及备案凭证号",
  373. key: "registration",
  374. inputType: "Input",
  375. width: 200,
  376. },
  377. {
  378. title: "收货客户",
  379. key: "customerName",
  380. inputType: "PopoverSelect",
  381. width: 200,
  382. referName: "SUPPLIER_PARAM",
  383. dataMapping: {
  384. material: "code",
  385. materialName: "name",
  386. },
  387. },
  388. { title: "备注", key: "remark", inputType: "Input", width: 200 },
  389. ],
  390. },
  391. {
  392. title: "合同条款",
  393. key: "contractClauseList",
  394. tableColumns: [
  395. { title: "条款编码", key: "code", inputType: "Input" },
  396. { title: "条款名称", key: "name", inputType: "Input" },
  397. { title: "条款内容", key: "content", inputType: "Input" },
  398. { title: "变量序号", key: "variableRowno" },
  399. { title: "变量内容", key: "variableContent", inputType: "Input" },
  400. { title: "备注", key: "remark", inputType: "Input" },
  401. ],
  402. },
  403. {
  404. title: "合同费用",
  405. key: "contractExpenseList",
  406. tableColumns: [
  407. { title: "费用编码", key: "code", inputType: "Input" },
  408. { title: "费用名称", key: "name", inputType: "Input" },
  409. {
  410. title: "费用金额",
  411. key: "money",
  412. inputType: "InputNumber",
  413. width: 200,
  414. },
  415. { title: "备注", key: "remark", inputType: "Input" },
  416. ],
  417. },
  418. {
  419. title: "付款协议信息",
  420. key: "contractAgreementList",
  421. tableColumns: [
  422. {
  423. title: "付款阶段",
  424. key: "satge",
  425. inputType: "InputNumber",
  426. width: 200,
  427. },
  428. {
  429. title: "付款起点",
  430. key: "origin",
  431. inputType: "PopoverSelect",
  432. width: 200,
  433. referName: "MATERIAL_PARAM",
  434. dataMapping: {
  435. material: "code",
  436. materialName: "name",
  437. },
  438. },
  439. { title: "账期天数", key: "paymetDays", inputType: "Input", width: 200 },
  440. { title: "付款比例%", key: "ratio", inputType: "Input", width: 200 },
  441. { title: "付款金额", key: "money", inputType: "Input", width: 200 },
  442. { title: "是否预付款", key: "isAdvance", width: 200 },
  443. { title: "是否质保金", key: "isQuality", width: 200 },
  444. {
  445. title: "结算方式",
  446. key: "paymentMeans",
  447. inputType: "Input",
  448. width: 200,
  449. },
  450. { title: "备注", key: "remark", inputType: "Input", width: 200 },
  451. { title: "需进度确认", key: "schedule", inputType: "Select", width: 200 },
  452. ],
  453. },
  454. {
  455. title: "合同执行组织范围",
  456. key: "contractApplyOrgList",
  457. tableColumns: [
  458. { title: "组织名称", key: "orgName", inputType: "Input" },
  459. { title: "组织编码", key: "org", inputType: "Input" },
  460. ],
  461. },
  462. ];