column.js 26 KB

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