column.js 14 KB

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