column.js 26 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054
  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. require: true,
  23. },
  24. {
  25. key: "oaDemandNo",
  26. title: "OA需求单号",
  27. inputType: "Input",
  28. isShow:true,
  29. },
  30. {
  31. key: "erpOrderCode",
  32. title: "erp订单编号",
  33. inputType: "Input",
  34. readonly: true,
  35. disabled: true,
  36. isShow:true,
  37. },
  38. {
  39. key: "code",
  40. title: "订单编号",
  41. inputType: "Input",
  42. readonly: true,
  43. disabled: true,
  44. isShow:true,
  45. },
  46. {
  47. key: "billDate",
  48. title: "订单日期",
  49. inputType: "DatePicker",
  50. valueFormat: "yyyy-MM-dd",
  51. width: 200,
  52. require: true,
  53. isShow:true,
  54. },
  55. {
  56. key: "supplierName",
  57. title: "供应商",
  58. inputType: "PopoverSelect",
  59. valueKey: "id",
  60. referName: "SUPPLIER_PARAM",
  61. dataMapping: {
  62. supplier: "id",
  63. supplierName: "name",
  64. paymentAgreement: 'paymentId',
  65. paymentAgreementName: 'paymentName',
  66. },
  67. queryParams: () => ({}),
  68. require: true,
  69. isShow:true,
  70. },
  71. {
  72. key: "paymentAgreementName",
  73. title: "付款协议",
  74. inputType: "PopoverSelect",
  75. valueKey: "id",
  76. referName: "PAYAGREEMENT_PARAM",
  77. dataMapping: {
  78. paymentAgreement: 'id',
  79. paymentAgreementName: 'name'
  80. },
  81. queryParams: () => ({}),
  82. isShow:true,
  83. disabled:true,
  84. require: true,
  85. },
  86. {
  87. key: "finalTypeName",
  88. title: "结算方式",
  89. inputType: "PopoverSelect",
  90. valueKey: "id",
  91. referName: "BALATYPE_PARAM",
  92. dataMapping: {
  93. finalType: 'id',
  94. finalTypeName: 'name'
  95. },
  96. queryParams: () => ({}),
  97. isShow:true,
  98. disabled:true,
  99. },
  100. {
  101. key: "buyerName",
  102. title: "采购员",
  103. inputType: "PopoverSelect",
  104. valueKey: "code",
  105. referName: "CONTACTS_PARAM",
  106. dataMapping: {
  107. buyer: 'code',
  108. buyerName: 'name'
  109. },
  110. queryParams: () => ({}),
  111. require: true,
  112. isShow:true,
  113. },
  114. {
  115. key: "puDeptName",
  116. title: "采购部门",
  117. inputType: "PopoverSelect",
  118. valueKey: "id",
  119. referName: "DEPT_PARAM",
  120. dataMapping: {
  121. puDept: 'id',
  122. puDeptName: 'name'
  123. },
  124. queryParams: () => ({}),
  125. require: true,
  126. isShow:true,
  127. },
  128. {
  129. key: "customerName",
  130. title: "收货客户",
  131. inputType: "PopoverSelect",
  132. width: 200,
  133. valueKey: "id",
  134. referName: "CUSTOMER_PARAM",
  135. dataMapping: {
  136. customer: 'id',
  137. customerName: 'name'
  138. },
  139. queryParams: () => ({}),
  140. isShow:true,
  141. },
  142. {
  143. key: "qty",
  144. title: "总数量",
  145. inputType: "InputNumber",
  146. controlsPosition: "right",
  147. isShow:true,
  148. disabled:true,
  149. },
  150. {
  151. key: "originalQty",
  152. title: "原始总数量",
  153. inputType: "InputNumber",
  154. controlsPosition: "right",
  155. isShow:true,
  156. disabled:true,
  157. },
  158. {
  159. key: "money",
  160. title: "价税合计",
  161. inputType: "InputNumber",
  162. controlsPosition: "right",
  163. // precision:2,
  164. isShow:true,
  165. disabled:true,
  166. },
  167. {
  168. key: "originalMoney",
  169. title: "原始总金额",
  170. inputType: "InputNumber",
  171. controlsPosition: "right",
  172. // precision:2,
  173. isShow:true,
  174. disabled:true,
  175. },
  176. {
  177. key: "notaxMoney",
  178. title: "无税金额",
  179. inputType: "InputNumber",
  180. controlsPosition: "right",
  181. // precision:2,
  182. isShow:true,
  183. disabled:true,
  184. },
  185. {
  186. key: "status",
  187. title: "单据状态",
  188. inputType: "Select",
  189. referName: "documents_status", // 字典名
  190. disabled: true,
  191. isShow:true,
  192. },
  193. // { key: "freezeCause", title: "冻结原因", inputType: "Checkbox", isShow:true, },
  194. { key: "isBack", title: "退货", inputType: "Input", inputType: "Checkbox", isShow:true,},
  195. // { key: "isMarketing", title: "已协同生成销售订单", inputType: "Checkbox", isShow:true,},
  196. // { key: "isMarketingSource", title: "由销售订单协同生成", inputType: "Checkbox", isShow:true,},
  197. {
  198. key: "warehouseName",
  199. title: "WMS入库仓库",
  200. inputType: "PopoverSelect",
  201. valueKey: "id",
  202. referName: "WAREHOUSE_PARAM",
  203. dataMapping: {
  204. warehouse: 'id',
  205. warehouseName: 'name'
  206. },
  207. queryParams: (params) => ({
  208. pkOrg: params.puOrg,
  209. }),
  210. isShow:true,
  211. // require: true,
  212. },
  213. {
  214. key: "goodsAllocationName",
  215. title: "货位",
  216. inputType: "PopoverSelect",
  217. valueKey: "id",
  218. referName: "ALLOCATION_PARAM",
  219. dataMapping: {
  220. goodsAllocation: 'id',
  221. goodsAllocationName: 'name'
  222. },
  223. isShow:true,
  224. queryParams: (params) => ({
  225. stordocId: params.warehouse,
  226. }),
  227. width: 200,
  228. },
  229. // { key: "isSendSrm", title: "是否同步SRM", inputType: "Checkbox",isShow:true, },
  230. {
  231. key: "isInvoice",
  232. title: "发票标识",
  233. inputType: "Checkbox",
  234. isShow:true,
  235. disabled:true,
  236. },
  237. { key: "supplierOrderNo", title: "供应商订单号", inputType: "Input",isShow:true, },
  238. {
  239. key: "rebateMoney",
  240. title: "订单使用返利金额",
  241. inputType: "InputNumber",
  242. controlsPosition: "right",
  243. // precision:2,
  244. isShow:true,
  245. require: true,
  246. },
  247. {
  248. key: "deductionMoney",
  249. title: "订单抵扣余款金额",
  250. inputType: "InputNumber",
  251. controlsPosition: "right",
  252. // precision:2,
  253. isShow:true,
  254. require: true,
  255. },
  256. {
  257. key: "goodsWarehouseName",
  258. title: "收货仓库",
  259. inputType: "Input",
  260. isShow:true,
  261. disabled:true,
  262. require: true,
  263. },
  264. {
  265. key: "address",
  266. title: "收货地址",
  267. inputType: "PopoverSelect",
  268. valueKey: "address",
  269. referName: "ADDRESS_PARAM",
  270. require: true,
  271. isShow:true,
  272. dataMapping: {
  273. // address: 'address',
  274. // addressName: '',
  275. goodsWarehouse:'id',
  276. goodsWarehouseName:'name',
  277. contacts:'contactsName',
  278. contactsPhone:'contactsPhone'
  279. },
  280. queryParams: () => ({}),
  281. width: 180
  282. },
  283. {
  284. key: "contacts",
  285. title: "收货联系人",
  286. inputType: "Input",
  287. isShow:true,
  288. disabled:true,
  289. },
  290. {
  291. key: "contactsPhone",
  292. title: "收货联系人电话",
  293. inputType: "Input",
  294. isShow:true,
  295. disabled:true,
  296. },
  297. {
  298. key: "customerDeptName",
  299. title: "客户部门",
  300. inputType: "PopoverSelect",
  301. width: 200,
  302. valueKey: "id",
  303. referName: "CUSTOMERDEPT_PARAM",
  304. dataMapping: {
  305. customerDept: 'id',
  306. customerDeptName: 'name'
  307. },
  308. isShow:true,
  309. queryParams: () => ({}),
  310. },
  311. {
  312. key: "supplierContactsName",
  313. title: "供应商业务联系人",
  314. inputType: "PopoverSelect",
  315. valueKey: "id",
  316. referName: "SUPPLIERCONTACTS_PARAM",
  317. dataMapping: {
  318. supplierContacts: 'id',
  319. supplierContactsName: 'name'
  320. },
  321. isShow:true,
  322. queryParams: (params) => ({
  323. supplierId:params.supplier
  324. }),
  325. width: 200,
  326. },
  327. {
  328. key: "isUrgency",
  329. title: "紧急程度",
  330. inputType: "Checkbox",
  331. isShow:true,
  332. disabled:true,
  333. },
  334. {
  335. key: "isSendWms",
  336. title: "已同步WMS",
  337. inputType: "Checkbox",
  338. isShow:true,
  339. disabled:true,
  340. },
  341. // { key: "agent", title: "代理人", inputType: "Input", }, // 建议删除
  342. // {
  343. // key: "agentName",
  344. // title: "代理人",
  345. // inputType: "PopoverSelect",
  346. // valueKey: "code",
  347. // referName: "CONTACTS_PARAM",
  348. // dataMapping: {
  349. // agent: 'code',
  350. // agentName: 'name'
  351. // },
  352. // isShow:true,
  353. // queryParams: () => ({}),
  354. // width: 200,
  355. // },
  356. {
  357. key: "isClose",
  358. title: "最终关闭",
  359. inputType: "Checkbox",
  360. isShow:true,
  361. disabled:true,
  362. },
  363. {
  364. key: "closeTime",
  365. title: "最终关闭日期",
  366. inputType: "DatePicker",
  367. valueFormat: "yyyy-MM-dd",
  368. isShow:true,
  369. disabled:true,
  370. },
  371. {
  372. key: "applyPaymentMoney",
  373. title: "累计付款申请金额",
  374. inputType: "InputNumber",
  375. controlsPosition: "right",
  376. // precision:2,
  377. isShow:true,
  378. disabled:true,
  379. },
  380. {
  381. key: "paymentMoney",
  382. title: "累计付款金额",
  383. inputType: "InputNumber",
  384. controlsPosition: "right",
  385. // precision:2,
  386. isShow:true,
  387. },
  388. {
  389. key: "invoiceMoney",
  390. title: "发票金额",
  391. inputType: "InputNumber",
  392. controlsPosition: "right",
  393. // precision:2,
  394. isShow:true,
  395. },
  396. {
  397. key: "supplierPersonalName",
  398. title: "供应商业务员",
  399. inputType: "PopoverSelect",
  400. valueKey: "id",
  401. // referName: "SUPPLIERCONTACTS_PARAM",
  402. referName: "PSNLICENSE_PARAM",
  403. dataMapping: {
  404. supplierPersonal: 'id',
  405. supplierPersonalName: 'name'
  406. },
  407. isShow:true,
  408. queryParams: (params) => ({
  409. // 组织、供应商id
  410. pkOrg: params.puOrg,
  411. supplierId:params.supplier
  412. }),
  413. },
  414. // { key: "isDeliver", title: "是否发货", inputType: "Checkbox", isShow:true,},
  415. {
  416. key: "retReasonName",
  417. title: "退换原因",
  418. inputType: "PopoverSelect",
  419. valueKey: "id",
  420. referName: "RETREASON_PARAM",
  421. dataMapping: {
  422. retReason: 'id',
  423. retReasonName: 'name'
  424. },
  425. isShow:true,
  426. queryParams: () => ({}),
  427. },
  428. {
  429. key: "processTypeName",
  430. title: "处理方式",
  431. inputType: "PopoverSelect",
  432. valueKey: "id",
  433. referName: "PROCESSTYPE_PARAM",
  434. dataMapping: {
  435. processType: 'id',
  436. processTypeName: 'name'
  437. },
  438. isShow:true,
  439. queryParams: () => ({}),
  440. },
  441. { key: "isEnd", title: "整单关闭标识", inputType: "Checkbox", isShow:true, },
  442. {
  443. key: "projectNowName",
  444. title: "在建工程项目",
  445. inputType: "PopoverSelect",
  446. valueKey: "id",
  447. referName: "PROJECT_PARAM",
  448. dataMapping: {
  449. projectNow: 'id',
  450. projectNowName: 'name'
  451. },
  452. isShow:true,
  453. queryParams: () => ({}),
  454. },
  455. {
  456. key: "operatingItemsName",
  457. title: "经营性项目",
  458. inputType: "PopoverSelect",
  459. valueKey: "id",
  460. referName: "OPERATING_PARAM",
  461. dataMapping: {
  462. operatingItems: 'id',
  463. operatingItemsName: 'name'
  464. },
  465. isShow:true,
  466. queryParams: () => ({}),
  467. },
  468. { key: "isArrivalReson", title: "到货超期原因", inputType: "Input", isShow:true, },
  469. // { key: "midOrderNo", title: "中台采购订单号", inputType: "Input", isShow:true, },
  470. { key: "marketingCode", title: "销售订单号", inputType: "Input", isShow:true, },
  471. { key: "isArrival", title: "到货超期", inputType: "Checkbox", isShow:true,},
  472. { key: "createByName", title: "创建人", inputType: "Input", isShow:false, },
  473. {
  474. key: "approveTime",
  475. title: "提交时间",
  476. inputType: "DatePicker",
  477. valueFormat: "yyyy-MM-dd",
  478. isShow:false,
  479. },
  480. { key: "approverName", title: "审批人", inputType: "Input", isShow:false, },
  481. {
  482. key: "approverFinishTime",
  483. title: "审批时间",
  484. inputType: "DatePicker",
  485. valueFormat: "yyyy-MM-dd",
  486. isShow:false,
  487. },
  488. { key: "updateByName", title: "更新人", inputType: "Input", isShow:false, },
  489. // { key: "flowId", title: "OA流程ID", inputType: "Input", isShow:false, },
  490. {
  491. key: "sysFileRecordList",
  492. title: "附件",
  493. inputType: "Upload",
  494. // fileType: ["pdf",""],
  495. span: 24,
  496. isShow:true,
  497. },
  498. {
  499. key: "remark",
  500. title: "备注",
  501. inputType: "Textarea",
  502. isShow:true,
  503. },
  504. ];
  505. // export const initColumns = () => columns;
  506. export const TabColumns = [
  507. {
  508. title: '物料信息',
  509. key: 'puOrderItemList',
  510. tableColumns: [
  511. {
  512. key: "rowNo",
  513. title: "行号",
  514. inputType: "Input",
  515. disabled:true,
  516. require:false,
  517. },
  518. {
  519. key: "demandCode",
  520. title:"采购需求单号",
  521. inputType: "Input",
  522. width: 180,
  523. disabled:true,
  524. require:false,
  525. },
  526. {
  527. key: "contractNo",
  528. title:"合同编号",
  529. inputType: "Input",
  530. width: 180,
  531. disabled:true,
  532. require:false,
  533. },
  534. // { key: "orderId", title: "采购订单ID", inputType: "Input", width: 180 },
  535. // {key: "material",title: "物料",inputType: "Input", },
  536. {
  537. key: "materialName",
  538. title: "物料",
  539. inputType: "PopoverSelect",
  540. width: 180,
  541. require: true,
  542. valueKey: "id",
  543. referName: "MATERIAL_PARAM",
  544. dataMapping: {
  545. material: "id",
  546. materialName: "name",
  547. materialCode: "code",
  548. // materialClassify:'classifyIdName',
  549. materialManufacturersCode:'manufacturersMaterialCode',
  550. specification:'specification',
  551. model:'model',
  552. isMedcine:'isMedicineYN',
  553. manufacturer:'manufacturerId',
  554. manufacturerName:'manufacturerIdName',
  555. unit:'unitId',
  556. unitName:'unitIdName',
  557. // tax:'materialRateName',
  558. storageCondition:'storageCondition',
  559. carriageCondition:'transportationCondition',
  560. materialClassifyOneName:'oneClass',
  561. materialClassifyTwoName:'twoClass',
  562. materialClassifyThreeName:'threeClass',
  563. materialClassifyFourName:'fourClass',
  564. registration:'registrationNo',
  565. isDrug:'isDrug',
  566. },
  567. queryParams: () => ({}),
  568. },
  569. {
  570. key: "materialCode",
  571. title: "物料编码",
  572. inputType: "Input",
  573. require: true,
  574. width: 180,
  575. disabled:true,
  576. readonly:true,
  577. },
  578. // { //classifyIdName classifyId
  579. // key: "materialClassify",
  580. // title: "物料分类",
  581. // inputType: "Input",
  582. // width: 180,
  583. // disabled:true,
  584. // readonly:true,
  585. // },
  586. { // manufacturersMaterialCode manufacturersMaterialName
  587. key: "materialManufacturersCode",
  588. title: "厂家物料编码",
  589. inputType: "Input",
  590. width: 180,
  591. disabled:true,
  592. readonly:true,
  593. },
  594. { //specification
  595. key: "specification",
  596. title: "规格",
  597. inputType: "Input",
  598. width: 180 ,
  599. disabled:true,
  600. readonly:true,
  601. },
  602. { //model
  603. key: "model",
  604. title: "型号",
  605. inputType: "Input",
  606. disabled:true,
  607. readonly:true,
  608. },
  609. { //isMedicine isMedicineValue
  610. key: "isMedcine",
  611. title: "医药物料",
  612. inputType: "Checkbox",
  613. disabled:true,
  614. readonly:true,
  615. },
  616. { // manufacturerId manufacturerIdName
  617. key: "manufacturerName",
  618. title: "生产厂家代理人",
  619. inputType: "Input",
  620. width: 180,
  621. disabled:true,
  622. readonly:true,
  623. },
  624. {
  625. key: "isDrug",
  626. title: "物料药品属性",
  627. inputType: "Checkbox",
  628. disabled:true,
  629. },
  630. { //unitId unitIdName
  631. key: "unitName",
  632. title: "单位",
  633. inputType: "Input",
  634. disabled:true,
  635. readonly:true,
  636. },
  637. {
  638. key: "qty",
  639. title: "数量",
  640. inputType: "InputNumber",
  641. controlsPosition: "right",
  642. width: 120,
  643. require: true,
  644. },
  645. {
  646. key: "currencyName",
  647. title: "币种",
  648. inputType: "PopoverSelect",
  649. valueKey: "id",
  650. referName: "CURRENCY_PARAM",
  651. dataMapping: {
  652. currency: 'id',
  653. currencyName: 'name'
  654. },
  655. queryParams: () => ({}),
  656. width: 180,
  657. },
  658. {
  659. key: "priceType",
  660. title: "价格类型",
  661. inputType: "Select",
  662. referName: "sys_price_type", // 字典名
  663. width: 180,
  664. },
  665. {
  666. key: "taxPrice",
  667. title: "含税单价",
  668. inputType: "InputNumber",
  669. controlsPosition: "right",
  670. // precision:2,
  671. require: true,
  672. disabled:true,
  673. width: 180,
  674. },
  675. {
  676. key: "money",
  677. title: "价税合计",
  678. inputType: "InputNumber",
  679. controlsPosition: "right",
  680. // precision:2,
  681. disabled:true,
  682. width: 180,
  683. },
  684. { //materialRate materialRateName
  685. key: "tax",
  686. title: "税率",
  687. // inputType: "Input",
  688. inputType: "InputNumber",
  689. controlsPosition: "right",
  690. // precision:2,
  691. disabled:true,
  692. width: 180,
  693. },
  694. {
  695. key: "taxDeductMoneya",
  696. title: "折扣金额",
  697. inputType: "InputNumber",
  698. controlsPosition: "right",
  699. // precision:2,
  700. disabled:true,
  701. width: 180,
  702. },
  703. {
  704. key: "nitemdiscountrate",
  705. title: "折扣(%)",
  706. inputType: "Input",
  707. // precision:2,
  708. disabled:true,
  709. width: 180,
  710. },
  711. {
  712. key: "ntaxnetprice",
  713. title: "含税净价",
  714. inputType: "Input",
  715. controlsPosition: "right",
  716. // precision:2,
  717. disabled:true,
  718. width: 180,
  719. },
  720. {
  721. key: "arrivalQty",
  722. title: "已到货数量",
  723. inputType: "InputNumber",
  724. controlsPosition: "right",
  725. disabled:true,
  726. width: 180,
  727. },
  728. {
  729. key: "unarrivedQty",
  730. title: "未到货数量",
  731. inputType: "InputNumber",
  732. controlsPosition: "right",
  733. disabled:true,
  734. width: 180,
  735. },
  736. {
  737. key: "price",
  738. title: "无税单价",
  739. inputType: "InputNumber",
  740. controlsPosition: "right",
  741. // precision:2,
  742. disabled:true,
  743. width: 180,
  744. },
  745. {
  746. key: "notaxMoney",
  747. title: "无税金额",
  748. inputType: "InputNumber",
  749. controlsPosition: "right",
  750. // precision:2,
  751. disabled:true,
  752. width: 180,
  753. },
  754. // { key: "priceSource", title: "价格目录ID", inputType: "Input", },
  755. { key: "isStorage", title: "入库关闭", inputType: "Checkbox", disabled:true, },
  756. { key: "isInvoice", title: "开票关闭", inputType: "Checkbox", disabled:true, },
  757. { key: "isArrival", title: "到货关闭", inputType: "Checkbox", disabled:true,},
  758. { key: "isPayment", title: "付款关闭", inputType: "Checkbox", disabled:true, },
  759. { key: "isGift", title: "赠品", inputType: "Checkbox", },
  760. {
  761. key: "goodsWarehouseName",
  762. title: "收货仓库",
  763. inputType: "Input",
  764. width: 200,
  765. disabled:true,
  766. },
  767. // { key: "place", title: "收货地点", inputType: "Input", width: 180 },
  768. {
  769. key: "address",
  770. title: "收货地址",
  771. inputType: "PopoverSelect",
  772. valueKey: "address",
  773. referName: "ADDRESS_PARAM",
  774. width: 180,
  775. dataMapping:{
  776. // address: 'address',
  777. // addressName: '',
  778. goodsWarehouse:'id',
  779. goodsWarehouseName:'name',
  780. contacts:'contactsName',
  781. contactsPhone:'contactsPhone'
  782. }
  783. },
  784. {
  785. key: "customerName",
  786. title: "收货客户",
  787. inputType: "PopoverSelect",
  788. valueKey: "id",
  789. referName: "CUSTOMER_PARAM",
  790. width: 180,
  791. dataMapping:{
  792. customer:'id',
  793. customerName:'name',
  794. },
  795. },
  796. { key: "productBatch", title: "产品批号", inputType: "Input", width: 180 },
  797. { key: "manufactureDate", title: "生产日期", inputType: "Input", width: 180 },
  798. {
  799. key: "efficacyLoseDate",
  800. title: "有效期至/失效日期",
  801. inputType: "Input",
  802. width: 180
  803. },
  804. {
  805. key: "approvalNumber",
  806. title: "批准文号",
  807. inputType: "Input",
  808. width: 180
  809. },
  810. {
  811. key: "registration",
  812. title: "注册证号",
  813. inputType: "Input",
  814. width: 180 ,
  815. disabled:true,
  816. },
  817. { //storageCondition storageConditionName
  818. key: "storageCondition",
  819. title: "存储条件",
  820. inputType: "Select",
  821. referName: "sys_storage_condition", // 字典名
  822. width: 180,
  823. disabled:true,
  824. readonly:true,
  825. },
  826. { // transportationCondition transportationConditionName
  827. key: "carriageCondition",
  828. title: "运输条件",
  829. inputType: "Select",
  830. referName: "sys_conditions_carriage", // 字典名
  831. width: 180,
  832. disabled:true,
  833. readonly:true,
  834. },
  835. { key: "isBatchLock", title: "批号锁定标识", inputType: "Checkbox", },
  836. { key: "isReplenishment", title: "补单标识", inputType: "Checkbox", },
  837. { key: "isUrgency", title: "紧急标识", inputType: "Checkbox", },
  838. {
  839. key: "originalQty",
  840. title: "原始数量",
  841. inputType: "InputNumber",
  842. controlsPosition: "right",
  843. disabled:true,
  844. width: 180 ,
  845. },
  846. {
  847. key: "originalMoney",
  848. title: "原始金额",
  849. inputType: "InputNumber",
  850. controlsPosition: "right",
  851. // precision:2,
  852. disabled:true,
  853. width: 180,
  854. },
  855. { key: "directProductBatch", title: "直运产品批号", inputType: "Input", width: 180 },
  856. { key: "discountRule", title: "折扣规则编码", inputType: "Input", width: 180 },
  857. {
  858. key: "reservedQty",
  859. title: "预留数量",
  860. inputType: "InputNumber",
  861. controlsPosition: "right",
  862. width: 180 ,
  863. },
  864. { key: "reservedPeriod", title: "预留周期", inputType: "Input", },
  865. {
  866. key: "taxDeductClassify",
  867. title: "扣税类别",
  868. inputType: "Select",
  869. referName: "tax_deduction_category", // 字典名
  870. width: 180,
  871. },
  872. { key: "exchangeRate", title: "折本汇率", inputType: "Input", },
  873. { key: "source", title: "上游单据号", inputType: "Input", width: 180 },
  874. // { key: "sourceId", title: "上游单据ID", inputType: "Input", width: 180 },
  875. // { key: "demandCode", title: "采购需求单号", inputType: "Input", width: 180 },
  876. { key: "arrivalDatePlan", title: "计划到货日期", inputType: "Input", width: 180 },
  877. { key: "isDistributionPrice", title: "配送价", inputType: "Checkbox", },
  878. { //threeClass
  879. key: "materialClassifyOneName",
  880. title: "物料一级分类",
  881. inputType: "Input",
  882. width: 180,
  883. disabled:true,
  884. readonly:true,
  885. },
  886. { //twoClass
  887. key: "materialClassifyTwoName",
  888. title: "物料二级分类",
  889. inputType: "Input",
  890. width: 180,
  891. disabled:true,
  892. readonly:true,
  893. },
  894. { //threeClass
  895. key: "materialClassifyThreeName",
  896. title: "物料三级分类",
  897. inputType: "Input",
  898. width: 180,
  899. disabled:true,
  900. readonly:true,
  901. },
  902. { //fourClass
  903. key: "materialClassifyFourName",
  904. title: "物料四级分类",
  905. inputType: "Input",
  906. width: 180,
  907. disabled:true,
  908. readonly:true,
  909. },
  910. // { key: "createByName", title: "创建人", inputType: "Input", },
  911. // { key: "updateByName", title: "更新人", inputType: "Input", },
  912. ]
  913. },
  914. {
  915. title: '执行结果',
  916. key: 'puOrderExecuteList',
  917. tableColumns: [
  918. // { key: "orderId", title: "采购订单ID", inputType: "Input", width: 180 },
  919. {
  920. key: "rowno",
  921. title: "行号",
  922. inputType: "Input",
  923. disabled:true,
  924. require:false,
  925. },
  926. {
  927. key: "materialName",
  928. title: "物料",
  929. inputType: "PopoverSelect",
  930. width: 180,
  931. require: true,
  932. valueKey: "id",
  933. referName: "MATERIAL_PARAM",
  934. dataMapping: {
  935. material: "id",
  936. materialName: "name",
  937. materialCode: "code",
  938. // materialClassify:'classifyIdName',
  939. materialManufacturersCode:'manufacturersMaterialCode',
  940. specification:'specification',
  941. model:'model',
  942. isMedcine:'isMedicine',
  943. manufacturer:'manufacturerId',
  944. manufacturerName:'manufacturerIdName',
  945. unit:'unitId',
  946. unitName:'unitIdName',
  947. // tax:'materialRateName',
  948. storageCondition:'storageCondition',
  949. carriageCondition:'transportationCondition',
  950. materialClassifyOneName:'oneClass',
  951. materialClassifyTwoName:'twoClass',
  952. materialClassifyThreeName:'threeClass',
  953. materialClassifyFourName:'fourClass',
  954. registration:'registrationNo',
  955. isDrug:'isDrug',
  956. },
  957. queryParams: () => ({}),
  958. width:180,
  959. },
  960. {
  961. key: "specification",
  962. title: "规格",
  963. inputType: "Input",
  964. disabled:true,
  965. readonly:true,
  966. },
  967. {
  968. key: "qty",
  969. title: "数量",
  970. inputType: "InputNumber",
  971. controlsPosition: "right",
  972. width: 180,
  973. require: true,
  974. },
  975. {
  976. key: "stroageQty",
  977. title: "累计到货主数量",
  978. inputType: "InputNumber",
  979. controlsPosition: "right",
  980. width: 180,
  981. },
  982. {
  983. key: "stockQty",
  984. title: "累计入库主数量",
  985. inputType: "InputNumber",
  986. controlsPosition: "right",
  987. width: 180,
  988. },
  989. {
  990. key: "invoiceQty",
  991. title: "累计开票主数量",
  992. inputType: "InputNumber",
  993. controlsPosition: "right",
  994. width: 180,
  995. },
  996. {
  997. key: "rollbackQty",
  998. title: "累计退货主数量",
  999. inputType: "InputNumber",
  1000. controlsPosition: "right",
  1001. width: 180,
  1002. },
  1003. {
  1004. key: "backStockQty",
  1005. title: "累计退库主数量",
  1006. inputType: "InputNumber",
  1007. controlsPosition: "right",
  1008. width: 180,
  1009. },
  1010. {
  1011. key: "floatQty",
  1012. title: "未到货数量",
  1013. inputType: "InputNumber",
  1014. controlsPosition: "right",
  1015. width: 180,
  1016. },
  1017. // {
  1018. // key: "createByName",
  1019. // title: "创建人",
  1020. // inputType: "Input",
  1021. // width: 120
  1022. // },
  1023. // {
  1024. // key: "updateByName",
  1025. // title: "更新人",
  1026. // inputType: "Input",
  1027. // width: 120
  1028. // },
  1029. ]
  1030. },
  1031. ];
  1032. // 集采中心
  1033. const PurColumns =[];
  1034. const PurchaseTabColumns =[];
  1035. // 事业发展部
  1036. const CauseColumns =[];
  1037. const CauseTabColumns =[];
  1038. // export const initTabColumns = () => tabColumns;