columns.js 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586
  1. export const SearchColumns = [
  2. {
  3. item:{
  4. key: "codes",
  5. title: "物料编码",
  6. },
  7. attr:{
  8. clearable:true,
  9. is: "el-popover-multiple-select-v2",
  10. valueKey: "code",
  11. referName: "MATERIAL_PARAM",
  12. },
  13. },
  14. {
  15. item: { key: "materialCodes", title: "物料编码" },
  16. attr: {
  17. clearable: true,
  18. is: "el-input",
  19. placeholder: '多物料编码使用 , 隔开',
  20. },
  21. },
  22. {
  23. item:{
  24. key: "name",
  25. title: "物料名称",
  26. },
  27. attr:{
  28. clearable:true,
  29. is: "el-popover-select-v2",
  30. valueKey: "name",
  31. referName: "MATERIAL_PARAM",
  32. },
  33. },
  34. // diCode
  35. {
  36. item:{
  37. key: "diCode",
  38. title: "DI",
  39. },
  40. attr: {
  41. clearable:true,
  42. is: "el-input",
  43. },
  44. },
  45. {
  46. item: {
  47. key: "classifys",
  48. title: "物料分类",
  49. },
  50. attr: {
  51. is: "el-popover-multiple-tree-select",
  52. referName: "MATERIALCLASSIFY_PARAM",
  53. valueKey: "id",
  54. clearable:true,
  55. // dataMapping: {
  56. // classifys: "id",
  57. // },
  58. },
  59. },
  60. {
  61. item:{
  62. key: "puPersonnelIdName",
  63. title: "采购员",
  64. },
  65. attr: {
  66. clearable:true,
  67. is: "el-popover-select-v2",
  68. referName: "CONTACTS_PARAM",
  69. valueKey: "name",
  70. dataMapping: {
  71. puPersonnelId: "code",
  72. },
  73. },
  74. },
  75. {
  76. item:{
  77. key: "manufacturerIdName",
  78. title: "生产厂家/代理人",
  79. },
  80. attr:{
  81. clearable:true,
  82. is: "el-popover-select-v2",
  83. valueKey: "name",
  84. referName: "MANUFACTURER_PARAM",
  85. dataMapping: {
  86. manufacturerId: "id",
  87. },
  88. },
  89. },
  90. {
  91. item:{
  92. key: "isEnable",
  93. title: "启用状态",
  94. },
  95. attr:{
  96. clearable:true,
  97. is: "el-select",
  98. dictName: "material_enable",
  99. },
  100. },
  101. {
  102. item:{
  103. key: "isMedicine",
  104. title: "是否医药物料",
  105. },
  106. attr:{
  107. clearable:true,
  108. is: "el-select",
  109. dictName: "sys_number_yes_no",
  110. },
  111. },
  112. {
  113. item:{
  114. key: "medicalInstruments",
  115. title: "管理类别",
  116. },
  117. attr:{
  118. clearable:true,
  119. is: "el-select",
  120. dictName: "medical_instruments",
  121. },
  122. },
  123. {
  124. item:{
  125. key: "specification",
  126. title: "规格",
  127. },
  128. attr: {
  129. clearable:true,
  130. is: "el-input",
  131. },
  132. },
  133. {
  134. item:{
  135. key: "model",
  136. title: "型号",
  137. },
  138. attr: {
  139. clearable:true,
  140. is: "el-input",
  141. },
  142. },
  143. // {
  144. // item:{
  145. // key: "model",
  146. // title: "品牌",
  147. // },
  148. // attr: {
  149. // clearable:true,
  150. // is: "el-input",
  151. // },
  152. // },
  153. {
  154. item:{
  155. key: "version",
  156. title: "版本号",
  157. },
  158. attr: {
  159. clearable:true,
  160. is: "el-input",
  161. },
  162. },
  163. {
  164. item:{
  165. key: "registrant",
  166. title: "注册人",
  167. },
  168. attr: {
  169. clearable:true,
  170. is: "el-input",
  171. },
  172. },
  173. {
  174. item:{
  175. key: "registrationNo",
  176. title: "注册证号",
  177. },
  178. attr: {
  179. clearable:true,
  180. is: "el-input",
  181. },
  182. },
  183. {
  184. item:{
  185. key: "serialNoManager",
  186. title: "是否序列号管理",
  187. },
  188. attr:{
  189. clearable:true,
  190. is: "el-select",
  191. dictName: "sys_number_yes_no",
  192. },
  193. },
  194. {
  195. item:{
  196. key: "createByName",
  197. title: "创建人",
  198. },
  199. attr: {
  200. clearable:true,
  201. is: "el-popover-select-v2",
  202. referName: "CONTACTS_PARAM",
  203. valueKey: "name",
  204. dataMapping: {
  205. createBy: "code",
  206. },
  207. },
  208. },
  209. {
  210. item:{
  211. key: "updateByName",
  212. title: "最后修改人",
  213. },
  214. attr: {
  215. clearable:true,
  216. is: "el-popover-select-v2",
  217. referName: "CONTACTS_PARAM",
  218. valueKey: "name",
  219. dataMapping: {
  220. updateBy: "code",
  221. },
  222. },
  223. },
  224. {
  225. item:{
  226. key: "createTimeQueue",
  227. title: "创建时间",
  228. span:12,
  229. },
  230. attr: {
  231. clearable:true,
  232. is: "el-date-wrapper",
  233. },
  234. },
  235. // {
  236. // item:{
  237. // key: "createTimeEnd",
  238. // title: "创建时间结束",
  239. // },
  240. // attr: {
  241. // clearable:true,
  242. // is: "el-input",
  243. // },
  244. // },
  245. {
  246. item:{
  247. key: "updateTimeQueue",
  248. title: "修改时间",
  249. span:12,
  250. },
  251. attr: {
  252. clearable:true,
  253. is: "el-date-wrapper",
  254. },
  255. },
  256. // {
  257. // item:{
  258. // key: "updateTimeBegin",
  259. // title: "最后修改时间开始",
  260. // },
  261. // attr: {
  262. // clearable:true,
  263. // is: "el-input",
  264. // },
  265. // },
  266. // {
  267. // item:{
  268. // key: "updateTimeEnd",
  269. // title: "最后修改时间结束",
  270. // },
  271. // attr: {
  272. // clearable:true,
  273. // is: "el-input",
  274. // },
  275. // },
  276. ];
  277. export const OtherDictColumns = [
  278. {
  279. item:{
  280. key:"expiryUnitId",
  281. title:'效期单位',
  282. },
  283. attr:{
  284. is: "el-select",
  285. dictName: "period_unit",
  286. }
  287. },
  288. {
  289. item:{
  290. key:'usefulLifeUnitId',
  291. title:'有效期至单位',
  292. },
  293. attr:{
  294. is: "el-select",
  295. dictName: "expiry_date",
  296. }
  297. },
  298. {
  299. item:{
  300. key: "registrant",
  301. title: "注册人/备案人/上市许可持有人",
  302. },
  303. attr: {
  304. clearable:true,
  305. is: "el-input",
  306. },
  307. },
  308. {
  309. item:{
  310. key: "isSync",
  311. title: "是否同步NC",
  312. },
  313. attr:{
  314. clearable:true,
  315. is: "el-select",
  316. dictName: "sys_number_yes_no",
  317. },
  318. },
  319. {
  320. item:{
  321. key: "storageCondition",
  322. title: "存储条件",
  323. },
  324. attr:{
  325. clearable:true,
  326. is: "el-select",
  327. dictName: "sys_storage_condition",
  328. },
  329. },
  330. {
  331. item:{
  332. key: "transportationCondition",
  333. title: "运输条件",
  334. },
  335. attr:{
  336. clearable:true,
  337. is: "el-select",
  338. dictName: "sys_conditions_carriage",
  339. },
  340. },
  341. {
  342. item:{
  343. key:'classifyAbc',
  344. title:'ABC分类',
  345. },
  346. attr:{
  347. clearable:true,
  348. is: "el-select",
  349. dictName: "abc_type",
  350. }
  351. },
  352. ]
  353. export const SearchColumnsExtend = [
  354. {
  355. item:{
  356. key: "codes",
  357. title: "物料编码",
  358. },
  359. attr:{
  360. clearable:true,
  361. is: "el-popover-multiple-select-v2",
  362. valueKey: "code",
  363. referName: "MATERIAL_PARAM",
  364. },
  365. },
  366. {
  367. item:{
  368. key: "name",
  369. title: "物料名称",
  370. },
  371. attr:{
  372. clearable:true,
  373. is: "el-popover-select-v2",
  374. valueKey: "name",
  375. referName: "MATERIAL_PARAM",
  376. },
  377. },
  378. {
  379. item:{
  380. key: "diCode",
  381. title: "DI",
  382. },
  383. attr: {
  384. clearable:true,
  385. is: "el-input",
  386. },
  387. },
  388. {
  389. item:{
  390. key: "puPersonnelIdName",
  391. title: "采购员",
  392. },
  393. attr: {
  394. clearable:true,
  395. is: "el-popover-select-v2",
  396. referName: "CONTACTS_PARAM",
  397. valueKey: "name",
  398. dataMapping: {
  399. puPersonnelId: "code",
  400. },
  401. },
  402. },
  403. {
  404. item:{
  405. key: "manufacturerIdName",
  406. title: "生产厂家/代理人",
  407. },
  408. attr:{
  409. clearable:true,
  410. is: "el-popover-select-v2",
  411. valueKey: "name",
  412. referName: "MANUFACTURER_PARAM",
  413. dataMapping: {
  414. manufacturerId: "id",
  415. },
  416. },
  417. },
  418. {
  419. item:{
  420. key: "isEnable",
  421. title: "启用状态",
  422. },
  423. attr:{
  424. clearable:true,
  425. is: "el-select",
  426. dictName: "material_enable",
  427. },
  428. },
  429. {
  430. item:{
  431. key: "isMedicine",
  432. title: "是否医药物料",
  433. },
  434. attr:{
  435. clearable:true,
  436. is: "el-select",
  437. dictName: "sys_number_yes_no",
  438. },
  439. },
  440. {
  441. item:{
  442. key: "medicalInstruments",
  443. title: "管理类别",
  444. },
  445. attr:{
  446. clearable:true,
  447. is: "el-select",
  448. dictName: "medical_instruments",
  449. },
  450. },
  451. {
  452. item:{
  453. key: "specification",
  454. title: "规格",
  455. },
  456. attr: {
  457. clearable:true,
  458. is: "el-input",
  459. },
  460. },
  461. {
  462. item:{
  463. key: "model",
  464. title: "型号",
  465. },
  466. attr: {
  467. clearable:true,
  468. is: "el-input",
  469. },
  470. },
  471. {
  472. item:{
  473. key: "version",
  474. title: "版本号",
  475. },
  476. attr: {
  477. clearable:true,
  478. is: "el-input",
  479. },
  480. },
  481. {
  482. item:{
  483. key: "registrant",
  484. title: "注册人",
  485. },
  486. attr: {
  487. clearable:true,
  488. is: "el-input",
  489. },
  490. },
  491. {
  492. item:{
  493. key: "registrationNo",
  494. title: "注册证号",
  495. },
  496. attr: {
  497. clearable:true,
  498. is: "el-input",
  499. },
  500. },
  501. {
  502. item:{
  503. key: "serialNoManager",
  504. title: "是否序列号管理",
  505. },
  506. attr:{
  507. clearable:true,
  508. is: "el-select",
  509. dictName: "sys_number_yes_no",
  510. },
  511. },
  512. {
  513. item:{
  514. key: "createByName",
  515. title: "创建人",
  516. },
  517. attr: {
  518. clearable:true,
  519. is: "el-popover-select-v2",
  520. referName: "CONTACTS_PARAM",
  521. valueKey: "name",
  522. dataMapping: {
  523. createBy: "code",
  524. },
  525. },
  526. },
  527. {
  528. item:{
  529. key: "updateByName",
  530. title: "最后修改人",
  531. },
  532. attr: {
  533. clearable:true,
  534. is: "el-popover-select-v2",
  535. referName: "CONTACTS_PARAM",
  536. valueKey: "name",
  537. dataMapping: {
  538. updateBy: "code",
  539. },
  540. },
  541. },
  542. {
  543. item:{
  544. key: "createTimeQueue",
  545. title: "创建时间",
  546. span:12,
  547. },
  548. attr: {
  549. clearable:true,
  550. is: "el-date-wrapper",
  551. },
  552. },
  553. {
  554. item:{
  555. key: "updateTimeQueue",
  556. title: "修改时间",
  557. span:12,
  558. },
  559. attr: {
  560. clearable:true,
  561. is: "el-date-wrapper",
  562. },
  563. }
  564. ];