column.js 38 KB

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