column.js 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605
  1. import orderApi from "@/api/business/purchase/purchase-order";
  2. import Cookies from "js-cookie";
  3. // 集采中心
  4. const PurColumns =[
  5. {
  6. key: "puOrgName",
  7. title: "采购组织",
  8. inputType: "PopoverSelect",
  9. valueKey: "id",
  10. referName: "ORG_PARAM",
  11. dataMapping: {
  12. puOrg: "id",
  13. puOrgName: "name",
  14. },
  15. queryParams: () => ({}),
  16. require: true,
  17. isShow:true,
  18. },
  19. {
  20. key: "createTime",
  21. title: "制单日期",
  22. inputType: "DatePicker",
  23. type:'datetime',
  24. // valueFormat: "yyyy-MM-dd HH:mm:ss",
  25. require: true,
  26. disabled: true,
  27. isShow:true,
  28. },
  29. {
  30. key: "status",
  31. title: "单据状态",
  32. inputType: "Select",
  33. referName: "documents_status", // 字典名
  34. disabled: true,
  35. isShow:true,
  36. },
  37. {
  38. key: "paymentAgreementName",
  39. title: "付款协议",
  40. inputType: "PopoverSelect",
  41. valueKey: "id",
  42. referName: "PAYAGREEMENT_PARAM",
  43. dataMapping: {
  44. paymentAgreement: 'id',
  45. paymentAgreementName: 'name'
  46. },
  47. queryParams: () => ({}),
  48. isShow:true,
  49. disabled:true,
  50. },
  51. {
  52. key: "updateTime",
  53. title: "修改日期",
  54. inputType: "DatePicker",
  55. valueFormat: "yyyy-MM-dd HH-MM-SS",
  56. width: 200,
  57. disabled: true,
  58. isShow:true,
  59. },
  60. {
  61. key: "billType",
  62. title: "订单类型",
  63. inputType: "Select",
  64. referName: "sys_order_type", // 字典名
  65. isShow:true,
  66. require: true,
  67. },
  68. {
  69. key: "supplierName",
  70. title: "供应商",
  71. inputType: "PopoverSelect",
  72. valueKey: "id",
  73. referName: "SUPPLIER_PARAM",
  74. dataMapping: {
  75. supplier: "id",
  76. supplierCode:'code',
  77. supplierName: "name",
  78. paymentAgreement: 'paymentId',
  79. paymentAgreementName: 'paymentName',
  80. },
  81. queryParams: () => ({}),
  82. require: true,
  83. isShow:true,
  84. },
  85. {
  86. key: "qty",
  87. title: "总数量",
  88. inputType: "InputNumber",
  89. controlsPosition: "right",
  90. isShow:true,
  91. disabled:true,
  92. },
  93. {
  94. key: "warehouseName",
  95. title: "WMS入库仓库",
  96. inputType: "PopoverSelect",
  97. valueKey: "id",
  98. referName: "WAREHOUSE_PARAM",
  99. dataMapping: {
  100. warehouse: 'id',
  101. warehouseName: 'name',
  102. },
  103. queryParams: (params) => ({
  104. pkOrg: params.puOrg,
  105. isWms: ['21-Cxx-02','21-Cxx-04','21-Cxx-10'].find(item => item === params.billType) ? 'Y' : 'N',
  106. }),
  107. isShow:true,
  108. // require: true,
  109. },
  110. {
  111. key: "originalQty",
  112. title: "原始总数量",
  113. inputType: "InputNumber",
  114. controlsPosition: "right",
  115. isShow:true,
  116. disabled:true,
  117. },
  118. {
  119. key: "createByName",
  120. title: "制单人",
  121. inputType: "Input",
  122. isShow:true,
  123. disabled:true,
  124. },
  125. {
  126. key: "code",
  127. title: "订单编号",
  128. inputType: "Input",
  129. readonly: true,
  130. disabled: true,
  131. isShow:true,
  132. },
  133. {
  134. key: "money",
  135. title: "价税合计",
  136. inputType: "InputNumber",
  137. controlsPosition: "right",
  138. // precision:2,
  139. isShow:true,
  140. disabled:true,
  141. },
  142. {
  143. key: "goodsWarehouseName",
  144. title: "收货仓库",
  145. inputType: "PopoverSelect",
  146. valueKey: "name",
  147. referName: "ADDRESS_PARAM",
  148. isShow:true,
  149. require: true,
  150. dataMapping: {
  151. address: 'address',
  152. // addressName: '',
  153. goodsWarehouse:'id',
  154. goodsWarehouseName:'name',
  155. contacts:'contactsName',
  156. contactsPhone:'contactsPhone'
  157. },
  158. queryParams: () => ({}),
  159. },
  160. {
  161. key: "originalMoney",
  162. title: "原始金额",
  163. inputType: "InputNumber",
  164. controlsPosition: "right",
  165. // precision:2,
  166. isShow:true,
  167. disabled:true,
  168. width: 180,
  169. },
  170. {
  171. key: "buyerName",
  172. title: "采购员",
  173. inputType: "PopoverSelect",
  174. valueKey: "code",
  175. referName: "CONTACTS_PARAM",
  176. dataMapping: {
  177. buyer: 'code',
  178. buyerName: 'name'
  179. },
  180. queryParams: () => ({}),
  181. require: true,
  182. isShow:true,
  183. },
  184. {
  185. key: "erpOrderCode",
  186. title: "erp订单编号",
  187. inputType: "Input",
  188. readonly: true,
  189. disabled: true,
  190. isShow:true,
  191. },
  192. {
  193. key: "rebateMoney",
  194. title: "订单使用返利金额",
  195. inputType: "InputNumber",
  196. controlsPosition: "right",
  197. // precision:2,
  198. isShow:true,
  199. require: true,
  200. },
  201. {
  202. key: "address",
  203. title: "收货地址",
  204. inputType: "Input",
  205. require: true,
  206. disabled:true,
  207. isShow:true,
  208. width: 180
  209. },
  210. {
  211. key: "isEnd",
  212. title: "整单关闭标识",
  213. inputType: "Checkbox",
  214. isShow:true,
  215. },
  216. {
  217. key: "isBack",
  218. title: "退货",
  219. inputType: "Input",
  220. inputType: "Checkbox",
  221. isShow:true,
  222. },
  223. {
  224. key: "deductionMoney",
  225. title: "订单抵扣余款金额",
  226. inputType: "InputNumber",
  227. controlsPosition: "right",
  228. // precision:2,
  229. isShow:true,
  230. require: true,
  231. },
  232. {
  233. key: "contacts",
  234. title: "收货联系人",
  235. inputType: "Input",
  236. isShow:true,
  237. disabled:true,
  238. },
  239. {
  240. key: "isClose",
  241. title: "最终关闭",
  242. inputType: "Checkbox",
  243. isShow:true,
  244. disabled:true,
  245. },
  246. {
  247. key: "retReasonName",
  248. title: "退换原因",
  249. inputType: "PopoverSelect",
  250. valueKey: "id",
  251. referName: "RETREASON_PARAM",
  252. dataMapping: {
  253. retReason: 'id',
  254. retReasonName: 'name'
  255. },
  256. isShow:true,
  257. queryParams: () => ({}),
  258. },
  259. {
  260. key: "applyPaymentMoney",
  261. title: "累计付款申请金额",
  262. inputType: "InputNumber",
  263. controlsPosition: "right",
  264. // precision:2,
  265. isShow:true,
  266. disabled:true,
  267. },
  268. {
  269. key: "puDeptName",
  270. title: "采购部门",
  271. inputType: "PopoverSelect",
  272. valueKey: "id",
  273. referName: "DEPT_PARAM",
  274. dataMapping: {
  275. puDept: 'id',
  276. puDeptName: 'name'
  277. },
  278. queryParams: (params) => ({
  279. drpOrg: params.puOrg,
  280. }),
  281. require: true,
  282. isShow:true,
  283. },
  284. {
  285. key: "closeTime",
  286. title: "最终关闭日期",
  287. inputType: "DatePicker",
  288. valueFormat: "yyyy-MM-dd",
  289. isShow:true,
  290. disabled:true,
  291. },
  292. {
  293. key: "processTypeName",
  294. title: "处理方式",
  295. inputType: "PopoverSelect",
  296. valueKey: "id",
  297. referName: "PROCESSTYPE_PARAM",
  298. dataMapping: {
  299. processType: 'id',
  300. processTypeName: 'name'
  301. },
  302. isShow:true,
  303. queryParams: () => ({}),
  304. },
  305. {
  306. key: "paymentMoney",
  307. title: "累计付款金额",
  308. inputType: "InputNumber",
  309. controlsPosition: "right",
  310. // precision:2,
  311. isShow:true,
  312. },
  313. {
  314. key: "freezeCause",
  315. title: "冻结原因",
  316. inputType: "Checkbox",
  317. isShow:true,
  318. },
  319. {
  320. key: "closeReason",
  321. title: "关闭原因",
  322. inputType: "Input",
  323. disabled: true,
  324. isShow:true,
  325. },
  326. {
  327. key: "invoiceMoney",
  328. title: "发票金额",
  329. inputType: "InputNumber",
  330. controlsPosition: "right",
  331. isShow:true,
  332. },
  333. {
  334. key: "oaDemandNo",
  335. title: "OA需求单号",
  336. inputType: "Input",
  337. isShow:true,
  338. },
  339. {
  340. key: "remark",
  341. title: "备注",
  342. // span: 12,
  343. rows: 1,
  344. inputType: "Textarea",
  345. isShow:true,
  346. },
  347. {
  348. key: "sysFileRecordList",
  349. title: "附件",
  350. inputType: "Upload",
  351. span:24,
  352. // fileType: ["pdf",""],
  353. isShow:true,
  354. },
  355. ];
  356. const PurchaseTabColumns =[
  357. {
  358. title: '物料信息',
  359. key: 'puOrderItemList',
  360. tableColumns: [
  361. {
  362. key: "customerName",
  363. title: "收货客户",
  364. inputType: "PopoverSelect",
  365. valueKey: "id",
  366. referName: "CUSTOMER_PARAM",
  367. width: 180,
  368. copy: true,
  369. dataMapping:{
  370. customer:'id',
  371. customerName:'name',
  372. },
  373. },
  374. {
  375. key: "goodsAllocationName",
  376. title: "货位",
  377. inputType: "PopoverSelect",
  378. valueKey: "name",
  379. referName: "ALLOCATION_PARAM",
  380. dataMapping: {
  381. goodsAllocation: 'id',
  382. goodsAllocationName: 'name',
  383. },
  384. isShow:true,
  385. copy: true,
  386. queryParams: (params) => ({
  387. stordocId: params.warehouse,
  388. pkOrg: params.puOrg,
  389. }),
  390. width: 180,
  391. },
  392. {
  393. key: "rowNo",
  394. title: "行号",
  395. inputType: "Input",
  396. disabled:true,
  397. require:false,
  398. },
  399. {
  400. key: "materialCode",
  401. title: "物料编码",
  402. inputType: "PopoverSelect",
  403. width: 180,
  404. require: true,
  405. valueKey: "code",
  406. referName: "MATERIAL_PARAM",
  407. copy: true,
  408. dataMapping: {
  409. material: "id",
  410. materialName: "name",
  411. materialCode: "code",
  412. // materialClassify:'classifyIdName',
  413. materialManufacturersCode:'manufacturersMaterialCode',
  414. specification:'specification',
  415. model:'model',
  416. isMedcine:'isMedicine',
  417. manufacturer:'manufacturerId',
  418. manufacturerName:'manufacturerIdName',
  419. unit:'unitId',
  420. unitName:'unitIdName',
  421. storageCondition:'storageCondition',
  422. carriageCondition:'transportationCondition',
  423. materialClassifyOneName:'oneClass',
  424. materialClassifyTwoName:'twoClass',
  425. materialClassifyThreeName:'threeClass',
  426. materialClassifyFourName:'fourClass',
  427. registration:'registrationNo',
  428. isDrug:'isDrug',
  429. rateCode: "materialRateName",
  430. },
  431. queryParams: () => ({}),
  432. width:180,
  433. },
  434. {
  435. // key: "materialCode",
  436. // title: "物料编码",
  437. key: "materialName",
  438. title: "物料名称",
  439. inputType: "Input",
  440. require: true,
  441. width: 180,
  442. disabled:true,
  443. readonly:true,
  444. },
  445. { //specification
  446. key: "specification",
  447. title: "规格",
  448. inputType: "Input",
  449. width: 180 ,
  450. disabled:true,
  451. readonly:true,
  452. },
  453. { //model
  454. key: "model",
  455. title: "型号",
  456. inputType: "Input",
  457. disabled:true,
  458. readonly:true,
  459. },
  460. { // manufacturerId manufacturerIdName
  461. key: "manufacturerName",
  462. title: "生产厂家代理人",
  463. inputType: "Input",
  464. width: 180,
  465. disabled:true,
  466. readonly:true,
  467. },
  468. { //unitId unitIdName
  469. key: "unitName",
  470. title: "单位",
  471. inputType: "Input",
  472. disabled:true,
  473. readonly:true,
  474. },
  475. {
  476. key: "qty",
  477. title: "数量",
  478. inputType: "Input",
  479. copy: true,
  480. // inputType: "InputNumber",
  481. // controlsPosition: "right",
  482. width: 120,
  483. require: true,
  484. isSummary:true,
  485. },
  486. {
  487. key: "taxPrice",
  488. title: "含税单价",
  489. inputType: "InputNumber",
  490. controlsPosition: "right",
  491. // precision:2,
  492. require: true,
  493. disabled:true,
  494. width: 180,
  495. },
  496. {
  497. key: "money",
  498. title: "价税合计",
  499. inputType: "InputNumber",
  500. controlsPosition: "right",
  501. // precision:2,
  502. disabled:true,
  503. width: 180,
  504. isSummary:true,
  505. },
  506. {
  507. key: "isGift",
  508. title: "赠品",
  509. inputType: "Checkbox",
  510. },
  511. {
  512. key: "nitemdiscountrate",
  513. title: "折扣(%)",
  514. inputType: "Input",
  515. // precision:2,
  516. disabled:true,
  517. width: 180,
  518. },
  519. {
  520. key: "taxDeductMoneya",
  521. title: "折扣金额",
  522. inputType: "InputNumber",
  523. controlsPosition: "right",
  524. // precision:2,
  525. disabled:true,
  526. width: 180,
  527. isSummary:true,
  528. },
  529. {
  530. key: "discountRule",
  531. title: "折扣规则编码",
  532. inputType: "Input",
  533. width: 180
  534. },
  535. { //materialRate materialRateName
  536. key: "tax",
  537. title: "税率",
  538. // inputType: "Input",
  539. inputType: "InputNumber",
  540. controlsPosition: "right",
  541. // precision:2,
  542. disabled:true,
  543. width: 180,
  544. },
  545. {
  546. key: "registration",
  547. title: "注册证号",
  548. inputType: "Input",
  549. width: 180 ,
  550. disabled:true,
  551. },
  552. {
  553. key: "demandCode",
  554. title: "采购需求单号",
  555. inputType: "Input",
  556. width: 180
  557. },
  558. {
  559. key: "isReplenishment",
  560. title: "补单标识",
  561. inputType: "Checkbox",
  562. },
  563. {
  564. key: "isUrgency",
  565. title: "紧急标识",
  566. inputType: "Checkbox",
  567. },
  568. {
  569. key: "priceType",
  570. title: "价格类型",
  571. inputType: "Select",
  572. referName: "sys_price_type", // 字典名
  573. width: 180,
  574. },
  575. {
  576. key: "isDistributionPrice",
  577. title: "配送价",
  578. inputType: "Checkbox",
  579. },
  580. {
  581. key: "floatQty",
  582. title: "未到货数量",
  583. inputType: "InputNumber",
  584. controlsPosition: "right",
  585. width: 180,
  586. isSummary:true,
  587. },
  588. { key: "isArrival", title: "到货关闭", inputType: "Checkbox", disabled:true,},
  589. { key: "isStorage", title: "入库关闭", inputType: "Checkbox", disabled:true, },
  590. { key: "isPayment", title: "付款关闭", inputType: "Checkbox", disabled:true, },
  591. { key: "isInvoice", title: "开票关闭", inputType: "Checkbox", disabled:true, },
  592. { //isMedicine isMedicineValue
  593. key: "isMedcine",
  594. title: "医药物料",
  595. inputType: "Checkbox",
  596. disabled:true,
  597. readonly:true,
  598. },
  599. {
  600. key: "originalQty",
  601. title: "原始数量",
  602. inputType: "InputNumber",
  603. controlsPosition: "right",
  604. disabled:true,
  605. width: 180 ,
  606. isSummary:true,
  607. },
  608. {
  609. key: "originalMoney",
  610. title: "原始金额",
  611. inputType: "InputNumber",
  612. controlsPosition: "right",
  613. // precision:2,
  614. disabled:true,
  615. width: 180,
  616. isSummary:true,
  617. },
  618. {
  619. key: "closeReason",
  620. title: "行关闭/打开原因",
  621. inputType: "Input",
  622. width: 180,
  623. disabled: true,
  624. },
  625. ]
  626. },
  627. // {
  628. // title: '执行结果',
  629. // key: 'puOrderExecuteList',
  630. // tableColumns: [
  631. // // { key: "orderId", title: "采购订单ID", inputType: "Input", width: 180 },
  632. // {
  633. // key: "rowno",
  634. // title: "行号",
  635. // inputType: "Input",
  636. // disabled:true,
  637. // require:false,
  638. // },
  639. // {
  640. // key: "materialName",
  641. // title: "物料",
  642. // inputType: "PopoverSelect",
  643. // width: 180,
  644. // require: true,
  645. // valueKey: "id",
  646. // referName: "MATERIAL_PARAM",
  647. // dataMapping: {
  648. // material: "id",
  649. // materialName: "name",
  650. // materialCode: "code",
  651. // // materialClassify:'classifyIdName',
  652. // materialManufacturersCode:'manufacturersMaterialCode',
  653. // specification:'specification',
  654. // model:'model',
  655. // isMedcine:'isMedicine',
  656. // manufacturer:'manufacturerId',
  657. // manufacturerName:'manufacturerIdName',
  658. // unit:'unitId',
  659. // unitName:'unitIdName',
  660. // // tax:'materialRateName',
  661. // storageCondition:'storageCondition',
  662. // carriageCondition:'transportationCondition',
  663. // materialClassifyOneName:'oneClass',
  664. // materialClassifyTwoName:'twoClass',
  665. // materialClassifyThreeName:'threeClass',
  666. // materialClassifyFourName:'fourClass',
  667. // registration:'registrationNo',
  668. // isDrug:'isDrug',
  669. // },
  670. // queryParams: () => ({}),
  671. // width:180,
  672. // },
  673. // {
  674. // key: "specification",
  675. // title: "规格",
  676. // inputType: "Input",
  677. // disabled:true,
  678. // readonly:true,
  679. // },
  680. // {
  681. // key: "qty",
  682. // title: "数量",
  683. // inputType: "InputNumber",
  684. // controlsPosition: "right",
  685. // width: 180,
  686. // require: true,
  687. // isSummary:true,
  688. // },
  689. // {
  690. // key: "stroageQty",
  691. // title: "累计到货主数量",
  692. // inputType: "InputNumber",
  693. // controlsPosition: "right",
  694. // width: 180,
  695. // isSummary:true,
  696. // },
  697. // {
  698. // key: "stockQty",
  699. // title: "累计入库主数量",
  700. // inputType: "InputNumber",
  701. // controlsPosition: "right",
  702. // width: 180,
  703. // isSummary:true,
  704. // },
  705. // {
  706. // key: "invoiceQty",
  707. // title: "累计开票主数量",
  708. // inputType: "InputNumber",
  709. // controlsPosition: "right",
  710. // width: 180,
  711. // isSummary:true,
  712. // },
  713. // {
  714. // key: "rollbackQty",
  715. // title: "累计退货主数量",
  716. // inputType: "InputNumber",
  717. // controlsPosition: "right",
  718. // width: 180,
  719. // isSummary:true,
  720. // },
  721. // {
  722. // key: "backStockQty",
  723. // title: "累计退库主数量",
  724. // inputType: "InputNumber",
  725. // controlsPosition: "right",
  726. // width: 180,
  727. // isSummary:true,
  728. // },
  729. // {
  730. // key: "floatQty",
  731. // title: "未到货数量",
  732. // inputType: "InputNumber",
  733. // controlsPosition: "right",
  734. // width: 180,
  735. // isSummary:true,
  736. // },
  737. // // {
  738. // // key: "createByName",
  739. // // title: "创建人",
  740. // // inputType: "Input",
  741. // // width: 120
  742. // // },
  743. // // {
  744. // // key: "updateByName",
  745. // // title: "更新人",
  746. // // inputType: "Input",
  747. // // width: 120
  748. // // },
  749. // ]
  750. // },
  751. ];
  752. // 事业发展部
  753. const CauseColumns =[
  754. {
  755. key: "puOrgName",
  756. title: "采购组织",
  757. inputType: "PopoverSelect",
  758. valueKey: "id",
  759. referName: "ORG_PARAM",
  760. dataMapping: {
  761. puOrg: "id",
  762. puOrgName: "name",
  763. },
  764. queryParams: () => ({}),
  765. require: true,
  766. isShow:true,
  767. },
  768. {
  769. key: "billType",
  770. title: "订单类型",
  771. inputType: "Select",
  772. referName: "sys_order_type", // 字典名
  773. isShow:true,
  774. require: true,
  775. },
  776. {
  777. key: "code",
  778. title: "订单编号",
  779. inputType: "Input",
  780. readonly: true,
  781. disabled: true,
  782. isShow:true,
  783. },
  784. {
  785. key: "billDate",
  786. title: "订单日期",
  787. inputType: "DatePicker",
  788. valueFormat: "yyyy-MM-dd",
  789. width: 200,
  790. require: true,
  791. isShow:true,
  792. },
  793. {
  794. key: "billType",
  795. title: "订单类型编号",
  796. inputType: "Input",
  797. disabled: true,
  798. isShow:true,
  799. require: true,
  800. },
  801. {
  802. key: "supplierName",
  803. title: "供应商",
  804. inputType: "PopoverSelect",
  805. valueKey: "id",
  806. referName: "SUPPLIER_PARAM",
  807. dataMapping: {
  808. supplier: "id",
  809. supplierCode:'code',
  810. supplierName: "name",
  811. paymentAgreement: 'paymentId',
  812. paymentAgreementName: 'paymentName',
  813. },
  814. queryParams: () => ({}),
  815. require: true,
  816. isShow:true,
  817. },
  818. {
  819. key: "paymentAgreementName",
  820. title: "付款协议",
  821. inputType: "PopoverSelect",
  822. valueKey: "id",
  823. referName: "PAYAGREEMENT_PARAM",
  824. dataMapping: {
  825. paymentAgreement: 'id',
  826. paymentAgreementName: 'name'
  827. },
  828. queryParams: () => ({}),
  829. isShow:true,
  830. disabled:true,
  831. require: true,
  832. },
  833. // {
  834. // key: "currencyName",
  835. // title: "币种",
  836. // inputType: "PopoverSelect",
  837. // valueKey: "id",
  838. // referName: "CURRENCY_PARAM",
  839. // dataMapping: {
  840. // currency: 'id',
  841. // currencyName: 'name'
  842. // },
  843. // queryParams: () => ({}),
  844. // width: 180,
  845. // },
  846. {
  847. key: "buyerName",
  848. title: "采购员",
  849. inputType: "PopoverSelect",
  850. valueKey: "code",
  851. referName: "CONTACTS_PARAM",
  852. dataMapping: {
  853. buyer: 'code',
  854. buyerName: 'name'
  855. },
  856. queryParams: () => ({}),
  857. require: true,
  858. isShow:true,
  859. },
  860. {
  861. key: "puDeptName",
  862. title: "采购部门",
  863. inputType: "PopoverSelect",
  864. valueKey: "id",
  865. referName: "DEPT_PARAM",
  866. dataMapping: {
  867. puDept: 'id',
  868. puDeptName: 'name'
  869. },
  870. queryParams: (params) => ({
  871. drpOrg: params.puOrg,
  872. }),
  873. require: true,
  874. isShow:true,
  875. },
  876. {
  877. key: "customerName",
  878. title: "收货客户",
  879. inputType: "PopoverSelect",
  880. valueKey: "id",
  881. referName: "CUSTOMER_PARAM",
  882. width: 180,
  883. dataMapping:{
  884. customer:'id',
  885. customerName:'name',
  886. },
  887. isShow:true,
  888. },
  889. { key: "isBack", title: "退货", inputType: "Input", inputType: "Checkbox", isShow:true,},
  890. { key: "freezeCause", title: "冻结原因", inputType: "Checkbox", isShow:true, },
  891. {
  892. key: "qty",
  893. title: "总数量",
  894. inputType: "InputNumber",
  895. controlsPosition: "right",
  896. isShow:true,
  897. disabled:true,
  898. },
  899. {
  900. key: "money",
  901. title: "价税合计",
  902. inputType: "InputNumber",
  903. controlsPosition: "right",
  904. // precision:2,
  905. isShow:true,
  906. disabled:true,
  907. },
  908. // {
  909. // key: "remark",
  910. // title: "备注",
  911. // inputType: "Textarea",
  912. // isShow:true,
  913. // },
  914. { key: "isMarketing", title: "已协同生成销售订单", inputType: "Checkbox", isShow:true,},
  915. { key: "isMarketingSource", title: "由销售订单协同生成", inputType: "Checkbox", isShow:true,},
  916. {
  917. key: "isInvoice",
  918. title: "发票标识",
  919. inputType: "Checkbox",
  920. isShow:true,
  921. disabled:true,
  922. },
  923. {
  924. key: "rebateMoney",
  925. title: "订单使用返利金额",
  926. inputType: "InputNumber",
  927. controlsPosition: "right",
  928. // precision:2,
  929. isShow:true,
  930. },
  931. {
  932. key: "deductionMoney",
  933. title: "订单抵扣余款金额",
  934. inputType: "InputNumber",
  935. controlsPosition: "right",
  936. // precision:2,
  937. isShow:true,
  938. },
  939. {
  940. key: "warehouseName",
  941. title: "WMS入库仓库",
  942. inputType: "PopoverSelect",
  943. valueKey: "id",
  944. referName: "WAREHOUSE_PARAM",
  945. dataMapping: {
  946. warehouse: 'id',
  947. warehouseName: 'name',
  948. },
  949. queryParams: (params) => ({
  950. pkOrg: params.puOrg,
  951. isWms: ['21-Cxx-02','21-Cxx-04','21-Cxx-10'].find(item => item === params.billType) ? 'Y' : 'N',
  952. }),
  953. isShow:true,
  954. // require: true,
  955. },
  956. {
  957. key: "customerDeptName",
  958. title: "客户部门",
  959. inputType: "PopoverSelect",
  960. width: 200,
  961. valueKey: "id",
  962. referName: "CUSTOMERDEPT_PARAM",
  963. dataMapping: {
  964. customerDept: 'id',
  965. customerDeptName: 'name'
  966. },
  967. isShow:true,
  968. queryParams: () => ({}),
  969. },
  970. // { key: "place", title: "收货地点", inputType: "Input", width: 180 },
  971. {
  972. key: "goodsWarehouseName",
  973. title: "收货仓库",
  974. inputType: "PopoverSelect",
  975. valueKey: "name",
  976. referName: "ADDRESS_PARAM",
  977. width: 200,
  978. isShow:true,
  979. dataMapping:{
  980. address: 'address',
  981. goodsWarehouse:'id',
  982. goodsWarehouseName:'name',
  983. contacts:'contactsName',
  984. contactsPhone:'contactsPhone'
  985. }
  986. },
  987. {
  988. key: "address",
  989. title: "收货地址",
  990. inputType: "Input",
  991. width: 180,
  992. isShow:true,
  993. disabled:true,
  994. },
  995. {
  996. key: "contacts",
  997. title: "收货联系人",
  998. inputType: "Input",
  999. isShow:true,
  1000. disabled:true,
  1001. },
  1002. {
  1003. key: "isClose",
  1004. title: "最终关闭",
  1005. inputType: "Checkbox",
  1006. isShow:true,
  1007. disabled:true,
  1008. },
  1009. {
  1010. key: "supplierContactsName",
  1011. title: "供应商业务联系人",
  1012. inputType: "PopoverSelect",
  1013. valueKey: "id",
  1014. referName: "SUPPLIERCONTACTS_PARAM",
  1015. dataMapping: {
  1016. supplierContacts: 'id',
  1017. supplierContactsName: 'name'
  1018. },
  1019. isShow:true,
  1020. queryParams: (params) => ({
  1021. supplierId:params.supplier
  1022. }),
  1023. width: 200,
  1024. },
  1025. {
  1026. key: "isUrgency",
  1027. title: "紧急程度",
  1028. inputType: "Checkbox",
  1029. isShow:true,
  1030. disabled:true,
  1031. },
  1032. {
  1033. key: "agentName",
  1034. title: "代理人",
  1035. inputType: "PopoverSelect",
  1036. valueKey: "code",
  1037. referName: "CONTACTS_PARAM",
  1038. dataMapping: {
  1039. agent: 'code',
  1040. agentName: 'name'
  1041. },
  1042. isShow:true,
  1043. queryParams: () => ({}),
  1044. width: 200,
  1045. },
  1046. {
  1047. key: "closeReason",
  1048. title: "关闭原因",
  1049. inputType: "Input",
  1050. isShow:true,
  1051. disabled:true,
  1052. },
  1053. {
  1054. key: "invoiceMoney",
  1055. title: "发票金额",
  1056. inputType: "InputNumber",
  1057. controlsPosition: "right",
  1058. // precision:2,
  1059. isShow:true,
  1060. },
  1061. {
  1062. key: "closeTime",
  1063. title: "最终关闭日期",
  1064. inputType: "DatePicker",
  1065. valueFormat: "yyyy-MM-dd",
  1066. isShow:true,
  1067. disabled:true,
  1068. },
  1069. {
  1070. key: "applyPaymentMoney",
  1071. title: "累计付款申请金额",
  1072. inputType: "InputNumber",
  1073. controlsPosition: "right",
  1074. // precision:2,
  1075. isShow:true,
  1076. disabled:true,
  1077. },
  1078. {
  1079. key: "paymentMoney",
  1080. title: "累计付款金额",
  1081. inputType: "InputNumber",
  1082. controlsPosition: "right",
  1083. // precision:2,
  1084. isShow:true,
  1085. },
  1086. {
  1087. key: "supplierPersonalName",
  1088. title: "供应商业务员",
  1089. inputType: "PopoverSelect",
  1090. valueKey: "id",
  1091. // referName: "SUPPLIERCONTACTS_PARAM",
  1092. referName: "PSNLICENSE_PARAM",
  1093. dataMapping: {
  1094. supplierPersonal: 'id',
  1095. supplierPersonalName: 'name'
  1096. },
  1097. isShow:true,
  1098. queryParams: (params) => ({
  1099. // 组织、供应商id
  1100. pkOrg: params.puOrg,
  1101. supplierId:params.supplier
  1102. }),
  1103. },
  1104. {
  1105. key: "isSendSrm",
  1106. title: "是否同步SRM",
  1107. inputType: "Checkbox",
  1108. isShow:true,
  1109. },
  1110. {
  1111. key: "oaDemandNo",
  1112. title: "OA需求单号",
  1113. inputType: "Input",
  1114. isShow:true,
  1115. },
  1116. {
  1117. key: "remark",
  1118. title: "备注",
  1119. rows: 1,
  1120. inputType: "Textarea",
  1121. isShow:true,
  1122. },
  1123. {
  1124. key: "sysFileRecordList",
  1125. title: "附件",
  1126. inputType: "Upload",
  1127. // fileType: ["pdf",""],
  1128. span:24,
  1129. isShow:true,
  1130. },
  1131. ];
  1132. const CauseTabColumns =[
  1133. {
  1134. title: '物料信息',
  1135. key: 'puOrderItemList',
  1136. tableColumns: [
  1137. {
  1138. key: "customerName",
  1139. title: "收货客户",
  1140. inputType: "PopoverSelect",
  1141. valueKey: "id",
  1142. referName: "CUSTOMER_PARAM",
  1143. width: 180,
  1144. dataMapping:{
  1145. customer:'id',
  1146. customerName:'name',
  1147. },
  1148. copy: true,
  1149. },
  1150. {
  1151. key: "goodsAllocationName",
  1152. title: "货位",
  1153. inputType: "PopoverSelect",
  1154. valueKey: "name",
  1155. referName: "ALLOCATION_PARAM",
  1156. dataMapping: {
  1157. goodsAllocation: 'id',
  1158. goodsAllocationName: 'name',
  1159. },
  1160. isShow:true,
  1161. copy: true,
  1162. queryParams: (params) => ({
  1163. stordocId: params.warehouse,
  1164. pkOrg: params.puOrg,
  1165. }),
  1166. width: 180,
  1167. },
  1168. {
  1169. key: "rowNo",
  1170. title: "行号",
  1171. inputType: "Input",
  1172. disabled:true,
  1173. require:false,
  1174. },
  1175. {
  1176. key: "materialCode",
  1177. title: "物料编码",
  1178. inputType: "PopoverSelect",
  1179. width: 180,
  1180. require: true,
  1181. valueKey: "code",
  1182. referName: "MATERIAL_PARAM",
  1183. copy: true,
  1184. dataMapping: {
  1185. material: "id",
  1186. materialName: "name",
  1187. materialCode: "code",
  1188. materialManufacturersCode:'manufacturersMaterialCode',
  1189. specification:'specification',
  1190. model:'model',
  1191. isMedcine:'isMedicineYN',
  1192. manufacturer:'manufacturerId',
  1193. manufacturerName:'manufacturerIdName',
  1194. unit:'unitId',
  1195. unitName:'unitIdName',
  1196. // tax:'materialRateName',
  1197. storageCondition:'storageCondition',
  1198. carriageCondition:'transportationCondition',
  1199. materialClassifyOneName:'oneClass',
  1200. materialClassifyTwoName:'twoClass',
  1201. materialClassifyThreeName:'threeClass',
  1202. materialClassifyFourName:'fourClass',
  1203. registration:'registrationNo',
  1204. isDrug:'isDrug',
  1205. rateCode: "materialRateName",
  1206. },
  1207. queryParams: () => ({}),
  1208. },
  1209. {
  1210. key: "materialName",
  1211. title: "物料名称",
  1212. inputType: "Input",
  1213. require: true,
  1214. width: 180,
  1215. disabled:true,
  1216. readonly:true,
  1217. },
  1218. { //specification
  1219. key: "specification",
  1220. title: "规格",
  1221. inputType: "Input",
  1222. width: 180 ,
  1223. disabled:true,
  1224. readonly:true,
  1225. },
  1226. { //model
  1227. key: "model",
  1228. title: "型号",
  1229. inputType: "Input",
  1230. disabled:true,
  1231. readonly:true,
  1232. },
  1233. { //isMedicine isMedicineValue
  1234. key: "isMedcine",
  1235. title: "医药物料",
  1236. inputType: "Checkbox",
  1237. disabled:true,
  1238. readonly:true,
  1239. },
  1240. { //unitId unitIdName
  1241. key: "unitName",
  1242. title: "主单位",
  1243. inputType: "Input",
  1244. disabled:true,
  1245. readonly:true,
  1246. },
  1247. {
  1248. key: "qty",
  1249. title: "主数量",
  1250. inputType: "InputNumber",
  1251. controlsPosition: "right",
  1252. width: 120,
  1253. require: true,
  1254. isSummary:true,
  1255. },
  1256. {
  1257. key: "taxPrice",
  1258. title: "主含税单价",
  1259. inputType: "InputNumber",
  1260. controlsPosition: "right",
  1261. // precision:2,
  1262. require: true,
  1263. width: 180,
  1264. },
  1265. { //unitId unitIdName
  1266. key: "unitName",
  1267. title: "单位",
  1268. inputType: "Input",
  1269. disabled:true,
  1270. readonly:true,
  1271. require: true,
  1272. },
  1273. {
  1274. key: "qty",
  1275. title: "数量",
  1276. // inputType: "InputNumber",
  1277. // controlsPosition: "right",
  1278. inputType: "Input",
  1279. copy: true,
  1280. width: 120,
  1281. isSummary:true,
  1282. },
  1283. {
  1284. key: "taxPrice",
  1285. title: "含税单价",
  1286. inputType: "InputNumber",
  1287. controlsPosition: "right",
  1288. // precision:2,
  1289. width: 180,
  1290. },
  1291. {
  1292. key: "money",
  1293. title: "价税合计",
  1294. inputType: "InputNumber",
  1295. controlsPosition: "right",
  1296. // precision:2,
  1297. disabled:true,
  1298. width: 180,
  1299. isSummary:true,
  1300. },
  1301. {
  1302. key: "ntaxnetprice",
  1303. title: "含税净价",
  1304. inputType: "Input",
  1305. controlsPosition: "right",
  1306. // precision:2,
  1307. disabled:true,
  1308. width: 180,
  1309. },
  1310. { //materialRate materialRateName
  1311. key: "tax",
  1312. title: "税率",
  1313. // inputType: "Input",
  1314. inputType: "InputNumber",
  1315. controlsPosition: "right",
  1316. // precision:2,
  1317. disabled:true,
  1318. require: true,
  1319. width: 180,
  1320. },
  1321. {
  1322. key: "taxDeductClassify",
  1323. title: "扣税类别",
  1324. inputType: "Select",
  1325. referName: "tax_deduction_category", // 字典名
  1326. width: 180,
  1327. require: true,
  1328. },
  1329. {
  1330. key: "exchangeRate",
  1331. title: "折本汇率",
  1332. inputType: "Input",
  1333. disabled:true,
  1334. width: 180,
  1335. require: true,
  1336. },
  1337. {
  1338. key: "nitemdiscountrate",
  1339. title: "折扣(%)",
  1340. inputType: "Input",
  1341. // precision:2,
  1342. disabled:true,
  1343. width: 180,
  1344. require: true,
  1345. },
  1346. {
  1347. key: "taxDeductMoneya",
  1348. title: "折扣金额",
  1349. inputType: "InputNumber",
  1350. controlsPosition: "right",
  1351. require: true,
  1352. // precision:2,
  1353. disabled:true,
  1354. width: 180,
  1355. isSummary:true,
  1356. },
  1357. {
  1358. key: "goodsWarehouseName",
  1359. title: "收货仓库",
  1360. inputType: "Input",
  1361. width: 200,
  1362. disabled:true,
  1363. },
  1364. { key: "productBatch", title: "产品批号", inputType: "Input", width: 180 },
  1365. {
  1366. key: "registration",
  1367. title: "注册证号",
  1368. inputType: "Input",
  1369. width: 180 ,
  1370. disabled:true,
  1371. },
  1372. { key: "isStorage", title: "入库关闭", inputType: "Checkbox", disabled:true, },
  1373. { key: "isInvoice", title: "开票关闭", inputType: "Checkbox", disabled:true, },
  1374. { key: "isArrival", title: "到货关闭", inputType: "Checkbox", disabled:true,},
  1375. { key: "isPayment", title: "付款关闭", inputType: "Checkbox", disabled:true, },
  1376. { key: "isGift", title: "赠品", inputType: "Checkbox", },
  1377. { //storageCondition storageConditionName
  1378. key: "storageCondition",
  1379. title: "存储条件",
  1380. inputType: "Select",
  1381. referName: "sys_storage_condition", // 字典名
  1382. width: 180,
  1383. disabled:true,
  1384. readonly:true,
  1385. },
  1386. { // transportationCondition transportationConditionName
  1387. key: "carriageCondition",
  1388. title: "运输条件",
  1389. inputType: "Select",
  1390. referName: "sys_conditions_carriage", // 字典名
  1391. width: 180,
  1392. disabled:true,
  1393. readonly:true,
  1394. },
  1395. {
  1396. key: "originalQty",
  1397. title: "原始数量",
  1398. inputType: "InputNumber",
  1399. controlsPosition: "right",
  1400. disabled:true,
  1401. width: 180 ,
  1402. isSummary:true,
  1403. },
  1404. {
  1405. key: "originalMoney",
  1406. title: "原始金额",
  1407. inputType: "InputNumber",
  1408. controlsPosition: "right",
  1409. // precision:2,
  1410. disabled:true,
  1411. width: 180,
  1412. isSummary:true,
  1413. },
  1414. { key: "discountRule", title: "折扣规则编码", inputType: "Input", width: 180 },
  1415. { key: "demandCode", title: "采购需求单号", inputType: "Input", width: 180 },
  1416. { key: "remark", title: "备注", inputType: "Input", width: 200 },
  1417. {
  1418. key: "closeReason",
  1419. title: "关闭原因",
  1420. inputType: "Input",
  1421. isShow:true,
  1422. disabled:true,
  1423. width: 180,
  1424. },
  1425. ]
  1426. },
  1427. // {
  1428. // title: '执行结果',
  1429. // key: 'puOrderExecuteList',
  1430. // tableColumns: [
  1431. // // { key: "orderId", title: "采购订单ID", inputType: "Input", width: 180 },
  1432. // {
  1433. // key: "rowno",
  1434. // title: "行号",
  1435. // inputType: "Input",
  1436. // disabled:true,
  1437. // require:false,
  1438. // },
  1439. // {
  1440. // key: "materialName",
  1441. // title: "物料",
  1442. // inputType: "PopoverSelect",
  1443. // width: 180,
  1444. // require: true,
  1445. // valueKey: "id",
  1446. // referName: "MATERIAL_PARAM",
  1447. // dataMapping: {
  1448. // material: "id",
  1449. // materialName: "name",
  1450. // materialCode: "code",
  1451. // // materialClassify:'classifyIdName',
  1452. // materialManufacturersCode:'manufacturersMaterialCode',
  1453. // specification:'specification',
  1454. // model:'model',
  1455. // isMedcine:'isMedicine',
  1456. // manufacturer:'manufacturerId',
  1457. // manufacturerName:'manufacturerIdName',
  1458. // unit:'unitId',
  1459. // unitName:'unitIdName',
  1460. // // tax:'materialRateName',
  1461. // storageCondition:'storageCondition',
  1462. // carriageCondition:'transportationCondition',
  1463. // materialClassifyOneName:'oneClass',
  1464. // materialClassifyTwoName:'twoClass',
  1465. // materialClassifyThreeName:'threeClass',
  1466. // materialClassifyFourName:'fourClass',
  1467. // registration:'registrationNo',
  1468. // isDrug:'isDrug',
  1469. // },
  1470. // queryParams: () => ({}),
  1471. // width:180,
  1472. // },
  1473. // {
  1474. // key: "specification",
  1475. // title: "规格",
  1476. // inputType: "Input",
  1477. // disabled:true,
  1478. // readonly:true,
  1479. // },
  1480. // {
  1481. // key: "qty",
  1482. // title: "数量",
  1483. // inputType: "InputNumber",
  1484. // controlsPosition: "right",
  1485. // width: 180,
  1486. // require: true,
  1487. // isSummary:true,
  1488. // },
  1489. // {
  1490. // key: "stroageQty",
  1491. // title: "累计到货主数量",
  1492. // inputType: "InputNumber",
  1493. // controlsPosition: "right",
  1494. // width: 180,
  1495. // isSummary:true,
  1496. // },
  1497. // {
  1498. // key: "stockQty",
  1499. // title: "累计入库主数量",
  1500. // inputType: "InputNumber",
  1501. // controlsPosition: "right",
  1502. // width: 180,
  1503. // isSummary:true,
  1504. // },
  1505. // {
  1506. // key: "invoiceQty",
  1507. // title: "累计开票主数量",
  1508. // inputType: "InputNumber",
  1509. // controlsPosition: "right",
  1510. // width: 180,
  1511. // isSummary:true,
  1512. // },
  1513. // {
  1514. // key: "rollbackQty",
  1515. // title: "累计退货主数量",
  1516. // inputType: "InputNumber",
  1517. // controlsPosition: "right",
  1518. // width: 180,
  1519. // isSummary:true,
  1520. // },
  1521. // {
  1522. // key: "backStockQty",
  1523. // title: "累计退库主数量",
  1524. // inputType: "InputNumber",
  1525. // controlsPosition: "right",
  1526. // width: 180,
  1527. // isSummary:true,
  1528. // },
  1529. // {
  1530. // key: "floatQty",
  1531. // title: "未到货数量",
  1532. // inputType: "InputNumber",
  1533. // controlsPosition: "right",
  1534. // width: 180,
  1535. // isSummary:true,
  1536. // },
  1537. // // {
  1538. // // key: "createByName",
  1539. // // title: "创建人",
  1540. // // inputType: "Input",
  1541. // // width: 120
  1542. // // },
  1543. // // {
  1544. // // key: "updateByName",
  1545. // // title: "更新人",
  1546. // // inputType: "Input",
  1547. // // width: 120
  1548. // // },
  1549. // ]
  1550. // },
  1551. ];
  1552. // export const initTabColumns = () => tabColumns;
  1553. export default function judgeColumns () {
  1554. let Columns = _.cloneDeep(PurColumns);
  1555. let TabColumns = _.cloneDeep(PurchaseTabColumns);
  1556. let roles = Cookies.get('roles').split(',');
  1557. let role = roles.find(item => item === "syfz-purchaseorder") || "procurementManager";
  1558. if(role === "syfz-purchaseorder"){
  1559. // 事业发展部
  1560. Columns = _.cloneDeep(CauseColumns);
  1561. TabColumns = _.cloneDeep(CauseTabColumns);
  1562. }
  1563. return {Columns,TabColumns}
  1564. }