column.js 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331
  1. export const Columns = [
  2. // { key: "id", title: "主键",type: "Input", },
  3. {
  4. key: "puOrg",
  5. title: "采购组织",
  6. type: "InputDialog",
  7. config: {
  8. componentName: "Organization",
  9. dataMapping: { puOrg: "deptName" },
  10. },
  11. require: true,
  12. },
  13. // { key: "puOrgName", title: "采购组织名称", },
  14. {
  15. key: "billType",
  16. title: "订单类型",
  17. type: "Select",
  18. require: true,
  19. config: {
  20. optionsName: "", // 字典名
  21. },
  22. },
  23. // { key: "billTypeName", title: "订单类型名称", },
  24. { key: "oaDemandNo", title: "OA需求单号", type: "Input", },
  25. { key: "code", title: "订单编号", type: "Input", },
  26. {
  27. key: "billDate",
  28. title: "订单日期",
  29. type: "DatePicker",
  30. config: { type: "date" },
  31. },
  32. {
  33. key: "supplier",
  34. title: "供应商",
  35. type: "InputDialog",
  36. config: {
  37. componentName: "Supplier",
  38. dataMapping: { supplier: "name" },
  39. },
  40. require: true,
  41. },
  42. // { key: "supplierName", title: "供应商名称", },
  43. {
  44. key: "paymentAgreement",
  45. title: "付款协议",
  46. type: "InputDialog",
  47. config: {
  48. componentName: "PaymentPlan",
  49. dataMapping: {
  50. buyer: "userName",
  51. puDept: "deptName",
  52. },
  53. },
  54. },
  55. { key: "finalType", title: "结算方式", type: "Input", },
  56. {
  57. key: "currency",
  58. title: "币种",
  59. type: "InputDialog",
  60. config: {
  61. componentName: "Currency",
  62. dataMapping: {
  63. currency: "name",
  64. },
  65. },
  66. },
  67. // { key: "currencyName", title: "币种名称", },
  68. {
  69. key: "buyer",
  70. title: "采购员",
  71. type: "InputDialog",
  72. config: {
  73. componentName: "User",
  74. dataMapping: {
  75. buyer: "userName",
  76. puDept: "deptName",
  77. },
  78. },
  79. require: true,
  80. },
  81. // { key: "buyerName", title: "采购员名称", },
  82. {
  83. key: "puDept",
  84. title: "采购部门",
  85. type: "InputDialog",
  86. config: { componentName: "Department" },
  87. require: true,
  88. },
  89. // { key: "puDeptName", title: "采购部门名称", },
  90. // { key: "customer", title: "收货客户", type: "Input", },
  91. {
  92. key: "customerName",
  93. title: "收货客户名称",
  94. type: "InputDialog",
  95. config: { componentName: "Customer" },
  96. width: 200,
  97. },
  98. {
  99. key: "qty",
  100. title: "总数量",
  101. type: "InputNumber",
  102. config: { controlsPosition: "right" },
  103. },
  104. {
  105. key: "originalQty",
  106. title: "原始总数量",
  107. type: "InputNumber",
  108. config: { controlsPosition: "right" },
  109. },
  110. { key: "money", title: "价税合计", type: "Input", },
  111. { key: "originalMoney", title: "原始总金额", type: "Input", },
  112. { key: "notaxMoney", title: "无税金额", type: "Input", },
  113. { key: "status", title: "单据状态", type: "Input", },
  114. { key: "freezeCause", title: "冻结原因", type: "Input", },
  115. { key: "isBack", title: "退货", type: "Input", type: "Input", },
  116. { key: "isMarketing", title: "已协同生成销售订单", type: "Checkbox", },
  117. { key: "isMarketingSource", title: "由销售订单协同生成", type: "Checkbox", },
  118. {
  119. key: "warehouse",
  120. title: "WMS入库仓库", // 收货仓库
  121. type: "InputDialog",
  122. config: { componentName: "Warehouse" },
  123. },
  124. // { key: "warehouseName", title: "WMS入库仓库名称", },
  125. {
  126. key: "goodsAllocation",
  127. title: "货位",
  128. type: "InputDialog",
  129. config: { componentName: "Allocation" },
  130. width: 200,
  131. },
  132. // { key: "goodsAllocationName", title: "货位名称", },
  133. { key: "isSendSrm", title: "是否同步SRM", type: "Checkbox", },
  134. { key: "isInvoice", title: "发票标识", type: "Input", },
  135. { key: "supplierOrderNo", title: "供应商订单号", type: "Input", },
  136. { key: "rebateMoney", title: "订单使用返利金额", type: "Input", },
  137. { key: "deductionMoney", title: "订单抵扣余款金额", type: "Input", },
  138. { key: "address", title: "收货地址", type: "Input", },
  139. { key: "contacts", title: "收货联系人", type: "Input", },
  140. { key: "customerDept", title: "客户部门", type: "Input", },
  141. // { key: "customerDeptName", title: "客户部门名称", },
  142. {
  143. key: "supplierContacts",
  144. title: "供应商业务联系人",
  145. type: "InputDialog",
  146. config: { componentName: "" },
  147. width: 200,
  148. },
  149. // { key: "supplierContactsName", title: "供应商业务联系人名称", },
  150. { key: "isUrgency", title: "紧急程度", type: "Input", },
  151. { key: "isSendWms", title: "已同步WMS", type: "Checkbox", },
  152. // { key: "agent", title: "代理人", type: "Input", }, // 建议删除
  153. // { key: "agentName", title: "代理人名称", },
  154. { key: "isClose", title: "最终关闭", type: "Checkbox", },
  155. { key: "closeTime", title: "最终关闭日期", type: "Input", },
  156. { key: "applyPaymentMoney", title: "累计付款申请金额", type: "Input", },
  157. { key: "paymentMoney", title: "累计付款金额", type: "Input", },
  158. { key: "invoiceMoney", title: "发票金额", type: "Input", },
  159. {
  160. key: "supplierPersonal",
  161. title: "供应商业务员",
  162. type: "InputDialog",
  163. config: { componentName: "" },
  164. width: 200,
  165. },
  166. // { key: "supplierPersonalName", title: "供应商业务员名称", },
  167. { key: "isDeliver", title: "是否发货", type: "Input", },
  168. {
  169. key: "retReason",
  170. title: "退换原因",
  171. type: "InputDialog",
  172. config: { componentName: "" },
  173. },
  174. {
  175. key: "processType",
  176. title: "处理方式",
  177. type: "InputDialog",
  178. config: { componentName: "" },
  179. },
  180. { key: "isEnd", title: "整单关闭标识", type: "Input", },
  181. {
  182. key: "projectNow",
  183. title: "在建工程项目",
  184. type: "InputDialog",
  185. config: { componentName: "" },
  186. },
  187. {
  188. key: "operatingItems",
  189. title: "经营性项目",
  190. type: "Input",
  191. type: "InputDialog",
  192. config: { componentName: "" },
  193. },
  194. { key: "isArrivalReson", title: "到货超期原因", type: "Input", },
  195. { key: "midOrderNo", title: "中台采购订单号", type: "Input", },
  196. { key: "marketingCode", title: "销售订单号", type: "Input", },
  197. { key: "isArrival", title: "到货超期", type: "Input", },
  198. // { key: "tenantId", title: "租户号", },
  199. // { key: "revision", title: "乐观锁", },
  200. { key: "createByName", title: "创建人名称", type: "Input", },
  201. { key: "updateByName", title: "更新人名称", type: "Input", },
  202. // { key: "delFlag", title: "删除标记", },
  203. { key: "flowId", title: "OA流程ID", type: "Input", },
  204. { key: "approver", title: "审批人", type: "Input", },
  205. {
  206. key: "approverFinishTime",
  207. title: "审批时间",
  208. type: "DatePicker",
  209. config: { type: "date" },
  210. },
  211. { key: "approveTime", title: "提交时间", },
  212. ];
  213. // export const initColumns = () => columns;
  214. export const TabColumns = [
  215. {
  216. title: '物料信息',
  217. key: 'puOrderItemList',
  218. tableColumns: [
  219. // { key: "id", title: "主键" },
  220. { key: "rowNo", title: "行号", type: "Input", },
  221. { key: "orderId", title: "采购订单ID", type: "Input", },
  222. // { key: "material", title: "物料", type: "Input", },
  223. {
  224. key: "materialName",
  225. title: "物料名称",
  226. type: "InputDialog",
  227. config: { componentName: "" },
  228. width: 200,
  229. },
  230. { key: "materialCode", title: "物料编码", type: "Input", },
  231. { key: "materialClassify", title: "物料分类", type: "Input", },
  232. { key: "materialManufacturersCode", title: "厂家物料编码", type: "Input", },
  233. { key: "specification", title: "规格", type: "Input", },
  234. { key: "model", title: "型号", type: "Input", },
  235. { key: "isMedcine", title: "医药物料", type: "Input", },
  236. { key: "manufacturer", title: "生产厂家代理人", type: "Input", },
  237. { key: "isDrug", title: "物料药品属性", type: "Input", },
  238. { key: "unit", title: "单位", type: "Input", },
  239. { key: "qty", title: "数量", type: "Input", },
  240. { key: "taxPrice", title: "含税单价", type: "Input", },
  241. { key: "money", title: "价税合计", type: "Input", },
  242. { key: "tax", title: "税率", type: "Input", },
  243. { key: "taxDeductMoneya", title: "折扣金额", type: "Input", },
  244. { key: "arrivalQty", title: "已到货数量", type: "Input", },
  245. { key: "unarrivedQty", title: "未到货数量", type: "Input", },
  246. { key: "notaxMoney", title: "无税金额", type: "Input", },
  247. { key: "priceSource", title: "价格目录ID", type: "Input", },
  248. { key: "isStorage", title: "入库关闭", type: "Input", },
  249. { key: "isInvoice", title: "开票关闭", type: "Input", },
  250. { key: "isArrival", title: "到货关闭", type: "Input", },
  251. { key: "isPayment", title: "付款关闭", type: "Input", },
  252. { key: "isGift", title: "赠品", type: "Input", },
  253. {
  254. key: "warehouse",
  255. title: "收货仓库", //WMS入库仓库
  256. type: "InputDialog",
  257. config: { componentName: "Warehouse" },
  258. width: 200,
  259. },
  260. { key: "place", title: "收货地点", type: "Input", },
  261. { key: "address", title: "收货地址", type: "Input", },
  262. { key: "productBatch", title: "产品批号", type: "Input", },
  263. { key: "manufactureDate", title: "生产日期", type: "Input", },
  264. { key: "efficacyLoseDate", title: "有效期至/失效日期", type: "Input", },
  265. { key: "approvalNumber", title: "批准文号", type: "Input", },
  266. { key: "registration", title: "注册证号", type: "Input", },
  267. { key: "storageCondition", title: "存储条件", type: "Input", },
  268. { key: "carriageCondition", title: "运输条件", type: "Input", },
  269. { key: "isBatchLock", title: "批号锁定标识", type: "Input", },
  270. { key: "isReplenishment", title: "补单标识", type: "Input", },
  271. { key: "isUrgency", title: "紧急标识", type: "Input", },
  272. { key: "originalQty", title: "原始数量", type: "Input", },
  273. { key: "originalMoney", title: "原始金额", type: "Input", },
  274. { key: "directProductBatch", title: "直运产品批号", type: "Input", },
  275. { key: "discountRule", title: "折扣规则编码", type: "Input", },
  276. { key: "reservedQty", title: "预留数量", type: "Input", },
  277. { key: "reservedPeriod", title: "预留周期", type: "Input", },
  278. { key: "taxDeductClassify", title: "扣税类别", type: "Input", },
  279. { key: "exchangeRate", title: "折本汇率", type: "Input", },
  280. { key: "source", title: "上游单据号", type: "Input", },
  281. { key: "sourceId", title: "上游单据ID", type: "Input", },
  282. { key: "demandCode", title: "采购需求单号", type: "Input", },
  283. { key: "arrivalDatePlan", title: "计划到货日期", type: "Input", },
  284. { key: "priceType", title: "价格类型", type: "Input", },
  285. { key: "isDistributionPrice", title: "配送价", type: "Input", },
  286. // { key: "tenantId", title: "租户号",type: "Input", },
  287. // { key: "revision", title: "乐观锁",type: "Input", },
  288. { key: "createByName", title: "创建人名称", type: "Input", },
  289. { key: "updateByName", title: "更新人名称", type: "Input", },
  290. // { key: "delFlag", title: "删除标记",type: "Input", },
  291. // { key: "materialClassifyOne", title: "物料一级分类",type: "Input", },
  292. { key: "materialClassifyOneName", title: "物料一级分类名称", type: "Input", },
  293. // { key: "materialClassifyTwo", title: "物料二级分类",type: "Input", },
  294. { key: "materialClassifyTwoName", title: "物料二级分类名称", type: "Input", },
  295. // { key: "materialClassifyThree", title: "物料三级分类",type: "Input", },
  296. { key: "materialClassifyThreeName", title: "物料三级分类名称", type: "Input", },
  297. // { key: "materialClassifyFour", title: "物料四级分类",type: "Input", },
  298. { key: "materialClassifyFourName", title: "物料四级分类名称", type: "Input", },
  299. { key: "price", title: "无税单价" }
  300. ]
  301. },
  302. {
  303. title: '执行结果',
  304. key: 'puOrderExecuteList',
  305. tableColumns: [
  306. // { key: "id", title: "主键",type: "Input", },
  307. { key: "orderId", title: "采购订单ID", type: "Input", },
  308. { key: "rowno", title: "行号", type: "Input", },
  309. { key: "material", title: "物料", type: "Input", },
  310. // { key: "materialName", title: "物料名称", type: "Input", },
  311. { key: "specification", title: "规格", type: "Input", },
  312. { key: "qty", title: "数量", type: "Input", },
  313. { key: "stroageQty", title: "累计到货主数量", type: "Input", },
  314. { key: "stockQty", title: "累计入库主数量", type: "Input", },
  315. { key: "invoiceQty", title: "累计开票主数量", type: "Input", },
  316. { key: "rollbackQty", title: "累计退货主数量", type: "Checkbox", },
  317. { key: "backStockQty", title: "累计退库主数量", type: "Input", },
  318. { key: "floatQty", title: "未到货数量", type: "Input", },
  319. // { key: "tenantId", title: "租户号",type: "Input", },
  320. // { key: "revision", title: "乐观锁",type: "Input", },
  321. { key: "createByName", title: "创建人名称", type: "Input", },
  322. { key: "updateByName", title: "更新人名称", type: "Input", },
  323. // { key: "delFlag", title: "删除标记" }
  324. ]
  325. },
  326. ];
  327. // export const initTabColumns = () => tabColumns;