column.js 25 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013
  1. export const Columns = [
  2. {
  3. key: "puOrgName",
  4. title: "采购组织",
  5. inputType: "PopoverSelect",
  6. valueKey: "id",
  7. referName: "ORG_PARAM",
  8. dataMapping: {
  9. puOrg: "id",
  10. puOrgName: "name",
  11. },
  12. queryParams: () => ({}),
  13. require: true,
  14. isShow:true,
  15. },
  16. {
  17. key: "billType",
  18. title: "订单类型",
  19. inputType: "Select",
  20. referName: "sys_order_type", // 字典名
  21. isShow:true,
  22. require: true,
  23. },
  24. {
  25. key: "oaDemandNo",
  26. title: "OA需求单号",
  27. inputType: "Input",
  28. isShow:true,
  29. },
  30. {
  31. key: "erpOrderCode",
  32. title: "erp订单编号",
  33. inputType: "Input",
  34. readonly: true,
  35. disabled: true,
  36. isShow:true,
  37. },
  38. {
  39. key: "code",
  40. title: "订单编号",
  41. inputType: "Input",
  42. readonly: true,
  43. disabled: true,
  44. isShow:true,
  45. },
  46. {
  47. key: "billDate",
  48. title: "订单日期",
  49. inputType: "DatePicker",
  50. valueFormat: "yyyy-MM-dd",
  51. width: 200,
  52. isShow:true,
  53. },
  54. {
  55. key: "supplierName",
  56. title: "供应商",
  57. inputType: "PopoverSelect",
  58. valueKey: "id",
  59. referName: "SUPPLIER_PARAM",
  60. dataMapping: {
  61. supplier: "id",
  62. supplierName: "name",
  63. },
  64. queryParams: () => ({}),
  65. require: true,
  66. isShow:true,
  67. },
  68. {
  69. key: "paymentAgreementName",
  70. title: "付款协议",
  71. inputType: "PopoverSelect",
  72. valueKey: "id",
  73. referName: "PAYAGREEMENT_PARAM",
  74. dataMapping: {
  75. paymentAgreement: 'id',
  76. paymentAgreementName: 'name'
  77. },
  78. queryParams: () => ({}),
  79. isShow:true,
  80. require: true,
  81. },
  82. {
  83. key: "finalTypeName",
  84. title: "结算方式",
  85. inputType: "PopoverSelect",
  86. valueKey: "id",
  87. referName: "BALATYPE_PARAM",
  88. dataMapping: {
  89. finalType: 'id',
  90. finalTypeName: 'name'
  91. },
  92. queryParams: () => ({}),
  93. isShow:true,
  94. disabled:true,
  95. },
  96. {
  97. key: "buyerName",
  98. title: "采购员",
  99. inputType: "PopoverSelect",
  100. valueKey: "code",
  101. referName: "CONTACTS_PARAM",
  102. dataMapping: {
  103. buyer: 'code',
  104. buyerName: 'name'
  105. },
  106. queryParams: () => ({}),
  107. require: true,
  108. isShow:true,
  109. },
  110. {
  111. key: "puDeptName",
  112. title: "采购部门",
  113. inputType: "PopoverSelect",
  114. valueKey: "id",
  115. referName: "DEPT_PARAM",
  116. dataMapping: {
  117. puDept: 'id',
  118. puDeptName: 'name'
  119. },
  120. queryParams: () => ({}),
  121. require: true,
  122. isShow:true,
  123. },
  124. {
  125. key: "customerName",
  126. title: "收货客户",
  127. inputType: "PopoverSelect",
  128. width: 200,
  129. valueKey: "id",
  130. referName: "CUSTOMER_PARAM",
  131. dataMapping: {
  132. customer: 'id',
  133. customerName: 'name'
  134. },
  135. queryParams: () => ({}),
  136. isShow:true,
  137. },
  138. {
  139. key: "qty",
  140. title: "总数量",
  141. inputType: "InputNumber",
  142. controlsPosition: "right",
  143. isShow:true,
  144. disabled:true,
  145. },
  146. {
  147. key: "originalQty",
  148. title: "原始总数量",
  149. inputType: "InputNumber",
  150. controlsPosition: "right",
  151. isShow:true,
  152. disabled:true,
  153. },
  154. {
  155. key: "money",
  156. title: "价税合计",
  157. inputType: "InputNumber",
  158. controlsPosition: "right",
  159. precision:2,
  160. isShow:true,
  161. disabled:true,
  162. },
  163. {
  164. key: "originalMoney",
  165. title: "原始总金额",
  166. inputType: "InputNumber",
  167. controlsPosition: "right",
  168. precision:2,
  169. isShow:true,
  170. disabled:true,
  171. },
  172. {
  173. key: "notaxMoney",
  174. title: "无税金额",
  175. inputType: "InputNumber",
  176. controlsPosition: "right",
  177. precision:2,
  178. isShow:true,
  179. disabled:true,
  180. },
  181. {
  182. key: "status",
  183. title: "单据状态",
  184. inputType: "Select",
  185. referName: "documents_status", // 字典名
  186. disabled: true,
  187. isShow:true,
  188. },
  189. // { key: "freezeCause", title: "冻结原因", inputType: "Checkbox", isShow:true, },
  190. { key: "isBack", title: "退货", inputType: "Input", inputType: "Checkbox", isShow:true,},
  191. // { key: "isMarketing", title: "已协同生成销售订单", inputType: "Checkbox", isShow:true,},
  192. // { key: "isMarketingSource", title: "由销售订单协同生成", inputType: "Checkbox", isShow:true,},
  193. {
  194. key: "warehouseName",
  195. title: "WMS入库仓库",
  196. inputType: "PopoverSelect",
  197. valueKey: "id",
  198. referName: "WAREHOUSE_PARAM",
  199. dataMapping: {
  200. warehouse: 'id',
  201. warehouseName: 'name'
  202. },
  203. queryParams: (params) => ({
  204. pkOrg: params.puOrg,
  205. }),
  206. isShow:true,
  207. require: true,
  208. },
  209. {
  210. key: "goodsAllocationName",
  211. title: "货位",
  212. inputType: "PopoverSelect",
  213. valueKey: "id",
  214. referName: "ALLOCATION_PARAM",
  215. dataMapping: {
  216. goodsAllocation: 'id',
  217. goodsAllocationName: 'name'
  218. },
  219. isShow:true,
  220. queryParams: (params) => ({
  221. stordocId: params.warehouse,
  222. }),
  223. width: 200,
  224. },
  225. // { key: "isSendSrm", title: "是否同步SRM", inputType: "Checkbox",isShow:true, },
  226. {
  227. key: "isInvoice",
  228. title: "发票标识",
  229. inputType: "Checkbox",
  230. isShow:true,
  231. disabled:true,
  232. },
  233. { key: "supplierOrderNo", title: "供应商订单号", inputType: "Input",isShow:true, },
  234. {
  235. key: "rebateMoney",
  236. title: "订单使用返利金额",
  237. inputType: "InputNumber",
  238. controlsPosition: "right",
  239. precision:2,
  240. isShow:true,
  241. },
  242. {
  243. key: "deductionMoney",
  244. title: "订单抵扣余款金额",
  245. inputType: "InputNumber",
  246. controlsPosition: "right",
  247. precision:2,
  248. isShow:true,
  249. },
  250. {
  251. key: "goodsWarehouseName",
  252. title: "收货仓库",
  253. inputType: "Input",
  254. isShow:true,
  255. disabled:true,
  256. require: true,
  257. },
  258. {
  259. key: "address",
  260. title: "收货地址",
  261. inputType: "PopoverSelect",
  262. valueKey: "address",
  263. referName: "ADDRESS_PARAM",
  264. require: true,
  265. isShow:true,
  266. dataMapping: {
  267. // address: 'address',
  268. // addressName: '',
  269. goodsWarehouse:'id',
  270. goodsWarehouseName:'name',
  271. contacts:'contactsName',
  272. contactsPhone:'contactsPhone'
  273. },
  274. queryParams: () => ({}),
  275. width: 180
  276. },
  277. {
  278. key: "contacts",
  279. title: "收货联系人",
  280. inputType: "Input",
  281. isShow:true,
  282. disabled:true,
  283. },
  284. {
  285. key: "contactsPhone",
  286. title: "收货联系人电话",
  287. inputType: "Input",
  288. isShow:true,
  289. disabled:true,
  290. },
  291. {
  292. key: "customerDeptName",
  293. title: "客户部门",
  294. inputType: "PopoverSelect",
  295. width: 200,
  296. valueKey: "id",
  297. referName: "CUSTOMERDEPT_PARAM",
  298. dataMapping: {
  299. customerDept: 'id',
  300. customerDeptName: 'name'
  301. },
  302. isShow:true,
  303. queryParams: () => ({}),
  304. },
  305. {
  306. key: "supplierContactsName",
  307. title: "供应商业务联系人",
  308. inputType: "PopoverSelect",
  309. valueKey: "id",
  310. referName: "SUPPLIERCONTACTS_PARAM",
  311. dataMapping: {
  312. supplierContacts: 'id',
  313. supplierContactsName: 'name'
  314. },
  315. isShow:true,
  316. queryParams: (params) => ({
  317. supplierId:params.supplier
  318. }),
  319. width: 200,
  320. },
  321. {
  322. key: "isUrgency",
  323. title: "紧急程度",
  324. inputType: "Checkbox",
  325. isShow:true,
  326. disabled:true,
  327. },
  328. {
  329. key: "isSendWms",
  330. title: "已同步WMS",
  331. inputType: "Checkbox",
  332. isShow:true,
  333. disabled:true,
  334. },
  335. // { key: "agent", title: "代理人", inputType: "Input", }, // 建议删除
  336. {
  337. key: "agentName",
  338. title: "代理人",
  339. inputType: "PopoverSelect",
  340. valueKey: "code",
  341. referName: "CONTACTS_PARAM",
  342. dataMapping: {
  343. agent: 'code',
  344. agentName: 'name'
  345. },
  346. isShow:true,
  347. queryParams: () => ({}),
  348. width: 200,
  349. },
  350. {
  351. key: "isClose",
  352. title: "最终关闭",
  353. inputType: "Checkbox",
  354. isShow:true,
  355. disabled:true,
  356. },
  357. {
  358. key: "closeTime",
  359. title: "最终关闭日期",
  360. inputType: "DatePicker",
  361. valueFormat: "yyyy-MM-dd",
  362. isShow:true,
  363. disabled:true,
  364. },
  365. {
  366. key: "applyPaymentMoney",
  367. title: "累计付款申请金额",
  368. inputType: "InputNumber",
  369. controlsPosition: "right",
  370. precision:2,
  371. isShow:true,
  372. disabled:true,
  373. },
  374. {
  375. key: "paymentMoney",
  376. title: "累计付款金额",
  377. inputType: "InputNumber",
  378. controlsPosition: "right",
  379. precision:2,
  380. isShow:true,
  381. },
  382. {
  383. key: "invoiceMoney",
  384. title: "发票金额",
  385. inputType: "InputNumber",
  386. controlsPosition: "right",
  387. precision:2,
  388. isShow:true,
  389. },
  390. {
  391. key: "supplierPersonalName",
  392. title: "供应商业务员",
  393. inputType: "PopoverSelect",
  394. valueKey: "id",
  395. // referName: "SUPPLIERCONTACTS_PARAM",
  396. referName: "PSNLICENSE_PARAM",
  397. dataMapping: {
  398. supplierPersonal: 'id',
  399. supplierPersonalName: 'name'
  400. },
  401. isShow:true,
  402. queryParams: (params) => ({
  403. // 组织、供应商id
  404. pkOrg: params.puOrg,
  405. supplierId:params.supplier
  406. }),
  407. },
  408. // { key: "isDeliver", title: "是否发货", inputType: "Checkbox", isShow:true,},
  409. {
  410. key: "retReasonName",
  411. title: "退换原因",
  412. inputType: "PopoverSelect",
  413. valueKey: "id",
  414. referName: "RETREASON_PARAM",
  415. dataMapping: {
  416. retReason: 'id',
  417. retReasonName: 'name'
  418. },
  419. isShow:true,
  420. queryParams: () => ({}),
  421. },
  422. {
  423. key: "processTypeName",
  424. title: "处理方式",
  425. inputType: "PopoverSelect",
  426. valueKey: "id",
  427. referName: "PROCESSTYPE_PARAM",
  428. dataMapping: {
  429. processType: 'id',
  430. processTypeName: 'name'
  431. },
  432. isShow:true,
  433. queryParams: () => ({}),
  434. },
  435. { key: "isEnd", title: "整单关闭标识", inputType: "Checkbox", isShow:true, },
  436. {
  437. key: "projectNowName",
  438. title: "在建工程项目",
  439. inputType: "PopoverSelect",
  440. valueKey: "id",
  441. referName: "PROJECT_PARAM",
  442. dataMapping: {
  443. projectNow: 'id',
  444. projectNowName: 'name'
  445. },
  446. isShow:true,
  447. queryParams: () => ({}),
  448. },
  449. {
  450. key: "operatingItemsName",
  451. title: "经营性项目",
  452. inputType: "PopoverSelect",
  453. valueKey: "id",
  454. referName: "OPERATING_PARAM",
  455. dataMapping: {
  456. operatingItems: 'id',
  457. operatingItemsName: 'name'
  458. },
  459. isShow:true,
  460. queryParams: () => ({}),
  461. },
  462. { key: "isArrivalReson", title: "到货超期原因", inputType: "Input", isShow:true, },
  463. { key: "midOrderNo", title: "中台采购订单号", inputType: "Input", isShow:true, },
  464. { key: "marketingCode", title: "销售订单号", inputType: "Input", isShow:true, },
  465. { key: "isArrival", title: "到货超期", inputType: "Checkbox", isShow:true,},
  466. { key: "createByName", title: "创建人", inputType: "Input", isShow:false, },
  467. {
  468. key: "approveTime",
  469. title: "提交时间",
  470. inputType: "DatePicker",
  471. valueFormat: "yyyy-MM-dd",
  472. isShow:false,
  473. },
  474. { key: "approverName", title: "审批人", inputType: "Input", isShow:false, },
  475. {
  476. key: "approverFinishTime",
  477. title: "审批时间",
  478. inputType: "DatePicker",
  479. valueFormat: "yyyy-MM-dd",
  480. isShow:false,
  481. },
  482. { key: "updateByName", title: "更新人", inputType: "Input", isShow:false, },
  483. // { key: "flowId", title: "OA流程ID", inputType: "Input", isShow:false, },
  484. {
  485. key: "sysFileRecordList",
  486. title: "附件",
  487. inputType: "Upload",
  488. // fileType: ["pdf",""],
  489. span: 24,
  490. isShow:true,
  491. },
  492. {
  493. key: "remark",
  494. title: "备注",
  495. inputType: "Textarea",
  496. isShow:true,
  497. },
  498. ];
  499. // export const initColumns = () => columns;
  500. export const TabColumns = [
  501. {
  502. title: '物料信息',
  503. key: 'puOrderItemList',
  504. tableColumns: [
  505. {
  506. key: "rowNo",
  507. title: "行号",
  508. inputType: "Input",
  509. disabled:true,
  510. require:false,
  511. },
  512. {
  513. key: "demandCode",
  514. title:"采购需求单号",
  515. inputType: "Input",
  516. width: 180,
  517. disabled:true,
  518. require:false,
  519. },
  520. // { key: "orderId", title: "采购订单ID", inputType: "Input", width: 180 },
  521. // {key: "material",title: "物料",inputType: "Input", },
  522. {
  523. key: "materialName",
  524. title: "物料",
  525. inputType: "PopoverSelect",
  526. width: 180,
  527. require: true,
  528. valueKey: "id",
  529. referName: "MATERIAL_PARAM",
  530. dataMapping: {
  531. material: "id",
  532. materialName: "name",
  533. materialCode: "code",
  534. // materialClassify:'classifyIdName',
  535. materialManufacturersCode:'manufacturersMaterialCode',
  536. specification:'specification',
  537. model:'model',
  538. isMedcine:'isMedicineValue',
  539. manufacturer:'manufacturerId',
  540. manufacturerName:'manufacturerIdName',
  541. unit:'unitId',
  542. unitName:'unitIdName',
  543. // tax:'materialRateName',
  544. storageCondition:'storageCondition',
  545. carriageCondition:'transportationCondition',
  546. materialClassifyOneName:'oneClass',
  547. materialClassifyTwoName:'twoClass',
  548. materialClassifyThreeName:'threeClass',
  549. materialClassifyFourName:'fourClass',
  550. registration:'registrationNo',
  551. isDrug:'isDrug',
  552. },
  553. queryParams: () => ({}),
  554. },
  555. {
  556. key: "materialCode",
  557. title: "物料编码",
  558. inputType: "Input",
  559. require: true,
  560. width: 180,
  561. disabled:true,
  562. readonly:true,
  563. },
  564. // { //classifyIdName classifyId
  565. // key: "materialClassify",
  566. // title: "物料分类",
  567. // inputType: "Input",
  568. // width: 180,
  569. // disabled:true,
  570. // readonly:true,
  571. // },
  572. { // manufacturersMaterialCode manufacturersMaterialName
  573. key: "materialManufacturersCode",
  574. title: "厂家物料编码",
  575. inputType: "Input",
  576. width: 180,
  577. disabled:true,
  578. readonly:true,
  579. },
  580. { //specification
  581. key: "specification",
  582. title: "规格",
  583. inputType: "Input",
  584. width: 180 ,
  585. disabled:true,
  586. readonly:true,
  587. },
  588. { //model
  589. key: "model",
  590. title: "型号",
  591. inputType: "Input",
  592. disabled:true,
  593. readonly:true,
  594. },
  595. { //isMedicine isMedicineValue
  596. key: "isMedcine",
  597. title: "医药物料",
  598. inputType: "Checkbox",
  599. disabled:true,
  600. readonly:true,
  601. },
  602. { // manufacturerId manufacturerIdName
  603. key: "manufacturerName",
  604. title: "生产厂家代理人",
  605. inputType: "Input",
  606. width: 180,
  607. disabled:true,
  608. readonly:true,
  609. },
  610. {
  611. key: "isDrug",
  612. title: "物料药品属性",
  613. inputType: "Checkbox",
  614. disabled:true,
  615. },
  616. { //unitId unitIdName
  617. key: "unitName",
  618. title: "单位",
  619. inputType: "Input",
  620. disabled:true,
  621. readonly:true,
  622. },
  623. {
  624. key: "qty",
  625. title: "数量",
  626. inputType: "InputNumber",
  627. controlsPosition: "right",
  628. width: 120,
  629. require: true,
  630. },
  631. {
  632. key: "currencyName",
  633. title: "币种",
  634. inputType: "PopoverSelect",
  635. valueKey: "id",
  636. referName: "CURRENCY_PARAM",
  637. dataMapping: {
  638. currency: 'id',
  639. currencyName: 'name'
  640. },
  641. queryParams: () => ({}),
  642. width: 180,
  643. },
  644. {
  645. key: "priceType",
  646. title: "价格类型",
  647. inputType: "Select",
  648. referName: "sys_price_type", // 字典名
  649. width: 180,
  650. },
  651. {
  652. key: "taxPrice",
  653. title: "含税单价",
  654. inputType: "InputNumber",
  655. controlsPosition: "right",
  656. precision:2,
  657. require: true,
  658. disabled:true,
  659. width: 180,
  660. },
  661. {
  662. key: "money",
  663. title: "价税合计",
  664. inputType: "InputNumber",
  665. controlsPosition: "right",
  666. precision:2,
  667. disabled:true,
  668. width: 180,
  669. },
  670. { //materialRate materialRateName
  671. key: "tax",
  672. title: "税率",
  673. // inputType: "Input",
  674. inputType: "InputNumber",
  675. controlsPosition: "right",
  676. precision:2,
  677. disabled:true,
  678. width: 180,
  679. },
  680. {
  681. key: "taxDeductMoneya",
  682. title: "折扣金额",
  683. inputType: "InputNumber",
  684. controlsPosition: "right",
  685. precision:2,
  686. disabled:true,
  687. width: 180,
  688. },
  689. {
  690. key: "arrivalQty",
  691. title: "已到货数量",
  692. inputType: "InputNumber",
  693. controlsPosition: "right",
  694. disabled:true,
  695. width: 180,
  696. },
  697. {
  698. key: "unarrivedQty",
  699. title: "未到货数量",
  700. inputType: "InputNumber",
  701. controlsPosition: "right",
  702. disabled:true,
  703. width: 180,
  704. },
  705. {
  706. key: "price",
  707. title: "无税单价",
  708. inputType: "InputNumber",
  709. controlsPosition: "right",
  710. precision:2,
  711. disabled:true,
  712. width: 180,
  713. },
  714. {
  715. key: "notaxMoney",
  716. title: "无税金额",
  717. inputType: "InputNumber",
  718. controlsPosition: "right",
  719. precision:2,
  720. disabled:true,
  721. width: 180,
  722. },
  723. // { key: "priceSource", title: "价格目录ID", inputType: "Input", },
  724. { key: "isStorage", title: "入库关闭", inputType: "Checkbox", disabled:true, },
  725. { key: "isInvoice", title: "开票关闭", inputType: "Checkbox", disabled:true, },
  726. { key: "isArrival", title: "到货关闭", inputType: "Checkbox", disabled:true,},
  727. { key: "isPayment", title: "付款关闭", inputType: "Checkbox", disabled:true, },
  728. { key: "isGift", title: "赠品", inputType: "Checkbox", },
  729. {
  730. key: "goodsWarehouseName",
  731. title: "收货仓库",
  732. inputType: "Input",
  733. width: 200,
  734. disabled:true,
  735. },
  736. // { key: "place", title: "收货地点", inputType: "Input", width: 180 },
  737. {
  738. key: "address",
  739. title: "收货地址",
  740. inputType: "PopoverSelect",
  741. valueKey: "address",
  742. referName: "ADDRESS_PARAM",
  743. width: 180,
  744. dataMapping:{
  745. // address: 'address',
  746. // addressName: '',
  747. goodsWarehouse:'id',
  748. goodsWarehouseName:'name',
  749. contacts:'contactsName',
  750. contactsPhone:'contactsPhone'
  751. }
  752. },
  753. {
  754. key: "customerName",
  755. title: "收货客户",
  756. inputType: "PopoverSelect",
  757. valueKey: "id",
  758. referName: "CUSTOMER_PARAM",
  759. width: 180,
  760. dataMapping:{
  761. customer:'id',
  762. customerName:'name',
  763. },
  764. },
  765. { key: "productBatch", title: "产品批号", inputType: "Input", width: 180 },
  766. { key: "manufactureDate", title: "生产日期", inputType: "Input", width: 180 },
  767. {
  768. key: "efficacyLoseDate",
  769. title: "有效期至/失效日期",
  770. inputType: "Input",
  771. width: 180
  772. },
  773. {
  774. key: "approvalNumber",
  775. title: "批准文号",
  776. inputType: "Input",
  777. width: 180
  778. },
  779. {
  780. key: "registration",
  781. title: "注册证号",
  782. inputType: "Input",
  783. width: 180 ,
  784. disabled:true,
  785. },
  786. { //storageCondition storageConditionName
  787. key: "storageCondition",
  788. title: "存储条件",
  789. inputType: "Select",
  790. referName: "sys_storage_condition", // 字典名
  791. width: 180,
  792. disabled:true,
  793. readonly:true,
  794. },
  795. { // transportationCondition transportationConditionName
  796. key: "carriageCondition",
  797. title: "运输条件",
  798. inputType: "Select",
  799. referName: "sys_conditions_carriage", // 字典名
  800. width: 180,
  801. disabled:true,
  802. readonly:true,
  803. },
  804. { key: "isBatchLock", title: "批号锁定标识", inputType: "Checkbox", },
  805. { key: "isReplenishment", title: "补单标识", inputType: "Checkbox", },
  806. { key: "isUrgency", title: "紧急标识", inputType: "Checkbox", },
  807. {
  808. key: "originalQty",
  809. title: "原始数量",
  810. inputType: "InputNumber",
  811. controlsPosition: "right",
  812. disabled:true,
  813. width: 180 ,
  814. },
  815. {
  816. key: "originalMoney",
  817. title: "原始金额",
  818. inputType: "InputNumber",
  819. controlsPosition: "right",
  820. precision:2,
  821. disabled:true,
  822. width: 180,
  823. },
  824. { key: "directProductBatch", title: "直运产品批号", inputType: "Input", width: 180 },
  825. { key: "discountRule", title: "折扣规则编码", inputType: "Input", width: 180 },
  826. {
  827. key: "reservedQty",
  828. title: "预留数量",
  829. inputType: "InputNumber",
  830. controlsPosition: "right",
  831. width: 180 ,
  832. },
  833. { key: "reservedPeriod", title: "预留周期", inputType: "Input", },
  834. {
  835. key: "taxDeductClassify",
  836. title: "扣税类别",
  837. inputType: "Select",
  838. referName: "tax_deduction_category", // 字典名
  839. width: 180,
  840. },
  841. { key: "exchangeRate", title: "折本汇率", inputType: "Input", },
  842. { key: "source", title: "上游单据号", inputType: "Input", width: 180 },
  843. { key: "sourceId", title: "上游单据ID", inputType: "Input", width: 180 },
  844. { key: "demandCode", title: "采购需求单号", inputType: "Input", width: 180 },
  845. { key: "arrivalDatePlan", title: "计划到货日期", inputType: "Input", width: 180 },
  846. { key: "isDistributionPrice", title: "配送价", inputType: "Checkbox", },
  847. { //threeClass
  848. key: "materialClassifyOneName",
  849. title: "物料一级分类",
  850. inputType: "Input",
  851. width: 180,
  852. disabled:true,
  853. readonly:true,
  854. },
  855. { //twoClass
  856. key: "materialClassifyTwoName",
  857. title: "物料二级分类",
  858. inputType: "Input",
  859. width: 180,
  860. disabled:true,
  861. readonly:true,
  862. },
  863. { //threeClass
  864. key: "materialClassifyThreeName",
  865. title: "物料三级分类",
  866. inputType: "Input",
  867. width: 180,
  868. disabled:true,
  869. readonly:true,
  870. },
  871. { //fourClass
  872. key: "materialClassifyFourName",
  873. title: "物料四级分类",
  874. inputType: "Input",
  875. width: 180,
  876. disabled:true,
  877. readonly:true,
  878. },
  879. { key: "createByName", title: "创建人", inputType: "Input", },
  880. { key: "updateByName", title: "更新人", inputType: "Input", },
  881. ]
  882. },
  883. {
  884. title: '执行结果',
  885. key: 'puOrderExecuteList',
  886. tableColumns: [
  887. // { key: "orderId", title: "采购订单ID", inputType: "Input", width: 180 },
  888. {
  889. key: "rowno",
  890. title: "行号",
  891. inputType: "Input",
  892. disabled:true,
  893. require:false,
  894. },
  895. {
  896. key: "materialName",
  897. title: "物料",
  898. inputType: "PopoverSelect",
  899. width: 180,
  900. require: true,
  901. valueKey: "id",
  902. referName: "MATERIAL_PARAM",
  903. dataMapping: {
  904. material: "id",
  905. materialName: "name",
  906. materialCode: "code",
  907. // materialClassify:'classifyIdName',
  908. materialManufacturersCode:'manufacturersMaterialCode',
  909. specification:'specification',
  910. model:'model',
  911. isMedcine:'isMedicineValue',
  912. manufacturer:'manufacturerId',
  913. manufacturerName:'manufacturerIdName',
  914. unit:'unitId',
  915. unitName:'unitIdName',
  916. // tax:'materialRateName',
  917. storageCondition:'storageCondition',
  918. carriageCondition:'transportationCondition',
  919. materialClassifyOneName:'oneClass',
  920. materialClassifyTwoName:'twoClass',
  921. materialClassifyThreeName:'threeClass',
  922. materialClassifyFourName:'fourClass',
  923. registration:'registrationNo',
  924. isDrug:'isDrug',
  925. },
  926. queryParams: () => ({}),
  927. width:180,
  928. },
  929. {
  930. key: "specification",
  931. title: "规格",
  932. inputType: "Input",
  933. disabled:true,
  934. readonly:true,
  935. },
  936. {
  937. key: "qty",
  938. title: "数量",
  939. inputType: "InputNumber",
  940. controlsPosition: "right",
  941. width: 180,
  942. require: true,
  943. },
  944. {
  945. key: "stroageQty",
  946. title: "累计到货主数量",
  947. inputType: "InputNumber",
  948. controlsPosition: "right",
  949. width: 180,
  950. },
  951. {
  952. key: "stockQty",
  953. title: "累计入库主数量",
  954. inputType: "InputNumber",
  955. controlsPosition: "right",
  956. width: 180,
  957. },
  958. {
  959. key: "invoiceQty",
  960. title: "累计开票主数量",
  961. inputType: "InputNumber",
  962. controlsPosition: "right",
  963. width: 180,
  964. },
  965. {
  966. key: "rollbackQty",
  967. title: "累计退货主数量",
  968. inputType: "InputNumber",
  969. controlsPosition: "right",
  970. width: 180,
  971. },
  972. {
  973. key: "backStockQty",
  974. title: "累计退库主数量",
  975. inputType: "InputNumber",
  976. controlsPosition: "right",
  977. width: 180,
  978. },
  979. {
  980. key: "floatQty",
  981. title: "未到货数量",
  982. inputType: "InputNumber",
  983. controlsPosition: "right",
  984. width: 180,
  985. },
  986. {
  987. key: "createByName",
  988. title: "创建人名称",
  989. inputType: "Input",
  990. width: 120
  991. },
  992. {
  993. key: "updateByName",
  994. title: "更新人名称",
  995. inputType: "Input",
  996. width: 120
  997. },
  998. ]
  999. },
  1000. ];
  1001. // export const initTabColumns = () => tabColumns;