column.js 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650
  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: "name",
  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: "name",
  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: "name",
  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: "name",
  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: "name",
  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: "name",
  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: "name",
  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: "name",
  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: "name",
  366. referName: "CUSTOMER_PARAM",
  367. width: 180,
  368. copy: true,
  369. clearable: true,
  370. dataMapping: {
  371. customer: 'id',
  372. customerName: 'name',
  373. },
  374. },
  375. {
  376. key: "goodsAllocationName",
  377. title: "货位",
  378. inputType: "PopoverSelect",
  379. valueKey: "name",
  380. referName: "ALLOCATION_PARAM",
  381. dataMapping: {
  382. goodsAllocation: 'id',
  383. goodsAllocationName: 'name',
  384. },
  385. isShow: true,
  386. copy: true,
  387. clearable: true,
  388. queryParams: (params) => ({
  389. stordocId: params.warehouse,
  390. pkOrg: params.puOrg,
  391. }),
  392. width: 180,
  393. },
  394. {
  395. key: "rowNo",
  396. title: "行号",
  397. inputType: "Input",
  398. disabled: true,
  399. require: false,
  400. },
  401. {
  402. key: "materialCode",
  403. title: "物料编码",
  404. inputType: "PopoverSelect",
  405. width: 180,
  406. require: true,
  407. valueKey: "code",
  408. referName: "MATERIAL_PARAM",
  409. copy: true,
  410. dataMapping: {
  411. material: "id",
  412. materialName: "name",
  413. materialCode: "code",
  414. // materialClassify:'classifyIdName',
  415. materialManufacturersCode: 'manufacturersMaterialCode',
  416. specification: 'specification',
  417. model: 'model',
  418. isMedcine: 'isMedicineYN',
  419. manufacturer: 'manufacturerId',
  420. manufacturerName: 'manufacturerIdName',
  421. unit: 'unitId',
  422. unitName: 'unitIdName',
  423. storageCondition: 'storageCondition',
  424. carriageCondition: 'transportationCondition',
  425. materialClassifyOneName: 'oneClass',
  426. materialClassifyTwoName: 'twoClass',
  427. materialClassifyThreeName: 'threeClass',
  428. materialClassifyFourName: 'fourClass',
  429. registration: 'registrationNo',
  430. isDrug: 'isDrug',
  431. rateCode: "materialRateName",
  432. },
  433. queryParams: () => ({}),
  434. width: 180,
  435. },
  436. {
  437. // key: "materialCode",
  438. // title: "物料编码",
  439. key: "materialName",
  440. title: "物料名称",
  441. inputType: "Input",
  442. require: true,
  443. width: 180,
  444. disabled: true,
  445. readonly: true,
  446. },
  447. { //specification
  448. key: "specification",
  449. title: "规格",
  450. inputType: "Input",
  451. width: 180,
  452. disabled: true,
  453. readonly: true,
  454. },
  455. { //model
  456. key: "model",
  457. title: "型号",
  458. inputType: "Input",
  459. disabled: true,
  460. readonly: true,
  461. },
  462. { // manufacturerId manufacturerIdName
  463. key: "manufacturerName",
  464. title: "生产厂家代理人",
  465. inputType: "Input",
  466. width: 180,
  467. disabled: true,
  468. readonly: true,
  469. },
  470. { //unitId unitIdName
  471. key: "unitName",
  472. title: "单位",
  473. inputType: "Input",
  474. disabled: true,
  475. readonly: true,
  476. },
  477. {
  478. key: "qty",
  479. title: "数量",
  480. inputType: "Input",
  481. copy: true,
  482. // inputType: "InputNumber",
  483. // controlsPosition: "right",
  484. width: 120,
  485. require: true,
  486. isSummary: true,
  487. },
  488. {
  489. key: "taxPrice",
  490. title: "含税单价",
  491. inputType: "InputNumber",
  492. controlsPosition: "right",
  493. // precision:2,
  494. require: true,
  495. disabled: true,
  496. width: 180,
  497. },
  498. {
  499. key: "money",
  500. title: "价税合计",
  501. inputType: "InputNumber",
  502. controlsPosition: "right",
  503. // precision:2,
  504. disabled: true,
  505. width: 180,
  506. isSummary: true,
  507. // formatter: (prop) => {
  508. // const { tax = 0, taxPrice = 0 } = prop;
  509. // return (prop.price = iunitprice(tax, taxPrice));
  510. // },
  511. },
  512. {
  513. key: "isGift",
  514. title: "赠品",
  515. inputType: "Checkbox",
  516. },
  517. {
  518. key: "nitemdiscountrate",
  519. title: "折扣(%)",
  520. inputType: "Input",
  521. // precision:2,
  522. disabled: true,
  523. width: 180,
  524. },
  525. {
  526. key: "taxDeductMoneya",
  527. title: "折扣金额",
  528. inputType: "InputNumber",
  529. controlsPosition: "right",
  530. // precision:2,
  531. disabled: true,
  532. width: 180,
  533. isSummary: true,
  534. },
  535. {
  536. key: "discountRule",
  537. title: "折扣规则编码",
  538. inputType: "Input",
  539. width: 180
  540. },
  541. { //materialRate materialRateName
  542. key: "tax",
  543. title: "税率",
  544. // inputType: "Input",
  545. inputType: "InputNumber",
  546. controlsPosition: "right",
  547. // precision:2,
  548. disabled: true,
  549. width: 180,
  550. },
  551. {
  552. key: "registration",
  553. title: "注册证号",
  554. inputType: "Input",
  555. width: 180,
  556. disabled: true,
  557. },
  558. {
  559. key: "demandCode",
  560. title: "采购需求单号",
  561. inputType: "Input",
  562. width: 180
  563. },
  564. {
  565. key: "isReplenishment",
  566. title: "补单标识",
  567. inputType: "Checkbox",
  568. },
  569. {
  570. key: "isUrgency",
  571. title: "紧急标识",
  572. inputType: "Checkbox",
  573. },
  574. {
  575. key: "priceType",
  576. title: "价格类型",
  577. inputType: "Select",
  578. referName: "sys_price_type", // 字典名
  579. width: 180,
  580. },
  581. {
  582. key: "isDistributionPrice",
  583. title: "配送价",
  584. inputType: "Checkbox",
  585. },
  586. {
  587. key: "deliveryDate",
  588. title: "交货日期",
  589. inputType: "DatePicker",
  590. type: 'date',
  591. disabled: true,
  592. isShow: true,
  593. width: 180,
  594. },
  595. {
  596. key: "floatQty",
  597. title: "未到货数量",
  598. inputType: "InputNumber",
  599. controlsPosition: "right",
  600. width: 180,
  601. isSummary: true,
  602. },
  603. { key: "isArrival", title: "到货关闭", inputType: "Checkbox", disabled: true, },
  604. { key: "isStorage", title: "入库关闭", inputType: "Checkbox", disabled: true, },
  605. { key: "isPayment", title: "付款关闭", inputType: "Checkbox", disabled: true, },
  606. { key: "isInvoice", title: "开票关闭", inputType: "Checkbox", disabled: true, },
  607. { //isMedicine isMedicineValue
  608. key: "isMedcine",
  609. title: "医药物料",
  610. inputType: "Checkbox",
  611. disabled: true,
  612. readonly: true,
  613. },
  614. {
  615. key: "originalQty",
  616. title: "原始数量",
  617. inputType: "InputNumber",
  618. controlsPosition: "right",
  619. disabled: true,
  620. width: 180,
  621. isSummary: true,
  622. },
  623. {
  624. key: "originalMoney",
  625. title: "原始金额",
  626. inputType: "InputNumber",
  627. controlsPosition: "right",
  628. // precision:2,
  629. disabled: true,
  630. width: 180,
  631. isSummary: true,
  632. },
  633. {
  634. key: "closeReason",
  635. title: "行关闭/打开原因",
  636. inputType: "Input",
  637. width: 180,
  638. disabled: true,
  639. },
  640. {
  641. key: "sourceBillDate",
  642. title: "原单据生成时间",
  643. inputType: "DatePicker",
  644. type: 'datetime',
  645. // valueFormat: "yyyy-MM-dd HH:mm:ss",
  646. disabled: true,
  647. isShow: true,
  648. width: 180,
  649. },
  650. ]
  651. },
  652. // {
  653. // title: '执行结果',
  654. // key: 'puOrderExecuteList',
  655. // tableColumns: [
  656. // // { key: "orderId", title: "采购订单ID", inputType: "Input", width: 180 },
  657. // {
  658. // key: "rowno",
  659. // title: "行号",
  660. // inputType: "Input",
  661. // disabled:true,
  662. // require:false,
  663. // },
  664. // {
  665. // key: "materialName",
  666. // title: "物料",
  667. // inputType: "PopoverSelect",
  668. // width: 180,
  669. // require: true,
  670. // valueKey: "id",
  671. // referName: "MATERIAL_PARAM",
  672. // dataMapping: {
  673. // material: "id",
  674. // materialName: "name",
  675. // materialCode: "code",
  676. // // materialClassify:'classifyIdName',
  677. // materialManufacturersCode:'manufacturersMaterialCode',
  678. // specification:'specification',
  679. // model:'model',
  680. // isMedcine:'isMedicine',
  681. // manufacturer:'manufacturerId',
  682. // manufacturerName:'manufacturerIdName',
  683. // unit:'unitId',
  684. // unitName:'unitIdName',
  685. // // tax:'materialRateName',
  686. // storageCondition:'storageCondition',
  687. // carriageCondition:'transportationCondition',
  688. // materialClassifyOneName:'oneClass',
  689. // materialClassifyTwoName:'twoClass',
  690. // materialClassifyThreeName:'threeClass',
  691. // materialClassifyFourName:'fourClass',
  692. // registration:'registrationNo',
  693. // isDrug:'isDrug',
  694. // },
  695. // queryParams: () => ({}),
  696. // width:180,
  697. // },
  698. // {
  699. // key: "specification",
  700. // title: "规格",
  701. // inputType: "Input",
  702. // disabled:true,
  703. // readonly:true,
  704. // },
  705. // {
  706. // key: "qty",
  707. // title: "数量",
  708. // inputType: "InputNumber",
  709. // controlsPosition: "right",
  710. // width: 180,
  711. // require: true,
  712. // isSummary:true,
  713. // },
  714. // {
  715. // key: "stroageQty",
  716. // title: "累计到货主数量",
  717. // inputType: "InputNumber",
  718. // controlsPosition: "right",
  719. // width: 180,
  720. // isSummary:true,
  721. // },
  722. // {
  723. // key: "stockQty",
  724. // title: "累计入库主数量",
  725. // inputType: "InputNumber",
  726. // controlsPosition: "right",
  727. // width: 180,
  728. // isSummary:true,
  729. // },
  730. // {
  731. // key: "invoiceQty",
  732. // title: "累计开票主数量",
  733. // inputType: "InputNumber",
  734. // controlsPosition: "right",
  735. // width: 180,
  736. // isSummary:true,
  737. // },
  738. // {
  739. // key: "rollbackQty",
  740. // title: "累计退货主数量",
  741. // inputType: "InputNumber",
  742. // controlsPosition: "right",
  743. // width: 180,
  744. // isSummary:true,
  745. // },
  746. // {
  747. // key: "backStockQty",
  748. // title: "累计退库主数量",
  749. // inputType: "InputNumber",
  750. // controlsPosition: "right",
  751. // width: 180,
  752. // isSummary:true,
  753. // },
  754. // {
  755. // key: "floatQty",
  756. // title: "未到货数量",
  757. // inputType: "InputNumber",
  758. // controlsPosition: "right",
  759. // width: 180,
  760. // isSummary:true,
  761. // },
  762. // // {
  763. // // key: "createByName",
  764. // // title: "创建人",
  765. // // inputType: "Input",
  766. // // width: 120
  767. // // },
  768. // // {
  769. // // key: "updateByName",
  770. // // title: "更新人",
  771. // // inputType: "Input",
  772. // // width: 120
  773. // // },
  774. // ]
  775. // },
  776. ];
  777. // 事业发展部
  778. const CauseColumns = [
  779. {
  780. key: "puOrgName",
  781. title: "采购组织",
  782. inputType: "PopoverSelect",
  783. valueKey: "name",
  784. referName: "ORG_PARAM",
  785. dataMapping: {
  786. puOrg: "id",
  787. puOrgName: "name",
  788. },
  789. queryParams: () => ({}),
  790. require: true,
  791. isShow: true,
  792. },
  793. {
  794. key: "billType",
  795. title: "订单类型",
  796. inputType: "Select",
  797. referName: "sys_order_type", // 字典名
  798. isShow: true,
  799. require: true,
  800. },
  801. {
  802. key: "code",
  803. title: "订单编号",
  804. inputType: "Input",
  805. readonly: true,
  806. disabled: true,
  807. isShow: true,
  808. },
  809. {
  810. key: "billDate",
  811. title: "订单日期",
  812. inputType: "DatePicker",
  813. valueFormat: "yyyy-MM-dd",
  814. width: 200,
  815. require: true,
  816. isShow: true,
  817. },
  818. {
  819. key: "billType",
  820. title: "订单类型编号",
  821. inputType: "Input",
  822. disabled: true,
  823. isShow: true,
  824. require: true,
  825. },
  826. {
  827. key: "supplierName",
  828. title: "供应商",
  829. inputType: "PopoverSelect",
  830. valueKey: "name",
  831. referName: "SUPPLIER_PARAM",
  832. dataMapping: {
  833. supplier: "id",
  834. supplierCode: 'code',
  835. supplierName: "name",
  836. paymentAgreement: 'paymentId',
  837. paymentAgreementName: 'paymentName',
  838. },
  839. queryParams: () => ({}),
  840. require: true,
  841. isShow: true,
  842. },
  843. {
  844. key: "paymentAgreementName",
  845. title: "付款协议",
  846. inputType: "PopoverSelect",
  847. valueKey: "name",
  848. referName: "PAYAGREEMENT_PARAM",
  849. dataMapping: {
  850. paymentAgreement: 'id',
  851. paymentAgreementName: 'name'
  852. },
  853. queryParams: () => ({}),
  854. isShow: true,
  855. disabled: true,
  856. require: true,
  857. },
  858. // {
  859. // key: "currencyName",
  860. // title: "币种",
  861. // inputType: "PopoverSelect",
  862. // valueKey: "id",
  863. // referName: "CURRENCY_PARAM",
  864. // dataMapping: {
  865. // currency: 'id',
  866. // currencyName: 'name'
  867. // },
  868. // queryParams: () => ({}),
  869. // width: 180,
  870. // },
  871. {
  872. key: "buyerName",
  873. title: "采购员",
  874. inputType: "PopoverSelect",
  875. valueKey: "name",
  876. referName: "CONTACTS_PARAM",
  877. dataMapping: {
  878. buyer: 'code',
  879. buyerName: 'name'
  880. },
  881. queryParams: () => ({}),
  882. require: true,
  883. isShow: true,
  884. },
  885. {
  886. key: "puDeptName",
  887. title: "采购部门",
  888. inputType: "PopoverSelect",
  889. valueKey: "name",
  890. referName: "DEPT_PARAM",
  891. dataMapping: {
  892. puDept: 'id',
  893. puDeptName: 'name'
  894. },
  895. queryParams: (params) => ({
  896. drpOrg: params.puOrg,
  897. }),
  898. require: true,
  899. isShow: true,
  900. },
  901. {
  902. key: "customerName",
  903. title: "收货客户",
  904. inputType: "PopoverSelect",
  905. valueKey: "name",
  906. referName: "CUSTOMER_PARAM",
  907. width: 180,
  908. dataMapping: {
  909. customer: 'id',
  910. customerName: 'name',
  911. },
  912. isShow: true,
  913. },
  914. { key: "isBack", title: "退货", inputType: "Input", inputType: "Checkbox", isShow: true, },
  915. { key: "freezeCause", title: "冻结原因", inputType: "Checkbox", isShow: true, },
  916. {
  917. key: "qty",
  918. title: "总数量",
  919. inputType: "InputNumber",
  920. controlsPosition: "right",
  921. isShow: true,
  922. disabled: true,
  923. },
  924. {
  925. key: "money",
  926. title: "价税合计",
  927. inputType: "InputNumber",
  928. controlsPosition: "right",
  929. // precision:2,
  930. isShow: true,
  931. disabled: true,
  932. },
  933. // {
  934. // key: "remark",
  935. // title: "备注",
  936. // inputType: "Textarea",
  937. // isShow:true,
  938. // },
  939. { key: "isMarketing", title: "已协同生成销售订单", inputType: "Checkbox", isShow: true, },
  940. { key: "isMarketingSource", title: "由销售订单协同生成", inputType: "Checkbox", isShow: true, },
  941. {
  942. key: "isInvoice",
  943. title: "发票标识",
  944. inputType: "Checkbox",
  945. isShow: true,
  946. disabled: true,
  947. },
  948. {
  949. key: "rebateMoney",
  950. title: "订单使用返利金额",
  951. inputType: "InputNumber",
  952. controlsPosition: "right",
  953. // precision:2,
  954. isShow: true,
  955. },
  956. {
  957. key: "deductionMoney",
  958. title: "订单抵扣余款金额",
  959. inputType: "InputNumber",
  960. controlsPosition: "right",
  961. // precision:2,
  962. isShow: true,
  963. },
  964. {
  965. key: "warehouseName",
  966. title: "WMS入库仓库",
  967. inputType: "PopoverSelect",
  968. valueKey: "name",
  969. referName: "WAREHOUSE_PARAM",
  970. dataMapping: {
  971. warehouse: 'id',
  972. warehouseName: 'name',
  973. },
  974. queryParams: (params) => ({
  975. pkOrg: params.puOrg,
  976. isWms: ['21-Cxx-02', '21-Cxx-04', '21-Cxx-10'].find(item => item === params.billType) ? 'Y' : 'N',
  977. }),
  978. isShow: true,
  979. // require: true,
  980. },
  981. {
  982. key: "customerDeptName",
  983. title: "客户部门",
  984. inputType: "PopoverSelect",
  985. width: 200,
  986. valueKey: "name",
  987. referName: "CUSTOMERDEPT_PARAM",
  988. dataMapping: {
  989. customerDept: 'id',
  990. customerDeptName: 'name'
  991. },
  992. isShow: true,
  993. queryParams: () => ({}),
  994. },
  995. // { key: "place", title: "收货地点", inputType: "Input", width: 180 },
  996. {
  997. key: "goodsWarehouseName",
  998. title: "收货仓库",
  999. inputType: "PopoverSelect",
  1000. valueKey: "name",
  1001. referName: "ADDRESS_PARAM",
  1002. width: 200,
  1003. isShow: true,
  1004. dataMapping: {
  1005. address: 'address',
  1006. goodsWarehouse: 'id',
  1007. goodsWarehouseName: 'name',
  1008. contacts: 'contactsName',
  1009. contactsPhone: 'contactsPhone'
  1010. }
  1011. },
  1012. {
  1013. key: "address",
  1014. title: "收货地址",
  1015. inputType: "Input",
  1016. width: 180,
  1017. isShow: true,
  1018. disabled: true,
  1019. },
  1020. {
  1021. key: "contacts",
  1022. title: "收货联系人",
  1023. inputType: "Input",
  1024. isShow: true,
  1025. disabled: true,
  1026. },
  1027. {
  1028. key: "isClose",
  1029. title: "最终关闭",
  1030. inputType: "Checkbox",
  1031. isShow: true,
  1032. disabled: true,
  1033. },
  1034. {
  1035. key: "supplierContactsName",
  1036. title: "供应商业务联系人",
  1037. inputType: "PopoverSelect",
  1038. valueKey: "name",
  1039. referName: "SUPPLIERCONTACTS_PARAM",
  1040. dataMapping: {
  1041. supplierContacts: 'id',
  1042. supplierContactsName: 'name'
  1043. },
  1044. isShow: true,
  1045. queryParams: (params) => ({
  1046. supplierId: params.supplier
  1047. }),
  1048. width: 200,
  1049. },
  1050. {
  1051. key: "isUrgency",
  1052. title: "紧急程度",
  1053. inputType: "Checkbox",
  1054. isShow: true,
  1055. disabled: true,
  1056. },
  1057. {
  1058. key: "agentName",
  1059. title: "代理人",
  1060. inputType: "PopoverSelect",
  1061. valueKey: "name",
  1062. referName: "CONTACTS_PARAM",
  1063. dataMapping: {
  1064. agent: 'code',
  1065. agentName: 'name'
  1066. },
  1067. isShow: true,
  1068. queryParams: () => ({}),
  1069. width: 200,
  1070. },
  1071. {
  1072. key: "closeReason",
  1073. title: "关闭原因",
  1074. inputType: "Input",
  1075. isShow: true,
  1076. disabled: true,
  1077. },
  1078. {
  1079. key: "invoiceMoney",
  1080. title: "发票金额",
  1081. inputType: "InputNumber",
  1082. controlsPosition: "right",
  1083. // precision:2,
  1084. isShow: true,
  1085. },
  1086. {
  1087. key: "closeTime",
  1088. title: "最终关闭日期",
  1089. inputType: "DatePicker",
  1090. valueFormat: "yyyy-MM-dd",
  1091. isShow: true,
  1092. disabled: true,
  1093. },
  1094. {
  1095. key: "applyPaymentMoney",
  1096. title: "累计付款申请金额",
  1097. inputType: "InputNumber",
  1098. controlsPosition: "right",
  1099. // precision:2,
  1100. isShow: true,
  1101. disabled: true,
  1102. },
  1103. {
  1104. key: "paymentMoney",
  1105. title: "累计付款金额",
  1106. inputType: "InputNumber",
  1107. controlsPosition: "right",
  1108. // precision:2,
  1109. isShow: true,
  1110. },
  1111. {
  1112. key: "supplierPersonalName",
  1113. title: "供应商业务员",
  1114. inputType: "PopoverSelect",
  1115. valueKey: "name",
  1116. // referName: "SUPPLIERCONTACTS_PARAM",
  1117. referName: "PSNLICENSE_PARAM",
  1118. dataMapping: {
  1119. supplierPersonal: 'id',
  1120. supplierPersonalName: 'name'
  1121. },
  1122. isShow: true,
  1123. queryParams: (params) => ({
  1124. // 组织、供应商id
  1125. pkOrg: params.puOrg,
  1126. supplierId: params.supplier
  1127. }),
  1128. },
  1129. {
  1130. key: "isSendSrm",
  1131. title: "是否同步SRM",
  1132. inputType: "Checkbox",
  1133. isShow: true,
  1134. },
  1135. {
  1136. key: "oaDemandNo",
  1137. title: "OA需求单号",
  1138. inputType: "Input",
  1139. isShow: true,
  1140. },
  1141. {
  1142. key: "remark",
  1143. title: "备注",
  1144. rows: 1,
  1145. inputType: "Textarea",
  1146. isShow: true,
  1147. },
  1148. {
  1149. key: "sysFileRecordList",
  1150. title: "附件",
  1151. inputType: "Upload",
  1152. // fileType: ["pdf",""],
  1153. span: 24,
  1154. isShow: true,
  1155. },
  1156. ];
  1157. const CauseTabColumns = [
  1158. {
  1159. title: '物料信息',
  1160. key: 'puOrderItemList',
  1161. tableColumns: [
  1162. {
  1163. key: "customerName",
  1164. title: "收货客户",
  1165. inputType: "PopoverSelect",
  1166. valueKey: "name",
  1167. referName: "CUSTOMER_PARAM",
  1168. width: 180,
  1169. dataMapping: {
  1170. customer: 'id',
  1171. customerName: 'name',
  1172. },
  1173. copy: true,
  1174. clearable: true,
  1175. },
  1176. {
  1177. key: "goodsAllocationName",
  1178. title: "货位",
  1179. inputType: "PopoverSelect",
  1180. valueKey: "name",
  1181. referName: "ALLOCATION_PARAM",
  1182. dataMapping: {
  1183. goodsAllocation: 'id',
  1184. goodsAllocationName: 'name',
  1185. },
  1186. isShow: true,
  1187. copy: true,
  1188. clearable: true,
  1189. queryParams: (params) => ({
  1190. stordocId: params.warehouse,
  1191. pkOrg: params.puOrg,
  1192. }),
  1193. width: 180,
  1194. },
  1195. {
  1196. key: "rowNo",
  1197. title: "行号",
  1198. inputType: "Input",
  1199. disabled: true,
  1200. require: false,
  1201. },
  1202. {
  1203. key: "materialCode",
  1204. title: "物料编码",
  1205. inputType: "PopoverSelect",
  1206. width: 180,
  1207. require: true,
  1208. valueKey: "code",
  1209. referName: "MATERIAL_PARAM",
  1210. copy: true,
  1211. dataMapping: {
  1212. material: "id",
  1213. materialName: "name",
  1214. materialCode: "code",
  1215. materialManufacturersCode: 'manufacturersMaterialCode',
  1216. specification: 'specification',
  1217. model: 'model',
  1218. isMedcine: 'isMedicineYN',
  1219. manufacturer: 'manufacturerId',
  1220. manufacturerName: 'manufacturerIdName',
  1221. unit: 'unitId',
  1222. unitName: 'unitIdName',
  1223. // tax:'materialRateName',
  1224. storageCondition: 'storageCondition',
  1225. carriageCondition: 'transportationCondition',
  1226. materialClassifyOneName: 'oneClass',
  1227. materialClassifyTwoName: 'twoClass',
  1228. materialClassifyThreeName: 'threeClass',
  1229. materialClassifyFourName: 'fourClass',
  1230. registration: 'registrationNo',
  1231. isDrug: 'isDrug',
  1232. rateCode: "materialRateName",
  1233. },
  1234. queryParams: () => ({}),
  1235. },
  1236. {
  1237. key: "materialName",
  1238. title: "物料名称",
  1239. inputType: "Input",
  1240. require: true,
  1241. width: 180,
  1242. disabled: true,
  1243. readonly: true,
  1244. },
  1245. { //specification
  1246. key: "specification",
  1247. title: "规格",
  1248. inputType: "Input",
  1249. width: 180,
  1250. disabled: true,
  1251. readonly: true,
  1252. },
  1253. { //model
  1254. key: "model",
  1255. title: "型号",
  1256. inputType: "Input",
  1257. disabled: true,
  1258. readonly: true,
  1259. },
  1260. { //isMedicine isMedicineValue
  1261. key: "isMedcine",
  1262. title: "医药物料",
  1263. inputType: "Checkbox",
  1264. disabled: true,
  1265. readonly: true,
  1266. },
  1267. { //unitId unitIdName
  1268. key: "unitName",
  1269. title: "主单位",
  1270. inputType: "Input",
  1271. disabled: true,
  1272. readonly: true,
  1273. },
  1274. {
  1275. key: "qty",
  1276. title: "主数量",
  1277. inputType: "InputNumber",
  1278. controlsPosition: "right",
  1279. width: 120,
  1280. require: true,
  1281. isSummary: true,
  1282. },
  1283. {
  1284. key: "taxPrice",
  1285. title: "主含税单价",
  1286. inputType: "InputNumber",
  1287. controlsPosition: "right",
  1288. // precision:2,
  1289. require: true,
  1290. width: 180,
  1291. },
  1292. { //unitId unitIdName
  1293. key: "unitName",
  1294. title: "单位",
  1295. inputType: "Input",
  1296. disabled: true,
  1297. readonly: true,
  1298. require: true,
  1299. },
  1300. {
  1301. key: "qty",
  1302. title: "数量",
  1303. // inputType: "InputNumber",
  1304. // controlsPosition: "right",
  1305. inputType: "Input",
  1306. copy: true,
  1307. width: 120,
  1308. isSummary: true,
  1309. },
  1310. {
  1311. key: "taxPrice",
  1312. title: "含税单价",
  1313. inputType: "InputNumber",
  1314. controlsPosition: "right",
  1315. // precision:2,
  1316. width: 180,
  1317. },
  1318. {
  1319. key: "money",
  1320. title: "价税合计",
  1321. inputType: "InputNumber",
  1322. controlsPosition: "right",
  1323. // precision:2,
  1324. disabled: true,
  1325. width: 180,
  1326. isSummary: true,
  1327. },
  1328. {
  1329. key: "ntaxnetprice",
  1330. title: "含税净价",
  1331. inputType: "Input",
  1332. controlsPosition: "right",
  1333. // precision:2,
  1334. disabled: true,
  1335. width: 180,
  1336. },
  1337. { //materialRate materialRateName
  1338. key: "tax",
  1339. title: "税率",
  1340. // inputType: "Input",
  1341. inputType: "InputNumber",
  1342. controlsPosition: "right",
  1343. // precision:2,
  1344. disabled: true,
  1345. require: true,
  1346. width: 180,
  1347. },
  1348. {
  1349. key: "taxDeductClassify",
  1350. title: "扣税类别",
  1351. inputType: "Select",
  1352. referName: "tax_deduction_category", // 字典名
  1353. width: 180,
  1354. require: true,
  1355. },
  1356. {
  1357. key: "exchangeRate",
  1358. title: "折本汇率",
  1359. inputType: "Input",
  1360. disabled: true,
  1361. width: 180,
  1362. require: true,
  1363. },
  1364. {
  1365. key: "nitemdiscountrate",
  1366. title: "折扣(%)",
  1367. inputType: "Input",
  1368. // precision:2,
  1369. disabled: true,
  1370. width: 180,
  1371. require: true,
  1372. },
  1373. {
  1374. key: "taxDeductMoneya",
  1375. title: "折扣金额",
  1376. inputType: "InputNumber",
  1377. controlsPosition: "right",
  1378. require: true,
  1379. // precision:2,
  1380. disabled: true,
  1381. width: 180,
  1382. isSummary: true,
  1383. },
  1384. {
  1385. key: "deliveryDate",
  1386. title: "交货日期",
  1387. inputType: "DatePicker",
  1388. type: 'date',
  1389. disabled: true,
  1390. isShow: true,
  1391. width: 180,
  1392. },
  1393. {
  1394. key: "goodsWarehouseName",
  1395. title: "收货仓库",
  1396. inputType: "Input",
  1397. width: 200,
  1398. disabled: true,
  1399. },
  1400. { key: "productBatch", title: "产品批号", inputType: "Input", width: 180 },
  1401. {
  1402. key: "registration",
  1403. title: "注册证号",
  1404. inputType: "Input",
  1405. width: 180,
  1406. disabled: true,
  1407. },
  1408. { key: "isStorage", title: "入库关闭", inputType: "Checkbox", disabled: true, },
  1409. { key: "isInvoice", title: "开票关闭", inputType: "Checkbox", disabled: true, },
  1410. { key: "isArrival", title: "到货关闭", inputType: "Checkbox", disabled: true, },
  1411. { key: "isPayment", title: "付款关闭", inputType: "Checkbox", disabled: true, },
  1412. { key: "isGift", title: "赠品", inputType: "Checkbox", },
  1413. { //storageCondition storageConditionName
  1414. key: "storageCondition",
  1415. title: "存储条件",
  1416. inputType: "Select",
  1417. referName: "sys_storage_condition", // 字典名
  1418. width: 180,
  1419. disabled: true,
  1420. readonly: true,
  1421. },
  1422. { // transportationCondition transportationConditionName
  1423. key: "carriageCondition",
  1424. title: "运输条件",
  1425. inputType: "Select",
  1426. referName: "sys_conditions_carriage", // 字典名
  1427. width: 180,
  1428. disabled: true,
  1429. readonly: true,
  1430. },
  1431. {
  1432. key: "originalQty",
  1433. title: "原始数量",
  1434. inputType: "InputNumber",
  1435. controlsPosition: "right",
  1436. disabled: true,
  1437. width: 180,
  1438. isSummary: true,
  1439. },
  1440. {
  1441. key: "originalMoney",
  1442. title: "原始金额",
  1443. inputType: "InputNumber",
  1444. controlsPosition: "right",
  1445. // precision:2,
  1446. disabled: true,
  1447. width: 180,
  1448. isSummary: true,
  1449. },
  1450. { key: "discountRule", title: "折扣规则编码", inputType: "Input", width: 180 },
  1451. { key: "demandCode", title: "采购需求单号", inputType: "Input", width: 180 },
  1452. { key: "remark", title: "备注", inputType: "Input", width: 200 },
  1453. {
  1454. key: "closeReason",
  1455. title: "关闭原因",
  1456. inputType: "Input",
  1457. isShow: true,
  1458. disabled: true,
  1459. width: 180,
  1460. },
  1461. {
  1462. key: "sourceBillDate",
  1463. title: "原单据生成时间",
  1464. inputType: "DatePicker",
  1465. type: 'datetime',
  1466. // valueFormat: "yyyy-MM-dd HH:mm:ss",
  1467. disabled: true,
  1468. isShow: true,
  1469. width: 180,
  1470. },
  1471. ]
  1472. },
  1473. // {
  1474. // title: '执行结果',
  1475. // key: 'puOrderExecuteList',
  1476. // tableColumns: [
  1477. // // { key: "orderId", title: "采购订单ID", inputType: "Input", width: 180 },
  1478. // {
  1479. // key: "rowno",
  1480. // title: "行号",
  1481. // inputType: "Input",
  1482. // disabled:true,
  1483. // require:false,
  1484. // },
  1485. // {
  1486. // key: "materialName",
  1487. // title: "物料",
  1488. // inputType: "PopoverSelect",
  1489. // width: 180,
  1490. // require: true,
  1491. // valueKey: "id",
  1492. // referName: "MATERIAL_PARAM",
  1493. // dataMapping: {
  1494. // material: "id",
  1495. // materialName: "name",
  1496. // materialCode: "code",
  1497. // // materialClassify:'classifyIdName',
  1498. // materialManufacturersCode:'manufacturersMaterialCode',
  1499. // specification:'specification',
  1500. // model:'model',
  1501. // isMedcine:'isMedicine',
  1502. // manufacturer:'manufacturerId',
  1503. // manufacturerName:'manufacturerIdName',
  1504. // unit:'unitId',
  1505. // unitName:'unitIdName',
  1506. // // tax:'materialRateName',
  1507. // storageCondition:'storageCondition',
  1508. // carriageCondition:'transportationCondition',
  1509. // materialClassifyOneName:'oneClass',
  1510. // materialClassifyTwoName:'twoClass',
  1511. // materialClassifyThreeName:'threeClass',
  1512. // materialClassifyFourName:'fourClass',
  1513. // registration:'registrationNo',
  1514. // isDrug:'isDrug',
  1515. // },
  1516. // queryParams: () => ({}),
  1517. // width:180,
  1518. // },
  1519. // {
  1520. // key: "specification",
  1521. // title: "规格",
  1522. // inputType: "Input",
  1523. // disabled:true,
  1524. // readonly:true,
  1525. // },
  1526. // {
  1527. // key: "qty",
  1528. // title: "数量",
  1529. // inputType: "InputNumber",
  1530. // controlsPosition: "right",
  1531. // width: 180,
  1532. // require: true,
  1533. // isSummary:true,
  1534. // },
  1535. // {
  1536. // key: "stroageQty",
  1537. // title: "累计到货主数量",
  1538. // inputType: "InputNumber",
  1539. // controlsPosition: "right",
  1540. // width: 180,
  1541. // isSummary:true,
  1542. // },
  1543. // {
  1544. // key: "stockQty",
  1545. // title: "累计入库主数量",
  1546. // inputType: "InputNumber",
  1547. // controlsPosition: "right",
  1548. // width: 180,
  1549. // isSummary:true,
  1550. // },
  1551. // {
  1552. // key: "invoiceQty",
  1553. // title: "累计开票主数量",
  1554. // inputType: "InputNumber",
  1555. // controlsPosition: "right",
  1556. // width: 180,
  1557. // isSummary:true,
  1558. // },
  1559. // {
  1560. // key: "rollbackQty",
  1561. // title: "累计退货主数量",
  1562. // inputType: "InputNumber",
  1563. // controlsPosition: "right",
  1564. // width: 180,
  1565. // isSummary:true,
  1566. // },
  1567. // {
  1568. // key: "backStockQty",
  1569. // title: "累计退库主数量",
  1570. // inputType: "InputNumber",
  1571. // controlsPosition: "right",
  1572. // width: 180,
  1573. // isSummary:true,
  1574. // },
  1575. // {
  1576. // key: "floatQty",
  1577. // title: "未到货数量",
  1578. // inputType: "InputNumber",
  1579. // controlsPosition: "right",
  1580. // width: 180,
  1581. // isSummary:true,
  1582. // },
  1583. // // {
  1584. // // key: "createByName",
  1585. // // title: "创建人",
  1586. // // inputType: "Input",
  1587. // // width: 120
  1588. // // },
  1589. // // {
  1590. // // key: "updateByName",
  1591. // // title: "更新人",
  1592. // // inputType: "Input",
  1593. // // width: 120
  1594. // // },
  1595. // ]
  1596. // },
  1597. ];
  1598. // export const initTabColumns = () => tabColumns;
  1599. export default function judgeColumns() {
  1600. let Columns = _.cloneDeep(PurColumns);
  1601. let TabColumns = _.cloneDeep(PurchaseTabColumns);
  1602. let roles = Cookies.get('roles').split(',');
  1603. let role = roles.find(item => item === "syfz-purchaseorder") || "procurementManager";
  1604. if (role === "syfz-purchaseorder") {
  1605. // 事业发展部
  1606. Columns = _.cloneDeep(CauseColumns);
  1607. TabColumns = _.cloneDeep(CauseTabColumns);
  1608. }
  1609. return { Columns, TabColumns }
  1610. }