column.js 39 KB

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