column.js 12 KB

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