column.js 41 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050
  1. import Cookies from "js-cookie";
  2. // 集采中心-新修
  3. const PurColumns = [
  4. {
  5. item:{
  6. key: "puOrgName", title: "采购组织", inputType: "Input",},
  7. attr:{
  8. isHidden:true,
  9. width:150,
  10. },
  11. },
  12. {
  13. item:{
  14. key: "billType",
  15. title: "订单类型",
  16. width:150,
  17. },
  18. attr:{
  19. isHidden:true,
  20. is: "el-dict-tag",
  21. dictName: "sys_order_type",
  22. },
  23. },
  24. {
  25. item:{
  26. key: "code",
  27. title: "订单编号",
  28. inputType: "Input",
  29. width:150,
  30. },
  31. attr:{
  32. isHidden:true,
  33. },
  34. },
  35. {
  36. item:{key: "supplierName", title: "供应商", inputType: "Input",},
  37. attr:{
  38. isHidden:true,
  39. },
  40. },
  41. {
  42. item:{ key: "createByName", title: "制单人" ,width:100,},
  43. attr:{
  44. isHidden:true,
  45. },
  46. },
  47. {
  48. item:{ key: "createTime", title: "制单日期" ,width:100,},
  49. attr:{
  50. isHidden:true,
  51. },
  52. },
  53. {
  54. item:{key: "qty", title: "总数量",width:80,},
  55. attr:{
  56. isHidden:true,
  57. isSummary:true,
  58. },
  59. },
  60. {
  61. item:{
  62. key: "money",
  63. title: "价税合计",
  64. width:80,
  65. //
  66. },
  67. attr:{
  68. isHidden:true,
  69. isSummary:true,
  70. },
  71. },
  72. {
  73. item:{
  74. key: "status",
  75. title: "单据状态",
  76. width:80,
  77. },
  78. attr:{
  79. is: "el-dict-tag",
  80. dictName: "documents_status",
  81. isHidden:true,
  82. },
  83. },
  84. {
  85. item:{
  86. key: "erpOrderCode",
  87. title: "erp订单编号",
  88. },
  89. attr:{
  90. isHidden:true,
  91. },
  92. width:150,
  93. },
  94. {
  95. item:{
  96. key: "deliveryStatus",
  97. title: "erp发送状态",
  98. width:100,
  99. },
  100. attr:{
  101. clearable:true,
  102. is: "el-dict-tag",
  103. dictName: "order_delivery_status",
  104. },
  105. },
  106. {
  107. item:{
  108. key: "source",
  109. title: "订单来源",
  110. width:80,
  111. },
  112. attr:{
  113. is: "el-dict-tag",
  114. dictName: "order_source",
  115. isHidden:true,
  116. },
  117. },
  118. {
  119. item:{ key: "warehouseName", title: "WMS入库仓库" ,},
  120. attr:{
  121. isHidden:true,
  122. },
  123. width:100,
  124. }, //WMS入库仓库名称
  125. {
  126. item:{
  127. key: "rebateMoney",
  128. title: "订单使用返利金额" ,
  129. width:100,
  130. //
  131. },
  132. attr:{
  133. isHidden:true,
  134. isSummary:true,
  135. },
  136. },
  137. {
  138. item:{key: "deductionMoney", title: "订单抵扣余款金额" ,},
  139. attr:{
  140. isHidden:true,
  141. isSummary:true,
  142. },
  143. width:100,
  144. },
  145. {
  146. item:{ key: "remark", title: "备注" ,},
  147. attr:{
  148. isHidden:true,
  149. },
  150. },
  151. {
  152. item:{ key: "address", title: "收货地址" ,},
  153. attr:{
  154. isHidden:true,
  155. },
  156. },
  157. {
  158. item:{key: "paymentAgreementName", title: "付款协议",width:100, },
  159. attr:{
  160. isHidden:true,
  161. },
  162. },
  163. {
  164. item:{ key: "applyPaymentMoney", title: "累计付款申请金额", width:100, },
  165. attr:{
  166. isHidden:true,
  167. isSummary:true,
  168. },
  169. },
  170. {
  171. item:{ key: "paymentMoney", title: "累计付款金额" ,},
  172. attr:{
  173. isHidden:true,
  174. isSummary:true,
  175. },
  176. width:100,
  177. },
  178. {
  179. item:{
  180. key: "closePay",
  181. title: "付款关闭",
  182. width:80,
  183. },
  184. attr:{
  185. is: "el-checkbox",
  186. 'true-label':"Y",
  187. 'false-label':"N",
  188. disabled:true,
  189. isHidden:true,
  190. },
  191. },
  192. {
  193. item:{ key: "fileNumber", title: "附件数量" ,width:100,},
  194. attr:{
  195. isHidden:true,
  196. },
  197. },
  198. {
  199. item:{ key: "invoiceMoney", title: "发票金额" ,},
  200. attr:{
  201. isHidden:true,
  202. isSummary:true,
  203. },
  204. width:100,
  205. },
  206. {
  207. item:{
  208. key: "isClose",
  209. title: "最终关闭",
  210. width:80,
  211. },
  212. attr:{
  213. is: "el-checkbox",
  214. 'true-label':"Y",
  215. 'false-label':"N",
  216. disabled:true,
  217. isHidden:true,
  218. },
  219. },
  220. {
  221. item:{ key: "approverName", title: "审批人" ,width:100,},
  222. attr:{
  223. isHidden:true,
  224. },
  225. },
  226. {
  227. item:{ key: "approverFinishTime", title: "审批时间",width:100, },
  228. attr:{
  229. isHidden:true,
  230. },
  231. },
  232. {
  233. // 更新人
  234. item:{ key: "updateByName", title: "最后修改人" ,width:100,},
  235. attr:{
  236. isHidden:true,
  237. },
  238. },
  239. {
  240. item:{ key: "updateTime", title: "最后修改时间",},
  241. attr:{
  242. isHidden:true,
  243. },
  244. },
  245. {
  246. item:{ key: "originalMoney", title: "原始金额",},
  247. attr:{
  248. isHidden:true,
  249. isSummary:true,
  250. },
  251. },
  252. {
  253. item:{ key: "approveUser", title: "当前审批人" ,},
  254. attr:{
  255. isHidden:true,
  256. },
  257. },
  258. {
  259. item:{ key: "redeployName", title: "被转派人" , width:100 ,},
  260. attr:{
  261. isHidden:true,
  262. },
  263. },
  264. {
  265. item:{ key: "redeployDate", title: "转派时间" ,},
  266. attr:{
  267. isHidden:true,
  268. },
  269. },
  270. ].map(({ item, attr }) => ({
  271. attr,
  272. item: {
  273. ...item,
  274. sortabled: true,
  275. fixedabled: true,
  276. filterabled: true,
  277. hiddenabled: true,
  278. },
  279. }));
  280. // 事业发展部(原本格式)
  281. const CauseColumns = [
  282. {
  283. item:{
  284. key: "puOrgName", title: "采购组织", inputType: "Input",},
  285. attr:{
  286. isHidden:true,
  287. width:150,
  288. },
  289. },
  290. {
  291. item:{
  292. key: "billType",
  293. title: "订单类型",
  294. width:150,
  295. },
  296. attr:{
  297. isHidden:true,
  298. is: "el-dict-tag",
  299. dictName: "sys_order_type",
  300. },
  301. },
  302. {
  303. item:{
  304. key: "code",
  305. title: "订单编号",
  306. inputType: "Input",
  307. width:150,
  308. },
  309. attr:{
  310. isHidden:true,
  311. },
  312. },
  313. {
  314. item:{
  315. key: "status",
  316. title: "单据状态",
  317. width:80,
  318. },
  319. attr:{
  320. is: "el-dict-tag",
  321. dictName: "documents_status",
  322. isHidden:true,
  323. },
  324. },
  325. {
  326. item:{key: "billDate", title: "订单日期",width:100,},
  327. attr:{
  328. isHidden:true,
  329. },
  330. },
  331. {
  332. item:{key: "supplierName", title: "供应商", inputType: "Input",},
  333. attr:{
  334. isHidden:true,
  335. },
  336. },
  337. {
  338. item:{key: "paymentAgreementName", title: "付款协议",width:100, },
  339. attr:{
  340. isHidden:true,
  341. },
  342. },
  343. {
  344. item:{
  345. key: "source",
  346. title: "订单来源",
  347. width:80,
  348. },
  349. attr:{
  350. is: "el-dict-tag",
  351. dictName: "order_source",
  352. isHidden:true,
  353. },
  354. },
  355. // { item:{key: "paymentAgreement", title: "付款协议" },
  356. {
  357. item:{ key: "createByName", title: "制单人" ,width:100,},
  358. attr:{
  359. isHidden:true,
  360. },
  361. },
  362. {
  363. item:{key: "puDeptName", title: "采购部门",width:100, },
  364. attr:{
  365. isHidden:true,
  366. },
  367. },
  368. // {
  369. // item:{key: "customerName", title: "收货客户" ,width:100,},
  370. // attr:{
  371. // isHidden:true,
  372. // },
  373. // },
  374. // {
  375. // key: "isDeliver",
  376. // title: "是否发货",
  377. // inputType: 'Checkbox',
  378. // width:80,
  379. // },
  380. {
  381. item:{
  382. key: "isArrival",
  383. title: "到货超期",
  384. width:80,
  385. },
  386. attr:{
  387. is: "el-checkbox",
  388. 'true-label':"Y",
  389. 'false-label':"N",
  390. disabled:true,
  391. isHidden:true,
  392. },
  393. },
  394. {
  395. item:{key: "isBack",
  396. title: "退货",
  397. width:80,},
  398. attr:{
  399. is: "el-checkbox",
  400. 'true-label':"Y",
  401. 'false-label':"N",
  402. disabled:true,
  403. isHidden:true,
  404. },
  405. },
  406. // { item:{key: "freezeCause", title: "冻结原因" },
  407. {
  408. item:{key: "qty", title: "总数量",width:80,},
  409. attr:{
  410. isHidden:true,
  411. isSummary:true,
  412. },
  413. },
  414. {
  415. item:{
  416. key: "money",
  417. title: "价税合计",
  418. width:80,
  419. //
  420. },
  421. attr:{
  422. // is: "el-computed-input-v2",
  423. // formatter: (prop) => {
  424. // return prop ? (prop * 1).toFixed(2) : prop;
  425. // },
  426. isHidden:true,
  427. isSummary:true,
  428. },
  429. },
  430. {
  431. item: {
  432. key: "isUrgency",
  433. title: "紧急程度",
  434. width:100,
  435. },
  436. attr: {
  437. is: "el-dict-tag",
  438. dictName: "urgency_degree"
  439. },
  440. },
  441. // {
  442. // key: "isMarketing",
  443. // title: "已协同生成销售订单",
  444. // inputType: 'Checkbox',
  445. // },
  446. // {
  447. // key: "isMarketingSource",
  448. // title: "由销售订单协同生成",
  449. // inputType: 'Checkbox',
  450. // },
  451. {
  452. item:{key: "personalName", title: "人员" ,width:120,},
  453. attr:{
  454. isHidden:true,
  455. },
  456. },
  457. // { item:{key: "isSendSrm", title: "是否同步SRM" },
  458. {
  459. item:{key: "isInvoice",
  460. title: "发票标识",
  461. width:80,},
  462. attr:{
  463. is: "el-checkbox",
  464. 'true-label':"Y",
  465. 'false-label':"N",
  466. disabled:true,
  467. isHidden:true,
  468. },
  469. },
  470. {
  471. item:{
  472. key: "rebateMoney",
  473. title: "订单使用返利金额" ,
  474. width:100,
  475. //
  476. },
  477. attr:{
  478. // is: "el-computed-input-v2",
  479. // formatter: (prop) => {
  480. // return prop ? (prop * 1).toFixed(2) : prop;
  481. // },
  482. isHidden:true,
  483. isSummary:true,
  484. },
  485. },
  486. {
  487. item:{key: "deductionMoney", title: "订单抵扣余款金额" ,},
  488. attr:{
  489. // is: "el-computed-input-v2",
  490. // formatter: (prop) => {
  491. // return prop ? (prop * 1).toFixed(2) : prop;
  492. // },
  493. isHidden:true,
  494. isSummary:true,
  495. },
  496. width:100,
  497. },
  498. // { item:{key: "warehouse", title: "WMS入库仓库" },
  499. {
  500. item:{ key: "warehouseName", title: "收货仓库" ,},
  501. attr:{
  502. isHidden:true,
  503. },
  504. width:100,
  505. }, //WMS入库仓库名称
  506. {
  507. item:{key: "customerDeptName", title: "客户部门" ,},
  508. attr:{
  509. isHidden:true,
  510. },
  511. width:100,
  512. },
  513. {
  514. item:{key: "supplierContactsName", title: "供应商业务联系人",},
  515. attr:{
  516. isHidden:true,
  517. },
  518. width:100,
  519. },
  520. {
  521. item:{
  522. key: "isUrgency",
  523. title: "紧急程度",
  524. width:80,
  525. },
  526. attr:{
  527. is: "el-checkbox",
  528. 'true-label':"Y",
  529. 'false-label':"N",
  530. disabled:true,
  531. isHidden:true,
  532. },
  533. },
  534. // {
  535. // item:{ key: "agentName", title: "代理人" ,},
  536. // attr:{
  537. // isHidden:true,
  538. // },
  539. // },
  540. {
  541. item:{
  542. key: "isClose",
  543. title: "最终关闭",
  544. width:80,
  545. },
  546. attr:{
  547. is: "el-checkbox",
  548. 'true-label':"Y",
  549. 'false-label':"N",
  550. disabled:true,
  551. isHidden:true,
  552. },
  553. },
  554. {
  555. item:{ key: "applyPaymentMoney", title: "累计付款申请金额", width:100, },
  556. attr:{
  557. // is: "el-computed-input-v2",
  558. // formatter: (prop) => {
  559. // return prop ? (prop * 1).toFixed(2) : prop;
  560. // },
  561. isHidden:true,
  562. isSummary:true,
  563. },
  564. },
  565. {
  566. item:{ key: "paymentMoney", title: "累计付款金额" ,},
  567. attr:{
  568. // is: "el-computed-input-v2",
  569. // formatter: (prop) => {
  570. // return prop ? (prop * 1).toFixed(2) : prop;
  571. // },
  572. isHidden:true,
  573. isSummary:true,
  574. },
  575. width:100,
  576. },
  577. {
  578. item:{ key: "invoiceMoney", title: "发票金额" ,},
  579. attr:{
  580. // is: "el-computed-input-v2",
  581. // formatter: (prop) => {
  582. // return prop ? (prop * 1).toFixed(2) : prop;
  583. // },
  584. isHidden:true,
  585. isSummary:true,
  586. },
  587. width:100,
  588. },
  589. // { item:{key: "supplierPersonal", title: "供应商业务员" },
  590. {
  591. item:{ key: "supplierPersonalName", title: "供应商业务员", },
  592. attr:{
  593. isHidden:true,
  594. },
  595. width:100,
  596. },
  597. {
  598. item:{ key: "marketingCode", title: "销售订单号" ,},
  599. attr:{
  600. isHidden:true,
  601. },
  602. width:150,
  603. },
  604. // { item:{key: "flowId", title: "OA流程ID" },
  605. {
  606. item:{ key: "oaDemandNo", title: "OA需求单号" ,},
  607. attr:{
  608. isHidden:true,
  609. },
  610. },
  611. {
  612. item:{
  613. key: "erpOrderCode",
  614. title: "erp订单编号",
  615. },
  616. attr:{
  617. isHidden:true,
  618. },
  619. width:150,
  620. },
  621. {
  622. item:{ key: "address", title: "收货地址" ,},
  623. attr:{
  624. isHidden:true,
  625. },
  626. },
  627. {
  628. item:{ key: "contacts", title: "收货联系人" ,},
  629. attr:{
  630. isHidden:true,
  631. },
  632. width:100,
  633. },
  634. {
  635. item:{
  636. key: "isSendWms",
  637. title: "已同步WMS",
  638. width:80,
  639. },
  640. attr:{
  641. is: "el-checkbox",
  642. 'true-label':"Y",
  643. 'false-label':"N",
  644. disabled:true,
  645. isHidden:true,
  646. },
  647. },
  648. {
  649. item:{ key: "retReasonName", title: "退换原因" ,},
  650. attr:{
  651. isHidden:true,
  652. },
  653. width:100,
  654. },
  655. {
  656. item:{ key: "closeTime", title: "最终关闭日期" ,},
  657. attr:{
  658. isHidden:true,
  659. },
  660. width:100,
  661. },
  662. {
  663. item:{ key: "processTypeName", title: "处理方式" ,},
  664. attr:{
  665. isHidden:true,
  666. },
  667. width:100,
  668. },
  669. {
  670. item:{
  671. key: "isEnd",
  672. title: "整单关闭标识" ,
  673. },
  674. attr:{
  675. is: "el-checkbox",
  676. 'true-label':"Y",
  677. 'false-label':"N",
  678. disabled:true,
  679. isHidden:true,
  680. },
  681. width:100,
  682. },
  683. {
  684. item:{ key: "projectNowName", title: "在建工程项目" ,},
  685. attr:{
  686. isHidden:true,
  687. },
  688. width:100,
  689. },
  690. {
  691. item:{ key: "operatingItemsName", title: "经营性项目" ,},
  692. attr:{
  693. isHidden:true,
  694. },
  695. width:100,
  696. },
  697. {
  698. item:{ key: "isArrivalReson", title: "到货超期原因" ,},
  699. attr:{
  700. isHidden:true,
  701. },
  702. width:100,
  703. },
  704. {
  705. item:{key: "buyerName", title: "采购员" ,width:100,},
  706. attr:{
  707. isHidden:true,
  708. },
  709. },
  710. {
  711. item:{ key: "createTime", title: "制单日期/创建时间",},
  712. attr:{
  713. isHidden:true,
  714. },
  715. },
  716. {
  717. item:{ key: "approveTime", title: "提交时间" ,width:100,},
  718. attr:{
  719. isHidden:true,
  720. },
  721. },
  722. {
  723. item:{ key: "approverName", title: "审批人" ,width:100,},
  724. attr:{
  725. isHidden:true,
  726. },
  727. },
  728. {
  729. item:{ key: "approverFinishTime", title: "审批时间",width:100, },
  730. attr:{
  731. isHidden:true,
  732. },
  733. },
  734. {
  735. item:{ key: "updateByName", title: "更新人" ,width:100,},
  736. attr:{
  737. isHidden:true,
  738. },
  739. },
  740. {
  741. item:{ key: "updateTime", title: "最后修改时间",},
  742. attr:{
  743. isHidden:true,
  744. },
  745. },
  746. {
  747. item:{ key: "remark", title: "备注" ,},
  748. attr:{
  749. isHidden:true,
  750. },
  751. },
  752. {
  753. item:{ key: "approveUser", title: "当前审批人" ,},
  754. attr:{
  755. isHidden:true,
  756. },
  757. },
  758. {
  759. item:{ key: "redeployName", title: "被转派人" , width: 100,},
  760. attr:{
  761. isHidden:true,
  762. },
  763. },
  764. {
  765. item:{ key: "redeployDate", title: "转派时间" ,},
  766. attr:{
  767. isHidden:true,
  768. },
  769. },
  770. // { item:{key: "midOrderNo", title: "中台采购订单号" },
  771. ].map(({ item, attr }) => ({
  772. attr,
  773. item: {
  774. ...item,
  775. sortabled: true,
  776. fixedabled: true,
  777. filterabled: true,
  778. hiddenabled: true,
  779. },
  780. }));
  781. // 集采中心
  782. const PurTabColumns = [
  783. {
  784. title: '物料信息',
  785. key: 'puOrderItemList',
  786. tableColumns: [
  787. {
  788. item:{key: "customerName", title: "收货客户" ,width:100,},
  789. attr:{
  790. isHidden:true,
  791. },
  792. },
  793. {
  794. item:{
  795. key: "rowNo", title: "行号",width:80,},
  796. attr:{
  797. isHidden:true,
  798. },
  799. },
  800. {
  801. item:{key: "materialCode", title: "物料编码", width:150, },
  802. attr:{
  803. isHidden:true,
  804. },
  805. },
  806. {
  807. item:{key: "materialName", title: "物料名称",width:150, },
  808. attr:{
  809. isHidden:true,
  810. },
  811. },
  812. {
  813. item:{key: "specification", title: "规格",width:100, },
  814. attr:{
  815. isHidden:true,
  816. },
  817. },
  818. {
  819. item:{key: "model", title: "型号",width: 100 },
  820. attr:{
  821. isHidden:true,
  822. },
  823. },
  824. {
  825. item:{key: "manufacturerName", title: "生产厂家代理人", width:150, },
  826. attr:{
  827. isHidden:true,
  828. },
  829. },
  830. {
  831. item:{key: "unitName", title: "单位", width: 80 },
  832. attr:{
  833. isHidden:true,
  834. },
  835. },
  836. {
  837. item:{key: "qty", title: "数量",width:120, },
  838. attr:{
  839. isHidden:true,
  840. isSummary:true,
  841. },
  842. },
  843. {
  844. item:{key: "taxPrice", title: "含税单价" ,width:120,},
  845. attr:{
  846. },
  847. },
  848. {
  849. item:{key: "money", title: "价税合计" ,width:120, },
  850. attr:{
  851. isSummary:true,
  852. },
  853. },
  854. {
  855. item:{
  856. key: "isGift",
  857. title: "赠品",
  858. inputType: 'Checkbox',
  859. width:80,
  860. },
  861. attr:{
  862. is: "el-checkbox",
  863. 'true-label':"Y",
  864. 'false-label':"N",
  865. disabled:true,
  866. },
  867. },
  868. {
  869. item:{
  870. key: "nitemdiscountrate",
  871. title: "折扣(%)",
  872. width:80,
  873. },
  874. attr:{},
  875. },
  876. {
  877. item:{key: "taxDeductMoneya", title: "折扣金额", width:80, },
  878. attr:{
  879. isSummary:true,
  880. },
  881. },
  882. {
  883. item:{key: "discountRule", title: "折扣规则编码", width:100, },
  884. attr:{
  885. isHidden:true,
  886. },
  887. },
  888. {
  889. item:{key: "tax", title: "税率" ,width:120, },
  890. attr:{
  891. },
  892. },
  893. {
  894. item:{key: "registration", title: "注册证号", width:100, },
  895. attr:{
  896. isHidden:true,
  897. },
  898. },
  899. {
  900. item:{ key: "demandCode", title:"采购需求单号",width:150,},
  901. attr:{
  902. isHidden:true,
  903. },
  904. },
  905. {
  906. item:{
  907. key: "isReplenishment",
  908. title: "补单标识",
  909. inputType: 'Checkbox',
  910. width:80,
  911. },
  912. attr:{
  913. is: "el-checkbox",
  914. 'true-label':"Y",
  915. 'false-label':"N",
  916. disabled:true,
  917. },
  918. },
  919. {
  920. item:{
  921. key: "isUrgency",
  922. title: "紧急标识" ,
  923. inputType: 'Checkbox',
  924. width:80,
  925. },
  926. attr:{
  927. is: "el-checkbox",
  928. 'true-label':"Y",
  929. 'false-label':"N",
  930. disabled:true,
  931. },
  932. },
  933. {
  934. item:{
  935. key: "priceType",
  936. title: "价格类型"
  937. , width:100,
  938. },
  939. attr:{
  940. is: "el-dict-tag",
  941. dictName: "sys_price_type",
  942. }
  943. },
  944. {
  945. item:{
  946. key: "isDistributionPrice",
  947. title: "配送价",
  948. inputType: 'Checkbox',
  949. width:80,
  950. },
  951. attr:{
  952. is: "el-checkbox",
  953. 'true-label':"Y",
  954. 'false-label':"N",
  955. disabled:true,
  956. },
  957. },
  958. {
  959. item:{key: "unarrivedQty", title: "未到货数量" , width:80,},
  960. attr:{
  961. isSummary:true,
  962. },
  963. },
  964. {
  965. item:{
  966. key: "isArrival",
  967. title: "到货关闭",
  968. inputType: 'Checkbox',
  969. width:80,
  970. },
  971. attr:{
  972. is: "el-checkbox",
  973. 'true-label':"Y",
  974. 'false-label':"N",
  975. disabled:true,
  976. },
  977. },
  978. {
  979. item:{
  980. key: "isStorage",
  981. title: "入库关闭",
  982. inputType: 'Checkbox',
  983. width:80,
  984. },
  985. attr:{
  986. is: "el-checkbox",
  987. 'true-label':"Y",
  988. 'false-label':"N",
  989. disabled:true,
  990. },
  991. },
  992. {
  993. item:{
  994. key: "isPayment",
  995. title: "付款关闭",
  996. inputType: 'Checkbox',
  997. width:80,
  998. },
  999. attr:{
  1000. is: "el-checkbox",
  1001. 'true-label':"Y",
  1002. 'false-label':"N",
  1003. disabled:true,
  1004. },
  1005. },
  1006. {
  1007. item:{
  1008. key: "isInvoice",
  1009. title: "开票关闭",
  1010. inputType: 'Checkbox',
  1011. width:80,
  1012. },
  1013. attr:{
  1014. is: "el-checkbox",
  1015. 'true-label':"Y",
  1016. 'false-label':"N",
  1017. disabled:true,
  1018. },
  1019. },
  1020. {
  1021. item:{
  1022. key: "isMedcine",
  1023. title: "医药物料",
  1024. width:80,
  1025. },
  1026. attr:{
  1027. is: "el-checkbox",
  1028. 'true-label':"Y",
  1029. 'false-label':"N",
  1030. disabled:true,
  1031. },
  1032. },
  1033. {
  1034. item:{key: "originalQty", title: "原始数量" ,width:80,},
  1035. attr:{
  1036. isHidden:true,
  1037. isSummary:true,
  1038. },
  1039. },
  1040. {
  1041. item:{
  1042. key: "originalMoney",
  1043. title: "原始金额" ,
  1044. width:80,
  1045. },
  1046. attr:{
  1047. isSummary:true,
  1048. },
  1049. },
  1050. {
  1051. item:{ key: "goodsAllocationName", title: "货位",width:100,},
  1052. attr:{
  1053. isHidden:true,
  1054. },
  1055. },
  1056. ].map(({ item, attr }) => ({
  1057. attr,
  1058. item: {
  1059. ...item,
  1060. sortabled: true,
  1061. fixedabled: true,
  1062. filterabled: true,
  1063. hiddenabled: true,
  1064. },
  1065. }))
  1066. },
  1067. ];
  1068. // 事业发展部
  1069. const CommonTabColumns = [
  1070. {
  1071. title: '物料信息',
  1072. key: 'puOrderItemList',
  1073. tableColumns: [
  1074. {
  1075. item:{
  1076. key: "rowNo", title: "行号",width:80,},
  1077. attr:{
  1078. isHidden:true,
  1079. },
  1080. },
  1081. // { item:{key: "orderId", title: "采购订单ID" },
  1082. {
  1083. item:{ key: "demandCode", title:"采购需求单号",width:150,},
  1084. attr:{
  1085. isHidden:true,
  1086. },
  1087. },
  1088. {
  1089. item:{
  1090. key: "contractNo",
  1091. title:"合同编号",
  1092. width:150,
  1093. },
  1094. attr:{
  1095. isHidden:true,
  1096. },
  1097. },
  1098. // {
  1099. // item:{key: "material", title: "物料ID",width:120, },
  1100. // attr:{
  1101. // isHidden:true,
  1102. // },
  1103. // },
  1104. {
  1105. item:{key: "materialName", title: "物料名称",width:150, },
  1106. attr:{
  1107. isHidden:true,
  1108. },
  1109. },
  1110. {
  1111. item:{key: "materialCode", title: "物料编码", width:150, },
  1112. attr:{
  1113. isHidden:true,
  1114. },
  1115. },
  1116. // { item:{key: "materialClassify", title: "物料分类", },},
  1117. {
  1118. item:{key: "materialManufacturersCode", title: "厂家物料编码", width:100, },
  1119. attr:{
  1120. isHidden:true,
  1121. },
  1122. },
  1123. {
  1124. item:{key: "specification", title: "规格",width:100, },
  1125. attr:{
  1126. isHidden:true,
  1127. },
  1128. },
  1129. {
  1130. item:{key: "model", title: "型号",width: 100 },
  1131. attr:{
  1132. isHidden:true,
  1133. },
  1134. },
  1135. {
  1136. item:{key: "customerName", title: "收货客户" ,width:100,},
  1137. attr:{
  1138. isHidden:true,
  1139. },
  1140. },
  1141. {
  1142. item:{
  1143. key: "isMedcine",
  1144. title: "医药物料",
  1145. width:80,
  1146. },
  1147. attr:{
  1148. is: "el-checkbox",
  1149. 'true-label':"Y",
  1150. 'false-label':"N",
  1151. disabled:true,
  1152. },
  1153. },
  1154. {
  1155. item:{key: "manufacturerName", title: "生产厂家代理人", width:150, },
  1156. attr:{
  1157. isHidden:true,
  1158. },
  1159. },
  1160. {
  1161. item:{
  1162. key: "isDrug",
  1163. title: "物料药品属性",
  1164. inputType: 'Checkbox',
  1165. width:80,
  1166. },
  1167. attr:{
  1168. is: "el-checkbox",
  1169. 'true-label':"Y",
  1170. 'false-label':"N",
  1171. disabled:true,
  1172. },
  1173. },
  1174. {
  1175. item:{key: "unitName", title: "单位", width: 80 },
  1176. attr:{
  1177. isHidden:true,
  1178. },
  1179. },
  1180. {
  1181. item:{key: "qty", title: "数量",width:120, },
  1182. attr:{
  1183. isHidden:true,
  1184. isSummary:true,
  1185. },
  1186. },
  1187. {
  1188. item:{key: "currencyName", title: "币种", width:100, },
  1189. attr:{
  1190. isHidden:true,
  1191. },
  1192. },
  1193. {
  1194. item:{key: "taxPrice", title: "含税单价" ,width:120,},
  1195. attr:{
  1196. // is: "el-computed-input-v2",
  1197. // formatter: (prop) => {
  1198. // return prop ? (prop * 1).toFixed(2) : prop;
  1199. // },
  1200. },
  1201. },
  1202. {
  1203. item:{key: "money", title: "价税合计" ,width:120, },
  1204. attr:{
  1205. isSummary:true,
  1206. // is: "el-computed-input-v2",
  1207. // formatter: (prop) => {
  1208. // return prop ? (prop * 1).toFixed(2) : prop;
  1209. // },
  1210. },
  1211. },
  1212. {
  1213. item:{key: "tax", title: "税率" ,width:120, },
  1214. attr:{
  1215. // is: "el-computed-input-v2",
  1216. // formatter: (prop) => {
  1217. // return prop ? (prop * 1).toFixed(2) : prop;
  1218. // },
  1219. },
  1220. },
  1221. {
  1222. item:{key: "taxDeductMoneya", title: "折扣金额", width:80, },
  1223. attr:{
  1224. // is: "el-computed-input-v2",
  1225. // formatter: (prop) => {
  1226. // return prop ? (prop * 1).toFixed(2) : prop;
  1227. // },
  1228. isSummary:true,
  1229. },
  1230. },
  1231. {
  1232. item:{
  1233. key: "nitemdiscountrate",
  1234. title: "折扣(%)",
  1235. width:80,
  1236. },
  1237. attr:{},
  1238. },
  1239. {
  1240. item:{
  1241. key: "ntaxnetprice",
  1242. title: "含税净价",
  1243. width:80,
  1244. },
  1245. attr:{
  1246. },
  1247. },
  1248. {
  1249. item:{key: "arrivalQty", title: "已到货数量" , width:80,},
  1250. attr:{
  1251. // is: "el-computed-input-v2",
  1252. // formatter: (prop) => {
  1253. // return prop ? (prop * 1).toFixed(2) : prop;
  1254. // },
  1255. isSummary:true,
  1256. },
  1257. },
  1258. {
  1259. item:{key: "unarrivedQty", title: "未到货数量" , width:80,},
  1260. attr:{
  1261. // is: "el-computed-input-v2",
  1262. // formatter: (prop) => {
  1263. // return prop ? (prop * 1).toFixed(2) : prop;
  1264. // },
  1265. isSummary:true,
  1266. },
  1267. },
  1268. {
  1269. item:{key: "price", title: "无税单价" , width:120, },
  1270. attr:{
  1271. // is: "el-computed-input-v2",
  1272. // formatter: (prop) => {
  1273. // return prop ? (prop * 1).toFixed(2) : prop;
  1274. // },
  1275. },
  1276. },
  1277. {
  1278. item:{key: "notaxMoney", title: "无税金额" , width:120, },
  1279. attr:{
  1280. // is: "el-computed-input-v2",
  1281. // formatter: (prop) => {
  1282. // return prop ? (prop * 1).toFixed(2) : prop;
  1283. // },
  1284. isSummary:true,
  1285. },
  1286. },
  1287. // {
  1288. // item:{key: "priceSource", title: "价格目录ID", width:10, },
  1289. // attr:{
  1290. // isHidden:true,
  1291. // },
  1292. // },
  1293. {
  1294. item:{
  1295. key: "isStorage",
  1296. title: "入库关闭",
  1297. inputType: 'Checkbox',
  1298. width:80,
  1299. },
  1300. attr:{
  1301. is: "el-checkbox",
  1302. 'true-label':"Y",
  1303. 'false-label':"N",
  1304. disabled:true,
  1305. },
  1306. },
  1307. {
  1308. item:{
  1309. key: "isInvoice",
  1310. title: "开票关闭",
  1311. inputType: 'Checkbox',
  1312. width:80,
  1313. },
  1314. attr:{
  1315. is: "el-checkbox",
  1316. 'true-label':"Y",
  1317. 'false-label':"N",
  1318. disabled:true,
  1319. },
  1320. },
  1321. {
  1322. item:{
  1323. key: "isArrival",
  1324. title: "到货关闭",
  1325. inputType: 'Checkbox',
  1326. width:80,
  1327. },
  1328. attr:{
  1329. is: "el-checkbox",
  1330. 'true-label':"Y",
  1331. 'false-label':"N",
  1332. disabled:true,
  1333. },
  1334. },
  1335. {
  1336. item:{
  1337. key: "isPayment",
  1338. title: "付款关闭",
  1339. inputType: 'Checkbox',
  1340. width:80,
  1341. },
  1342. attr:{
  1343. is: "el-checkbox",
  1344. 'true-label':"Y",
  1345. 'false-label':"N",
  1346. disabled:true,
  1347. },
  1348. },
  1349. {
  1350. item:{
  1351. key: "isGift",
  1352. title: "赠品",
  1353. inputType: 'Checkbox',
  1354. width:80,
  1355. },
  1356. attr:{
  1357. is: "el-checkbox",
  1358. 'true-label':"Y",
  1359. 'false-label':"N",
  1360. disabled:true,
  1361. },
  1362. },
  1363. {
  1364. item:{key: "warehouse", title: "收货仓库", width:100, },
  1365. attr:{
  1366. isHidden:true,
  1367. },
  1368. },
  1369. {
  1370. item:{key: "place", title: "收货地点", width:100, },
  1371. attr:{
  1372. isHidden:true,
  1373. },
  1374. },
  1375. {
  1376. item:{key: "address", title: "收货地址",width:100, },
  1377. attr:{
  1378. isHidden:true,
  1379. },
  1380. },
  1381. {
  1382. item:{key: "productBatch", title: "产品批号", width:100, },
  1383. attr:{
  1384. isHidden:true,
  1385. },
  1386. },
  1387. {
  1388. item:{key: "manufactureDate", title: "生产日期", width:100, },
  1389. attr:{
  1390. isHidden:true,
  1391. },
  1392. },
  1393. {
  1394. item:{key: "efficacyLoseDate", title: "有效期至/失效日期",width:100, },
  1395. attr:{
  1396. isHidden:true,
  1397. },
  1398. },
  1399. {
  1400. item:{key: "approvalNumber", title: "批准文号", width:100, },
  1401. attr:{
  1402. isHidden:true,
  1403. },
  1404. },
  1405. {
  1406. item:{key: "registration", title: "注册证号", width:100, },
  1407. attr:{
  1408. isHidden:true,
  1409. },
  1410. },
  1411. {
  1412. item:{
  1413. key: "storageCondition",
  1414. title: "存储条件",
  1415. width:100,
  1416. },
  1417. attr:{
  1418. is: "el-dict-tag",
  1419. dictName: "sys_storage_condition",
  1420. },
  1421. },
  1422. {
  1423. item:{
  1424. key: "carriageCondition",
  1425. title: "运输条件",
  1426. width:100,
  1427. },
  1428. attr:{
  1429. is: "el-dict-tag",
  1430. dictName: "sys_conditions_carriage",
  1431. },
  1432. },
  1433. {
  1434. item:{
  1435. key: "isBatchLock",
  1436. title: "批号锁定标识",
  1437. inputType: 'Checkbox',
  1438. width:80,
  1439. },
  1440. attr:{
  1441. is: "el-checkbox",
  1442. 'true-label':"Y",
  1443. 'false-label':"N",
  1444. disabled:true,
  1445. },
  1446. },
  1447. {
  1448. item:{
  1449. key: "isReplenishment",
  1450. title: "补单标识",
  1451. inputType: 'Checkbox',
  1452. width:80,
  1453. },
  1454. attr:{
  1455. is: "el-checkbox",
  1456. 'true-label':"Y",
  1457. 'false-label':"N",
  1458. disabled:true,
  1459. },
  1460. },
  1461. {
  1462. item:{
  1463. key: "isUrgency",
  1464. title: "紧急标识" ,
  1465. inputType: 'Checkbox',
  1466. width:80,
  1467. },
  1468. attr:{
  1469. is: "el-checkbox",
  1470. 'true-label':"Y",
  1471. 'false-label':"N",
  1472. disabled:true,
  1473. },
  1474. },
  1475. {
  1476. item:{key: "originalQty", title: "原始数量" ,width:80,},
  1477. attr:{
  1478. isHidden:true,
  1479. isSummary:true,
  1480. },
  1481. },
  1482. {
  1483. item:{
  1484. key: "originalMoney",
  1485. title: "原始金额" ,
  1486. width:80,
  1487. },
  1488. attr:{
  1489. // is: "el-computed-input-v2",
  1490. // formatter: (prop) => {
  1491. // return prop ? (prop * 1).toFixed(2) : prop;
  1492. // },
  1493. isSummary:true,
  1494. },
  1495. },
  1496. {
  1497. item:{key: "reservedQty", title: "预留数量",width:80, },
  1498. attr:{
  1499. isHidden:true,
  1500. isSummary:true,
  1501. },
  1502. },
  1503. {
  1504. item:{key: "reservedPeriod", title: "预留周期", width:100, },
  1505. attr:{
  1506. isHidden:true,
  1507. },
  1508. },
  1509. {
  1510. item:{key: "taxDeductClassify", title: "扣税类别" , width:100,},
  1511. attr:{
  1512. isHidden:true,
  1513. },
  1514. },
  1515. {
  1516. item:{key: "exchangeRate", title: "折本汇率" ,width:80,},
  1517. attr:{
  1518. isHidden:true,
  1519. },
  1520. },
  1521. {
  1522. item:{key: "directProductBatch", title: "直运产品批号", width:100, },
  1523. attr:{
  1524. isHidden:true,
  1525. },
  1526. },
  1527. {
  1528. item:{key: "discountRule", title: "折扣规则编码", width:100, },
  1529. attr:{
  1530. isHidden:true,
  1531. },
  1532. },
  1533. {
  1534. item:{key: "source", title: "上游单据号", width:150, },
  1535. attr:{
  1536. isHidden:true,
  1537. },
  1538. },
  1539. // { item:{key: "sourceId", title: "上游单据ID", },},
  1540. {
  1541. item:{key: "arrivalDatePlan", title: "计划到货日期", width:100, },
  1542. attr:{
  1543. isHidden:true,
  1544. },
  1545. },
  1546. {
  1547. item:{
  1548. key: "priceType",
  1549. title: "价格类型"
  1550. , width:100,
  1551. },
  1552. attr:{
  1553. is: "el-dict-tag",
  1554. dictName: "sys_price_type",
  1555. }
  1556. },
  1557. {
  1558. item:{
  1559. key: "isDistributionPrice",
  1560. title: "配送价",
  1561. inputType: 'Checkbox',
  1562. width:80,
  1563. },
  1564. attr:{
  1565. is: "el-checkbox",
  1566. 'true-label':"Y",
  1567. 'false-label':"N",
  1568. disabled:true,
  1569. },
  1570. },
  1571. {
  1572. item:{key: "materialClassifyOneName", title: "物料一级分类", width:100, },
  1573. attr:{
  1574. isHidden:true,
  1575. },
  1576. },
  1577. {
  1578. item:{key: "materialClassifyTwoName", title: "物料二级分类", width:100, },
  1579. attr:{
  1580. isHidden:true,
  1581. },
  1582. },
  1583. {
  1584. item:{key: "materialClassifyThreeName", title: "物料三级分类", width:100, },
  1585. attr:{
  1586. isHidden:true,
  1587. },
  1588. },
  1589. {
  1590. item:{key: "materialClassifyFourName", title: "物料四级分类", width:100, },
  1591. attr:{
  1592. isHidden:true,
  1593. },
  1594. },
  1595. {
  1596. item:{ key: "goodsAllocationName", title: "货位",width:100,},
  1597. attr:{
  1598. isHidden:true,
  1599. },
  1600. },
  1601. // { item:{key: "createByName", title: "创建人",width:100, },
  1602. // { item:{key: "updateByName", title: "更新人" ,width:100,},
  1603. ].map(({ item, attr }) => ({
  1604. attr,
  1605. item: {
  1606. ...item,
  1607. sortabled: true,
  1608. fixedabled: true,
  1609. filterabled: true,
  1610. hiddenabled: true,
  1611. },
  1612. }))
  1613. },
  1614. // {
  1615. // title: '执行结果',
  1616. // key: 'puOrderExecuteList',
  1617. // tableColumns: [
  1618. // // { item:{key: "orderId", title: "采购订单ID", },
  1619. // {
  1620. // item:{key: "rowno", title: "行号",width:80, },
  1621. // attr:{
  1622. // isHidden:true,
  1623. // },
  1624. // },
  1625. // {
  1626. // item:{key: "material", title: "物料ID", width:1, },
  1627. // attr:{
  1628. // isHidden:true,
  1629. // },
  1630. // },
  1631. // {
  1632. // item:{key: "materialName", title: "物料名称", width:150, },
  1633. // attr:{
  1634. // isHidden:true,
  1635. // },
  1636. // },
  1637. // {
  1638. // item:{key: "specification", title: "规格", width:100, },
  1639. // attr:{
  1640. // isHidden:true,
  1641. // },
  1642. // },
  1643. // {
  1644. // item:{key: "qty", title: "数量",width:120, },
  1645. // attr:{
  1646. // isHidden:true,
  1647. // isSummary:true,
  1648. // },
  1649. // },
  1650. // {
  1651. // item:{key: "stroageQty", title: "累计到货主数量",width:120, },
  1652. // attr:{
  1653. // isHidden:true,
  1654. // isSummary:true,
  1655. // },
  1656. // },
  1657. // {
  1658. // item:{key: "stockQty", title: "累计入库主数量",width:120, },
  1659. // attr:{
  1660. // isHidden:true,
  1661. // isSummary:true,
  1662. // },
  1663. // },
  1664. // {
  1665. // item:{key: "invoiceQty", title: "累计开票主数量",width:120, },
  1666. // attr:{
  1667. // isHidden:true,
  1668. // isSummary:true,
  1669. // },
  1670. // },
  1671. // {
  1672. // item:{key: "rollbackQty", title: "累计退货主数量",width:120, },
  1673. // attr:{
  1674. // isHidden:true,
  1675. // isSummary:true,
  1676. // },
  1677. // },
  1678. // {
  1679. // item:{key: "backStockQty", title: "累计退库主数量",width:120, },
  1680. // attr:{
  1681. // isHidden:true,
  1682. // isSummary:true,
  1683. // },
  1684. // },
  1685. // {
  1686. // item:{key: "floatQty", title: "未到货数量",width:120, },
  1687. // attr:{
  1688. // isHidden:true,
  1689. // isSummary:true,
  1690. // },
  1691. // },
  1692. // // { item:{key: "createByName", title: "创建人", },
  1693. // // { item:{key: "updateByName", title: "更新人", },
  1694. // ].map(({ item, attr }) => ({
  1695. // attr,
  1696. // item: { ...item, hidden: true, fixed: false },
  1697. // }))
  1698. // },
  1699. ];
  1700. export const SearchColumns = [
  1701. {
  1702. item:{
  1703. key: "orderCode",
  1704. title: "订单编号",
  1705. },
  1706. attr: {
  1707. clearable:true,
  1708. is: "el-input",
  1709. placeholder:'请输入订单编号,多个使用,隔开',
  1710. },
  1711. },
  1712. {
  1713. item:{
  1714. key: "materialCode",
  1715. title: "物料编码",
  1716. },
  1717. attr: {
  1718. clearable:true,
  1719. is: "el-input",
  1720. placeholder:'请输入物料编码,多个使用,隔开',
  1721. // is: "el-popover-multiple-select-v2",
  1722. // valueKey: "code",
  1723. // referName: "MATERIAL_PARAM",
  1724. },
  1725. },
  1726. {
  1727. item:{
  1728. key: "date",
  1729. title: "订单日期",
  1730. },
  1731. attr: {
  1732. clearable:true,
  1733. is: "el-date-picker",
  1734. type: "daterange",
  1735. unlinkPanels: true,
  1736. rangeSeparator: "至",
  1737. valueFormat: "yyyy-MM-dd",
  1738. endPlaceholder: "结束日期",
  1739. startPlaceholder: "开始日期",
  1740. value: [],
  1741. },
  1742. },
  1743. {
  1744. item:{
  1745. key: "puOrgIds",
  1746. title: "采购组织",
  1747. },
  1748. attr: {
  1749. clearable:true,
  1750. is: "el-popover-multiple-select-v2",
  1751. valueKey: "id",
  1752. referName: "ORG_PARAM",
  1753. },
  1754. },
  1755. {
  1756. item:{
  1757. key: "source",
  1758. title: "订单来源",
  1759. },
  1760. attr:{
  1761. clearable:true,
  1762. is: "el-select",
  1763. dictName: "order_source",
  1764. },
  1765. },
  1766. {
  1767. item:{
  1768. key: "erpOrderCode",
  1769. title: "ERP订单号",
  1770. },
  1771. attr: {
  1772. clearable:true,
  1773. is: "el-input",
  1774. },
  1775. },
  1776. {
  1777. item:{
  1778. key: "supplierName",
  1779. title: "供应商",
  1780. },
  1781. attr: {
  1782. clearable:true,
  1783. is: "el-popover-select-v2",
  1784. valueKey: "name",
  1785. referName: "SUPPLIER_PARAM",
  1786. },
  1787. },
  1788. {
  1789. item:{
  1790. key: "customerName",
  1791. title: "收货客户",
  1792. },
  1793. attr:{
  1794. // clearable:true,
  1795. is: "el-popover-select-v2",
  1796. valueKey: "name",
  1797. referName: "CUSTOMER_PARAM",
  1798. dataMapping: {
  1799. customer: 'id',
  1800. customerName: 'name'
  1801. },
  1802. }
  1803. },
  1804. // 物料分类
  1805. {
  1806. item:{
  1807. key: "status",
  1808. title: "单据状态",
  1809. },
  1810. attr:{
  1811. clearable:true,
  1812. is: "el-select",
  1813. dictName: "documents_status",
  1814. },
  1815. },
  1816. {
  1817. item:{
  1818. key: "demandCode",
  1819. title: "采购需求单号",
  1820. },
  1821. attr: {
  1822. clearable:true,
  1823. is: "el-input",
  1824. placeholder:'请输入采购需求单号,多个使用,隔开',
  1825. },
  1826. },
  1827. {
  1828. // 生产厂家
  1829. item:{
  1830. key: "manufacturerName",
  1831. title: "生产厂家代理人",
  1832. },
  1833. attr: {
  1834. clearable:true,
  1835. is: "el-input",
  1836. },
  1837. },
  1838. {
  1839. item:{
  1840. key: "createByName",
  1841. title: "制单人",
  1842. },
  1843. attr: {
  1844. clearable:true,
  1845. is: "el-popover-select-v2",
  1846. referName: "CONTACTS_PARAM",
  1847. valueKey: "name",
  1848. },
  1849. },
  1850. {
  1851. item:{
  1852. key: "buyers",
  1853. title: "采购员",
  1854. },
  1855. attr: {
  1856. clearable:true,
  1857. is: "el-popover-multiple-select-v2",
  1858. referName: "CONTACTS_PARAM",
  1859. valueKey: "code",
  1860. },
  1861. },
  1862. {
  1863. item:{
  1864. key: "deliveryStatus",
  1865. title: "erp发送状态",
  1866. },
  1867. attr:{
  1868. clearable:true,
  1869. is: "el-select",
  1870. dictName: "order_delivery_status",
  1871. },
  1872. },
  1873. {
  1874. item: {
  1875. key: "isUrgency",
  1876. title: "紧急标识",
  1877. },
  1878. attr: {
  1879. clearable: true,
  1880. is: "el-select",
  1881. dictName: "sys_yes_no"
  1882. },
  1883. },
  1884. {
  1885. item: {
  1886. key: "isReplenishment",
  1887. title: "补单标识",
  1888. },
  1889. attr: {
  1890. clearable: true,
  1891. is: "el-select",
  1892. dictName: "sys_yes_no"
  1893. },
  1894. },
  1895. // {
  1896. // item:{
  1897. // key: "materialName",
  1898. // title: "物料名称",
  1899. // },
  1900. // attr: {
  1901. // clearable:true,
  1902. // is: "el-popover-select-v2",
  1903. // valueKey: "name",
  1904. // referName: "MATERIAL_PARAM",
  1905. // },
  1906. // },
  1907. // {
  1908. // item:{
  1909. // key: "contractNo",
  1910. // title: "合同号",
  1911. // },
  1912. // attr: {
  1913. // clearable:true,
  1914. // is: "el-input",
  1915. // },
  1916. // },
  1917. // {
  1918. // item:{
  1919. // key: "projectNowName",
  1920. // title: "在建工程项目",
  1921. // },
  1922. // attr: {
  1923. // clearable:true,
  1924. // is: "el-popover-select-v2",
  1925. // valueKey: "name",
  1926. // referName: "PROJECT_PARAM",
  1927. // },
  1928. // },
  1929. // {
  1930. // item:{
  1931. // key: "billTypes",
  1932. // title: "订单类型",
  1933. // },
  1934. // attr:{
  1935. // is: "el-select",
  1936. // multiple:true,
  1937. // tags:true,
  1938. // clearable:true,
  1939. // dictName: "sys_order_type",
  1940. // },
  1941. // },
  1942. // {
  1943. // item:{
  1944. // key: "isDrug",
  1945. // title: "物料药品属性",
  1946. // },
  1947. // attr: {
  1948. // clearable:true,
  1949. // is: "el-select",
  1950. // dictName: "sys_yes_no",
  1951. // },
  1952. // },
  1953. ].map(({ item, attr }) => ({
  1954. attr,
  1955. item: { ...item, hidden: true, span: item.span || 6 },
  1956. }));
  1957. export const judgeColumns = () =>{
  1958. let Columns = _.cloneDeep(PurColumns);
  1959. let TabColumns = _.cloneDeep(PurTabColumns);
  1960. let roles = Cookies.get('roles').split(',');
  1961. let role = roles.find(item => item === "syfz-purchaseorder") || "procurementManager";
  1962. if(role === "syfz-purchaseorder"){
  1963. // 事业发展部
  1964. // Columns = _.cloneDeep(PurColumns);
  1965. TabColumns = _.cloneDeep(CommonTabColumns);
  1966. }
  1967. return { Columns,TabColumns }
  1968. }