column.js 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. import CONFIG from "@/config";
  2. export const TableColumns = [
  3. { item: { key: "puOrgName", title: "采购组织" }, attr: {} },
  4. { item: { key: "code", title: "合同编码" }, attr: {} },
  5. {
  6. item: { key: "status", title: "状态" },
  7. attr: { is: "el-dict-tag", dictName: "documents_status" },
  8. },
  9. {
  10. item: { key: "lastPuMoney", title: "上年度采购额" },
  11. attr: {
  12. is: "el-computed-input-v2",
  13. formatter: (prop) => {
  14. return (prop * 1).toFixed(CONFIG.precision);
  15. },
  16. },
  17. },
  18. { item: { key: "buyerName", title: "采购员" }, attr: {} },
  19. { item: { key: "supplierName", title: "供应商" }, attr: {} },
  20. {
  21. item: { key: "contractType", title: "合同类型" },
  22. attr: { is: "el-dict-tag", dictName: "puarchase_contract_contract_type" },
  23. },
  24. {
  25. item: { key: "puMoneyYear", title: "本年度采购额" },
  26. attr: {
  27. is: "el-computed-input-v2",
  28. formatter: (prop) => {
  29. return (prop * 1).toFixed(CONFIG.precision);
  30. },
  31. },
  32. },
  33. { item: { key: "puDeptName", title: "采购部门" }, attr: {} },
  34. {
  35. item: { key: "supplierTier", title: "供应商层级" },
  36. attr: { is: "el-dict-tag", dictName: "puarchase_contract_supplier_tier" },
  37. },
  38. { item: { key: "contractName", title: "合同名称" }, attr: {} },
  39. {
  40. item: { key: "grossRateAverage", title: "平均毛利率 (%)" },
  41. attr: {
  42. is: "el-computed-input-v2",
  43. formatter: (prop) => {
  44. return (prop * 1).toFixed(CONFIG.precision);
  45. },
  46. },
  47. },
  48. {
  49. item: { key: "approveFlow", title: "审批流程" },
  50. attr: { is: "el-dict-tag", dictName: "puarchase_contract_approve_flow" },
  51. },
  52. {
  53. item: { key: "consumableClass", title: "耗材类别" },
  54. attr: {
  55. is: "el-dict-tag",
  56. dictName: "puarchase_contract_consumable_class",
  57. },
  58. },
  59. { item: { key: "effectiveDate", title: "合同生效日期" }, attr: {} },
  60. {
  61. item: { key: "brandGrossRate", title: "同类品牌及毛利率 (%)" },
  62. attr: {
  63. is: "el-computed-input-v2",
  64. formatter: (prop) => {
  65. return (prop * 1).toFixed(CONFIG.precision);
  66. },
  67. },
  68. },
  69. {
  70. item: { key: "contractFormat", title: "合同格式" },
  71. attr: { is: "el-dict-tag", dictName: "puarchase_contract_contract_format" },
  72. },
  73. { item: { key: "productName", title: "产品类别&名称" }, attr: {} },
  74. { item: { key: "endDate", title: "合同终止日期" }, attr: {} },
  75. {
  76. item: { key: "invoiceTax", title: "发票税率 (%)" },
  77. attr: {
  78. is: "el-computed-input-v2",
  79. formatter: (prop) => {
  80. return (prop * 1).toFixed(CONFIG.precision);
  81. },
  82. },
  83. },
  84. {
  85. item: { key: "emergencyDegree", title: "紧急程度" },
  86. attr: {
  87. is: "el-dict-tag",
  88. dictName: "puarchase_contract_emergency_degree",
  89. },
  90. },
  91. { item: { key: "project", title: "项目医院" }, attr: {} },
  92. {
  93. item: { key: "deliveryType", title: "交货方式" },
  94. attr: { is: "el-dict-tag", dictName: "puarchase_contract_delivery_type" },
  95. },
  96. { item: { key: "source", title: "合同来源" }, attr: {} },
  97. { item: { key: "contractPartycName", title: "合同丙方" }, attr: {} },
  98. { item: { key: "guaranteePeriodEnd", title: "质保期限" }, attr: {} },
  99. {
  100. item: { key: "freightMethods", title: "运费承担方式" },
  101. attr: { is: "el-dict-tag", dictName: "puarchase_contract_freight_methods" },
  102. },
  103. { item: { key: "signDate", title: "合同创建时间" }, attr: {} },
  104. {
  105. item: { key: "isTarget", title: "是否有指标" },
  106. attr: { is: "el-dict-tag", dictName: "sys_yes_no" },
  107. },
  108. { item: { key: "contractTarget", title: "合同指标" }, attr: {} },
  109. { item: { key: "exemptionPostageCondtion", title: "包邮条件" }, attr: {} },
  110. {
  111. item: { key: "isRebate", title: "是否有返利" },
  112. attr: { is: "el-dict-tag", dictName: "sys_yes_no" },
  113. },
  114. { item: { key: "rebatePolicy", title: "返利政策" }, attr: {} },
  115. { item: { key: "externalContract", title: "外部合同号" }, attr: {} },
  116. { item: { key: "rollbackPolicy", title: "退换货政策" }, attr: {} },
  117. { item: { key: "enquiryCode", title: "询价单号" }, attr: {} },
  118. { item: { key: "contractContent", title: "合同主要内容" }, attr: {} },
  119. { item: { key: "refusalReasons", title: "拒绝理由" }, attr: {} },
  120. {
  121. item: { key: "pigeonhole", title: "是否归档" },
  122. attr: { is: "el-dict-tag", dictName: "sys_yes_no" },
  123. },
  124. {
  125. item: { key: "pigeonholeFile", title: "归档附件" },
  126. attr: { is: "el-file-preview" },
  127. },
  128. {
  129. item: { key: "externalFile", title: "对外附件" },
  130. attr: { is: "el-file-preview" },
  131. },
  132. {
  133. item: { key: "puFile", title: "采购商盖章合同附件" },
  134. attr: { is: "el-file-preview" },
  135. },
  136. {
  137. item: { key: "supplierFile", title: "供应商盖章合同附件" },
  138. attr: { is: "el-file-preview" },
  139. },
  140. { item: { key: "projectCode", title: "项目编号" }, attr: {} },
  141. { item: { key: "projectName", title: "项目名称" }, attr: {} },
  142. { item: { key: "area", title: "区域" }, attr: {} },
  143. { item: { key: "consigneePhone", title: "收货人联系方式" }, attr: {} },
  144. { item: { key: "paymentAgreement", title: "付款协议" }, attr: {} },
  145. {
  146. item: { key: "taxPrice", title: "价税合计" },
  147. attr: {
  148. is: "el-computed-input-v2",
  149. formatter: (prop) => {
  150. return prop ? (prop * 1).toFixed(CONFIG.precision) : "0.000000";
  151. },
  152. },
  153. },
  154. { item: { key: "currencyName", title: "币种" }, attr: {} },
  155. { item: { key: "guaranteePeriod", title: "质保期" }, attr: {} },
  156. ];
  157. export const FormColumns = [
  158. {
  159. item: {
  160. key: "contractName",
  161. title: "合同名称",
  162. },
  163. attr: {
  164. is: "el-input",
  165. },
  166. },
  167. {
  168. item: { key: "status", title: "状态" },
  169. attr: {
  170. is: "el-select",
  171. dictName: "documents_status",
  172. },
  173. },
  174. {
  175. item: {
  176. key: "pigeonhole",
  177. title: "是否归档",
  178. },
  179. attr: {
  180. is: "el-select",
  181. dictName: "sys_yes_no",
  182. },
  183. },
  184. ];