column.js 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510
  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: "puarchase_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: "puarchase_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: "puarchase_contract_approve_flow",
  88. },
  89. {
  90. key: "consumableClass",
  91. title: "耗材类别",
  92. inputType: "Select",
  93. require: true,
  94. referName: "puarchase_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: "Select",
  112. require: true,
  113. referName: "puarchase_contract_contract_format",
  114. },
  115. {
  116. key: "productName",
  117. title: "产品类别&名称",
  118. inputType: "Input",
  119. require: true,
  120. },
  121. {
  122. key: "endDate",
  123. title: "合同终止日期",
  124. inputType: "DatePicker",
  125. require: true,
  126. },
  127. {
  128. key: "invoiceTax",
  129. title: "发票税率",
  130. inputType: "PopoverSelect",
  131. referName: "TAX_RATE_PARAM",
  132. dataMapping: {
  133. invoiceTax: "name",
  134. },
  135. require: true,
  136. },
  137. {
  138. key: "emergencyDegree",
  139. title: "紧急程度",
  140. inputType: "Select",
  141. require: true,
  142. referName: "puarchase_contract_emergency_degree",
  143. },
  144. { key: "project", title: "项目医院", inputType: "Input", require: true },
  145. {
  146. key: "signDate",
  147. title: "合同签订日期",
  148. inputType: "DatePicker",
  149. require: true,
  150. },
  151. {
  152. key: "deliveryType",
  153. title: "交货方式",
  154. inputType: "Select",
  155. referName: "puarchase_contract_delivery_type",
  156. },
  157. {
  158. key: "source",
  159. title: "合同来源",
  160. inputType: "Input",
  161. value: "自制",
  162. disabled: true,
  163. },
  164. {
  165. key: "contractPartycName",
  166. title: "合同丙方",
  167. inputType: "PopoverSelect",
  168. referName: "SUPPLIER_PARAM",
  169. dataMapping: {
  170. contractPartyc: "code",
  171. contractPartycName: "name",
  172. },
  173. },
  174. {
  175. key: "guaranteePeriodEnd",
  176. title: "质保期限",
  177. inputType: "Input",
  178. require: true,
  179. },
  180. {
  181. key: "freightMethods",
  182. title: "运费承担方式",
  183. inputType: "Select",
  184. referName: "puarchase_contract_freight_methods",
  185. },
  186. {
  187. key: "signDate",
  188. title: "合同创建时间",
  189. inputType: "DatePicker",
  190. disabled: true,
  191. },
  192. {
  193. key: "isTarget",
  194. title: "是否有指标",
  195. inputType: "Select",
  196. require: true,
  197. referName: "sys_yes_no",
  198. },
  199. {
  200. key: "contractTarget",
  201. title: "合同指标",
  202. inputType: "Input",
  203. require: true,
  204. placeholder: '当【是否有指标】="有"时,必填',
  205. },
  206. {
  207. key: "exemptionPostageCondtion",
  208. title: "包邮条件",
  209. inputType: "Input",
  210. placeholder:
  211. "当运费承担方式为供应商有条件承担时,该字段必填,填写要求,写明什么条件下供应商承担全部,什么条件下我方承担,什么条件下分别承担",
  212. span: 12,
  213. },
  214. {
  215. key: "isRebate",
  216. title: "是否有返利",
  217. inputType: "Select",
  218. require: true,
  219. referName: "sys_yes_no",
  220. },
  221. {
  222. key: "rebatePolicy",
  223. title: "返利政策",
  224. inputType: "Input",
  225. placeholder: '当【是否有返利】="有"时,必填',
  226. span: 18,
  227. },
  228. { key: "externalContract", title: "外部合同号", inputType: "Input" },
  229. {
  230. key: "rollbackPolicy",
  231. title: "退换货政策",
  232. inputType: "Input",
  233. require: true,
  234. },
  235. { key: "enquiryCode", title: "询价单号", inputType: "Input" },
  236. {
  237. key: "contractContent",
  238. title: "合同主要内容",
  239. inputType: "Textarea",
  240. require: true,
  241. span: 24,
  242. },
  243. { key: "refusalReasons", title: "拒绝理由", inputType: "Input", span: 24 },
  244. {
  245. key: "externalFile",
  246. title: "对外附件",
  247. inputType: "Upload",
  248. span: 24,
  249. fileType: ["pdf"],
  250. },
  251. {
  252. key: "puFile",
  253. title: "采购商盖章合同附件",
  254. inputType: "Upload",
  255. span: 24,
  256. fileType: ["pdf"],
  257. },
  258. {
  259. key: "supplierFile",
  260. title: "供应商盖章合同附件",
  261. inputType: "Upload",
  262. span: 24,
  263. fileType: ["pdf"],
  264. },
  265. { key: "projectCode", title: "项目编号", inputType: "Input" },
  266. { key: "projectName", title: "项目名称", inputType: "Input" },
  267. { key: "area", title: "区域", inputType: "Input" },
  268. { key: "consigneePhone", title: "收货人联系方式", inputType: "Input" },
  269. {
  270. key: "paymentAgreement",
  271. title: "付款协议",
  272. inputType: "PopoverSelect",
  273. referName: "PAYAGREEMENT_PARAM",
  274. dataMapping: {
  275. paymentAgreement: "code",
  276. paymentAgreementName: "name",
  277. },
  278. require: true,
  279. },
  280. {
  281. key: "taxPrice",
  282. title: "价税合计",
  283. inputType: "InputNumber",
  284. },
  285. {
  286. key: "currencyName",
  287. title: "币种",
  288. inputType: "PopoverSelect",
  289. referName: "CURRENCY_PARAM",
  290. dataMapping: {
  291. currency: "code",
  292. currencyName: "name",
  293. },
  294. require: true,
  295. },
  296. { key: "guaranteePeriod", title: "质保期", inputType: "Input" },
  297. ];
  298. export const SearchColumns = [
  299. { key: "contractName", title: "合同名称", search: true, inputType: "Input" },
  300. ];
  301. export const TabColumns = [
  302. {
  303. title: "物料基本信息",
  304. key: "contractItemList",
  305. tableColumns: [
  306. {
  307. title: "物料名称",
  308. key: "materialName",
  309. inputType: "PopoverSelect",
  310. width: 200,
  311. referName: "MATERIAL_PARAM",
  312. dataMapping: {
  313. material: "code",
  314. materialName: "name",
  315. },
  316. },
  317. { title: "物料编码", key: "material", width: 200 },
  318. {
  319. title: "规格",
  320. key: "specification",
  321. width: 200,
  322. },
  323. // {
  324. // title: "品牌",
  325. // key: "brand",
  326. // inputType: "PopoverSelect",
  327. // width: 200,
  328. // referName: "MATERIAL_PARAM",
  329. // dataMapping: {
  330. // material: "code",
  331. // materialName: "name",
  332. // },
  333. // },
  334. {
  335. title: "生产厂家",
  336. key: "manufacturer",
  337. inputType: "Input",
  338. width: 200,
  339. },
  340. {
  341. title: "采购单位",
  342. key: "puUnit",
  343. inputType: "PopoverSelect",
  344. width: 200,
  345. referName: "UNIT_PARAM",
  346. dataMapping: {
  347. puUnit: "name",
  348. },
  349. },
  350. {
  351. title: "税率%",
  352. key: "tax",
  353. inputType: "PopoverSelect",
  354. referName: "TAX_RATE_PARAM",
  355. dataMapping: {
  356. tax: "name",
  357. },
  358. width: 200,
  359. },
  360. {
  361. title: "采购数量",
  362. key: "qty",
  363. inputType: "InputNumber",
  364. width: 200,
  365. },
  366. {
  367. title: "含税单价",
  368. key: "taxPrice",
  369. inputType: "InputNumber",
  370. width: 200,
  371. },
  372. {
  373. title: "含税金额合计",
  374. key: "taxMoney",
  375. inputType: "ComputedInput",
  376. width: 200,
  377. computed: (prop) => {
  378. const { qty, taxPrice } = prop;
  379. return qty && taxPrice ? qty * taxPrice : null;
  380. },
  381. },
  382. { title: "无税单价", key: "taxFreePrice" },
  383. { title: "无税金额合计", key: "taxFreeMoney", width: 200 },
  384. {
  385. title: "注册证号及备案凭证号",
  386. key: "registration",
  387. inputType: "Input",
  388. width: 200,
  389. },
  390. {
  391. title: "收货客户",
  392. key: "customerName",
  393. inputType: "PopoverSelect",
  394. width: 200,
  395. referName: "CUSTOMER_PARAM",
  396. dataMapping: {
  397. customer: "code",
  398. customerName: "name",
  399. },
  400. },
  401. { title: "备注", key: "remark", inputType: "Input", width: 200 },
  402. ],
  403. },
  404. {
  405. title: "合同条款",
  406. key: "contractClauseList",
  407. tableColumns: [
  408. { title: "条款编码", key: "code", inputType: "Input" },
  409. { title: "条款名称", key: "name", inputType: "Input" },
  410. { title: "条款内容", key: "content", inputType: "Input" },
  411. { title: "变量序号", key: "variableRowno" },
  412. { title: "变量内容", key: "variableContent", inputType: "Input" },
  413. { title: "备注", key: "remark", inputType: "Input" },
  414. ],
  415. },
  416. {
  417. title: "合同费用",
  418. key: "contractExpenseList",
  419. tableColumns: [
  420. { title: "费用编码", key: "code", inputType: "Input" },
  421. { title: "费用名称", key: "name", inputType: "Input" },
  422. {
  423. title: "费用金额",
  424. key: "money",
  425. inputType: "InputNumber",
  426. width: 200,
  427. },
  428. { title: "备注", key: "remark", inputType: "Input" },
  429. ],
  430. },
  431. {
  432. title: "付款协议信息",
  433. key: "contractAgreementList",
  434. tableColumns: [
  435. {
  436. title: "付款阶段",
  437. key: "satge",
  438. inputType: "InputNumber",
  439. width: 200,
  440. },
  441. {
  442. title: "付款起点",
  443. key: "origin",
  444. inputType: "PopoverSelect",
  445. width: 200,
  446. referName: "MATERIAL_PARAM",
  447. dataMapping: {
  448. material: "code",
  449. materialName: "name",
  450. },
  451. },
  452. { title: "账期天数", key: "paymetDays", inputType: "Input", width: 200 },
  453. { title: "付款比例%", key: "ratio", inputType: "Input", width: 200 },
  454. { title: "付款金额", key: "money", inputType: "Input", width: 200 },
  455. {
  456. title: "是否预付款",
  457. key: "isAdvance",
  458. width: 200,
  459. inputType: "Select",
  460. referName: "sys_yes_no",
  461. },
  462. {
  463. title: "是否质保金",
  464. key: "isQuality",
  465. width: 200,
  466. inputType: "Select",
  467. referName: "sys_yes_no",
  468. },
  469. {
  470. title: "结算方式",
  471. key: "paymentMeans",
  472. inputType: "PopoverSelect",
  473. width: 200,
  474. referName: "BALATYPE_PARAM",
  475. dataMapping: {
  476. paymentMeans: "name",
  477. },
  478. },
  479. { title: "备注", key: "remark", inputType: "Input", width: 200 },
  480. {
  481. title: "需进度确认",
  482. key: "schedule",
  483. inputType: "Select",
  484. referName: "sys_yes_no",
  485. width: 200,
  486. },
  487. ],
  488. },
  489. {
  490. title: "合同执行组织范围",
  491. key: "contractApplyOrgList",
  492. tableColumns: [
  493. {
  494. title: "组织名称",
  495. key: "orgName",
  496. inputType: "PopoverSelect",
  497. referName: "ORG_PARAM",
  498. dataMapping: {
  499. org: "code",
  500. orgName: "name",
  501. },
  502. },
  503. { title: "组织编码", key: "org" },
  504. ],
  505. },
  506. ];