column.js 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490
  1. export const Columns = [
  2. {
  3. key: "puOrgName",
  4. title: "采购组织",
  5. type: "PopoverSelect",
  6. config: {
  7. componentName: "ORG_PARAM",
  8. dataMapping: {
  9. puOrg: "code",
  10. puOrgName: "name",
  11. },
  12. },
  13. require: true,
  14. },
  15. {
  16. key: "billTypeName",
  17. title: "订单类型",
  18. type: "Select",
  19. config: {
  20. optionsName: "sys_order_type", // 字典名
  21. dataMapping: {
  22. billType: "code",
  23. billTypeName: "name",
  24. },
  25. },
  26. },
  27. // { key: "billTypeName", title: "订单类型名称", },
  28. { key: "oaDemandNo", title: "OA需求单号", type: "Input", },
  29. { key: "code", title: "订单编号", type: "Input", },
  30. {
  31. key: "billDate",
  32. title: "订单日期",
  33. inputType: "DatePicker",
  34. type: "date",
  35. valueFormat: "yyyy-MM-dd",
  36. width: 200,
  37. },
  38. {
  39. key: "supplierName",
  40. title: "供应商",
  41. type: "PopoverSelect",
  42. config: {
  43. componentName: "SUPPLIER_PARAM",
  44. dataMapping: {
  45. supplier: "code",
  46. supplierName: "name",
  47. },
  48. },
  49. require: true,
  50. },
  51. {
  52. key: "paymentAgreementName",
  53. title: "付款协议",
  54. type: "PopoverSelect",
  55. config: {
  56. componentName: "PAYAGREEMENT_PARAM",
  57. dataMapping: {
  58. paymentAgreement: "code",
  59. paymentAgreementName: "name",
  60. },
  61. },
  62. },
  63. {
  64. key: "finalTypeName",
  65. title: "结算方式",
  66. type: "PopoverSelect",
  67. config: {
  68. componentName: "BALATYPE_PARAM",
  69. dataMapping: {
  70. finalType: "code",
  71. finalTypeName: "name",
  72. },
  73. },
  74. },
  75. {
  76. key: "currencyName",
  77. title: "币种",
  78. type: "PopoverSelect",
  79. config: {
  80. componentName: "CURRENCY_PARAM",
  81. dataMapping: {
  82. currency: "code",
  83. currencyName: "name",
  84. },
  85. },
  86. },
  87. {
  88. key: "buyerName",
  89. title: "采购员",
  90. type: "PopoverSelect",
  91. config: {
  92. componentName: "CONTACTS_PARAM",
  93. dataMapping: {
  94. buyer: "code",
  95. buyerName: "name",
  96. // puDept: "deptId",
  97. // puDeptName: "deptName",
  98. },
  99. },
  100. require: true,
  101. },
  102. {
  103. key: "puDeptName",
  104. title: "采购部门",
  105. type: "PopoverSelect",
  106. config: {
  107. componentName: "DEPT_PARAM",
  108. dataMapping: {
  109. puDept: "code",
  110. puDeptName: "name",
  111. },
  112. },
  113. require: true,
  114. },
  115. {
  116. key: "customerName",
  117. title: "收货客户",
  118. type: "PopoverSelect",
  119. width: 200,
  120. require: true,
  121. config: {
  122. componentName: "CUSTOMER_PARAM",
  123. dataMapping: {
  124. customer: "code",
  125. customerName: "name",
  126. },
  127. },
  128. },
  129. {
  130. key: "qty",
  131. title: "总数量",
  132. type: "InputNumber",
  133. config: { controlsPosition: "right" },
  134. },
  135. {
  136. key: "originalQty",
  137. title: "原始总数量",
  138. type: "InputNumber",
  139. config: { controlsPosition: "right" },
  140. },
  141. { key: "money", title: "价税合计", type: "Input", },
  142. { key: "originalMoney", title: "原始总金额", type: "Input", },
  143. { key: "notaxMoney", title: "无税金额", type: "Input", },
  144. {
  145. key: "status",
  146. title: "单据状态",
  147. type: "Select",
  148. require: true,
  149. config: {
  150. optionsName: "sys_status", // 字典名
  151. },
  152. },
  153. { key: "freezeCause", title: "冻结原因", type: "Checkbox", },
  154. { key: "isBack", title: "退货", type: "Input", type: "Checkbox", },
  155. { key: "isMarketing", title: "已协同生成销售订单", type: "Checkbox", },
  156. { key: "isMarketingSource", title: "由销售订单协同生成", type: "Checkbox", },
  157. {
  158. key: "warehouseName",
  159. title: "WMS入库仓库", // 收货仓库
  160. type: "PopoverSelect",
  161. require: true,
  162. config: {
  163. componentName: "WAREHOUSE_PARAM",
  164. dataMapping: {
  165. warehouse: "code",
  166. warehouseName: "name",
  167. }
  168. },
  169. },
  170. {
  171. key: "goodsAllocationName",
  172. title: "货位",
  173. type: "PopoverSelect",
  174. require: true,
  175. config: {
  176. componentName: "ALLOCATION_PARAM",
  177. dataMapping: {
  178. goodsAllocation: "code",
  179. goodsAllocationName: "name",
  180. },
  181. queryParams: {
  182. pkOrg: 'puOrg',
  183. }
  184. },
  185. width: 200,
  186. },
  187. { key: "isSendSrm", title: "是否同步SRM", type: "Checkbox", },
  188. { key: "isInvoice", title: "发票标识", type: "Checkbox", },
  189. { key: "supplierOrderNo", title: "供应商订单号", type: "Input", },
  190. { key: "rebateMoney", title: "订单使用返利金额", type: "Input", },
  191. { key: "deductionMoney", title: "订单抵扣余款金额", type: "Input", },
  192. { key: "address", title: "收货地址", type: "Input", },
  193. { key: "contacts", title: "收货联系人", type: "Input", },
  194. {
  195. key: "customerDeptName",
  196. title: "客户部门",
  197. type: "PopoverSelect",
  198. width: 200,
  199. config: {
  200. componentName: "CUSTOMERDEPT_PARAM",
  201. dataMapping: {
  202. customerDept: "code",
  203. customerDeptName: "name",
  204. },
  205. },
  206. },
  207. {
  208. key: "supplierContactsName",
  209. title: "供应商业务联系人",
  210. type: "PopoverSelect",
  211. require: true,
  212. config: {
  213. componentName: "SUPPLIERCONTACTS_PARAM",
  214. dataMapping: {
  215. supplierContacts: "code",
  216. supplierContactsName: "name",
  217. },
  218. },
  219. width: 200,
  220. },
  221. { key: "isUrgency", title: "紧急程度", type: "Checkbox", },
  222. { key: "isSendWms", title: "已同步WMS", type: "Checkbox", },
  223. // { key: "agent", title: "代理人", type: "Input", }, // 建议删除
  224. // { key: "agentName", title: "代理人名称", },
  225. { key: "isClose", title: "最终关闭", type: "Checkbox", },
  226. {
  227. key: "closeTime",
  228. title: "最终关闭日期",
  229. inputType: "DatePicker",
  230. type: "date",
  231. valueFormat: "yyyy-MM-dd",
  232. },
  233. { key: "applyPaymentMoney", title: "累计付款申请金额", type: "Input", },
  234. { key: "paymentMoney", title: "累计付款金额", type: "Input", },
  235. { key: "invoiceMoney", title: "发票金额", type: "Input", },
  236. // {
  237. // key: "supplierPersonal",
  238. // title: "供应商业务员",
  239. // type: "Input",
  240. // // type: "PopoverSelect",
  241. // },
  242. {
  243. key: "supplierPersonalName",
  244. title: "供应商业务员名称",
  245. type: "PopoverSelect",
  246. config: {
  247. componentName: "SUPPLIERCONTACTS_PARAM",
  248. dataMapping: {
  249. supplierPersonal: "code",
  250. supplierPersonalName: "name",
  251. },
  252. },
  253. require: true,
  254. },
  255. { key: "isDeliver", title: "是否发货", type: "Checkbox", },
  256. {
  257. key: "retReasonName",
  258. title: "退换原因",
  259. type: "PopoverSelect",
  260. require: true,
  261. config: {
  262. componentName: "RETREASON_PARAM",
  263. dataMapping: {
  264. retReason: "code",
  265. retReasonName: "name",
  266. },
  267. },
  268. },
  269. {
  270. key: "processTypeName",
  271. title: "处理方式",
  272. type: "PopoverSelect",
  273. require: true,
  274. config: {
  275. componentName: "PROCESSTYPE_PARAM",
  276. dataMapping: {
  277. processType: "code",
  278. processTypeName: "name",
  279. },
  280. },
  281. },
  282. { key: "isEnd", title: "整单关闭标识", type: "Input", },
  283. {
  284. key: "projectNowName",
  285. title: "在建工程项目",
  286. type: "PopoverSelect",
  287. require: true,
  288. config: {
  289. componentName: "PROJECT_PARAM",
  290. dataMapping: {
  291. projectNow: "code",
  292. projectNowName: "name",
  293. },
  294. },
  295. },
  296. {
  297. key: "operatingItemsName",
  298. title: "经营性项目",
  299. type: "PopoverSelect",
  300. require: true,
  301. config: {
  302. componentName: "OPERATING_PARAM",
  303. dataMapping: {
  304. operatingItems: "code",
  305. operatingItemsName: "name",
  306. },
  307. },
  308. },
  309. { key: "isArrivalReson", title: "到货超期原因", type: "Input", },
  310. { key: "midOrderNo", title: "中台采购订单号", type: "Input", },
  311. { key: "marketingCode", title: "销售订单号", type: "Input", },
  312. { key: "isArrival", title: "到货超期", type: "Checkbox", },
  313. { key: "createByName", title: "创建人名称", type: "Input", },
  314. { key: "updateByName", title: "更新人名称", type: "Input", },
  315. { key: "flowId", title: "OA流程ID", type: "Input", },
  316. { key: "approver", title: "审批人", type: "Input", },
  317. {
  318. key: "approverFinishTime",
  319. title: "审批时间",
  320. inputType: "DatePicker",
  321. type: "date",
  322. valueFormat: "yyyy-MM-dd",
  323. },
  324. {
  325. key: "approveTime",
  326. title: "提交时间",
  327. inputType: "DatePicker",
  328. type: "date",
  329. valueFormat: "yyyy-MM-dd",
  330. },
  331. ];
  332. // export const initColumns = () => columns;
  333. export const TabColumns = [
  334. {
  335. title: '物料信息',
  336. key: 'puOrderItemList',
  337. tableColumns: [
  338. { key: "rowNo", title: "行号", type: "Input", },
  339. { key: "orderId", title: "采购订单ID", type: "Input", width: 180 },
  340. // {key: "material",title: "物料",type: "Input", },
  341. { key: "materialName", title: "物料", type: "Input", width: 180 },
  342. {
  343. key: "materialCode",
  344. title: "物料编码",
  345. type: "PopoverSelect",
  346. width: 180,
  347. config: {
  348. componentName: "MATERIAL_PARAM",
  349. dataMapping: {
  350. material: "id",
  351. materialName: "name",
  352. materialCode: "code",
  353. },
  354. },
  355. },
  356. { key: "materialClassify", title: "物料分类", type: "Input", width: 180 },
  357. { key: "materialManufacturersCode", title: "厂家物料编码", type: "Input", width: 180 },
  358. { key: "specification", title: "规格", type: "Input", width: 180 },
  359. { key: "model", title: "型号", type: "Input", },
  360. { key: "isMedcine", title: "医药物料", type: "Input", width: 180 },
  361. { key: "manufacturer", title: "生产厂家代理人", type: "Input", width: 180 },
  362. { key: "isDrug", title: "物料药品属性", type: "Input", width: 180 },
  363. { key: "unit", title: "单位", type: "Input", },
  364. { key: "qty", title: "数量", type: "Input", },
  365. { key: "taxPrice", title: "含税单价", type: "Input", },
  366. { key: "money", title: "价税合计", type: "Input", },
  367. { key: "tax", title: "税率", type: "Input", },
  368. { key: "taxDeductMoneya", title: "折扣金额", type: "Input", },
  369. { key: "arrivalQty", title: "已到货数量", type: "Input", },
  370. { key: "unarrivedQty", title: "未到货数量", type: "Input", },
  371. { key: "notaxMoney", title: "无税金额", type: "Input", },
  372. { key: "priceSource", title: "价格目录ID", type: "Input", },
  373. { key: "isStorage", title: "入库关闭", type: "Input", },
  374. { key: "isInvoice", title: "开票关闭", type: "Input", },
  375. { key: "isArrival", title: "到货关闭", type: "Input", },
  376. { key: "isPayment", title: "付款关闭", type: "Input", },
  377. { key: "isGift", title: "赠品", type: "Input", width: 180 },
  378. {
  379. key: "warehouseName",
  380. title: "收货仓库", //WMS入库仓库
  381. type: "PopoverSelect",
  382. config: {
  383. componentName: "WAREHOUSE_PARAM",
  384. dataMapping: {
  385. warehouse: "code",
  386. warehouseName: "name",
  387. }
  388. },
  389. width: 200,
  390. },
  391. { key: "place", title: "收货地点", type: "Input", width: 180 },
  392. { key: "address", title: "收货地址", type: "Input", width: 180 },
  393. { key: "productBatch", title: "产品批号", type: "Input", width: 180 },
  394. { key: "manufactureDate", title: "生产日期", type: "Input", width: 180 },
  395. { key: "efficacyLoseDate", title: "有效期至/失效日期", type: "Input", width: 180 },
  396. { key: "approvalNumber", title: "批准文号", type: "Input", width: 180 },
  397. { key: "registration", title: "注册证号", type: "Input", width: 180 },
  398. {
  399. key: "storageCondition",
  400. title: "存储条件",
  401. type: "Select",
  402. config: {
  403. optionsName: "sys_storage_condition",
  404. },
  405. width: 180
  406. },
  407. {
  408. key: "carriageCondition",
  409. title: "运输条件",
  410. type: "Select",
  411. config: {
  412. optionsName: "sys_conditions_carriage",
  413. },
  414. width: 180
  415. },
  416. { key: "isBatchLock", title: "批号锁定标识", type: "Input", },
  417. { key: "isReplenishment", title: "补单标识", type: "Input", },
  418. { key: "isUrgency", title: "紧急标识", type: "Input", },
  419. { key: "originalQty", title: "原始数量", type: "Input", },
  420. { key: "originalMoney", title: "原始金额", type: "Input", },
  421. { key: "directProductBatch", title: "直运产品批号", type: "Input", width: 180 },
  422. { key: "discountRule", title: "折扣规则编码", type: "Input", width: 180 },
  423. { key: "reservedQty", title: "预留数量", type: "Input", },
  424. { key: "reservedPeriod", title: "预留周期", type: "Input", },
  425. { key: "taxDeductClassify", title: "扣税类别", type: "Input", },
  426. { key: "exchangeRate", title: "折本汇率", type: "Input", },
  427. { key: "source", title: "上游单据号", type: "Input", width: 180 },
  428. { key: "sourceId", title: "上游单据ID", type: "Input", width: 180 },
  429. { key: "demandCode", title: "采购需求单号", type: "Input", width: 180 },
  430. { key: "arrivalDatePlan", title: "计划到货日期", type: "Input", width: 180 },
  431. {
  432. key: "priceType",
  433. title: "价格类型",
  434. type: "Select",
  435. config: {
  436. optionsName: "sys_price_type",
  437. },
  438. },
  439. { key: "isDistributionPrice", title: "配送价", type: "Input", },
  440. { key: "createByName", title: "创建人名称", type: "Input", },
  441. { key: "updateByName", title: "更新人名称", type: "Input", },
  442. { key: "materialClassifyOneName", title: "物料一级分类名称", type: "Input", width: 180 },
  443. { key: "materialClassifyTwoName", title: "物料二级分类名称", type: "Input", width: 180 },
  444. { key: "materialClassifyThreeName", title: "物料三级分类名称", type: "Input", width: 180 },
  445. { key: "materialClassifyFourName", title: "物料四级分类名称", type: "Input", width: 180 },
  446. { key: "price", title: "无税单价", type: "Input", }
  447. ]
  448. },
  449. {
  450. title: '执行结果',
  451. key: 'puOrderExecuteList',
  452. tableColumns: [
  453. { key: "orderId", title: "采购订单ID", type: "Input", width: 180 },
  454. { key: "rowno", title: "行号", type: "Input", },
  455. {
  456. key: "materialName",
  457. title: "物料",
  458. type: "PopoverSelect",
  459. config: {
  460. componentName: "MATERIAL_PARAM",
  461. dataMapping: {
  462. material: "id",
  463. materialName: "name",
  464. materialCode: "code",
  465. },
  466. },
  467. width: 180
  468. },
  469. { key: "specification", title: "规格", type: "Input", },
  470. { key: "qty", title: "数量", type: "Input", },
  471. { key: "stroageQty", title: "累计到货主数量", type: "Input", width: 120 },
  472. { key: "stockQty", title: "累计入库主数量", type: "Input", width: 120 },
  473. { key: "invoiceQty", title: "累计开票主数量", type: "Input", width: 120 },
  474. { key: "rollbackQty", title: "累计退货主数量", type: "Input", width: 120 },
  475. { key: "backStockQty", title: "累计退库主数量", type: "Input", width: 120 },
  476. { key: "floatQty", title: "未到货数量", type: "Input", width: 120 },
  477. { key: "createByName", title: "创建人名称", type: "Input", width: 120 },
  478. { key: "updateByName", title: "更新人名称", type: "Input", width: 120 },
  479. ]
  480. },
  481. ];
  482. // export const initTabColumns = () => tabColumns;