column.js 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501
  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. },
  15. {
  16. key: "billType",
  17. title: "订单类型",
  18. inputType: "Select",
  19. referName: "sys_order_type", // 字典名
  20. },
  21. { key: "oaDemandNo", title: "OA需求单号", inputType: "Input", },
  22. { key: "code", title: "订单编号", inputType: "Input", },
  23. {
  24. key: "billDate",
  25. title: "订单日期",
  26. inputType: "DatePicker",
  27. valueFormat: "yyyy-MM-dd",
  28. width: 200,
  29. },
  30. {
  31. key: "supplierName",
  32. title: "供应商",
  33. inputType: "PopoverSelect",
  34. valueKey: "id",
  35. referName: "SUPPLIER_PARAM",
  36. dataMapping: {
  37. supplier: "id",
  38. supplierName: "name",
  39. },
  40. queryParams: () => ({}),
  41. require: true,
  42. },
  43. {
  44. key: "paymentAgreementName",
  45. title: "付款协议",
  46. inputType: "PopoverSelect",
  47. valueKey: "id",
  48. referName: "PAYAGREEMENT_PARAM",
  49. dataMapping: {
  50. paymentAgreement: 'id',
  51. paymentAgreementName: 'name'
  52. },
  53. queryParams: () => ({}),
  54. },
  55. {
  56. key: "finalTypeName",
  57. title: "结算方式",
  58. inputType: "PopoverSelect",
  59. valueKey: "id",
  60. referName: "BALATYPE_PARAM",
  61. dataMapping: {
  62. finalType: 'id',
  63. finalTypeName: 'name'
  64. },
  65. queryParams: () => ({}),
  66. },
  67. {
  68. key: "currencyName",
  69. title: "币种",
  70. inputType: "PopoverSelect",
  71. valueKey: "id",
  72. referName: "CURRENCY_PARAM",
  73. dataMapping: {
  74. currency: 'id',
  75. currencyName: 'name'
  76. },
  77. queryParams: () => ({}),
  78. },
  79. {
  80. key: "buyerName",
  81. title: "采购员",
  82. inputType: "PopoverSelect",
  83. valueKey: "id",
  84. referName: "CONTACTS_PARAM",
  85. dataMapping: {
  86. buyer: 'id',
  87. buyerName: 'name'
  88. },
  89. queryParams: () => ({}),
  90. require: true,
  91. },
  92. {
  93. key: "puDeptName",
  94. title: "采购部门",
  95. inputType: "PopoverSelect",
  96. valueKey: "id",
  97. referName: "DEPT_PARAM",
  98. dataMapping: {
  99. puDept: 'id',
  100. puDeptName: 'name'
  101. },
  102. queryParams: () => ({}),
  103. require: true,
  104. },
  105. {
  106. key: "customerName",
  107. title: "收货客户",
  108. inputType: "PopoverSelect",
  109. width: 200,
  110. require: true,
  111. valueKey: "id",
  112. referName: "CUSTOMER_PARAM",
  113. dataMapping: {
  114. customer: 'id',
  115. customerName: 'name'
  116. },
  117. queryParams: () => ({}),
  118. },
  119. {
  120. key: "qty",
  121. title: "总数量",
  122. inputType: "InputNumber",
  123. controlsPosition: "right",
  124. },
  125. {
  126. key: "originalQty",
  127. title: "原始总数量",
  128. inputType: "InputNumber",
  129. controlsPosition: "right",
  130. },
  131. { key: "money", title: "价税合计", inputType: "Input", },
  132. { key: "originalMoney", title: "原始总金额", inputType: "Input", },
  133. { key: "notaxMoney", title: "无税金额", inputType: "Input", },
  134. {
  135. key: "status",
  136. title: "单据状态",
  137. inputType: "Select",
  138. referName: "sys_status", // 字典名
  139. disabled: true,
  140. },
  141. { key: "freezeCause", title: "冻结原因", inputType: "Checkbox", },
  142. { key: "isBack", title: "退货", inputType: "Input", inputType: "Checkbox", },
  143. { key: "isMarketing", title: "已协同生成销售订单", inputType: "Checkbox", },
  144. { key: "isMarketingSource", title: "由销售订单协同生成", inputType: "Checkbox", },
  145. {
  146. key: "warehouseName",
  147. title: "WMS入库仓库", // 收货仓库
  148. inputType: "PopoverSelect",
  149. require: true,
  150. valueKey: "id",
  151. referName: "WAREHOUSE_PARAM",
  152. dataMapping: {
  153. warehouse: 'id',
  154. warehouseName: 'name'
  155. },
  156. queryParams: () => ({}),
  157. },
  158. {
  159. key: "goodsAllocationName",
  160. title: "货位",
  161. inputType: "PopoverSelect",
  162. require: true,
  163. valueKey: "id",
  164. referName: "ALLOCATION_PARAM",
  165. dataMapping: {
  166. goodsAllocation: 'id',
  167. goodsAllocationName: 'name'
  168. },
  169. queryParams: (params) => ({
  170. pkOrg: params.puOrg,
  171. }),
  172. width: 200,
  173. },
  174. { key: "isSendSrm", title: "是否同步SRM", inputType: "Checkbox", },
  175. { key: "isInvoice", title: "发票标识", inputType: "Checkbox", },
  176. { key: "supplierOrderNo", title: "供应商订单号", inputType: "Input", },
  177. { key: "rebateMoney", title: "订单使用返利金额", inputType: "Input", },
  178. { key: "deductionMoney", title: "订单抵扣余款金额", inputType: "Input", },
  179. { key: "address", title: "收货地址", inputType: "Input", },
  180. { key: "contacts", title: "收货联系人", inputType: "Input", },
  181. {
  182. key: "customerDeptName",
  183. title: "客户部门",
  184. inputType: "PopoverSelect",
  185. width: 200,
  186. valueKey: "id",
  187. referName: "CUSTOMERDEPT_PARAM",
  188. dataMapping: {
  189. customerDept: 'id',
  190. customerDeptName: 'name'
  191. },
  192. queryParams: () => ({}),
  193. },
  194. {
  195. key: "supplierContactsName",
  196. title: "供应商业务联系人",
  197. inputType: "PopoverSelect",
  198. require: true,
  199. valueKey: "id",
  200. referName: "SUPPLIERCONTACTS_PARAM",
  201. dataMapping: {
  202. supplierContacts: 'id',
  203. supplierContactsName: 'name'
  204. },
  205. queryParams: () => ({}),
  206. width: 200,
  207. },
  208. { key: "isUrgency", title: "紧急程度", inputType: "Checkbox", },
  209. { key: "isSendWms", title: "已同步WMS", inputType: "Checkbox", },
  210. // { key: "agent", title: "代理人", inputType: "Input", }, // 建议删除
  211. {
  212. key: "agentName",
  213. title: "代理人",
  214. inputType: "PopoverSelect",
  215. valueKey: "id",
  216. referName: "CONTACTS_PARAM",
  217. dataMapping: {
  218. agent: 'id',
  219. agentName: 'name'
  220. },
  221. queryParams: () => ({}),
  222. width: 200,
  223. },
  224. { key: "isClose", title: "最终关闭", inputType: "Checkbox", },
  225. {
  226. key: "closeTime",
  227. title: "最终关闭日期",
  228. inputType: "DatePicker",
  229. valueFormat: "yyyy-MM-dd",
  230. },
  231. { key: "applyPaymentMoney", title: "累计付款申请金额", inputType: "Input", },
  232. { key: "paymentMoney", title: "累计付款金额", inputType: "Input", },
  233. { key: "invoiceMoney", title: "发票金额", inputType: "Input", },
  234. {
  235. key: "supplierPersonalName",
  236. title: "供应商业务员",
  237. inputType: "PopoverSelect",
  238. valueKey: "id",
  239. referName: "SUPPLIERCONTACTS_PARAM",
  240. dataMapping: {
  241. supplierPersonal: 'id',
  242. supplierPersonalName: 'name'
  243. },
  244. queryParams: () => ({}),
  245. require: true,
  246. },
  247. { key: "isDeliver", title: "是否发货", inputType: "Checkbox", },
  248. {
  249. key: "retReasonName",
  250. title: "退换原因",
  251. inputType: "PopoverSelect",
  252. require: true,
  253. valueKey: "id",
  254. referName: "RETREASON_PARAM",
  255. dataMapping: {
  256. retReason: 'id',
  257. retReasonName: 'name'
  258. },
  259. queryParams: () => ({}),
  260. },
  261. {
  262. key: "processTypeName",
  263. title: "处理方式",
  264. inputType: "PopoverSelect",
  265. require: true,
  266. valueKey: "id",
  267. referName: "PROCESSTYPE_PARAM",
  268. dataMapping: {
  269. processType: 'id',
  270. processTypeName: 'name'
  271. },
  272. queryParams: () => ({}),
  273. },
  274. { key: "isEnd", title: "整单关闭标识", inputType: "Input", },
  275. {
  276. key: "projectNowName",
  277. title: "在建工程项目",
  278. inputType: "PopoverSelect",
  279. require: true,
  280. valueKey: "id",
  281. referName: "PROJECT_PARAM",
  282. dataMapping: {
  283. projectNow: 'id',
  284. projectNowName: 'name'
  285. },
  286. queryParams: () => ({}),
  287. },
  288. {
  289. key: "operatingItemsName",
  290. title: "经营性项目",
  291. inputType: "PopoverSelect",
  292. require: true,
  293. valueKey: "id",
  294. referName: "OPERATING_PARAM",
  295. dataMapping: {
  296. operatingItems: 'id',
  297. operatingItemsName: 'name'
  298. },
  299. queryParams: () => ({}),
  300. },
  301. { key: "isArrivalReson", title: "到货超期原因", inputType: "Input", },
  302. { key: "midOrderNo", title: "中台采购订单号", inputType: "Input", },
  303. { key: "marketingCode", title: "销售订单号", inputType: "Input", },
  304. { key: "isArrival", title: "到货超期", inputType: "Checkbox", },
  305. { key: "createByName", title: "创建人名称", inputType: "Input", },
  306. { key: "updateByName", title: "更新人名称", inputType: "Input", },
  307. { key: "flowId", title: "OA流程ID", inputType: "Input", },
  308. { key: "approver", title: "审批人", inputType: "Input", },
  309. {
  310. key: "approverFinishTime",
  311. title: "审批时间",
  312. inputType: "DatePicker",
  313. valueFormat: "yyyy-MM-dd",
  314. },
  315. {
  316. key: "approveTime",
  317. title: "提交时间",
  318. inputType: "DatePicker",
  319. valueFormat: "yyyy-MM-dd",
  320. },
  321. {
  322. key: "sysFileRecordList",
  323. title: "附件",
  324. inputType: "Upload",
  325. // fileType: ["pdf",""],
  326. span: 24
  327. },
  328. ];
  329. // export const initColumns = () => columns;
  330. export const TabColumns = [
  331. {
  332. title: '物料信息',
  333. key: 'puOrderItemList',
  334. tableColumns: [
  335. { key: "rowNo", title: "行号", inputType: "Input", },
  336. { key: "orderId", title: "采购订单ID", inputType: "Input", width: 180 },
  337. // {key: "material",title: "物料",inputType: "Input", },
  338. {
  339. key: "materialName",
  340. title: "物料",
  341. inputType: "PopoverSelect",
  342. width: 180,
  343. valueKey: "id",
  344. referName: "MATERIAL_PARAM",
  345. dataMapping: {
  346. material: "id",
  347. materialName: "name",
  348. materialCode: "code",
  349. },
  350. queryParams: () => ({}),
  351. },
  352. {
  353. key: "materialCode",
  354. title: "物料编码",
  355. inputType: "Input",
  356. width: 180,
  357. },
  358. { key: "materialClassify", title: "物料分类", inputType: "Input", width: 180 },
  359. { key: "materialManufacturersCode", title: "厂家物料编码", inputType: "Input", width: 180 },
  360. { key: "specification", title: "规格", inputType: "Input", width: 180 },
  361. { key: "model", title: "型号", inputType: "Input", },
  362. { key: "isMedcine", title: "医药物料", inputType: "Input", width: 180 },
  363. { key: "manufacturer", title: "生产厂家代理人", inputType: "Input", width: 180 },
  364. { key: "isDrug", title: "物料药品属性", inputType: "Input", width: 180 },
  365. { key: "unit", title: "单位", inputType: "Input", },
  366. {
  367. key: "qty",
  368. title: "数量",
  369. inputType: "InputNumber",
  370. controlsPosition: "right",
  371. width: 120
  372. },
  373. { key: "taxPrice", title: "含税单价", inputType: "Input", },
  374. { key: "money", title: "价税合计", inputType: "Input", },
  375. { key: "tax", title: "税率", inputType: "Input", },
  376. { key: "taxDeductMoneya", title: "折扣金额", inputType: "Input", },
  377. { key: "arrivalQty", title: "已到货数量", inputType: "Input", },
  378. { key: "unarrivedQty", title: "未到货数量", inputType: "Input", },
  379. { key: "notaxMoney", title: "无税金额", inputType: "Input", },
  380. { key: "priceSource", title: "价格目录ID", inputType: "Input", },
  381. { key: "isStorage", title: "入库关闭", inputType: "Checkbox", },
  382. { key: "isInvoice", title: "开票关闭", inputType: "Checkbox", },
  383. { key: "isArrival", title: "到货关闭", inputType: "Checkbox", },
  384. { key: "isPayment", title: "付款关闭", inputType: "Checkbox", },
  385. { key: "isGift", title: "赠品", inputType: "Checkbox", },
  386. {
  387. key: "warehouseName",
  388. title: "收货仓库", //WMS入库仓库
  389. inputType: "PopoverSelect",
  390. valueKey: "id",
  391. referName: "WAREHOUSE_PARAM",
  392. dataMapping: {
  393. warehouse: 'id',
  394. warehouseName: 'name'
  395. },
  396. queryParams: () => ({}),
  397. width: 200,
  398. },
  399. { key: "place", title: "收货地点", inputType: "Input", width: 180 },
  400. { key: "address", title: "收货地址", inputType: "Input", width: 180 },
  401. { key: "productBatch", title: "产品批号", inputType: "Input", width: 180 },
  402. { key: "manufactureDate", title: "生产日期", inputType: "Input", width: 180 },
  403. { key: "efficacyLoseDate", title: "有效期至/失效日期", inputType: "Input", width: 180 },
  404. { key: "approvalNumber", title: "批准文号", inputType: "Input", width: 180 },
  405. { key: "registration", title: "注册证号", inputType: "Input", width: 180 },
  406. {
  407. key: "storageCondition",
  408. title: "存储条件",
  409. inputType: "Select",
  410. referName: "sys_storage_condition", // 字典名
  411. width: 180
  412. },
  413. {
  414. key: "carriageCondition",
  415. title: "运输条件",
  416. inputType: "Select",
  417. referName: "sys_conditions_carriage", // 字典名
  418. width: 180
  419. },
  420. { key: "isBatchLock", title: "批号锁定标识", inputType: "Checkbox", },
  421. { key: "isReplenishment", title: "补单标识", inputType: "Checkbox", },
  422. { key: "isUrgency", title: "紧急标识", inputType: "Input", },
  423. { key: "originalQty", title: "原始数量", inputType: "Input", },
  424. { key: "originalMoney", title: "原始金额", inputType: "Input", },
  425. { key: "directProductBatch", title: "直运产品批号", inputType: "Input", width: 180 },
  426. { key: "discountRule", title: "折扣规则编码", inputType: "Input", width: 180 },
  427. { key: "reservedQty", title: "预留数量", inputType: "Input", },
  428. { key: "reservedPeriod", title: "预留周期", inputType: "Input", },
  429. { key: "taxDeductClassify", title: "扣税类别", inputType: "Input", },
  430. { key: "exchangeRate", title: "折本汇率", inputType: "Input", },
  431. { key: "source", title: "上游单据号", inputType: "Input", width: 180 },
  432. { key: "sourceId", title: "上游单据ID", inputType: "Input", width: 180 },
  433. { key: "demandCode", title: "采购需求单号", inputType: "Input", width: 180 },
  434. { key: "arrivalDatePlan", title: "计划到货日期", inputType: "Input", width: 180 },
  435. {
  436. key: "priceType",
  437. title: "价格类型",
  438. inputType: "Select",
  439. referName: "sys_price_type", // 字典名
  440. width: 180,
  441. },
  442. { key: "isDistributionPrice", title: "配送价", inputType: "Input", },
  443. { key: "createByName", title: "创建人名称", inputType: "Input", },
  444. { key: "updateByName", title: "更新人名称", inputType: "Input", },
  445. { key: "materialClassifyOneName", title: "物料一级分类名称", inputType: "Input", width: 180 },
  446. { key: "materialClassifyTwoName", title: "物料二级分类名称", inputType: "Input", width: 180 },
  447. { key: "materialClassifyThreeName", title: "物料三级分类名称", inputType: "Input", width: 180 },
  448. { key: "materialClassifyFourName", title: "物料四级分类名称", inputType: "Input", width: 180 },
  449. { key: "price", title: "无税单价", inputType: "Input", }
  450. ]
  451. },
  452. {
  453. title: '执行结果',
  454. key: 'puOrderExecuteList',
  455. tableColumns: [
  456. { key: "orderId", title: "采购订单ID", inputType: "Input", width: 180 },
  457. { key: "rowno", title: "行号", inputType: "Input", },
  458. {
  459. key: "materialName",
  460. title: "物料",
  461. inputType: "PopoverSelect",
  462. valueKey: "id",
  463. referName: "MATERIAL_PARAM",
  464. dataMapping: {
  465. material: "id",
  466. materialName: "name",
  467. materialCode: "code",
  468. },
  469. queryParams: () => ({}),
  470. width: 180
  471. },
  472. { key: "specification", title: "规格", inputType: "Input", },
  473. {
  474. key: "qty",
  475. title: "数量",
  476. inputType: "InputNumber",
  477. controlsPosition: "right",
  478. width: 120
  479. },
  480. { key: "stroageQty", title: "累计到货主数量", inputType: "Input", width: 120 },
  481. { key: "stockQty", title: "累计入库主数量", inputType: "Input", width: 120 },
  482. { key: "invoiceQty", title: "累计开票主数量", inputType: "Input", width: 120 },
  483. { key: "rollbackQty", title: "累计退货主数量", inputType: "Input", width: 120 },
  484. { key: "backStockQty", title: "累计退库主数量", inputType: "Input", width: 120 },
  485. { key: "floatQty", title: "未到货数量", inputType: "Input", width: 120 },
  486. { key: "createByName", title: "创建人名称", inputType: "Input", width: 120 },
  487. { key: "updateByName", title: "更新人名称", inputType: "Input", width: 120 },
  488. ]
  489. },
  490. ];
  491. // export const initTabColumns = () => tabColumns;