column.js 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. export const TableColumns = [
  2. { key: "demandCode", title: "采购需求单号" },
  3. { key: "materialCode", title: "物料编码" },
  4. { key: "materialName", title: "物料名称" },
  5. // { key: "material", title: "物料" },
  6. { key: "materialDesc", title: "物料描述" },
  7. { key: "manufacturerName", title: "生产厂家名称" },
  8. { key: "puQty", title: "采购数量" },
  9. {
  10. key: "priceinputType",
  11. title: "价格类型",
  12. referName: "sys_price_inputType",
  13. },
  14. { key: "puUnitName", title: "采购单位名称" },
  15. // { key: "id", title: "主键" },
  16. {
  17. key: "status",
  18. title: "状态",
  19. referName: "purchase_task_status",
  20. },
  21. // { key: "manufacturer", title: "生产厂家" },
  22. // { key: "buyer", title: "采购员" },
  23. { key: "buyerName", title: "采购员名称" },
  24. // { key: "supplier", title: "建议供应商" },
  25. { key: "supplierName", title: "建议供应商名称" },
  26. // { key: "puOrg", title: "采购组织" },
  27. {
  28. key: "puOrgName",
  29. title: "采购组织名称",
  30. },
  31. // { key: "currency", title: "币种" },
  32. { key: "currencyName", title: "币种名称" },
  33. { key: "billYpe", title: "交易类型" },
  34. { key: "source", title: "需求来源" },
  35. // { key: "customer", title: "收货客户" },
  36. { key: "customerName", title: "收货客户名称" },
  37. { key: "puUnit", title: "采购单位" },
  38. { key: "demandDate", title: "需求时间" },
  39. { key: "projectName", title: "项目名称" },
  40. { key: "demandPersonal", title: "需求人" },
  41. {
  42. key: "demandPersonalName",
  43. title: "需求人名称",
  44. },
  45. // { key: "demandOrg", title: "需求组织" },
  46. { key: "demandOrgName", title: "需求组织名称" },
  47. // { key: "demandDept", title: "需求部门" },
  48. { key: "demandDeptName", title: "需求部门名称" },
  49. { key: "isBack", title: "是否退回" },
  50. { key: "baskCause", title: "退回原因" },
  51. { key: "backDate", title: "退回日期" },
  52. // { key: "assignSupplier", title: "指定供应商" },
  53. { key: "assignSupplierName", title: "指定供应商名称" },
  54. // { key: "unit", title: "单位" },
  55. { key: "unitName", title: "单位名称" },
  56. // { key: "file", title: "附件" },
  57. // { key: "tenantId", title: "租户号" },
  58. // { key: "revision", title: "乐观锁" },
  59. // { key: "delFlag", title: "删除标记" },
  60. ];
  61. const pickerOptions = {
  62. shortcuts: [
  63. {
  64. text: "昨天",
  65. onClick(picker) {
  66. const end = new Date();
  67. const start = new Date();
  68. start.setTime(start.getTime() - 3600 * 1000 * 24 * 1);
  69. picker.$emit("pick", [start, end]);
  70. },
  71. },
  72. {
  73. text: "最近三天",
  74. onClick(picker) {
  75. const end = new Date();
  76. const start = new Date();
  77. start.setTime(start.getTime() - 3600 * 1000 * 24 * 3);
  78. picker.$emit("pick", [start, end]);
  79. },
  80. },
  81. {
  82. text: "最近一周",
  83. onClick(picker) {
  84. const end = new Date();
  85. const start = new Date();
  86. start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
  87. picker.$emit("pick", [start, end]);
  88. },
  89. },
  90. {
  91. text: "最近一个月",
  92. onClick(picker) {
  93. const end = new Date();
  94. const start = new Date();
  95. start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
  96. picker.$emit("pick", [start, end]);
  97. },
  98. },
  99. {
  100. text: "最近三个月",
  101. onClick(picker) {
  102. const end = new Date();
  103. const start = new Date();
  104. start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
  105. picker.$emit("pick", [start, end]);
  106. },
  107. },
  108. {
  109. text: "最近半年",
  110. onClick(picker) {
  111. const end = new Date();
  112. const start = new Date();
  113. start.setTime(start.getTime() - 3600 * 1000 * 24 * 180);
  114. picker.$emit("pick", [start, end]);
  115. },
  116. },
  117. ],
  118. };
  119. export const SearchColumns = [
  120. {
  121. key: "classIds",
  122. title: "物料分类",
  123. inputType: "PopoverTreeSelect",
  124. multiple: true,
  125. valueKey: "id",
  126. referName: "MATERIALCLASSIFY_PARAM",
  127. readonly: true,
  128. dataMapping: {},
  129. queryParams: () => ({}),
  130. },
  131. {
  132. key: "materialCodes",
  133. title: "物料编码",
  134. inputType: "PopoverSelect",
  135. multiple: true,
  136. valueKey: "code",
  137. referName: "MATERIAL_PARAM",
  138. readonly: true,
  139. dataMapping: {},
  140. queryParams: () => ({}),
  141. },
  142. { key: "materialDesc", title: "物料描述", inputType: "Input" },
  143. { key: "source", title: "需求来源", inputType: "Input" },
  144. {
  145. key: "puOrgIds",
  146. title: "采购组织",
  147. inputType: "PopoverSelect",
  148. multiple: true,
  149. valueKey: "id",
  150. referName: "ORG_PARAM",
  151. readonly: true,
  152. dataMapping: {},
  153. queryParams: () => ({}),
  154. },
  155. {
  156. key: "date",
  157. title: "创建时间",
  158. inputType: "DatePicker",
  159. type: "daterange",
  160. unlinkPanels: true,
  161. rangeSeparator: "至",
  162. valueFormat: "yyyy-MM-dd",
  163. endPlaceholder: "结束日期",
  164. startPlaceholder: "开始日期",
  165. pickerOptions: pickerOptions,
  166. value: [],
  167. },
  168. {
  169. key: "buyers",
  170. title: "采购员",
  171. inputType: "PopoverSelect",
  172. multiple: true,
  173. valueKey: "id",
  174. showKey: "name",
  175. referName: "CONTACTS_PARAM",
  176. readonly: true,
  177. dataMapping: {},
  178. queryParams: () => ({}),
  179. },
  180. {
  181. key: "status",
  182. title: "状态",
  183. inputType: "Select",
  184. referName: "purchase_task_status",
  185. },
  186. // {
  187. // key: "documentsCodes",
  188. // title: "需求来源",
  189. // inputType: "Input",
  190. // placeholder: "请输入来源单据号,多个用,分隔",
  191. // },
  192. ];