02-finance-http.html 117 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425


<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
  <meta charset="utf-8">
  
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  
  <title>2. 财务进度服务http接口 &mdash; finance_serv 1.0 documentation</title>
  

  
  
  
  

  

  
  
    

  

  <link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
  <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    <link rel="index" title="Index" href="genindex.html" />
    <link rel="search" title="Search" href="search.html" />
    <link rel="next" title="3. 修订历史" href="99-history.html" />
    <link rel="prev" title="1. 数据库设计" href="01-db.html" /> 

  
  <script src="_static/js/modernizr.min.js"></script>

</head>

<body class="wy-body-for-nav">

   
  <div class="wy-grid-for-nav">

    
    <nav data-toggle="wy-nav-shift" class="wy-nav-side">
      <div class="wy-side-scroll">
        <div class="wy-side-nav-search">
          

          
            <a href="index.html" class="icon icon-home"> finance_serv
          

          
          </a>

          
            
            
              <div class="version">
                1.0
              </div>
            
          

          
<div role="search">
  <form id="rtd-search-form" class="wy-form" action="search.html" method="get">
    <input type="text" name="q" placeholder="Search docs" />
    <input type="hidden" name="check_keywords" value="yes" />
    <input type="hidden" name="area" value="default" />
  </form>
</div>

          
        </div>

        <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
          
            
            
              
            
            
              <p class="caption"><span class="caption-text">目录:</span></p>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="01-db.html">1. 数据库设计</a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="#">2. 财务进度服务http接口</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#id1">2.1. 销售合同</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#id2">2.1.1. 增加销售合同</a></li>
<li class="toctree-l3"><a class="reference internal" href="#id3">2.1.2. 查询具体合同详情</a></li>
<li class="toctree-l3"><a class="reference internal" href="#id4">2.1.3. 修改销售合同</a></li>
<li class="toctree-l3"><a class="reference internal" href="#id5">2.1.4. 删除销售合同</a></li>
<li class="toctree-l3"><a class="reference internal" href="#id6">2.1.5. 查询合同列表</a></li>
<li class="toctree-l3"><a class="reference internal" href="#id7">2.1.6. 导出表格</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="#id8">2.2. 销售合同付款约定</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#id9">2.2.1. 增加销售合同付款约定信息</a></li>
<li class="toctree-l3"><a class="reference internal" href="#id10">2.2.2. 查询具体合同付款约定信息</a></li>
<li class="toctree-l3"><a class="reference internal" href="#id11">2.2.3. 修改销售合同付款约定信息</a></li>
<li class="toctree-l3"><a class="reference internal" href="#id12">2.2.4. 删除销售合同付款约定信息</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="#id13">2.3. 销售合同回款</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#id14">2.3.1. 增加销售合同回款信息</a></li>
<li class="toctree-l3"><a class="reference internal" href="#id15">2.3.2. 查询具体合同回款信息</a></li>
<li class="toctree-l3"><a class="reference internal" href="#id16">2.3.3. 修改销售合同回款信息</a></li>
<li class="toctree-l3"><a class="reference internal" href="#id17">2.3.4. 删除销售合同回款信息</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="#id18">2.4. 销售合同开票</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#id19">2.4.1. 增加销售合同开票信息</a></li>
<li class="toctree-l3"><a class="reference internal" href="#id20">2.4.2. 查询具体合同开票信息</a></li>
<li class="toctree-l3"><a class="reference internal" href="#id21">2.4.3. 修改销售合同开票信息</a></li>
<li class="toctree-l3"><a class="reference internal" href="#id22">2.4.4. 删除销售合同开票信息</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="#id23">2.5. 销售合同发货</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#id24">2.5.1. 增加销售合同发货信息</a></li>
<li class="toctree-l3"><a class="reference internal" href="#id25">2.5.2. 查询具体合同发货信息</a></li>
<li class="toctree-l3"><a class="reference internal" href="#id26">2.5.3. 修改销售合同发货信息</a></li>
<li class="toctree-l3"><a class="reference internal" href="#id27">2.5.4. 删除销售合同发货信息</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="#id28">2.6. 销售合同工程验收</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#id29">2.6.1. 增加销售合同工程验收信息</a></li>
<li class="toctree-l3"><a class="reference internal" href="#id30">2.6.2. 查询具体合同工程验收信息</a></li>
<li class="toctree-l3"><a class="reference internal" href="#id31">2.6.3. 修改销售合同工程验收信息</a></li>
<li class="toctree-l3"><a class="reference internal" href="#id32">2.6.4. 删除销售合同工程验收信息</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="#id33">2.7. 上传附件</a></li>
<li class="toctree-l2"><a class="reference internal" href="#id34">2.8. 查询合同编号</a></li>
<li class="toctree-l2"><a class="reference internal" href="#id35">2.9. 查询顾客表</a></li>
<li class="toctree-l2"><a class="reference internal" href="#id36">2.10. 查询项目表</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="99-history.html">3. 修订历史</a></li>
</ul>

            
          
        </div>
      </div>
    </nav>

    <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">

      
      <nav class="wy-nav-top" aria-label="top navigation">
        
          <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
          <a href="index.html">finance_serv</a>
        
      </nav>


      <div class="wy-nav-content">
        
        <div class="rst-content">
        
          















<div role="navigation" aria-label="breadcrumbs navigation">

  <ul class="wy-breadcrumbs">
    
      <li><a href="index.html">Docs</a> &raquo;</li>
        
      <li>2. 财务进度服务http接口</li>
    
    
      <li class="wy-breadcrumbs-aside">
        
            
            <a href="_sources/02-finance-http.rst.txt" rel="nofollow"> View page source</a>
          
        
      </li>
    
  </ul>

  
  <hr/>
</div>
          <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
           <div itemprop="articleBody">
            
  <div class="section" id="http">
