column.js 19 KB

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