Commit 9d12056740c5900761bed3ab106f7af064dbe503

Authored by 张楣扬
1 parent 0a2155ee

docs(config): 添加大润发中瑞生产字段配置文档

- 新增业务费用项配置说明
- 添加应收单、收款单、收款退款单的字段映射配置
- 包含账套配置JSON示例
- 提供完整的应收单配置JSON模板
- 添加收款单配置JSON模板
- 包含收款退款单配置JSON模板
- 详细说明各类业务类型的字段映射关系
doc/生产字段配置.md renamed to doc/商城中瑞生产字段配置.md
doc/大润发中瑞生产字段配置.md 0 → 100644
  1 +# 业务费用项配置(采用 结算方式+"-"+"业务")
  2 +
  3 +```
  4 +IN_AMOUNT(1, "订单金额(入)"),
  5 +OUT_AMOUNT(2, "订单金额(出)");
  6 +```
  7 +
  8 +## 应收单
  9 +
  10 +### 订单金额(入)(CI061)
  11 +
  12 +```
  13 +1. 微信支付 10-1
  14 +2. 园区卡支付 19-1
  15 +
  16 +```
  17 +
  18 +### 订单金额(出)(CI061)
  19 +
  20 +```
  21 +1. 微信支付 10-2
  22 +2. 园区卡支付 19-2
  23 +```
  24 +
  25 +## 收款单
  26 +
  27 +### 订单支付(CI185)
  28 +
  29 +```
  30 +1. 微信支付 10-2
  31 +```
  32 +
  33 +## 收款退款单
  34 +
  35 +### 订单退款(CI185)
  36 +
  37 +```
  38 +1. 微信支付 10-1
  39 +```
  40 +
  41 +## 1.账套配置 JSON
  42 +
  43 +```json5
  44 +{
  45 + "group": "MALL",
  46 + //固定
  47 + "entity": "57",
  48 + //商城对应租户id
  49 + "systemType": "kingdee",
  50 + "name": "中瑞收银台账套",
  51 + "code": "CASHIER_1001",
  52 + // 账套名称 mall+租户id
  53 + "params": {
  54 + "dCID": "61bacdc5abc2c5",
  55 + "appId": "299721_w6aNWcEuVuh/WWzO41xKQ/StTqWdSqLP",
  56 + "userName": "市场",
  57 + "appSecret": "d9d5ff0f237a43f3b0e66a45aa79aef2",
  58 + "serverUrl": "http://120.46.151.190/k3cloud/",
  59 + },
  60 +}
  61 +```
  62 +
  63 +## 2.应收单配置 JSON
  64 +
  65 +### 2.1 settleOrg 结算组织
  66 +
  67 +```json
  68 +{
  69 + "pipelineId": 2,
  70 + "documentType": "AR_receivable",
  71 + "configKey": "settleOrg",
  72 + "settingFieldType": 1,
  73 + "dynamicValues": [
  74 + {
  75 + "configValue": "10-B",
  76 + "configMapValue": "101"
  77 + },
  78 + {
  79 + "configValue": "19-B",
  80 + "configMapValue": "101"
  81 + },
  82 + {
  83 + "configValue": "19-B-340602",
  84 + "configMapValue": "110"
  85 + },
  86 + {
  87 + "configValue": "19-B-340621",
  88 + "configMapValue": "101"
  89 + },
  90 + {
  91 + "configValue": "19-B-default",
  92 + "configMapValue": "101"
  93 + },
  94 + {
  95 + "configValue": "10-S",
  96 + "configMapValue": "101"
  97 + },
  98 + {
  99 + "configValue": "19-S",
  100 + "configMapValue": "101"
  101 + }
  102 + ]
  103 +}
  104 +```
  105 +
  106 +### 2.2 currency 币别
  107 +
  108 +```json
  109 +{
  110 + "pipelineId": 2,
  111 + "documentType": "AR_receivable",
  112 + "configKey": "currency",
  113 + "settingFieldType": 0,
  114 + "fixedValue": "PRE001"
  115 +}
  116 +```
  117 +
  118 +### 2.3 saleOrg 销售组织
  119 +
  120 +```json
  121 +{
  122 + "pipelineId": 2,
  123 + "documentType": "AR_receivable",
  124 + "configKey": "saleOrg",
  125 + "settingFieldType": 1,
  126 + "dynamicValues": [
  127 + {
  128 + "configValue": "10-B",
  129 + "configMapValue": "101"
  130 + },
  131 + {
  132 + "configValue": "19-B",
  133 + "configMapValue": "101"
  134 + },
  135 + {
  136 + "configValue": "19-B-340602",
  137 + "configMapValue": "110"
  138 + },
  139 + {
  140 + "configValue": "19-B-340621",
  141 + "configMapValue": "101"
  142 + },
  143 + {
  144 + "configValue": "19-B-default",
  145 + "configMapValue": "101"
  146 + },
  147 + {
  148 + "configValue": "10-S",
  149 + "configMapValue": "101"
  150 + },
  151 + {
  152 + "configValue": "19-S",
  153 + "configMapValue": "101"
  154 + }
  155 + ]
  156 +}
  157 +```
  158 +
  159 +### 2.4 businessType 业务类型
  160 +
  161 +```json
  162 +{
  163 + "pipelineId": 2,
  164 + "documentType": "AR_receivable",
  165 + "configKey": "businessType",
  166 + "settingFieldType": 0,
  167 + "fixedValue": "scfyys-001"
  168 +}
  169 +```
  170 +
  171 +### 2.5 standardCurrency 本位币
  172 +
  173 +```json
  174 +{
  175 + "pipelineId": 2,
  176 + "documentType": "AR_receivable",
  177 + "configKey": "standardCurrency",
  178 + "settingFieldType": 0,
  179 + "fixedValue": "PRE001"
  180 +}
  181 +```
  182 +
  183 +### 2.6 payOrg 收款组织
  184 +
  185 +```json
  186 +{
  187 + "pipelineId": 2,
  188 + "documentType": "AR_receivable",
  189 + "configKey": "payOrg",
  190 + "settingFieldType": 1,
  191 + "dynamicValues": [
  192 + {
  193 + "configValue": "10-B",
  194 + "configMapValue": "101"
  195 + },
  196 + {
  197 + "configValue": "19-B",
  198 + "configMapValue": "101"
  199 + },
  200 + {
  201 + "configValue": "19-B-340602",
  202 + "configMapValue": "101"
  203 + },
  204 + {
  205 + "configValue": "19-B-340621",
  206 + "configMapValue": "101"
  207 + },
  208 + {
  209 + "configValue": "19-B-default",
  210 + "configMapValue": "101"
  211 + },
  212 + {
  213 + "configValue": "10-S",
  214 + "configMapValue": "101"
  215 + },
  216 + {
  217 + "configValue": "19-S",
  218 + "configMapValue": "101"
  219 + }
  220 + ]
  221 +}
  222 +```
  223 +
  224 +### 2.7 chargeItemDept 费用承担部门
  225 +
  226 +```json
  227 +{
  228 + "pipelineId": 2,
  229 + "documentType": "AR_receivable",
  230 + "configKey": "chargeItemDept",
  231 + "settingFieldType": 1,
  232 + "dynamicValues": [
  233 + {
  234 + "configValue": "10",
  235 + "configMapValue": "BM000099"
  236 + },
  237 + {
  238 + "configValue": "19",
  239 + "configMapValue": "BM000042"
  240 + },
  241 + {
  242 + "configValue": "19-340602",
  243 + "configMapValue": "BM000101"
  244 + },
  245 + {
  246 + "configValue": "19-340621",
  247 + "configMapValue": "BM000042"
  248 + },
  249 + {
  250 + "configValue": "19-default",
  251 + "configMapValue": "BM000042"
  252 + }
  253 + ]
  254 +}
  255 +```
  256 +
  257 +### 2.8 saleDept 销售部门
  258 +
  259 +```json
  260 +{
  261 + "pipelineId": 2,
  262 + "documentType": "AR_receivable",
  263 + "configKey": "saleDept",
  264 + "settingFieldType": 1,
  265 + "dynamicValues": [
  266 + {
  267 + "configValue": "10",
  268 + "configMapValue": "BM000099"
  269 + },
  270 + {
  271 + "configValue": "19",
  272 + "configMapValue": "BM000042"
  273 + },
  274 + {
  275 + "configValue": "19-340602",
  276 + "configMapValue": "BM000101"
  277 + },
  278 + {
  279 + "configValue": "19-340621",
  280 + "configMapValue": "BM000042"
  281 + },
  282 + {
  283 + "configValue": "19-default",
  284 + "configMapValue": "BM000042"
  285 + }
  286 + ]
  287 +}
  288 +```
  289 +
  290 +### 2.9 chargeItem 费用项
  291 +
  292 +```json
  293 +{
  294 + "pipelineId": 2,
  295 + "documentType": "AR_receivable",
  296 + "configKey": "chargeItem",
  297 + "settingFieldType": 1,
  298 + "dynamicValues": [
  299 + {
  300 + "configValue": "10-1",
  301 + "configMapValue": "CI061"
  302 + },
  303 + {
  304 + "configValue": "19-1",
  305 + "configMapValue": "CI061"
  306 + },
  307 + {
  308 + "configValue": "10-2",
  309 + "configMapValue": "CI061"
  310 + },
  311 + {
  312 + "configValue": "19-2",
  313 + "configMapValue": "CI061"
  314 + }
  315 +]
  316 +}
  317 +```
  318 +
  319 +### 2.10 settleMethod 结算方式
  320 +
  321 +```json
  322 +{
  323 + "pipelineId": 2,
  324 + "documentType": "AR_receivable",
  325 + "configKey": "settleMethod",
  326 + "settingFieldType": 0,
  327 + "fixedValue": "1"
  328 +}
  329 +```
  330 +
  331 +### 2.11 receiveDept 收款部门
  332 +
  333 +```json
  334 +{
  335 + "pipelineId": 2,
  336 + "documentType": "AR_receivable",
  337 + "configKey": "receiveDept",
  338 + "settingFieldType": 1,
  339 + "dynamicValues": [
  340 + {
  341 + "configValue": "10-B",
  342 + "configMapValue": "BM000099"
  343 + },
  344 + {
  345 + "configValue": "19-B",
  346 + "configMapValue": "BM000042"
  347 + },
  348 + {
  349 + "configValue": "19-B-340602",
  350 + "configMapValue": "BM000042"
  351 + },
  352 + {
  353 + "configValue": "19-B-340621",
  354 + "configMapValue": "BM000042"
  355 + },
  356 + {
  357 + "configValue": "19-B-default",
  358 + "configMapValue": "BM000042"
  359 + },
  360 + {
  361 + "configValue": "10-S",
  362 + "configMapValue": "BM000099"
  363 + },
  364 + {
  365 + "configValue": "19-S",
  366 + "configMapValue": "BM000099"
  367 + }
  368 + ]
  369 +}
  370 +```
  371 +
  372 +## 3.收款单配置 JSON
  373 +
  374 +### 3.1 currency 币别
  375 +
  376 +```json
  377 +{
  378 + "pipelineId": 2,
  379 + "documentType": "AR_RECEIVEBILL",
  380 + "configKey": "currency",
  381 + "settingFieldType": 0,
  382 + "fixedValue": "PRE001"
  383 +}
  384 +```
  385 +
  386 +### 3.2 settleOrg 结算组织
  387 +
  388 +```json
  389 +{
  390 + "pipelineId": 2,
  391 + "documentType": "AR_RECEIVEBILL",
  392 + "configKey": "settleOrg",
  393 + "settingFieldType": 0,
  394 + "fixedValue": "101"
  395 +}
  396 +```
  397 +
  398 +### 3.3 saleOrg 销售组织
  399 +
  400 +```json
  401 +{
  402 + "pipelineId": 2,
  403 + "documentType": "AR_RECEIVEBILL",
  404 + "configKey": "saleOrg",
  405 + "settingFieldType": 0,
  406 + "fixedValue": "101"
  407 +}
  408 +```
  409 +
  410 +### 3.4 businessType 业务类型
  411 +
  412 +```json
  413 +{
  414 + "pipelineId": 2,
  415 + "documentType": "AR_RECEIVEBILL",
  416 + "configKey": "businessType",
  417 + "settingFieldType": 0,
  418 + "fixedValue": "zr002"
  419 +}
  420 +```
  421 +
  422 +### 3.5 contactType 往来单位类型
  423 +
  424 +```json
  425 +{
  426 + "pipelineId": 2,
  427 + "documentType": "AR_RECEIVEBILL",
  428 + "configKey": "contactType",
  429 + "settingFieldType": 0,
  430 + "fixedValue": "BD_Customer"
  431 +}
  432 +```
  433 +
  434 +### 3.6 payContactType 付款单位类型
  435 +
  436 +```json
  437 +{
  438 + "pipelineId": 2,
  439 + "documentType": "AR_RECEIVEBILL",
  440 + "configKey": "payContactType",
  441 + "settingFieldType": 0,
  442 + "fixedValue": "BD_Customer"
  443 +}
  444 +```
  445 +
  446 +### 3.7 payOrg 收款组织
  447 +
  448 +```json
  449 +{
  450 + "pipelineId": 2,
  451 + "documentType": "AR_RECEIVEBILL",
  452 + "configKey": "payOrg",
  453 + "settingFieldType": 0,
  454 + "fixedValue": "101"
  455 +}
  456 +```
  457 +
  458 +### 3.8 settleMethod 结算方式
  459 +
  460 +```json
  461 +{
  462 + "pipelineId": 2,
  463 + "documentType": "AR_RECEIVEBILL",
  464 + "configKey": "settleMethod",
  465 + "settingFieldType": 0,
  466 + "fixedValue": "JSFS04_SYS"
  467 +}
  468 +```
  469 +
  470 +### 3.9 receiveUsedFor 收款用途
  471 +
  472 +```json
  473 +{
  474 + "pipelineId": 2,
  475 + "documentType": "AR_RECEIVEBILL",
  476 + "configKey": "receiveUsedFor",
  477 + "settingFieldType": 0,
  478 + "fixedValue": "SFKYT02_SYS"
  479 +}
  480 +```
  481 +
  482 +### 3.10 chargeItemDept 费用承担部门
  483 +
  484 +```json
  485 +{
  486 + "pipelineId": 2,
  487 + "documentType": "AR_RECEIVEBILL",
  488 + "configKey": "chargeItemDept",
  489 + "settingFieldType": 0,
  490 + "fixedValue": "BM000099"
  491 +}
  492 +```
  493 +
  494 +### 3.11 chargeItem 费用项
  495 +
  496 +```json
  497 +{
  498 + "pipelineId": 2,
  499 + "documentType": "AR_RECEIVEBILL",
  500 + "configKey": "chargeItem",
  501 + "settingFieldType": 1,
  502 + "dynamicValues": [
  503 + {
  504 + "configValue": "19-2",
  505 + "configMapValue": "CI185"
  506 + }
  507 +]
  508 +}
  509 +```
  510 +
  511 +### 3.12 settleCurrency 币别
  512 +
  513 +```json
  514 +{
  515 + "pipelineId": 2,
  516 + "documentType": "AR_RECEIVEBILL",
  517 + "configKey": "settleCurrency",
  518 + "settingFieldType": 0,
  519 + "fixedValue": "PRE001"
  520 +}
  521 +```
  522 +
  523 +### 3.13 bankCardNumber 银行账号
  524 +
  525 +```json
  526 +{
  527 + "pipelineId": 2,
  528 + "documentType": "AR_RECEIVEBILL",
  529 + "configKey": "bankCardNumber",
  530 + "settingFieldType": 0,
  531 + "fixedValue": "000001"
  532 +}
  533 +```
  534 +
  535 +### 3.14 saleDept 销售部门
  536 +
  537 +```json
  538 +{
  539 + "pipelineId": 2,
  540 + "documentType": "AR_RECEIVEBILL",
  541 + "configKey": "saleDept",
  542 + "settingFieldType": 0,
  543 + "fixedValue": "BM000099"
  544 +}
  545 +```
  546 +
  547 +## 4.收款退款单配置 JSON
  548 +
  549 +### 4.1 currency 币别
  550 +
  551 +```json
  552 +{
  553 + "pipelineId": 2,
  554 + "documentType": "AR_REFUNDBILL",
  555 + "configKey": "currency",
  556 + "settingFieldType": 0,
  557 + "fixedValue": "PRE001"
  558 +}
  559 +```
  560 +
  561 +### 4.2 settleOrg 结算组织
  562 +
  563 +```json
  564 +{
  565 + "pipelineId": 2,
  566 + "documentType": "AR_REFUNDBILL",
  567 + "configKey": "settleOrg",
  568 + "settingFieldType": 0,
  569 + "fixedValue": "101"
  570 +}
  571 +```
  572 +
  573 +### 4.3 saleOrg 销售组织
  574 +
  575 +```json
  576 +{
  577 + "pipelineId": 2,
  578 + "documentType": "AR_REFUNDBILL",
  579 + "configKey": "saleOrg",
  580 + "settingFieldType": 0,
  581 + "fixedValue": "101"
  582 +}
  583 +```
  584 +
  585 +### 4.4 businessType 业务类型
  586 +
  587 +```json
  588 +{
  589 + "pipelineId": 2,
  590 + "documentType": "AR_REFUNDBILL",
  591 + "configKey": "businessType",
  592 + "settingFieldType": 0,
  593 + "fixedValue": "SKTKDLX04_SYS"
  594 +}
  595 +```
  596 +
  597 +### 4.5 payOrg 收款组织
  598 +
  599 +```json
  600 +{
  601 + "pipelineId": 2,
  602 + "documentType": "AR_REFUNDBILL",
  603 + "configKey": "payOrg",
  604 + "settingFieldType": 0,
  605 + "fixedValue": "101"
  606 +}
  607 +```
  608 +
  609 +### 4.6 receiveContactType 收款单位类型
  610 +
  611 +```json
  612 +{
  613 + "pipelineId": 2,
  614 + "documentType": "AR_REFUNDBILL",
  615 + "configKey": "receiveContactType",
  616 + "settingFieldType": 0,
  617 + "fixedValue": "BD_Customer"
  618 +}
  619 +```
  620 +
  621 +### 4.7 contactType 往来单位类型
  622 +
  623 +```json
  624 +{
  625 + "pipelineId": 2,
  626 + "documentType": "AR_REFUNDBILL",
  627 + "configKey": "contactType",
  628 + "settingFieldType": 0,
  629 + "fixedValue": "BD_Customer"
  630 +}
  631 +```
  632 +
  633 +### 4.8 settleCurrency 结算币别
  634 +
  635 +```json
  636 +{
  637 + "pipelineId": 2,
  638 + "documentType": "AR_REFUNDBILL",
  639 + "configKey": "settleCurrency",
  640 + "settingFieldType": 0,
  641 + "fixedValue": "PRE001"
  642 +}
  643 +```
  644 +
  645 +### 4.9 settleMethod 结算方式
  646 +
  647 +```json
  648 +{
  649 + "pipelineId": 2,
  650 + "documentType": "AR_REFUNDBILL",
  651 + "configKey": "settleMethod",
  652 + "settingFieldType": 0,
  653 + "fixedValue": "JSFS04_SYS"
  654 +}
  655 +```
  656 +
  657 +### 4.10 receiveUsedFor 原收款用途
  658 +
  659 +```json
  660 +{
  661 + "pipelineId": 2,
  662 + "documentType": "AR_REFUNDBILL",
  663 + "configKey": "receiveUsedFor",
  664 + "settingFieldType": 0,
  665 + "fixedValue": "SFKYT02_SYS"
  666 +}
  667 +```
  668 +
  669 +### 4.11 chargeItemDept 费用承担部门
  670 +
  671 +```json
  672 +{
  673 + "pipelineId": 2,
  674 + "documentType": "AR_REFUNDBILL",
  675 + "configKey": "chargeItemDept",
  676 + "settingFieldType": 0,
  677 + "fixedValue": "BM000099"
  678 +}
  679 +```
  680 +
  681 +### 4.12 chargeItem 费用项
  682 +
  683 +```json
  684 +{
  685 + "pipelineId": 2,
  686 + "documentType": "AR_REFUNDBILL",
  687 + "configKey": "chargeItem",
  688 + "settingFieldType": 1,
  689 + "dynamicValues": [
  690 + {
  691 + "configValue": "10-1",
  692 + "configMapValue": "CI185"
  693 + }
  694 + ]
  695 +}
  696 +```
  697 +
  698 +### 4.13 saleDept 销售部门
  699 +
  700 +```json
  701 +{
  702 + "pipelineId": 2,
  703 + "documentType": "AR_REFUNDBILL",
  704 + "configKey": "saleDept",
  705 + "settingFieldType": 0,
  706 + "fixedValue": "BM000099"
  707 +}
  708 +```
  709 +
  710 +### 4.14 bankCardNumber 银行账号
  711 +
  712 +```json
  713 +{
  714 + "pipelineId": 2,
  715 + "documentType": "AR_REFUNDBILL",
  716 + "configKey": "bankCardNumber",
  717 + "settingFieldType": 0,
  718 + "fixedValue": "000001"
  719 +}
  720 +```
... ...