<h1>2. 财务进度服务http接口<a class="headerlink" href="#http" title="Permalink to this headline"></a></h1>
<div class="section" id="id1">
<h2>2.1. 销售合同<a class="headerlink" href="#id1" title="Permalink to this headline"></a></h2>
<div class="section" id="id2">
<h3>2.1.1. 增加销售合同<a class="headerlink" href="#id2" title="Permalink to this headline"></a></h3>
<blockquote>
<div><div class="line-block">
<div class="line">Verb: POST</div>
<div class="line">Path: /api/v1/financial/contracts</div>
<div class="line">Header: (Content-Type: application/json)</div>
</div>
<blockquote>
<div><p>Request Body:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span> <span class="p">{</span>
        <span class="s2">&quot;contract_unid&quot;</span><span class="p">:</span><span class="s2">&quot;2018-079&quot;</span><span class="p">,</span>                                         <span class="c1">#合同unid</span>
        <span class="s2">&quot;salesperson_unid&quot;</span><span class="p">:</span><span class="s2">&quot;1235&quot;</span><span class="p">,</span>                                                <span class="c1">#销售员unid</span>
        <span class="s2">&quot;project_unid&quot;</span><span class="p">:</span><span class="s2">&quot;1000&quot;</span><span class="p">,</span>                                   <span class="c1">#项目unid</span>
        <span class="s2">&quot;customer_unid&quot;</span><span class="p">:</span><span class="s2">&quot;1000&quot;</span><span class="p">,</span>                                   <span class="c1">#客户unid</span>
        <span class="s2">&quot;province&quot;</span><span class="p">:</span><span class="s2">&quot;1234&quot;</span><span class="p">,</span>                                               <span class="c1">#项目所在地的省份,通过code服务进行查询</span>
        <span class="s2">&quot;city&quot;</span><span class="p">:</span><span class="s2">&quot;1234&quot;</span><span class="p">,</span>                                              <span class="c1">#项目所在地的市区,通过code服务进行查询</span>
        <span class="s2">&quot;county&quot;</span><span class="p">:</span><span class="s2">&quot;1234&quot;</span><span class="p">,</span>                                                    <span class="c1">#项目所在地的县或区,通过code服务进行查询</span>
        <span class="s2">&quot;guarantee_period&quot;</span><span class="p">:</span><span class="mi">6</span><span class="p">,</span>                                       <span class="c1">#质保周期,月份,步长为6(目前取值范围:6~60)</span>
        <span class="s2">&quot;sign_date&quot;</span><span class="p">:</span><span class="s2">&quot;2018-03-09&quot;</span><span class="p">,</span>                                           <span class="c1">#签订时间</span>
        <span class="s2">&quot;product_line_type&quot;</span><span class="p">:</span><span class="s2">&quot;1&quot;</span><span class="p">,</span>                                            <span class="c1">#产品线类型,(安防、交通、客流、维保)</span>
        <span class="s2">&quot;contract_state&quot;</span><span class="p">:</span><span class="s2">&quot;2&quot;</span><span class="p">,</span>                                       <span class="c1">#合同状态,(已完成、待发货,施工中,项目暂停)</span>
        <span class="s2">&quot;contract_type&quot;</span><span class="p">:</span><span class="s2">&quot;3&quot;</span><span class="p">,</span>                                        <span class="c1">#合同性质,(供货,施工,集成,维保)</span>
        <span class="s2">&quot;contract_amount&quot;</span><span class="p">:</span><span class="mf">140000.00</span><span class="p">,</span>                                        <span class="c1">#合同金额,小数点保留两位</span>
        <span class="s2">&quot;deduct_amount&quot;</span><span class="p">:</span><span class="mf">5000.00</span><span class="p">,</span>                                            <span class="c1">#折扣金额,小数点保留两位</span>
        <span class="s2">&quot;contract_amount_note&quot;</span><span class="p">:</span><span class="s2">&quot;xxxx&quot;</span><span class="p">,</span>                                      <span class="c1">#合同金额备注,文本</span>
        <span class="s2">&quot;stop_amount&quot;</span><span class="p">:</span><span class="mf">200.00</span><span class="p">,</span>                                               <span class="c1">#暂停金额,小数点保留两位</span>
        <span class="s2">&quot;reback_note&quot;</span><span class="p">:</span><span class="s2">&quot;xxxx&quot;</span><span class="p">,</span>                                               <span class="c1">#累计回款额备注,文本</span>
        <span class="s2">&quot;exemptions_amount&quot;</span><span class="p">:</span><span class="mf">100.00</span><span class="p">,</span>                                         <span class="c1">#豁免金额,小数点保留两位</span>
        <span class="s2">&quot;contract_remain_note&quot;</span><span class="p">:</span><span class="s2">&quot;xxxx&quot;</span><span class="p">,</span>                                      <span class="c1">#合同余额备注</span>
        <span class="s2">&quot;is_archive&quot;</span><span class="p">:</span><span class="n">false</span><span class="p">,</span>                                                <span class="c1">#是否归档</span>
        <span class="s2">&quot;bad_amount&quot;</span><span class="p">:</span><span class="mf">5000.00</span><span class="p">,</span>                                               <span class="c1">#坏账金额,小数点保留两位</span>
        <span class="s2">&quot;bad_amount_note&quot;</span><span class="p">:</span><span class="s2">&quot;xxxx&quot;</span><span class="p">,</span>                                           <span class="c1">#坏账金额备注</span>
        <span class="s2">&quot;confirm_income_amount&quot;</span><span class="p">:</span><span class="mf">144000.00</span><span class="p">,</span>                                  <span class="c1">#确定收入金额,小数点保留两位</span>
        <span class="s2">&quot;amount_state_unid&quot;</span><span class="p">:</span><span class="s2">&quot;3&quot;</span><span class="p">,</span>                                            <span class="c1">#帐款状态,通过code服务进行查询</span>
        <span class="s2">&quot;start_guarantee_date&quot;</span><span class="p">:</span><span class="s2">&quot;2018-02-03&quot;</span><span class="p">,</span>                                <span class="c1">#维保服务期开始时间</span>
        <span class="s2">&quot;end_guarantee_date&quot;</span><span class="p">:</span><span class="s2">&quot;2018-06-09&quot;</span><span class="p">,</span>                                          <span class="c1">#维保服务期结束时间</span>
        <span class="s2">&quot;mainten_start_point&quot;</span><span class="p">:</span><span class="s2">&quot;3&quot;</span><span class="p">,</span>                                  <span class="c1">#质保期开始节点(签订时间,到货验收时间,项目终验时间)</span>
        <span class="s2">&quot;contract_note&quot;</span><span class="p">:</span><span class="s2">&quot;xxxx&quot;</span><span class="p">,</span>                                             <span class="c1">#合同备注</span>
        <span class="s2">&quot;appendix_unids&quot;</span><span class="p">:[</span><span class="n">xxxx</span><span class="p">,</span><span class="n">xxxx</span><span class="p">,</span><span class="o">...</span><span class="p">]</span>                                            <span class="c1">#合同附件(若有附件上传该字段)</span>
<span class="p">}</span>
</pre></div>
</div>
<p>Response Body:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="p">{</span>
        <span class="s2">&quot;ecode&quot;</span><span class="p">:</span><span class="s2">&quot;200&quot;</span><span class="p">,</span>                                                     <span class="c1">#新增成功返回码</span>
        <span class="s2">&quot;enote&quot;</span><span class="p">:</span><span class="s2">&quot;OK&quot;</span>                                                   <span class="c1">#返回说明</span>

<span class="p">}</span>
</pre></div>
</div>
</div></blockquote>
</div></blockquote>
</div>
<div class="section" id="id3">
<h3>2.1.2. 查询具体合同详情<a class="headerlink" href="#id3" title="Permalink to this headline"></a></h3>
<blockquote>
<div><div class="line-block">
<div class="line">Verb: GET</div>
<div class="line">Path: /api/v1/financial/contracts/{$contract_unid}</div>
<div class="line">Header: (Content-Type: application/json)</div>
</div>
<blockquote>
<div><p>Request Body:无</p>
<p>Response Body:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="p">{</span>
            <span class="s2">&quot;salesperson_unid&quot;</span><span class="p">:</span><span class="s2">&quot;1234&quot;</span><span class="p">,</span>                                                  <span class="c1">#销售员unid</span>
            <span class="s2">&quot;salesperson_name&quot;</span><span class="p">:</span><span class="s2">&quot;吴旭&quot;</span><span class="p">,</span>                                                  <span class="c1">#销售员名称</span>
            <span class="s2">&quot;project_unid&quot;</span><span class="p">:</span><span class="s2">&quot;12321&quot;</span><span class="p">,</span>                                                     <span class="c1">#项目unid</span>
            <span class="s2">&quot;project_name&quot;</span><span class="p">:</span><span class="s2">&quot;金源时代客流项目&quot;</span><span class="p">,</span>                                         <span class="c1">#项目名称</span>
            <span class="s2">&quot;customer_unid&quot;</span><span class="p">:</span><span class="s2">&quot;1234&quot;</span><span class="p">,</span>                                                  <span class="c1">#客户unid</span>
            <span class="s2">&quot;customer_name&quot;</span><span class="p">:</span><span class="s2">&quot;金源时代购物中心有限公司&quot;</span><span class="p">,</span>                            <span class="c1">#客户名称</span>
            <span class="s2">&quot;province&quot;</span><span class="p">:</span><span class="s2">&quot;1010&quot;</span><span class="p">,</span>                                                    <span class="c1">#项目所在地的省份</span>
            <span class="s2">&quot;city&quot;</span><span class="p">:</span><span class="s2">&quot;2350&quot;</span><span class="p">,</span>                                                        <span class="c1">#项目所在地的市区</span>
            <span class="s2">&quot;county&quot;</span><span class="p">:</span><span class="s2">&quot;2120&quot;</span><span class="p">,</span>                                                        <span class="c1">#项目所在地的县或区</span>
            <span class="s2">&quot;guarantee_period&quot;</span><span class="p">:</span><span class="mi">6</span><span class="p">,</span>                                       <span class="c1">#质保周期,月份,步长为6</span>
            <span class="s2">&quot;sign_date&quot;</span><span class="p">:</span><span class="s2">&quot;2018-03-09&quot;</span><span class="p">,</span>                                                 <span class="c1">#签订时间</span>
            <span class="s2">&quot;product_line_type&quot;</span><span class="p">:</span><span class="s2">&quot;2&quot;</span><span class="p">,</span>                                                  <span class="c1">#产品线类型,(安防、交通、客流、维保)</span>
            <span class="s2">&quot;contract_state&quot;</span><span class="p">:</span><span class="s2">&quot;2&quot;</span><span class="p">,</span>                                             <span class="c1">#合同状态,(已完成、待发货,施工中,项目暂停)</span>
            <span class="s2">&quot;contract_type&quot;</span><span class="p">:</span><span class="s2">&quot;5&quot;</span><span class="p">,</span>                                              <span class="c1">#合同性质,(供货,施工,集成,维保)</span>
            <span class="s2">&quot;contract_amount&quot;</span><span class="p">:</span><span class="mf">140000.00</span><span class="p">,</span>                                              <span class="c1">#合同金额,小数点保留两位</span>
            <span class="s2">&quot;deduct_amount&quot;</span><span class="p">:</span><span class="mf">5000.00</span><span class="p">,</span>                                                  <span class="c1">#折扣金额,小数点保留两位</span>
            <span class="s2">&quot;total_reback_amount&quot;</span><span class="p">:</span><span class="mf">50000.00</span><span class="p">,</span>                                     <span class="c1">#累计回款额</span>
            <span class="s2">&quot;contract_amount_note&quot;</span><span class="p">:</span><span class="s2">&quot;xxxx&quot;</span><span class="p">,</span>                                            <span class="c1">#合同金额备注,文本</span>
            <span class="s2">&quot;stop_amount&quot;</span><span class="p">:</span><span class="mf">6000.00</span><span class="p">,</span>                                                    <span class="c1">#暂停金额,小数点保留两位</span>
            <span class="s2">&quot;reback_note&quot;</span><span class="p">:</span><span class="s2">&quot;xxxx&quot;</span><span class="p">,</span>                                                     <span class="c1">#累计回款额备注,文本</span>
            <span class="s2">&quot;contract_remain&quot;</span><span class="p">:</span><span class="mf">3000.00</span><span class="p">,</span>                                         <span class="c1">#合同余额</span>
            <span class="s2">&quot;exemptions_amount&quot;</span><span class="p">:</span><span class="mf">400.00</span><span class="p">,</span>                                               <span class="c1">#豁免金额,小数点保留两位</span>
            <span class="s2">&quot;contract_remain_note&quot;</span><span class="p">:</span><span class="s2">&quot;xxxx&quot;</span><span class="p">,</span>                                            <span class="c1">#合同余额备注</span>
            <span class="s2">&quot;is_archive&quot;</span><span class="p">:</span><span class="n">false</span><span class="p">,</span>                                                       <span class="c1">#是否归档</span>
            <span class="s2">&quot;bad_amount&quot;</span><span class="p">:</span><span class="mf">15500.00</span><span class="p">,</span>                                                    <span class="c1">#坏账金额,小数点保留两位</span>
            <span class="s2">&quot;bad_amount_note&quot;</span><span class="p">:</span><span class="s2">&quot;xxxx&quot;</span><span class="p">,</span>                                                 <span class="c1">#坏账金额备注</span>
            <span class="s2">&quot;total_receive_amount&quot;</span><span class="p">:</span><span class="mf">800.00</span><span class="p">,</span>                                            <span class="c1">#累计应收款,小数点保留两位</span>
            <span class="s2">&quot;total_amount_remain&quot;</span><span class="p">:</span><span class="mf">6000.00</span><span class="p">,</span>                                     <span class="c1">#应收账款余额</span>
            <span class="s2">&quot;over_days&quot;</span><span class="p">:</span><span class="mi">176</span><span class="p">,</span>                                               <span class="c1">#逾期天数</span>
            <span class="s2">&quot;confirm_income_amount&quot;</span><span class="p">:</span><span class="mf">130000.00</span><span class="p">,</span>                                        <span class="c1">#确定收入金额,小数点保留两位</span>
            <span class="s2">&quot;amount_state_unid&quot;</span><span class="p">:</span><span class="s2">&quot;3&quot;</span><span class="p">,</span>                                                  <span class="c1">#帐款状态</span>
            <span class="s2">&quot;start_guarantee_date&quot;</span><span class="p">:</span><span class="s2">&quot;2018-03-09&quot;</span><span class="p">,</span>                                      <span class="c1">#维保服务期开始时间</span>
            <span class="s2">&quot;end_guarantee_date&quot;</span><span class="p">:</span><span class="s2">&quot;2018-06-09&quot;</span><span class="p">,</span>                                                <span class="c1">#维保服务期结束时间</span>
            <span class="s2">&quot;mainten_start_point&quot;</span><span class="p">:</span><span class="s2">&quot;3&quot;</span><span class="p">,</span>                                        <span class="c1">#质保期开始节点</span>
            <span class="s2">&quot;mainten_start_date&quot;</span><span class="p">:</span><span class="s2">&quot;2018-02-03&quot;</span><span class="p">,</span>                                        <span class="c1">#质保期开始时间</span>
            <span class="s2">&quot;mainten_end_date&quot;</span><span class="p">:</span><span class="s2">&quot;2018-06-09&quot;</span><span class="p">,</span>                                        <span class="c1">#质保期结束时间</span>
            <span class="s2">&quot;payment_data&quot;</span><span class="p">:[</span>                                                  <span class="c1">#付款约定</span>
                    <span class="p">{</span>
                       <span class="s2">&quot;payment_unid&quot;</span><span class="p">:</span><span class="n">xxxx</span><span class="p">,</span>                                  <span class="c1">#付款unid</span>
                       <span class="s2">&quot;payment_progress&quot;</span><span class="p">:</span><span class="mi">2</span><span class="p">,</span>                              <span class="c1">#付款进度</span>
                       <span class="s2">&quot;payment_type&quot;</span><span class="p">:</span><span class="s2">&quot;3&quot;</span><span class="p">,</span>                                  <span class="c1">#付款类型</span>
                       <span class="s2">&quot;days&quot;</span><span class="p">:</span><span class="mi">200</span><span class="p">,</span>                                          <span class="c1">#天数</span>
                       <span class="s2">&quot;payment_date&quot;</span><span class="p">:</span><span class="mi">2018</span><span class="o">-</span><span class="mo">03</span><span class="o">-</span><span class="mo">02</span><span class="p">,</span>                                  <span class="c1">#本期应付款日期</span>
                       <span class="s2">&quot;payment_amount&quot;</span><span class="p">:</span><span class="mf">1400.00</span><span class="p">,</span>                                <span class="c1">#本期应付金额</span>
                       <span class="s2">&quot;payment_propority&quot;</span><span class="p">:</span><span class="mf">0.30</span><span class="p">,</span>                             <span class="c1">#付款比例</span>
                       <span class="s2">&quot;payment_requirement&quot;</span><span class="p">:</span><span class="s2">&quot;xxxx&quot;</span>                            <span class="c1">#付款条件</span>
                    <span class="p">},</span>
                    <span class="o">...</span>
            <span class="p">},</span>
            <span class="s2">&quot;is_delete&quot;</span><span class="p">:</span><span class="n">xxxx</span><span class="p">,</span>                                            <span class="c1">#true or false ,判断合同删除与否的标志</span>
            <span class="s2">&quot;contract_note&quot;</span><span class="p">:</span><span class="s2">&quot;xxxx&quot;</span><span class="p">,</span>                                                   <span class="c1">#合同备注</span>
            <span class="s2">&quot;appendix_urls&quot;</span><span class="p">:[</span><span class="s2">&quot;http://xxxx.pdf&quot;</span><span class="p">,</span><span class="s2">&quot;xxxx&quot;</span><span class="p">,</span><span class="o">...</span><span class="p">]</span> <span class="s2">&quot;                                            #合同附件url地址(有的话返回)</span>
    <span class="p">}</span>
</pre></div>
</div>
</div></blockquote>
</div></blockquote>
</div>
<div class="section" id="id4">
<h3>2.1.3. 修改销售合同<a class="headerlink" href="#id4" title="Permalink to this headline"></a></h3>
<blockquote>
<div><div class="line-block">
<div class="line">Verb: PUT</div>
<div class="line">Path: /api/v1/financial/contracts/{$contract_unid}</div>
<div class="line">Header: (Content-Type: application/json)</div>
</div>
<blockquote>
<div><p>Request Body:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span> <span class="p">{</span>
        <span class="s2">&quot;salesperson_unid&quot;</span><span class="p">:</span><span class="s2">&quot;1234&quot;</span><span class="p">,</span>                                        <span class="c1">#销售员unid</span>
        <span class="s2">&quot;project_unid&quot;</span><span class="p">:</span><span class="s2">&quot;1232&quot;</span><span class="p">,</span>                                <span class="c1">#项目unid</span>
        <span class="s2">&quot;customer_unid&quot;</span><span class="p">:</span><span class="s2">&quot;1234&quot;</span><span class="p">,</span>                   <span class="c1">#客户unid</span>
        <span class="s2">&quot;province&quot;</span><span class="p">:</span><span class="s2">&quot;1000&quot;</span><span class="p">,</span>                                              <span class="c1">#项目所在地的省份</span>
        <span class="s2">&quot;city&quot;</span><span class="p">:</span><span class="s2">&quot;1234&quot;</span><span class="p">,</span>                                                  <span class="c1">#项目所在地的市区</span>
        <span class="s2">&quot;county&quot;</span><span class="p">:</span><span class="s2">&quot;1253&quot;</span><span class="p">,</span>                                                        <span class="c1">#项目所在地的县或区</span>
        <span class="s2">&quot;guarantee_period&quot;</span><span class="p">:</span><span class="mi">6</span><span class="p">,</span>                           <span class="c1">#质保周期,月份,步长为6</span>
        <span class="s2">&quot;sign_date&quot;</span><span class="p">:</span><span class="s2">&quot;2018-03-09&quot;</span><span class="p">,</span>                                               <span class="c1">#签订时间</span>
        <span class="s2">&quot;product_line_type&quot;</span><span class="p">:</span><span class="s2">&quot;3&quot;</span><span class="p">,</span>                                        <span class="c1">#产品线类型,(安防、交通、客流、维保)</span>
        <span class="s2">&quot;contract_state&quot;</span><span class="p">:</span><span class="s2">&quot;2&quot;</span><span class="p">,</span>                                       <span class="c1">#合同状态,(已完成、待发货,施工中,项目暂停)</span>
        <span class="s2">&quot;contract_type&quot;</span><span class="p">:</span><span class="s2">&quot;2&quot;</span><span class="p">,</span>                                        <span class="c1">#合同类型,(供货,施工,集成,维保)</span>
        <span class="s2">&quot;contract_amount&quot;</span><span class="p">:</span><span class="mf">140000.00</span><span class="p">,</span>                                        <span class="c1">#合同金额,小数点保留两位</span>
        <span class="s2">&quot;deduct_amount&quot;</span><span class="p">:</span><span class="mf">5000.00</span><span class="p">,</span>                                            <span class="c1">#折扣金额,小数点保留两位</span>
        <span class="s2">&quot;contract_amount_note&quot;</span><span class="p">:</span><span class="s2">&quot;xxxx&quot;</span><span class="p">,</span>                                      <span class="c1">#合同金额备注,文本</span>
        <span class="s2">&quot;stop_amount&quot;</span><span class="p">:</span><span class="mf">1500.00</span><span class="p">,</span>                                              <span class="c1">#暂停金额,小数点保留两位</span>
        <span class="s2">&quot;reback_note&quot;</span><span class="p">:</span><span class="s2">&quot;xxxx&quot;</span><span class="p">,</span>                                               <span class="c1">#累计回款额备注,文本</span>
        <span class="s2">&quot;exemptions_amount&quot;</span><span class="p">:</span><span class="mf">1500.00</span><span class="p">,</span>                                        <span class="c1">#豁免金额,小数点保留两位</span>
        <span class="s2">&quot;contract_remain_note&quot;</span><span class="p">:</span><span class="s2">&quot;xxxx&quot;</span><span class="p">,</span>                                      <span class="c1">#合同余额备注</span>
        <span class="s2">&quot;is_archive&quot;</span><span class="p">:</span><span class="n">false</span><span class="p">,</span>                                                     <span class="c1">#是否归档</span>
        <span class="s2">&quot;bad_amount&quot;</span><span class="p">:</span><span class="mf">120000.00</span><span class="p">,</span>                                             <span class="c1">#坏账金额,小数点保留两位</span>
        <span class="s2">&quot;bad_amount_note&quot;</span><span class="p">:</span><span class="s2">&quot;xxxx&quot;</span><span class="p">,</span>                                           <span class="c1">#坏账金额备注</span>
        <span class="s2">&quot;confirm_income_amount&quot;</span><span class="p">:</span><span class="mf">1400.00</span><span class="p">,</span>                                    <span class="c1">#确定收入金额,小数点保留两位</span>
        <span class="s2">&quot;amount_state_unid&quot;</span><span class="p">:</span><span class="s2">&quot;2&quot;</span><span class="p">,</span>                                            <span class="c1">#帐款状态</span>
        <span class="s2">&quot;start_guarantee_date&quot;</span><span class="p">:</span><span class="s2">&quot;2018-03-02&quot;</span><span class="p">,</span>                                <span class="c1">#维保服务期开始时间</span>
        <span class="s2">&quot;end_guarantee_date&quot;</span><span class="p">:</span><span class="s2">&quot;2018-03-02&quot;</span><span class="p">,</span>                                          <span class="c1">#维保服务期结束时间</span>
        <span class="s2">&quot;mainten_start_point&quot;</span><span class="p">:</span><span class="s2">&quot;2&quot;</span><span class="p">,</span>                                  <span class="c1">#质保期开始节点</span>
        <span class="s2">&quot;mainten_start_date&quot;</span><span class="p">:</span><span class="s2">&quot;2018-03-02&quot;</span><span class="p">,</span>                                  <span class="c1">#质保期开始时间</span>
        <span class="s2">&quot;contract_note&quot;</span><span class="p">:</span><span class="s2">&quot;2018-06-02&quot;</span><span class="p">,</span>                                       <span class="c1">#合同备注</span>
        <span class="s2">&quot;appendix_unids&quot;</span><span class="p">:[</span><span class="n">xxxx</span><span class="p">,</span><span class="n">xxxx</span><span class="p">,</span><span class="o">...</span><span class="p">]</span>                                            <span class="c1">#合同附件(若有附件上传该字段)</span>
<span class="p">}</span>
</pre></div>
</div>
<p>Response Body:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="p">{</span>
        <span class="s2">&quot;ecode&quot;</span><span class="p">:</span><span class="s2">&quot;200&quot;</span><span class="p">,</span>                                                  <span class="c1">#修改成功返回码</span>
        <span class="s2">&quot;enote&quot;</span><span class="p">:</span><span class="s2">&quot;OK&quot;</span>                                                <span class="c1">#返回说明</span>

<span class="p">}</span>
</pre></div>
</div>
</div></blockquote>
</div></blockquote>
</div>
<div class="section" id="id5">
<h3>2.1.4. 删除销售合同<a class="headerlink" href="#id5" title="Permalink to this headline"></a></h3>
<blockquote>
<div><div class="line-block">
<div class="line">Verb: DELETE</div>
<div class="line">Path: /api/v1/financial/contracts/{$contract_unid}</div>
<div class="line">Header: (Content-Type: application/json)</div>
</div>
<blockquote>
<div><p>Request Body:无</p>
<p>Response Body:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="p">{</span>
        <span class="s2">&quot;ecode&quot;</span><span class="p">:</span><span class="s2">&quot;200&quot;</span><span class="p">,</span>                                                     <span class="c1">#删除成功返回码</span>
        <span class="s2">&quot;enote&quot;</span><span class="p">:</span><span class="s2">&quot;OK&quot;</span>                                                   <span class="c1">#返回说明</span>

<span class="p">}</span>
</pre></div>
</div>
</div></blockquote>
</div></blockquote>
</div>
<div class="section" id="id6">
<h3>2.1.5. 查询合同列表<a class="headerlink" href="#id6" title="Permalink to this headline"></a></h3>
<blockquote>
<div><div class="line-block">
<div class="line">Verb: GET</div>
<div class="line">Path: /api/v1/financial/contracts</div>
<div class="line">Header: (Content-Type: application/json)</div>
</div>
<blockquote>
<div><p>Request Body:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="p">{</span>
            <span class="s2">&quot;salesperson_name__like&quot;</span><span class="p">:</span><span class="s2">&quot;吴旭&quot;</span><span class="p">,</span>                                    <span class="c1">#销售员</span>
            <span class="s2">&quot;project_name__like&quot;</span><span class="p">:</span><span class="s2">&quot;金源时代客流项目&quot;</span><span class="p">,</span>                            <span class="c1">#项目名称</span>
            <span class="s2">&quot;customer_name__like&quot;</span><span class="p">:</span><span class="s2">&quot;北京金源时代购物中心有限公司&quot;</span><span class="p">,</span>               <span class="c1">#客户名称</span>
            <span class="s2">&quot;province&quot;</span><span class="p">:</span><span class="s2">&quot;1232&quot;</span><span class="p">,</span>                                          <span class="c1">#项目所在省</span>
            <span class="s2">&quot;city&quot;</span><span class="p">:</span><span class="s2">&quot;1000&quot;</span><span class="p">,</span>                                              <span class="c1">#项目所在市</span>
            <span class="s2">&quot;county&quot;</span><span class="p">:</span><span class="s2">&quot;1256&quot;</span><span class="p">,</span>                                                <span class="c1">#项目所在县(区)</span>
            <span class="s2">&quot;guarantee_period&quot;</span><span class="p">:</span><span class="mi">7</span><span class="p">,</span>                                       <span class="c1">#质保周期(单位是月)</span>
            <span class="s2">&quot;year&quot;</span><span class="p">:</span><span class="s2">&quot;2018&quot;</span><span class="p">,</span>                                                <span class="c1">#所属年份</span>
            <span class="s2">&quot;month&quot;</span><span class="p">:</span><span class="s2">&quot;3&quot;</span><span class="p">,</span>                                                  <span class="c1">#所属月份</span>
            <span class="s2">&quot;product_line_type&quot;</span><span class="p">:</span><span class="s2">&quot;3&quot;</span><span class="p">,</span>                                   <span class="c1">#产品线类型(安防、交通、客流、维保)</span>
            <span class="s2">&quot;contract_state&quot;</span><span class="p">:</span><span class="s2">&quot;2&quot;</span><span class="p">,</span>                                      <span class="c1">#合同状态(已完成、待发货,施工中,项目暂停)</span>
            <span class="s2">&quot;contract_type&quot;</span><span class="p">:</span><span class="s2">&quot;2&quot;</span><span class="p">,</span>                                     <span class="c1">#合同性质(供货,施工,集成,维保)</span>
            <span class="s2">&quot;acceptanc_type&quot;</span><span class="p">:</span><span class="s2">&quot;2&quot;</span><span class="p">,</span>                                        <span class="c1">#验收类型(1为初验,2为终验)</span>
            <span class="s2">&quot;is_archive&quot;</span><span class="p">:</span><span class="n">false</span><span class="p">,</span>                                             <span class="c1">#合同是否归档</span>
            <span class="s2">&quot;confirm_income_amount&quot;</span><span class="p">:</span><span class="mf">1400.00</span><span class="p">,</span>                               <span class="c1">#确定收入金额</span>
            <span class="s2">&quot;amount_state_unid&quot;</span><span class="p">:</span><span class="s2">&quot;3&quot;</span><span class="p">,</span>                                   <span class="c1">#账款状态</span>

            <span class="s2">&quot;start_date&quot;</span><span class="p">:</span><span class="s2">&quot;2018-03-02&quot;</span><span class="p">,</span>                                          <span class="c1">#签订时间,设置开始时间</span>
            <span class="s2">&quot;end_date&quot;</span><span class="p">:</span><span class="s2">&quot;2018-06-09&quot;</span>                                            <span class="c1">#结束时间,设置结束时间</span>
            <span class="s2">&quot;amount_start_point&quot;</span><span class="p">:</span><span class="mf">140000.00</span><span class="p">,</span>                                        <span class="c1">#设置金额查询开始节点</span>
            <span class="s2">&quot;amount_end_point&quot;</span><span class="p">:</span><span class="s2">&quot;150000.00&quot;</span><span class="p">,</span>                                        <span class="c1">#设置金额查询结束节点</span>
            <span class="s2">&quot;overdays_start_point&quot;</span><span class="p">:</span><span class="mi">176</span><span class="p">,</span>                                      <span class="c1">#设置逾期天数开始查询节点</span>
            <span class="s2">&quot;overdays_end_point&quot;</span><span class="p">:</span><span class="s2">&quot;520&quot;</span><span class="p">,</span>                                      <span class="c1">#设置逾期天数结束查询节点</span>
            <span class="s2">&quot;leave_amount_start_point&quot;</span><span class="p">:</span><span class="mf">11200.00</span><span class="p">,</span>                                  <span class="c1">#设置应收账款余额开始查询节点</span>
            <span class="s2">&quot;leave_amount_end_point&quot;</span><span class="p">:</span><span class="s2">&quot;320000.00&quot;</span><span class="p">,</span>                                 <span class="c1">#设置应收账款余额结束查询节点</span>
            <span class="s2">&quot;offset&quot;</span><span class="p">:</span><span class="mi">45</span><span class="p">,</span>                                              <span class="c1">#起始位置</span>
            <span class="s2">&quot;limit&quot;</span><span class="p">:</span><span class="mi">25</span>                                                <span class="c1">#每页显示的数量</span>
    <span class="p">}</span>
</pre></div>
</div>
<p>Response Body:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="p">{</span>
            <span class="s2">&quot;total_number&quot;</span><span class="p">:</span><span class="mi">1000</span><span class="p">,</span>                                            <span class="c1">#总的数据量</span>
            <span class="s2">&quot;list_size&quot;</span><span class="p">:</span><span class="mi">50</span><span class="p">,</span>                                               <span class="c1">#本次返回的列表数量</span>
            <span class="s2">&quot;offset&quot;</span><span class="p">:</span><span class="mi">70</span><span class="p">,</span>                                                  <span class="c1">#本次返回的起始索引</span>
            <span class="s2">&quot;list_data&quot;</span><span class="p">:</span>                                                      <span class="c1">#数据列表</span>
            <span class="p">[</span>
                    <span class="p">{</span>
                            <span class="s2">&quot;contract_code&quot;</span><span class="p">:</span><span class="s2">&quot;2019-079&quot;</span><span class="p">,</span>                                   <span class="c1">#合同编号</span>
                            <span class="s2">&quot;product_line_type&quot;</span><span class="p">:</span><span class="s2">&quot;3&quot;</span><span class="p">,</span>                                   <span class="c1">#产品线类型(安防、交通、客流、维保)</span>
                            <span class="s2">&quot;sign_date&quot;</span><span class="p">:</span><span class="s2">&quot;2018-02-03&quot;</span><span class="p">,</span>                                           <span class="c1">#签订日期</span>
                            <span class="s2">&quot;salesperson_name&quot;</span><span class="p">:</span><span class="s2">&quot;1000&quot;</span><span class="p">,</span>                                    <span class="c1">#销售员名称</span>
                            <span class="s2">&quot;province&quot;</span><span class="p">:</span><span class="s2">&quot;1000&quot;</span><span class="p">,</span>                                 <span class="c1">#所在省份</span>
                            <span class="s2">&quot;city&quot;</span><span class="p">:</span><span class="s2">&quot;1234&quot;</span><span class="p">,</span>                                     <span class="c1">#所在市</span>
                            <span class="s2">&quot;county&quot;</span><span class="p">:</span><span class="s2">&quot;1000&quot;</span><span class="p">,</span>                                       <span class="c1">#所在县(区)</span>
                            <span class="s2">&quot;customer_name&quot;</span><span class="p">:</span><span class="s2">&quot;北京金源时代购物中心有限公司&quot;</span><span class="p">,</span>               <span class="c1">#客户名称</span>
                            <span class="s2">&quot;project_name&quot;</span><span class="p">:</span><span class="s2">&quot;金源时代客流项目&quot;</span><span class="p">,</span>                            <span class="c1">#项目名称</span>
                            <span class="s2">&quot;contract_amount&quot;</span><span class="p">:</span><span class="mf">140000.00</span><span class="p">,</span>                                     <span class="c1">#合同金额</span>
                            <span class="s2">&quot;stop_amount&quot;</span><span class="p">:</span><span class="mf">5000.00</span><span class="p">,</span>                                         <span class="c1">#暂停金额</span>
                            <span class="s2">&quot;bad_amount&quot;</span><span class="p">:</span><span class="mf">4000.00</span><span class="p">,</span>                                          <span class="c1">#坏账金额</span>
                            <span class="s2">&quot;exemptions_amount&quot;</span><span class="p">:</span><span class="mf">5000.00</span><span class="p">,</span>                                   <span class="c1">#豁免金额</span>
                            <span class="s2">&quot;deduct_amount&quot;</span><span class="p">:</span><span class="mf">7000.00</span><span class="p">,</span>                                       <span class="c1">#抵扣金额</span>
                            <span class="s2">&quot;total_reback_amount&quot;</span><span class="p">:</span><span class="mf">600.00</span><span class="p">,</span>                                 <span class="c1">#累计已收款</span>
                            <span class="s2">&quot;contract_remain&quot;</span><span class="p">:</span><span class="mf">8000.00</span><span class="p">,</span>                                     <span class="c1">#合同余额</span>
                            <span class="s2">&quot;account_state_unid&quot;</span><span class="p">:</span><span class="s2">&quot;3&quot;</span><span class="p">,</span>                                       <span class="c1">#账款状态</span>
                            <span class="s2">&quot;total_receive_amount&quot;</span><span class="p">:</span><span class="mf">15000.00</span><span class="p">,</span>                                <span class="c1">#累计应收</span>
                            <span class="s2">&quot;total_amount_remain&quot;</span><span class="p">:</span><span class="mf">8000.00</span><span class="p">,</span>                                       <span class="c1">#应收账款余额</span>
                            <span class="s2">&quot;total_receive_amount&quot;</span><span class="p">:</span> <span class="mi">133000</span><span class="p">,</span>                                  <span class="c1">#累计回款额</span>
                            <span class="s2">&quot;over_days&quot;</span><span class="p">:</span> <span class="mi">137</span><span class="p">,</span>                                                <span class="c1">#逾期天数</span>
                            <span class="s2">&quot;advance_pay&quot;</span><span class="p">:</span> <span class="mi">42000</span><span class="p">,</span>                                            <span class="c1">#预付款金额</span>
                            <span class="s2">&quot;arrive_pay&quot;</span><span class="p">:</span> <span class="mi">70000</span><span class="p">,</span>                                             <span class="c1">#到货款金额</span>
                            <span class="s2">&quot;acceptanc_pay&quot;</span><span class="p">:</span> <span class="mi">21000</span><span class="p">,</span>                                          <span class="c1">#验收款金额</span>
                            <span class="s2">&quot;mainten_pay_deliver&quot;</span><span class="p">:</span> <span class="mi">35000</span><span class="p">,</span>                                    <span class="c1">#质保款金额(按发货节点计算)</span>
                            <span class="s2">&quot;mainten_pay_acceptanc&quot;</span><span class="p">:</span> <span class="mi">7000</span><span class="p">,</span>                                   <span class="c1">#质保款金额(按验收节点计算)</span>
                            <span class="s2">&quot;advance_pay_date&quot;</span><span class="p">:</span> <span class="s2">&quot;2018-03-19&quot;</span><span class="p">,</span>                                <span class="c1">#预付款到期日</span>
                            <span class="s2">&quot;arrive_pay_date&quot;</span><span class="p">:</span> <span class="s2">&quot;2018-01-12&quot;</span><span class="p">,</span>                                 <span class="c1">#发货款到期日</span>
                            <span class="s2">&quot;acceptanc_pay_date&quot;</span><span class="p">:</span> <span class="s2">&quot;2018-06-29&quot;</span><span class="p">,</span>                              <span class="c1">#验收款到期日</span>
                            <span class="s2">&quot;mainten_pay_deliver_date&quot;</span><span class="p">:</span> <span class="s2">&quot;2020-01-05&quot;</span><span class="p">,</span>                        <span class="c1">#质保款到期日(按发货节点计算)</span>
                            <span class="s2">&quot;mainten_pay_acceptanc_date&quot;</span><span class="p">:</span> <span class="s2">&quot;2020-05-29&quot;</span><span class="p">,</span>                      <span class="c1">#质保款到期日(按验收节点计算)</span>
                            <span class="s2">&quot;deliver_date&quot;</span><span class="p">:</span> <span class="s2">&quot;2018-01-05&quot;</span><span class="p">,</span>                                    <span class="c1">#发货时间</span>
                            <span class="s2">&quot;acceptanc_date&quot;</span><span class="p">:</span> <span class="s2">&quot;2018-05-30&quot;</span><span class="p">,</span>                                  <span class="c1">#验收时间</span>
                            <span class="s2">&quot;over_days&quot;</span><span class="p">:</span><span class="mi">176</span><span class="p">,</span>                                           <span class="c1">#逾期天数</span>
                            <span class="s2">&quot;payment_data&quot;</span><span class="p">:[</span>                                              <span class="c1">#付款约定</span>
                            <span class="p">{</span>
                                    <span class="s2">&quot;payment_unid&quot;</span><span class="p">:</span><span class="n">xxxx</span><span class="p">,</span>                                  <span class="c1">#付款unid</span>
                                    <span class="s2">&quot;payment_progress&quot;</span><span class="p">:</span><span class="mi">2</span><span class="p">,</span>                              <span class="c1">#付款进度</span>
                                    <span class="s2">&quot;payment_type&quot;</span><span class="p">:</span><span class="s2">&quot;3&quot;</span><span class="p">,</span>                                  <span class="c1">#付款类型</span>
                                    <span class="s2">&quot;days&quot;</span><span class="p">:</span><span class="mi">198</span><span class="p">,</span>                                          <span class="c1">#天数</span>
                                    <span class="s2">&quot;payment_date&quot;</span><span class="p">:</span><span class="s2">&quot;2018-03-02&quot;</span><span class="p">,</span>                                  <span class="c1">#本期应付款日期</span>
                                    <span class="s2">&quot;payment_amount&quot;</span><span class="p">:</span><span class="s2">&quot;2018-06-07&quot;</span><span class="p">,</span>                                <span class="c1">#本期应付金额</span>
                                    <span class="s2">&quot;payment_propority&quot;</span><span class="p">:</span><span class="mf">0.30</span><span class="p">,</span>                             <span class="c1">#付款比例</span>
                                    <span class="s2">&quot;payment_requirement&quot;</span><span class="p">:</span><span class="s2">&quot;xxxx&quot;</span>                            <span class="c1">#付款条件</span>
                            <span class="p">},</span>
                            <span class="o">...</span>
                            <span class="p">],</span>
                            <span class="s2">&quot;contract_note&quot;</span><span class="p">:</span><span class="s2">&quot;xxxx&quot;</span>                                     <span class="c1">#合同备注</span>
                    <span class="p">},</span>
                    <span class="o">...</span>
            <span class="p">]</span>
    <span class="p">}</span>
</pre></div>
</div>
</div></blockquote>
</div></blockquote>
</div>
<div class="section" id="id7">
<h3>2.1.6. 导出表格<a class="headerlink" href="#id7" title="Permalink to this headline"></a></h3>
<blockquote>
<div><div class="line-block">
<div class="line">Verb: GET</div>
<div class="line">Path: /api/v1/financial/contracts/export</div>
<div class="line">Header: (Content-Type: application/json)</div>
</div>
<blockquote>
<div><p>Request Body:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="p">{</span>
            <span class="s2">&quot;salesperson_name__like&quot;</span><span class="p">:</span><span class="s2">&quot;吴旭&quot;</span><span class="p">,</span>                                    <span class="c1">#销售员</span>
            <span class="s2">&quot;project_name__like&quot;</span><span class="p">:</span><span class="s2">&quot;金源时代客流项目&quot;</span><span class="p">,</span>                            <span class="c1">#项目名称</span>
            <span class="s2">&quot;customer_name__like&quot;</span><span class="p">:</span><span class="s2">&quot;北京金源时代购物中心有限公司&quot;</span><span class="p">,</span>               <span class="c1">#客户名称</span>
            <span class="s2">&quot;province&quot;</span><span class="p">:</span><span class="s2">&quot;1000&quot;</span><span class="p">,</span>                                 <span class="c1">#项目所在省</span>
            <span class="s2">&quot;city&quot;</span><span class="p">:</span><span class="s2">&quot;1245&quot;</span><span class="p">,</span>                                     <span class="c1">#项目所在市</span>
            <span class="s2">&quot;area&quot;</span><span class="p">:</span><span class="s2">&quot;5623&quot;</span><span class="p">,</span>                                       <span class="c1">#项目所在县(区)</span>
            <span class="s2">&quot;guarantee_period&quot;</span><span class="p">:</span><span class="mi">24</span><span class="p">,</span>                                       <span class="c1">#质保周期</span>
            <span class="s2">&quot;year&quot;</span><span class="p">:</span><span class="s2">&quot;2018&quot;</span><span class="p">,</span>                                                <span class="c1">#所属年份</span>
            <span class="s2">&quot;month&quot;</span><span class="p">:</span><span class="s2">&quot;3&quot;</span><span class="p">,</span>                                                  <span class="c1">#所属月份</span>
            <span class="s2">&quot;product_line_type&quot;</span><span class="p">:</span><span class="s2">&quot;3&quot;</span><span class="p">,</span>                                   <span class="c1">#产品线类型(安防、交通、客流、维保)</span>
            <span class="s2">&quot;contract_state&quot;</span><span class="p">:</span><span class="s2">&quot;2&quot;</span><span class="p">,</span>                                      <span class="c1">#合同状态(已完成、待发货,施工中,项目暂停)</span>
            <span class="s2">&quot;contract_type&quot;</span><span class="p">:</span><span class="s2">&quot;3&quot;</span><span class="p">,</span>                                     <span class="c1">#合同性质(供货,施工,集成,维保)</span>
            <span class="s2">&quot;is_end_check&quot;</span><span class="p">:</span><span class="n">true</span><span class="p">,</span>                                        <span class="c1">#是否终验</span>
            <span class="s2">&quot;is_archive&quot;</span><span class="p">:</span><span class="n">false</span><span class="p">,</span>                                             <span class="c1">#合同是否归档</span>
            <span class="s2">&quot;confirm_income_amount&quot;</span><span class="p">:</span><span class="mf">14000.00</span><span class="p">,</span>                               <span class="c1">#确定收入金额</span>
            <span class="s2">&quot;amount_state_unid&quot;</span><span class="p">:</span><span class="s2">&quot;3&quot;</span><span class="p">,</span>                                   <span class="c1">#账款状态</span>

            <span class="s2">&quot;start_date&quot;</span><span class="p">:</span><span class="s2">&quot;2018-03-02&quot;</span><span class="p">,</span>                                          <span class="c1">#签订时间,设置开始时间</span>
            <span class="s2">&quot;end_date&quot;</span><span class="p">:</span><span class="s2">&quot;2018-06-09&quot;</span><span class="p">,</span>                                            <span class="c1">#结束时间,设置结束时间</span>
            <span class="s2">&quot;amount_point&quot;</span><span class="p">:</span><span class="mf">14000.00</span><span class="p">,</span>                                        <span class="c1">#设置金额查询节点</span>
            <span class="s2">&quot;overdays_point&quot;</span><span class="p">:</span><span class="mi">176</span><span class="p">,</span>                                      <span class="c1">#设置逾期天数查询节点</span>
            <span class="s2">&quot;leave_amount_point&quot;</span><span class="p">:</span><span class="mf">1400.00</span>                                   <span class="c1">#设置应收账款余额查询节点</span>
    <span class="p">}</span>
</pre></div>
</div>
<p>Response Body:无</p>
</div></blockquote>
</div></blockquote>
</div>
</div>
<div class="section" id="id8">
<h2>2.2. 销售合同付款约定<a class="headerlink" href="#id8" title="Permalink to this headline"></a></h2>
<div class="section" id="id9">
<h3>2.2.1. 增加销售合同付款约定信息<a class="headerlink" href="#id9" title="Permalink to this headline"></a></h3>
<blockquote>
<div><div class="line-block">
<div class="line">Verb: POST</div>
<div class="line">Path: /api/v1/financial/contracts/{$contract_unid}/payments</div>
<div class="line">Header: (Content-Type: application/json)</div>
</div>
<blockquote>
<div><p>Request Body:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span> <span class="p">{</span>
        <span class="s2">&quot;list_payment_data&quot;</span><span class="p">:</span>                                                <span class="c1">#付款约定信息表</span>
        <span class="p">[</span>
                <span class="p">{</span>
                        <span class="s2">&quot;payment_progress&quot;</span><span class="p">:</span><span class="mi">2</span><span class="p">,</span>                                  <span class="c1">#付款进度(1,2,3,4)</span>
                        <span class="s2">&quot;payment_type&quot;</span><span class="p">:</span><span class="s2">&quot;3&quot;</span><span class="p">,</span>                                      <span class="c1">#付款类型,通过code服务进行选择</span>
                        <span class="s2">&quot;days&quot;</span><span class="p">:</span><span class="mi">45</span><span class="p">,</span>                                              <span class="c1">#天数</span>
                        <span class="s2">&quot;payment_propority&quot;</span><span class="p">:</span><span class="mf">0.30</span><span class="p">,</span>                                 <span class="c1">#付款比例</span>
                        <span class="s2">&quot;payment_requirement&quot;</span><span class="p">:</span><span class="s2">&quot;&quot;</span>                                  <span class="c1">#付款条件</span>
                <span class="p">},</span>
                <span class="o">...</span>
        <span class="p">]</span>
<span class="p">}</span>
</pre></div>
</div>
<p>Response Body:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="p">{</span>
        <span class="s2">&quot;ecode&quot;</span><span class="p">:</span><span class="s2">&quot;200&quot;</span><span class="p">,</span>                                                     <span class="c1">#新增成功返回码</span>
        <span class="s2">&quot;enote&quot;</span><span class="p">:</span><span class="s2">&quot;OK&quot;</span>                                                   <span class="c1">#返回说明</span>

<span class="p">}</span>
</pre></div>
</div>
</div></blockquote>
</div></blockquote>
</div>
<div class="section" id="id10">
<h3>2.2.2. 查询具体合同付款约定信息<a class="headerlink" href="#id10" title="Permalink to this headline"></a></h3>
<blockquote>
<div><div class="line-block">
<div class="line">Verb: GET</div>
<div class="line">Path: /api/v1/financial/contracts/{$contract_unid}/payments</div>
<div class="line">Header: (Content-Type: application/json)</div>
</div>
<blockquote>
<div><p>Request Body:无</p>
<p>Response Body:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="p">{</span>
            <span class="s2">&quot;list_payment_data&quot;</span><span class="p">:</span>                                            <span class="c1">#付款约定列表</span>
            <span class="p">[</span>
                    <span class="p">{</span>
                            <span class="s2">&quot;payment_unid&quot;</span><span class="p">:</span><span class="n">xxxx</span><span class="p">,</span>                                  <span class="c1">#付款unid</span>
                            <span class="s2">&quot;payment_progress&quot;</span><span class="p">:</span><span class="mi">1</span><span class="p">,</span>                              <span class="c1">#付款进度</span>
                            <span class="s2">&quot;payment_type&quot;</span><span class="p">:</span><span class="s2">&quot;2&quot;</span><span class="p">,</span>                                  <span class="c1">#付款类型</span>
                            <span class="s2">&quot;days&quot;</span><span class="p">:</span><span class="mi">23</span><span class="p">,</span>                                          <span class="c1">#天数</span>
                            <span class="s2">&quot;payment_date&quot;</span><span class="p">:</span><span class="s2">&quot;2018-03-02&quot;</span><span class="p">,</span>                                  <span class="c1">#本期应付款日期</span>
                            <span class="s2">&quot;payment_amount&quot;</span><span class="p">:</span><span class="mf">14000.00</span><span class="p">,</span>                                <span class="c1">#本期应付金额</span>
                            <span class="s2">&quot;payment_propority&quot;</span><span class="p">:</span><span class="mf">0.30</span><span class="p">,</span>                             <span class="c1">#付款比例</span>
                            <span class="s2">&quot;payment_requirement&quot;</span><span class="p">:</span><span class="s2">&quot;xxxx&quot;</span><span class="p">,</span>                           <span class="c1">#付款条件</span>
                    <span class="p">},</span>
                    <span class="o">...</span>
            <span class="p">]</span>
    <span class="p">}</span>
</pre></div>
</div>
</div></blockquote>
</div></blockquote>
</div>
<div class="section" id="id11">
<h3>2.2.3. 修改销售合同付款约定信息<a class="headerlink" href="#id11" title="Permalink to this headline"></a></h3>
<blockquote>
<div><div class="line-block">
<div class="line">Verb: PUT</div>
<div class="line">Path: /api/v1/financial/contracts/{$contract_unid}/payments</div>
<div class="line">Header: (Content-Type: application/json)</div>
</div>
<blockquote>
<div><p>Request Body:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span> <span class="p">{</span>
        <span class="s2">&quot;list_payment_data&quot;</span><span class="p">:</span>                                            <span class="c1">#付款约定列表</span>
        <span class="p">[</span>
                <span class="p">{</span>
                        <span class="s2">&quot;payment_unid&quot;</span><span class="p">:</span><span class="n">xxxx</span><span class="p">,</span>                                  <span class="c1">#付款unid</span>
                        <span class="s2">&quot;payment_progress&quot;</span><span class="p">:</span><span class="mi">2</span><span class="p">,</span>                              <span class="c1">#付款进度</span>
                        <span class="s2">&quot;payment_type&quot;</span><span class="p">:</span><span class="s2">&quot;3&quot;</span><span class="p">,</span>                                   <span class="c1">#付款类型</span>
                        <span class="s2">&quot;days&quot;</span><span class="p">:</span><span class="mi">30</span><span class="p">,</span>                                          <span class="c1">#天数</span>
                        <span class="s2">&quot;payment_propority&quot;</span><span class="p">:</span><span class="mf">0.30</span><span class="p">,</span>                             <span class="c1">#付款比例</span>
                        <span class="s2">&quot;payment_requirement&quot;</span><span class="p">:</span><span class="s2">&quot;xxxx&quot;</span>                            <span class="c1">#付款条件</span>
                <span class="p">},</span>
                <span class="o">...</span>
        <span class="p">]</span>
<span class="p">}</span>
</pre></div>
</div>
<p>Response Body:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="p">{</span>
        <span class="s2">&quot;ecode&quot;</span><span class="p">:</span><span class="s2">&quot;200&quot;</span><span class="p">,</span>                                                     <span class="c1">#修改成功返回码</span>
        <span class="s2">&quot;enote&quot;</span><span class="p">:</span><span class="s2">&quot;OK&quot;</span>                                                   <span class="c1">#返回说明</span>

<span class="p">}</span>
</pre></div>
</div>
</div></blockquote>
</div></blockquote>
</div>
<div class="section" id="id12">
<h3>2.2.4. 删除销售合同付款约定信息<a class="headerlink" href="#id12" title="Permalink to this headline"></a></h3>
<blockquote>
<div><div class="line-block">
<div class="line">Verb: DELETE</div>
<div class="line">Path: /api/v1/financial/contracts/{$contract_unid}/payments</div>
<div class="line">Header: (Content-Type: application/json)</div>
</div>
<blockquote>
<div><p>Request Body:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span> <span class="p">{</span>
        <span class="s2">&quot;payment_unids&quot;</span><span class="p">:</span>                                               <span class="c1">#付款unid数组</span>
        <span class="p">[</span>
                <span class="n">xxxx</span><span class="p">,</span>                                     <span class="c1">#付款unid</span>
                <span class="o">...</span>
        <span class="p">]</span>
<span class="p">}</span>
</pre></div>
</div>
<p>Response Body:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="p">{</span>
        <span class="s2">&quot;ecode&quot;</span><span class="p">:</span><span class="s2">&quot;200&quot;</span><span class="p">,</span>                                                     <span class="c1">#删除成功返回码</span>
        <span class="s2">&quot;enote&quot;</span><span class="p">:</span><span class="s2">&quot;OK&quot;</span>                                                   <span class="c1">#返回说明</span>

<span class="p">}</span>
</pre></div>
</div>
</div></blockquote>
</div></blockquote>
</div>
</div>
<div class="section" id="id13">
<h2>2.3. 销售合同回款<a class="headerlink" href="#id13" title="Permalink to this headline"></a></h2>
<div class="section" id="id14">
<h3>2.3.1. 增加销售合同回款信息<a class="headerlink" href="#id14" title="Permalink to this headline"></a></h3>
<blockquote>
<div><div class="line-block">
<div class="line">Verb: POST</div>
<div class="line">Path: /api/v1/financial/contracts/{$contract_unid}/rebacks</div>
<div class="line">Header: (Content-Type: application/json)</div>
</div>
<blockquote>
<div><p>Request Body:</p>
<p>Response Body:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span> <span class="p">{</span>
        <span class="s2">&quot;list_reback_data&quot;</span><span class="p">:</span>                                         <span class="c1">#合同回款信息表</span>
        <span class="p">[</span>
                <span class="p">{</span>
                        <span class="s2">&quot;reback_progress &quot;</span><span class="p">:</span><span class="mi">1</span><span class="p">,</span>                          <span class="c1">#回款进度</span>
                        <span class="s2">&quot;reback_date&quot;</span><span class="p">:</span><span class="s2">&quot;2018-06-03&quot;</span><span class="p">,</span>                               <span class="c1">#回款时间</span>
                        <span class="s2">&quot;actual_reback_amount&quot;</span><span class="p">:</span><span class="mf">14000.00</span><span class="p">,</span>                      <span class="c1">#实际回款数额</span>
                        <span class="s2">&quot;reback_note&quot;</span><span class="p">:</span><span class="s2">&quot;xxxx&quot;</span><span class="p">,</span>                               <span class="c1">#回款备注</span>
                <span class="p">},</span>
                <span class="o">...</span>
        <span class="p">]</span>
<span class="p">}</span>
</pre></div>
</div>
</div></blockquote>
<p>Response Body:</p>
<blockquote>
<div><div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="p">{</span>
        <span class="s2">&quot;ecode&quot;</span><span class="p">:</span><span class="s2">&quot;200&quot;</span><span class="p">,</span>                                                     <span class="c1">#新增成功返回码</span>
        <span class="s2">&quot;enote&quot;</span><span class="p">:</span><span class="s2">&quot;OK&quot;</span>                                                   <span class="c1">#返回说明</span>

<span class="p">}</span>
</pre></div>
</div>
</div></blockquote>
</div></blockquote>
</div>
<div class="section" id="id15">
<h3>2.3.2. 查询具体合同回款信息<a class="headerlink" href="#id15" title="Permalink to this headline"></a></h3>
<blockquote>
<div><div class="line-block">
<div class="line">Verb: GET</div>
<div class="line">Path: /api/v1/financial/contracts/{$contract_unid}/rebacks</div>
<div class="line">Header: (Content-Type: application/json)</div>
</div>
<blockquote>
<div><p>Request Body:无</p>
<blockquote>
<div>Response Body:</div></blockquote>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="p">{</span>
            <span class="s2">&quot;list_reback_data&quot;</span><span class="p">:</span>                                               <span class="c1">#回款信息列表</span>
            <span class="p">[</span>
                    <span class="p">{</span>
                            <span class="s2">&quot;reback_unid&quot;</span><span class="p">:</span><span class="n">xxxx</span><span class="p">,</span>                                       <span class="c1">#回款unid</span>
                            <span class="s2">&quot;reback_progress&quot;</span><span class="p">:</span><span class="mi">2</span><span class="p">,</span>                                 <span class="c1">#回款进度</span>
                            <span class="s2">&quot;reback_date&quot;</span><span class="p">:</span><span class="s2">&quot;2018-03-02&quot;</span><span class="p">,</span>                                     <span class="c1">#回款时间</span>
                            <span class="s2">&quot;reback_propority&quot;</span><span class="p">:</span><span class="mf">0.30</span><span class="p">,</span>                                <span class="c1">#回款比例</span>
                            <span class="s2">&quot;actual_reback_amount&quot;</span><span class="p">:</span><span class="mf">14000.00</span><span class="p">,</span>                            <span class="c1">#实际回款数额</span>
                            <span class="s2">&quot;reback_note&quot;</span><span class="p">:</span><span class="s2">&quot;xxxx&quot;</span><span class="p">,</span>                                     <span class="c1">#回款备注</span>
                    <span class="p">},</span>
                    <span class="o">...</span>
            <span class="p">]</span>
    <span class="p">}</span>
</pre></div>
</div>
</div></blockquote>
</div></blockquote>
</div>
<div class="section" id="id16">
<h3>2.3.3. 修改销售合同回款信息<a class="headerlink" href="#id16" title="Permalink to this headline"></a></h3>
<blockquote>
<div><div class="line-block">
<div class="line">Verb: PUT</div>
<div class="line">Path: /api/v1/financial/contracts/{$contract_unid}/rebacks</div>
<div class="line">Header: (Content-Type: application/json)</div>
</div>
<blockquote>
<div><p>Request Body:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span> <span class="p">{</span>
        <span class="s2">&quot;list_reback_data&quot;</span><span class="p">:</span>                                            <span class="c1">#回款信息列表</span>
        <span class="p">[</span>
                <span class="p">{</span>
                        <span class="s2">&quot;reback_unid&quot;</span><span class="p">:</span><span class="n">xxxx</span><span class="p">,</span>                                  <span class="c1">#回款unid</span>
                        <span class="s2">&quot;reback_progress&quot;</span><span class="p">:</span><span class="mi">3</span><span class="p">,</span>                              <span class="c1">#回款进度</span>
                        <span class="s2">&quot;reback_date&quot;</span><span class="p">:</span><span class="s2">&quot;2018-03-02&quot;</span><span class="p">,</span>                                  <span class="c1">#回款时间</span>
                        <span class="s2">&quot;actual_reback_amount&quot;</span><span class="p">:</span><span class="mf">14000.00</span><span class="p">,</span>                         <span class="c1">#实际回款数额</span>
                        <span class="s2">&quot;reback_note &quot;</span><span class="p">:</span><span class="s2">&quot;xxxx&quot;</span><span class="p">,</span>                                 <span class="c1">#回款备注</span>
                <span class="p">},</span>
                <span class="o">...</span>
        <span class="p">]</span>
<span class="p">}</span>
</pre></div>
</div>
<p>Response Body:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="p">{</span>
        <span class="s2">&quot;ecode&quot;</span><span class="p">:</span><span class="s2">&quot;200&quot;</span><span class="p">,</span>                                                     <span class="c1">#修改成功返回码</span>
        <span class="s2">&quot;enote&quot;</span><span class="p">:</span><span class="s2">&quot;OK&quot;</span>                                                   <span class="c1">#返回说明</span>

<span class="p">}</span>
</pre></div>
</div>
</div></blockquote>
</div></blockquote>
</div>
<div class="section" id="id17">
<h3>2.3.4. 删除销售合同回款信息<a class="headerlink" href="#id17" title="Permalink to this headline"></a></h3>
<blockquote>
<div><div class="line-block">
<div class="line">Verb: DELETE</div>
<div class="line">Path: /api/v1/financial/contracts/{$contract_unid}/rebacks</div>
<div class="line">Header: (Content-Type: application/json)</div>
</div>
<blockquote>
<div><p>Request Body:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span> <span class="p">{</span>
        <span class="s2">&quot;reback_unids&quot;</span><span class="p">:</span>                                               <span class="c1">#回款unid数组</span>
        <span class="p">[</span>
                <span class="n">xxxx</span><span class="p">,</span>                                     <span class="c1">#回款unid</span>
                <span class="o">...</span>
        <span class="p">]</span>
<span class="p">}</span>
</pre></div>
</div>
<p>Response Body:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="p">{</span>
        <span class="s2">&quot;ecode&quot;</span><span class="p">:</span><span class="s2">&quot;200&quot;</span><span class="p">,</span>                                                     <span class="c1">#删除成功返回码</span>
        <span class="s2">&quot;enote&quot;</span><span class="p">:</span><span class="s2">&quot;OK&quot;</span>                                                   <span class="c1">#返回说明</span>

<span class="p">}</span>
</pre></div>
</div>
</div></blockquote>
</div></blockquote>
</div>
</div>
<div class="section" id="id18">
<h2>2.4. 销售合同开票<a class="headerlink" href="#id18" title="Permalink to this headline"></a></h2>
<div class="section" id="id19">
<h3>2.4.1. 增加销售合同开票信息<a class="headerlink" href="#id19" title="Permalink to this headline"></a></h3>
<blockquote>
<div><div class="line-block">
<div class="line">Verb: POST</div>
<div class="line">Path: /api/v1/financial/contracts/{$contract_unid}/receipts</div>
<div class="line">Header: (Content-Type: application/json)</div>
</div>
<blockquote>
<div><p>Request Body:</p>
<blockquote>
<div><div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="p">{</span>
      <span class="s2">&quot;list_receipt_data&quot;</span><span class="p">:</span>                                        <span class="c1">#合同发票信息表</span>
      <span class="p">[</span>
              <span class="p">{</span>
                      <span class="s2">&quot;receipt_progress&quot;</span><span class="p">:</span><span class="mi">3</span><span class="p">,</span>                          <span class="c1">#开票进度</span>
                      <span class="s2">&quot;receipt_amount&quot;</span><span class="p">:</span><span class="mf">14000.00</span><span class="p">,</span>                            <span class="c1">#开票金额</span>
                      <span class="s2">&quot;oa_flow_id&quot;</span><span class="p">:</span><span class="s2">&quot;12345&quot;</span><span class="p">,</span>                                <span class="c1">#oa流水号</span>
                      <span class="s2">&quot;receipt_note&quot;</span><span class="p">:</span><span class="s2">&quot;xxxx&quot;</span><span class="p">,</span>                              <span class="c1">#发票备注</span>
              <span class="p">},</span>
              <span class="o">...</span>
      <span class="p">]</span>
<span class="p">}</span>
</pre></div>
</div>
</div></blockquote>
<p>Response Body:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="p">{</span>
        <span class="s2">&quot;ecode&quot;</span><span class="p">:</span><span class="s2">&quot;200&quot;</span><span class="p">,</span>                                                     <span class="c1">#新增成功返回码</span>
        <span class="s2">&quot;enote&quot;</span><span class="p">:</span><span class="s2">&quot;OK&quot;</span>                                                   <span class="c1">#返回说明</span>

<span class="p">}</span>
</pre></div>
</div>
</div></blockquote>
</div></blockquote>
</div>
<div class="section" id="id20">
<h3>2.4.2. 查询具体合同开票信息<a class="headerlink" href="#id20" title="Permalink to this headline"></a></h3>
<blockquote>
<div><div class="line-block">
<div class="line">Verb: GET</div>
<div class="line">Path: /api/v1/financial/contracts/{$contract_unid}/receipts</div>
<div class="line">Header: (Content-Type: application/json)</div>
</div>
<blockquote>
<div><p>Request Body:无</p>
<blockquote>
<div>Response Body:</div></blockquote>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="p">{</span>
            <span class="s2">&quot;list_receipt_data&quot;</span><span class="p">:</span>                                            <span class="c1">#开票信息列表</span>
            <span class="p">[</span>
                    <span class="p">{</span>
                            <span class="s2">&quot;receipt_unid&quot;</span><span class="p">:</span><span class="n">xxxx</span><span class="p">,</span>                                    <span class="c1">#发票unid</span>
                            <span class="s2">&quot;receipt_progress&quot;</span><span class="p">:</span><span class="mi">3</span><span class="p">,</span>                              <span class="c1">#开票次数</span>
                            <span class="s2">&quot;oa_flow_id &quot;</span><span class="p">:</span><span class="s2">&quot;12345&quot;</span><span class="p">,</span>                                   <span class="c1">#oa流水号</span>
                            <span class="s2">&quot;receipt_amount&quot;</span><span class="p">:</span><span class="mf">14000.00</span><span class="p">,</span>                                <span class="c1">#开票金额</span>
                            <span class="s2">&quot;total_receipt_amount&quot;</span><span class="p">:</span><span class="mf">5000.00</span><span class="p">,</span>                          <span class="c1">#累计开票金额</span>
                            <span class="s2">&quot;receipt_propority&quot;</span><span class="p">:</span><span class="mf">0.30</span><span class="p">,</span>                             <span class="c1">#开票比例</span>
                            <span class="s2">&quot;receipt_note&quot;</span><span class="p">:</span><span class="s2">&quot;xxxx&quot;</span><span class="p">,</span>                                  <span class="c1">#开票备注</span>
                            <span class="s2">&quot;create_date&quot;</span><span class="p">:</span><span class="s2">&quot;2018-03-02&quot;</span><span class="p">,</span>                                   <span class="c1">#开票时间</span>
                    <span class="p">},</span>
                    <span class="o">...</span>
            <span class="p">]</span>
    <span class="p">}</span>
</pre></div>
</div>
</div></blockquote>
</div></blockquote>
</div>
<div class="section" id="id21">
<h3>2.4.3. 修改销售合同开票信息<a class="headerlink" href="#id21" title="Permalink to this headline"></a></h3>
<blockquote>
<div><div class="line-block">
<div class="line">Verb: PUT</div>
<div class="line">Path: /api/v1/financial/contracts/{$contract_unid}/receipts</div>
<div class="line">Header: (Content-Type: application/json)</div>
</div>
<blockquote>
<div><p>Request Body:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span> <span class="p">{</span>
        <span class="s2">&quot;list_receipt_data&quot;</span><span class="p">:</span>                                        <span class="c1">#合同发票信息表</span>
        <span class="p">[</span>
                <span class="p">{</span>
                        <span class="s2">&quot;receipt_unid&quot;</span><span class="p">:</span><span class="n">xxxx</span><span class="p">,</span>                              <span class="c1">#发票unid</span>
                        <span class="s2">&quot;receipt_progress&quot;</span><span class="p">:</span><span class="mi">3</span><span class="p">,</span>                          <span class="c1">#开票进度</span>
                        <span class="s2">&quot;receipt_amount&quot;</span><span class="p">:</span><span class="mf">14000.00</span><span class="p">,</span>                            <span class="c1">#开票金额</span>
                        <span class="s2">&quot;oa_flow_id&quot;</span><span class="p">:</span><span class="s2">&quot;12345&quot;</span><span class="p">,</span>                                <span class="c1">#oa流水号</span>
                        <span class="s2">&quot;receipt_note&quot;</span><span class="p">:</span><span class="s2">&quot;xxxx&quot;</span><span class="p">,</span>                              <span class="c1">#发票备注</span>
                <span class="p">},</span>
                <span class="o">...</span>
        <span class="p">]</span>
<span class="p">}</span>
</pre></div>
</div>
<p>Response Body:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="p">{</span>
        <span class="s2">&quot;ecode&quot;</span><span class="p">:</span><span class="s2">&quot;200&quot;</span><span class="p">,</span>                                                     <span class="c1">#修改成功返回码</span>
        <span class="s2">&quot;enote&quot;</span><span class="p">:</span><span class="s2">&quot;OK&quot;</span>                                                   <span class="c1">#返回说明</span>

<span class="p">}</span>
</pre></div>
</div>
</div></blockquote>
</div></blockquote>
</div>
<div class="section" id="id22">
<h3>2.4.4. 删除销售合同开票信息<a class="headerlink" href="#id22" title="Permalink to this headline"></a></h3>
<blockquote>
<div><div class="line-block">
<div class="line">Verb: DELETE</div>
<div class="line">Path: /api/v1/financial/contracts/{$contract_unid}/receipts</div>
<div class="line">Header: (Content-Type: application/json)</div>
</div>
<blockquote>
<div><p>Request Body:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span> <span class="p">{</span>
        <span class="s2">&quot;receipt_unids&quot;</span><span class="p">:</span>                                                <span class="c1">#发票unid数组</span>
        <span class="p">[</span>
                <span class="n">xxxx</span><span class="p">,</span>                                     <span class="c1">#发票unid</span>
                <span class="o">...</span>
        <span class="p">]</span>
<span class="p">}</span>
</pre></div>
</div>
<p>Response Body:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="p">{</span>
        <span class="s2">&quot;ecode&quot;</span><span class="p">:</span><span class="s2">&quot;200&quot;</span><span class="p">,</span>                                                     <span class="c1">#删除成功返回码</span>
        <span class="s2">&quot;enote&quot;</span><span class="p">:</span><span class="s2">&quot;OK&quot;</span>                                                   <span class="c1">#返回说明</span>

<span class="p">}</span>
</pre></div>
</div>
</div></blockquote>
</div></blockquote>
</div>
</div>
<div class="section" id="id23">
<h2>2.5. 销售合同发货<a class="headerlink" href="#id23" title="Permalink to this headline"></a></h2>
<div class="section" id="id24">
<h3>2.5.1. 增加销售合同发货信息<a class="headerlink" href="#id24" title="Permalink to this headline"></a></h3>
<blockquote>
<div><div class="line-block">
<div class="line">Verb: POST</div>
<div class="line">Path: /api/v1/financial/contracts/{$contract_unid}/delivers</div>
<div class="line">Header: (Content-Type: application/json)</div>
</div>
<blockquote>
<div><p>Request Body:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span> <span class="p">{</span>
        <span class="s2">&quot;list_deliver_data&quot;</span><span class="p">:</span>                                                <span class="c1">#合同发货信息表</span>
        <span class="p">[</span>
                <span class="p">{</span>
                        <span class="s2">&quot;deliver_goods_date&quot;</span><span class="p">:</span><span class="s2">&quot;2018-03-02&quot;</span><span class="p">,</span>                       <span class="c1">#发货时间</span>
                        <span class="s2">&quot;goods_acceptanc_date&quot;</span><span class="p">:</span><span class="s2">&quot;2018-06-03&quot;</span><span class="p">,</span>                        <span class="c1">#到货验收时间</span>
                        <span class="p">(</span><span class="s2">&quot;goods_sign_appendix&quot;</span><span class="p">:</span><span class="s2">&quot;xxxx&quot;</span><span class="p">,</span>                      <span class="c1">#到货签收单附件)</span>
                        <span class="s2">&quot;appendix_unids&quot;</span><span class="p">:[</span><span class="s2">&quot;xxxx&quot;</span><span class="p">,</span><span class="s2">&quot;xxxx&quot;</span><span class="p">,</span><span class="o">...</span><span class="p">]</span>                                                <span class="c1">#合同附件(若有附件上传该字段)</span>
                <span class="p">},</span>
                <span class="o">...</span>
        <span class="p">]</span>
<span class="p">}</span>
</pre></div>
</div>
<p>Response Body:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="p">{</span>
        <span class="s2">&quot;ecode&quot;</span><span class="p">:</span><span class="s2">&quot;200&quot;</span><span class="p">,</span>                                                         <span class="c1">#增加成功返回码</span>
        <span class="s2">&quot;enote&quot;</span><span class="p">:</span><span class="s2">&quot;OK&quot;</span>                                                       <span class="c1">#返回说明</span>

<span class="p">}</span>
</pre></div>
</div>
</div></blockquote>
</div></blockquote>
</div>
<div class="section" id="id25">
<h3>2.5.2. 查询具体合同发货信息<a class="headerlink" href="#id25" title="Permalink to this headline"></a></h3>
<blockquote>
<div><div class="line-block">
<div class="line">Verb: GET</div>
<div class="line">Path: /api/v1/financial/contracts/{$contract_unid}/delivers</div>
<div class="line">Header: (Content-Type: application/json)</div>
</div>
<blockquote>
<div><p>Request Body:无</p>
<blockquote>
<div>Response Body:</div></blockquote>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="p">{</span>
            <span class="s2">&quot;list_deliver_data&quot;</span><span class="p">:</span>                                            <span class="c1">#发货信息列表</span>
            <span class="p">[</span>
                    <span class="p">{</span>
                            <span class="s2">&quot;deliver_unid&quot;</span><span class="p">:</span><span class="n">xxxx</span><span class="p">,</span>                                    <span class="c1">#发货unid</span>
                            <span class="s2">&quot;deliver_goods_date&quot;</span><span class="p">:</span><span class="s2">&quot;2018-03-02&quot;</span><span class="p">,</span>                            <span class="c1">#发货时间</span>
                            <span class="s2">&quot;goods_acceptanc_date &quot;</span><span class="p">:</span><span class="s2">&quot;2018-06-09&quot;</span><span class="p">,</span>                             <span class="c1">#到货验收时间</span>
                            <span class="s2">&quot;appendix_list&quot;</span><span class="p">:</span>                                      <span class="c1">#附件列表集合</span>
                            <span class="p">[</span>
                                    <span class="p">{</span>
                                      <span class="s2">&quot;appendix_unid&quot;</span><span class="p">:</span><span class="s2">&quot;1234&quot;</span><span class="p">,</span>                         <span class="c1">#附件unid</span>
                                      <span class="s2">&quot;appendix_url&quot;</span><span class="p">:</span><span class="s2">&quot;http://xxxx.pdf&quot;</span>                <span class="c1">#附件url</span>
                                    <span class="p">}</span>
                                    <span class="o">...</span>
                            <span class="p">]</span>
                    <span class="p">},</span>
                    <span class="o">...</span>
            <span class="p">]</span>
    <span class="p">}</span>
</pre></div>
</div>
</div></blockquote>
</div></blockquote>
</div>
<div class="section" id="id26">
<h3>2.5.3. 修改销售合同发货信息<a class="headerlink" href="#id26" title="Permalink to this headline"></a></h3>
<blockquote>
<div><div class="line-block">
<div class="line">Verb: PUT</div>
<div class="line">Path: /api/v1/financial/contracts/{$contract_unid}/delivers</div>
<div class="line">Header: (Content-Type: application/json)</div>
</div>
<blockquote>
<div><p>Request Body:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span> <span class="p">{</span>
        <span class="s2">&quot;list_deliver_data&quot;</span><span class="p">:</span>                                                <span class="c1">#合同发货信息表</span>
        <span class="p">[</span>
                <span class="p">{</span>
                        <span class="s2">&quot;deliver_unid&quot;</span><span class="p">:</span><span class="n">xxxx</span><span class="p">,</span>                             <span class="c1">#发货unid</span>
                        <span class="s2">&quot;deliver_goods_date&quot;</span><span class="p">:</span><span class="s2">&quot;2018-03-02&quot;</span><span class="p">,</span>                       <span class="c1">#发货时间</span>
                        <span class="s2">&quot;goods_acceptanc_date&quot;</span><span class="p">:</span><span class="s2">&quot;2018-03-02&quot;</span><span class="p">,</span>                     <span class="c1">#到货验收时间</span>
                        <span class="p">(</span><span class="s2">&quot;goods_sign_appendix&quot;</span><span class="p">:</span><span class="s2">&quot;xxxx&quot;</span><span class="p">,)</span>                      <span class="c1">#到货签收单附件</span>
                        <span class="s2">&quot;appendix_unids&quot;</span><span class="p">:[</span><span class="s2">&quot;xxxx&quot;</span><span class="p">,</span><span class="s2">&quot;xxxx&quot;</span><span class="p">,</span><span class="o">...</span><span class="p">],</span>                                      <span class="c1">#合同附件(若有附件上传该字段</span>
                <span class="p">},</span>
                <span class="o">...</span>
        <span class="p">]</span>
<span class="p">}</span>
</pre></div>
</div>
<p>Response Body:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="p">{</span>
        <span class="s2">&quot;ecode&quot;</span><span class="p">:</span><span class="s2">&quot;200&quot;</span><span class="p">,</span>                                                     <span class="c1">#修改成功返回码</span>
        <span class="s2">&quot;enote&quot;</span><span class="p">:</span><span class="s2">&quot;OK&quot;</span>                                                   <span class="c1">#返回说明</span>

<span class="p">}</span>
</pre></div>
</div>
</div></blockquote>
</div></blockquote>
</div>
<div class="section" id="id27">
<h3>2.5.4. 删除销售合同发货信息<a class="headerlink" href="#id27" title="Permalink to this headline"></a></h3>
<blockquote>
<div><div class="line-block">
<div class="line">Verb: DELETE</div>
<div class="line">Path: /api/v1/financial/contracts/{$contract_unid}/delivers</div>
<div class="line">Header: (Content-Type: application/json)</div>
</div>
<blockquote>
<div><p>Request Body:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span> <span class="p">{</span>
        <span class="s2">&quot;deliver_unids&quot;</span><span class="p">:</span>                                               <span class="c1">#发货unid数组</span>
        <span class="p">[</span>
                <span class="s2">&quot;deliver_unid&quot;</span><span class="p">:</span><span class="n">xxxx</span><span class="p">,</span>                                     <span class="c1">#发货unid</span>
                <span class="o">...</span>
        <span class="p">]</span>
<span class="p">}</span>
</pre></div>
</div>
<p>Response Body:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="p">{</span>
        <span class="s2">&quot;ecode&quot;</span><span class="p">:</span><span class="s2">&quot;200&quot;</span><span class="p">,</span>                                                     <span class="c1">#删除成功返回码</span>
        <span class="s2">&quot;enote&quot;</span><span class="p">:</span><span class="s2">&quot;OK&quot;</span>                                                   <span class="c1">#返回说明</span>

<span class="p">}</span>
</pre></div>
</div>
</div></blockquote>
</div></blockquote>
</div>
</div>
<div class="section" id="id28">
<h2>2.6. 销售合同工程验收<a class="headerlink" href="#id28" title="Permalink to this headline"></a></h2>
<div class="section" id="id29">
<h3>2.6.1. 增加销售合同工程验收信息<a class="headerlink" href="#id29" title="Permalink to this headline"></a></h3>
<blockquote>
<div><div class="line-block">
<div class="line">Verb: POST</div>
<div class="line">Path: /api/v1/financial/contracts/{$contract_unid}/project/acceptancs</div>
<div class="line">Header: (Content-Type: application/json)</div>
</div>
<blockquote>
<div><p>Request Body:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span> <span class="p">{</span>
        <span class="s2">&quot;list_check_data&quot;</span><span class="p">:</span>
        <span class="p">[</span>
                <span class="p">{</span>
                        <span class="s2">&quot;acceptanc_type&quot;</span><span class="p">:</span><span class="s2">&quot;1&quot;</span><span class="p">,</span>                                     <span class="c1">#验收类型(1为初验、2为终验</span>
                        <span class="s2">&quot;acceptanc_date&quot;</span><span class="p">:</span><span class="s2">&quot;2018-06-09&quot;</span><span class="p">,</span>                                     <span class="c1">#验收时间</span>
                        <span class="s2">&quot;acceptanc_note&quot;</span><span class="p">:</span><span class="s2">&quot;xxxx&quot;</span>                                      <span class="c1">#验收备注</span>
                        <span class="s2">&quot;appendix_unids&quot;</span><span class="p">:[</span><span class="s2">&quot;1234&quot;</span><span class="p">,</span><span class="s2">&quot;5678&quot;</span><span class="p">,</span><span class="o">...</span><span class="p">]</span>                     <span class="c1">#附件列表</span>
                <span class="p">}</span>
        <span class="p">]</span>

<span class="p">}</span>
</pre></div>
</div>
<p>Response Body:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="p">{</span>
        <span class="s2">&quot;ecode&quot;</span><span class="p">:</span><span class="s2">&quot;200&quot;</span><span class="p">,</span>                                                       <span class="c1">#增加成功返回码</span>
        <span class="s2">&quot;enote&quot;</span><span class="p">:</span><span class="s2">&quot;OK&quot;</span>                                                     <span class="c1">#返回说明</span>

<span class="p">}</span>
</pre></div>
</div>
</div></blockquote>
</div></blockquote>
</div>
<div class="section" id="id30">
<h3>2.6.2. 查询具体合同工程验收信息<a class="headerlink" href="#id30" title="Permalink to this headline"></a></h3>
<blockquote>
<div><div class="line-block">
<div class="line">Verb: GET</div>
<div class="line">Path: /api/v1/financial/contracts/{$contract_unid}/project/acceptancs</div>
<div class="line">Header: (Content-Type: application/json)</div>
</div>
<blockquote>
<div><p>Request Body:无</p>
<blockquote>
<div>Response Body:</div></blockquote>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="p">{</span>
            <span class="s2">&quot;list_check_data&quot;</span><span class="p">:</span>                                            <span class="c1">#工程验收信息列表</span>
            <span class="p">[</span>
                    <span class="p">{</span>
                            <span class="s2">&quot;acceptanc_unid&quot;</span><span class="p">:</span><span class="n">xxxx</span><span class="p">,</span>                                  <span class="c1">#工程id</span>
                            <span class="s2">&quot;acceptanc_type&quot;</span><span class="p">:</span><span class="s2">&quot;2&quot;</span><span class="p">,</span>                                  <span class="c1">#验收类型</span>
                            <span class="s2">&quot;acceptanc_date&quot;</span><span class="p">:</span><span class="s2">&quot;2018-07-02&quot;</span><span class="p">,</span>                                  <span class="c1">#验收时间</span>
                            <span class="s2">&quot;acceptanc_note&quot;</span><span class="p">:</span><span class="s2">&quot;xxxx&quot;</span><span class="p">,</span>                                  <span class="c1">#验收备注</span>
                            <span class="s2">&quot;appendix_list&quot;</span><span class="p">:</span>                                      <span class="c1">#附件列表集合</span>
                            <span class="p">[</span>
                                    <span class="p">{</span>
                                      <span class="s2">&quot;appendix_unid&quot;</span><span class="p">:</span><span class="s2">&quot;1234&quot;</span><span class="p">,</span>                         <span class="c1">#附件unid</span>
                                      <span class="s2">&quot;appendix_url&quot;</span><span class="p">:</span><span class="s2">&quot;http://xxxx.pdf&quot;</span>                <span class="c1">#附件url</span>
                                    <span class="p">}</span>
                                    <span class="o">...</span>
                            <span class="p">]</span>
                    <span class="p">},</span>
                    <span class="o">...</span>
            <span class="p">]</span>
    <span class="p">}</span>
</pre></div>
</div>
</div></blockquote>
</div></blockquote>
</div>
<div class="section" id="id31">
<h3>2.6.3. 修改销售合同工程验收信息<a class="headerlink" href="#id31" title="Permalink to this headline"></a></h3>
<blockquote>
<div><div class="line-block">
<div class="line">Verb: PUT</div>
<div class="line">Path: /api/v1/financial/contracts/{$contract_unid}/project/acceptancs</div>
<div class="line">Header: (Content-Type: application/json)</div>
</div>
<blockquote>
<div><p>Request Body:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span> <span class="p">{</span>
        <span class="s2">&quot;list_check_data&quot;</span><span class="p">:</span>                                               <span class="c1">#工程验收信息表</span>
        <span class="p">[</span>
                <span class="p">{</span>
                        <span class="s2">&quot;acceptanc_unid&quot;</span><span class="p">:</span><span class="n">xxxx</span><span class="p">,</span>                                     <span class="c1">#工程验收unid</span>
                        <span class="s2">&quot;acceptanc_type&quot;</span><span class="p">:</span><span class="s2">&quot;2&quot;</span><span class="p">,</span>                                     <span class="c1">#验收类型(1为初验、2为终验)</span>
                        <span class="s2">&quot;acceptanc_date&quot;</span><span class="p">:</span><span class="s2">&quot;2018-05-02&quot;</span><span class="p">,</span>                               <span class="c1">#验收时间</span>
                        <span class="s2">&quot;acceptanc_note&quot;</span><span class="p">:</span><span class="s2">&quot;xxxx&quot;</span>                                      <span class="c1">#验收备注</span>
                        <span class="s2">&quot;appendix_unids&quot;</span><span class="p">:[</span><span class="s2">&quot;1234&quot;</span><span class="p">,</span><span class="s2">&quot;5678&quot;</span><span class="p">,</span><span class="o">...</span><span class="p">]</span>                     <span class="c1">#附件列表</span>
                <span class="p">},</span>
                <span class="o">...</span>
        <span class="p">]</span>
<span class="p">}</span>
</pre></div>
</div>
<p>Response Body:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="p">{</span>
        <span class="s2">&quot;ecode&quot;</span><span class="p">:</span><span class="s2">&quot;200&quot;</span><span class="p">,</span>                                                     <span class="c1">#修改成功返回码</span>
        <span class="s2">&quot;enote&quot;</span><span class="p">:</span><span class="s2">&quot;OK&quot;</span>                                                   <span class="c1">#返回说明</span>

<span class="p">}</span>
</pre></div>
</div>
</div></blockquote>
</div></blockquote>
</div>
<div class="section" id="id32">
<h3>2.6.4. 删除销售合同工程验收信息<a class="headerlink" href="#id32" title="Permalink to this headline"></a></h3>
<blockquote>
<div><div class="line-block">
<div class="line">Verb: DELETE</div>
<div class="line">Path: /api/v1/financial/contracts/{$contract_unid}/project/acceptancs</div>
<div class="line">Header: (Content-Type: application/json)</div>
</div>
<blockquote>
<div><p>Request Body:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span> <span class="p">{</span>
        <span class="s2">&quot;acceptanc_unids&quot;</span><span class="p">:</span>                                               <span class="c1">#验收unid数组</span>
        <span class="p">[</span>
                <span class="s2">&quot;acceptanc_unid&quot;</span><span class="p">:</span><span class="n">xxxx</span><span class="p">,</span>                                     <span class="c1">#验收unid</span>
                <span class="o">...</span>
        <span class="p">]</span>
<span class="p">}</span>
</pre></div>
</div>
<p>Response Body:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="p">{</span>
        <span class="s2">&quot;ecode&quot;</span><span class="p">:</span><span class="s2">&quot;200&quot;</span><span class="p">,</span>                                                     <span class="c1">#删除成功返回码</span>
        <span class="s2">&quot;enote&quot;</span><span class="p">:</span><span class="s2">&quot;OK&quot;</span>                                                   <span class="c1">#返回说明</span>

<span class="p">}</span>
</pre></div>
</div>
</div></blockquote>
</div></blockquote>
</div>
</div>
<div class="section" id="id33">
<h2>2.7. 上传附件<a class="headerlink" href="#id33" title="Permalink to this headline"></a></h2>
<blockquote>
<div><div class="line-block">
<div class="line">Verb: POST</div>
<div class="line">Path: /api/v1/financial/contracts/{$contract_unid}/upload/appendixes</div>
<div class="line">Header: (Content-Type: multipart/form-data)</div>
</div>
<blockquote>
<div><p>Request Body:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span> <span class="p">{</span>
   <span class="s2">&quot;business_table&quot;</span><span class="p">:</span><span class="s2">&quot;project_acceptanc&quot;</span><span class="p">,</span>            <span class="c1">#业务表名</span>
   <span class="s2">&quot;appendix_files&quot;</span><span class="p">:[</span><span class="s2">&quot;xxxx&quot;</span><span class="p">,</span><span class="s2">&quot;xxxxx&quot;</span><span class="p">]</span>                <span class="c1">#上传附件文件(file类型</span>
<span class="p">}</span>
</pre></div>
</div>
<p>Response Body:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="p">{</span>
        <span class="s2">&quot;appendix_data&quot;</span><span class="p">:[</span>
            <span class="p">{</span>
              <span class="s2">&quot;business_table&quot;</span><span class="p">:</span><span class="s2">&quot;project_acceptanc&quot;</span><span class="p">,</span>   <span class="c1">#业务表名</span>
              <span class="s2">&quot;appendix_unid&quot;</span><span class="p">:</span><span class="n">xxxxxxx</span>               <span class="c1">#附件主键</span>
            <span class="p">},</span>
            <span class="o">...</span>
        <span class="p">]</span>

<span class="p">}</span>
</pre></div>
</div>
</div></blockquote>
</div></blockquote>
</div>
<div class="section" id="id34">
<h2>2.8. 查询合同编号<a class="headerlink" href="#id34" title="Permalink to this headline"></a></h2>
<blockquote>
<div><div class="line-block">
<div class="line">Verb: GET</div>
<div class="line">Path: /api/v1/financial/contracts/codes</div>
<div class="line">Header: (Content-Type: application/json)</div>
</div>
<blockquote>
<div><p>Request Body:无</p>
<p>Request Body:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="p">{</span>
            <span class="s2">&quot;contract_unids&quot;</span><span class="p">:</span>   <span class="c1">#合同编号集合</span>
            <span class="p">[</span>
                <span class="s2">&quot;2018-032&quot;</span><span class="p">,</span>
                <span class="s2">&quot;2018-079&quot;</span><span class="p">,</span>
                <span class="o">...</span>
            <span class="p">]</span>
    <span class="p">}</span>
</pre></div>
</div>
</div></blockquote>
</div></blockquote>
</div>
<div class="section" id="id35">
<h2>2.9. 查询顾客表<a class="headerlink" href="#id35" title="Permalink to this headline"></a></h2>
<blockquote>
<div><div class="line-block">
<div class="line">Verb: GET</div>
<div class="line">Path: /api/v1/financial/contracts/customers</div>
<div class="line">Header: (Content-Type: application/json)</div>
</div>
<blockquote>
<div><p>Request Body:无</p>
<p>Request Body:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="p">{</span>
            <span class="s2">&quot;customer_list&quot;</span><span class="p">:</span>                                 <span class="c1">#顾客列表集合</span>
            <span class="p">[</span>
                    <span class="p">{</span>
                            <span class="s2">&quot;customer_unid&quot;</span><span class="p">:</span><span class="mi">1000</span><span class="p">,</span>                  <span class="c1">#顾客id</span>
                            <span class="s2">&quot;customer_name&quot;</span><span class="p">:</span><span class="s2">&quot;金源时代购物中心有限公司&quot;</span>                   <span class="c1">#顾客名称</span>
                    <span class="p">},</span>
                    <span class="o">...</span>
            <span class="p">]</span>
    <span class="p">}</span>
</pre></div>
</div>
</div></blockquote>
</div></blockquote>
</div>
<div class="section" id="id36">
<h2>2.10. 查询项目表<a class="headerlink" href="#id36" title="Permalink to this headline"></a></h2>
<blockquote>
<div><div class="line-block">
<div class="line">Verb: GET</div>
<div class="line">Path: /api/v1/financial/contracts/projects</div>
<div class="line">Header: (Content-Type: application/json)</div>
</div>
<blockquote>
<div><p>Request Body:无</p>
<p>Request Body:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="p">{</span>
            <span class="s2">&quot;project_list&quot;</span><span class="p">:</span>                                 <span class="c1">#项目列表集合</span>
            <span class="p">[</span>
                    <span class="p">{</span>
                            <span class="s2">&quot;project_unid&quot;</span><span class="p">:</span><span class="mi">1234</span><span class="p">,</span>                 <span class="c1">#项目id</span>
                            <span class="s2">&quot;project_name&quot;</span><span class="p">:</span><span class="s2">&quot;金源时代客流项目&quot;</span>                  <span class="c1">#项目名称</span>
                    <span class="p">},</span>
                    <span class="o">...</span>
            <span class="p">]</span>
    <span class="p">}</span>
</pre></div>
</div>
</div></blockquote>
</div></blockquote>
</div>
</div>


           </div>
           
          </div>
          <footer>
  
    <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
      
        <a href="99-history.html" class="btn btn-neutral float-right" title="3. 修订历史" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
      
      
        <a href="01-db.html" class="btn btn-neutral" title="1. 数据库设计" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
      
    </div>
  

  <hr/>

  <div role="contentinfo">
    <p>
        &copy; Copyright 2017, xf.

    </p>
  </div>
  Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. 

</footer>

        </div>
      </div>

    </section>

  </div>
  


  

    <script type="text/javascript">
        var DOCUMENTATION_OPTIONS = {
            URL_ROOT:'./',
            VERSION:'1.0',
            LANGUAGE:'None',
            COLLAPSE_INDEX:false,
            FILE_SUFFIX:'.html',
            HAS_SOURCE:  true,
            SOURCELINK_SUFFIX: '.txt'
        };
    </script>
      <script type="text/javascript" src="_static/jquery.js"></script>
      <script type="text/javascript" src="_static/underscore.js"></script>
      <script type="text/javascript" src="_static/doctools.js"></script>

  

  <script type="text/javascript" src="_static/js/theme.js"></script>

  <script type="text/javascript">
      jQuery(function () {
          SphinxRtdTheme.Navigation.enable(true);
      });
  </script> 

</body>
</html>