column.js 40 KB

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