Commit 0b20d8bf by 熊付 Committed by 王军业

Merge branch 'develop' of http://192.168.9.26/platform/finance_serv into develop

2 parents d2675737 3b0ab6aa
Showing 61 changed files with 3005 additions and 370 deletions
File mode changed
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 6c937b6a8bab5b3dfdb53b68effcbb44
config: a8479a52507365f5865f7c204313313a
tags: 645f666f9bcd5a90fca523b33c5a78b7
......@@ -24,27 +24,19 @@
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<link rel="index" title="Index"
href="genindex.html"/>
<link rel="search" title="Search" href="search.html"/>
<link rel="top" title="finance_serv 1.0 documentation" href="index.html"/>
<link rel="next" title="2. 修订历史" href="99-history.html"/>
<link rel="prev" title="财务进度服务设计" href="index.html"/>
<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="2. 财务进度服务http接口" href="02-finance-http.html" />
<link rel="prev" title="财务进度服务设计" href="index.html" />
<script src="_static/js/modernizr.min.js"></script>
</head>
<body class="wy-body-for-nav" role="document">
<body class="wy-body-for-nav">
<div class="wy-grid-for-nav">
......@@ -93,10 +85,17 @@
<p class="caption"><span class="caption-text">目录:</span></p>
<ul class="current">
<li class="toctree-l1 current"><a class="current reference internal" href="#">1. 数据库设计</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#id2">1.1. 合同表</a></li>
<li class="toctree-l2"><a class="reference internal" href="#id2">1.1. 销售合同表</a></li>
<li class="toctree-l2"><a class="reference internal" href="#id3">1.2. 付款约定表</a></li>
<li class="toctree-l2"><a class="reference internal" href="#id4">1.3. 合同回款信息表</a></li>
<li class="toctree-l2"><a class="reference internal" href="#id5">1.4. 合同开票信息表</a></li>
<li class="toctree-l2"><a class="reference internal" href="#id6">1.5. 发货信息表</a></li>
<li class="toctree-l2"><a class="reference internal" href="#id7">1.6. 工程验收信息表</a></li>
<li class="toctree-l2"><a class="reference internal" href="#id8">1.7. 附件表</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="99-history.html">2. 修订历史</a></li>
<li class="toctree-l1"><a class="reference internal" href="02-finance-http.html">2. 财务进度服务http接口</a></li>
<li class="toctree-l1"><a class="reference internal" href="99-history.html">3. 修订历史</a></li>
</ul>
......@@ -108,7 +107,7 @@
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
<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>
......@@ -116,9 +115,10 @@
</nav>
<div class="wy-nav-content">
<div class="rst-content">
......@@ -163,7 +163,7 @@
<div class="section" id="id1">
<h1>1. 数据库设计<a class="headerlink" href="#id1" title="Permalink to this headline"></a></h1>
<div class="section" id="id2">
<h2>1.1. 合同表<a class="headerlink" href="#id2" title="Permalink to this headline"></a></h2>
<h2>1.1. 销售合同表<a class="headerlink" href="#id2" title="Permalink to this headline"></a></h2>
<blockquote>
<div><p>表名: tb_contract</p>
<table border="1" class="docutils">
......@@ -188,26 +188,714 @@
<tr class="row-even"><td>contract_code</td>
<td><em></em></td>
<td>string</td>
<td>&lt;=50</td>
<td>&lt;=32</td>
<td></td>
<td>合同编号(合同表主键</td>
<td>合同编号(主键),通过
code服务进行选择</td>
</tr>
<tr class="row-odd"><td>salesperson_unid</td>
<td><em></em></td>
<td>string</td>
<td>&lt;=32</td>
<td></td>
<td></td>
<td>销售员,通过code服
务进行选择</td>
</tr>
<tr class="row-even"><td>customer_unid</td>
<tr class="row-even"><td>project_unid</td>
<td><em></em></td>
<td>string</td>
<td>&lt;=50</td>
<td></td>
<td>&lt;=32</td>
<td></td>
<td>项目名称,通过code服务
进行选择</td>
</tr>
<tr class="row-odd"><td>customer_unid</td>
<td><em></em></td>
<td>string</td>
<td>&lt;=32</td>
<td></td>
<td>客户名称,通过code服务
进行选择</td>
</tr>
<tr class="row-even"><td>location_province</td>
<td><em></em></td>
<td>string</td>
<td>&lt;=32</td>
<td></td>
<td>项目所在地的省份</td>
</tr>
<tr class="row-odd"><td>location_city</td>
<td><em></em></td>
<td>string</td>
<td>&lt;=32</td>
<td></td>
<td>项目所在地的市</td>
</tr>
<tr class="row-even"><td>location_area</td>
<td><em></em></td>
<td>string</td>
<td>&lt;=32</td>
<td></td>
<td>项目所在地的县(区)</td>
</tr>
<tr class="row-odd"><td>quality_cycle</td>
<td><em></em></td>
<td>int</td>
<td>&lt;=16</td>
<td></td>
<td>质保周期,通过code服务进
行选择</td>
</tr>
<tr class="row-even"><td>sign_date</td>
<td><em></em></td>
<td>date</td>
<td>&lt;=16</td>
<td></td>
<td>签订时间</td>
</tr>
<tr class="row-odd"><td>year</td>
<td><em></em></td>
<td>string</td>
<td>&lt;=4</td>
<td></td>
<td>所属年份</td>
</tr>
<tr class="row-even"><td>month</td>
<td><em></em></td>
<td>string</td>
<td>&lt;=2</td>
<td></td>
<td>所属月份</td>
</tr>
<tr class="row-odd"><td>product_line_type</td>
<td><em></em></td>
<td>string</td>
<td>&lt;=32</td>
<td></td>
<td>产品线类型,通过code服务
进行选择</td>
</tr>
<tr class="row-even"><td>contract_state</td>
<td><em></em></td>
<td>string</td>
<td>&lt;=32</td>
<td></td>
<td>合同状态,通过code服务进
行选择</td>
</tr>
<tr class="row-odd"><td>contract_nature</td>
<td><em></em></td>
<td>string</td>
<td>&lt;=32</td>
<td></td>
<td>合同性质,通过code服务进
行选择</td>
</tr>
<tr class="row-even"><td>contract_amount</td>
<td><em></em></td>
<td>float</td>
<td>&lt;=24</td>
<td></td>
<td>合同金额</td>
</tr>
<tr class="row-odd"><td>deduct_amount</td>
<td><em></em></td>
<td>float</td>
<td>&lt;=24</td>
<td></td>
<td>抵扣金额</td>
</tr>
<tr class="row-even"><td>contract_amount_note</td>
<td><em></em></td>
<td>text</td>
<td>&#160;</td>
<td></td>
<td>合同金额备注</td>
</tr>
<tr class="row-odd"><td>total_reback_amount</td>
<td><em></em></td>
<td>float</td>
<td>&lt;=24</td>
<td></td>
<td>累计回款额</td>
</tr>
<tr class="row-even"><td>stop_amount</td>
<td><em></em></td>
<td>float</td>
<td>&lt;=24</td>
<td></td>
<td>暂停金额</td>
</tr>
<tr class="row-odd"><td>reback_note</td>
<td><em></em></td>
<td>text</td>
<td>&#160;</td>
<td></td>
<td>累计回款额备注</td>
</tr>
<tr class="row-even"><td>contract_remaining</td>
<td><em></em></td>
<td>float</td>
<td>&lt;=24</td>
<td></td>
<td>合同余额</td>
</tr>
<tr class="row-odd"><td>exemptions_amount</td>
<td><em></em></td>
<td>float</td>
<td>&lt;=24</td>
<td></td>
<td>豁免金额</td>
</tr>
<tr class="row-even"><td>contract_remain_note</td>
<td><em></em></td>
<td>text</td>
<td>&#160;</td>
<td></td>
<td>合同余额备注</td>
</tr>
<tr class="row-odd"><td>is_file</td>
<td><em></em></td>
<td>bool</td>
<td>&#160;</td>
<td></td>
<td>是否归档,通过code服务进
行选择</td>
</tr>
<tr class="row-even"><td>bad_amount</td>
<td><em></em></td>
<td>float</td>
<td>&lt;=24</td>
<td></td>
<td>坏账金额</td>
</tr>
<tr class="row-odd"><td>bad_amount_note</td>
<td><em></em></td>
<td>text</td>
<td>&#160;</td>
<td></td>
<td>坏账金额备注</td>
</tr>
<tr class="row-even"><td>total_receive_amount</td>
<td><em></em></td>
<td>float</td>
<td>&lt;=24</td>
<td></td>
<td>累计应收款</td>
</tr>
<tr class="row-odd"><td>total_leave_amount</td>
<td><em></em></td>
<td>float</td>
<td>&lt;=24</td>
<td></td>
<td>应收账款余额</td>
</tr>
<tr class="row-even"><td>over_days_unid</td>
<td><em></em></td>
<td>int</td>
<td>&lt;=16</td>
<td></td>
<td>逾期天数</td>
</tr>
<tr class="row-odd"><td>confirm_income_amount</td>
<td><em></em></td>
<td>float</td>
<td>&lt;=24</td>
<td></td>
<td>确定收入金额</td>
</tr>
<tr class="row-even"><td>amount_state_unid</td>
<td><em></em></td>
<td>string</td>
<td>&lt;=32</td>
<td></td>
<td>账款状态,通过code服务进行
选择</td>
</tr>
<tr class="row-odd"><td>start_guarantee_date</td>
<td><em></em></td>
<td>date</td>
<td>&#160;</td>
<td></td>
<td>维保服务期开始时间</td>
</tr>
<tr class="row-even"><td>end_guarantee_date</td>
<td><em></em></td>
<td>date</td>
<td>&#160;</td>
<td></td>
<td>维保服务期结束时间</td>
</tr>
<tr class="row-odd"><td>quality_start_point</td>
<td><em></em></td>
<td>string</td>
<td>&lt;=32</td>
<td></td>
<td>质保期开始节点</td>
</tr>
<tr class="row-even"><td>start_quality_date</td>
<td><em></em></td>
<td>date</td>
<td>&#160;</td>
<td></td>
<td>质保期开始时间</td>
</tr>
<tr class="row-odd"><td>end_quality_date</td>
<td><em></em></td>
<td>date</td>
<td>&#160;</td>
<td></td>
<td>质保期结束时间</td>
</tr>
<tr class="row-even"><td>contract_note</td>
<td><em></em></td>
<td>text</td>
<td>&#160;</td>
<td></td>
<td>合同备注</td>
</tr>
<tr class="row-odd"><td>contract_identify</td>
<td><em></em></td>
<td>bool</td>
<td>&#160;</td>
<td></td>
<td>合同标识</td>
</tr>
</tbody>
</table>
</div></blockquote>
</div>
<div class="section" id="id3">
<h2>1.2. 付款约定表<a class="headerlink" href="#id3" title="Permalink to this headline"></a></h2>
<blockquote>
<div><p>表名:tb_payment_agree</p>
<table border="1" class="docutils">
<colgroup>
<col width="25%" />
<col width="14%" />
<col width="12%" />
<col width="12%" />
<col width="10%" />
<col width="28%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">字段名称</th>
<th class="head">是否必填</th>
<th class="head">类型</th>
<th class="head">限制</th>
<th class="head">唯一</th>
<th class="head">说明</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td>payment_id</td>
<td><em></em></td>
<td>string</td>
<td>&lt;=32</td>
<td></td>
<td>主键</td>
</tr>
<tr class="row-odd"><td>contract_code</td>
<td><em></em></td>
<td>String</td>
<td>&lt;=32</td>
<td></td>
<td>合同编号,通过code服务进
行选择</td>
</tr>
<tr class="row-even"><td>payment_period_state</td>
<td><em></em></td>
<td>string</td>
<td>&lt;=10</td>
<td></td>
<td>合同状态,通过code服务进
行选择</td>
</tr>
<tr class="row-odd"><td>total_days</td>
<td><em></em></td>
<td>int</td>
<td>&lt;=32</td>
<td></td>
<td>天数</td>
</tr>
<tr class="row-even"><td>payment_agree_date</td>
<td><em></em></td>
<td>date</td>
<td>&#160;</td>
<td></td>
<td>应付款日期</td>
</tr>
<tr class="row-odd"><td>payment_amount</td>
<td><em></em></td>
<td>float</td>
<td>&lt;=16</td>
<td></td>
<td>应付金额</td>
</tr>
<tr class="row-even"><td>payment_propority</td>
<td><em></em></td>
<td>float</td>
<td>&lt;=16</td>
<td></td>
<td>付款比例,通过code服务进
行选择</td>
</tr>
<tr class="row-odd"><td>payment_requirement</td>
<td><em></em></td>
<td>text</td>
<td>&#160;</td>
<td></td>
<td>付款条件</td>
</tr>
</tbody>
</table>
</div></blockquote>
</div>
<div class="section" id="id4">
<h2>1.3. 合同回款信息表<a class="headerlink" href="#id4" title="Permalink to this headline"></a></h2>
<blockquote>
<div><p>表名:tb_return_info</p>
<table border="1" class="docutils">
<colgroup>
<col width="25%" />
<col width="14%" />
<col width="12%" />
<col width="12%" />
<col width="10%" />
<col width="28%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">字段名称</th>
<th class="head">是否必填</th>
<th class="head">类型</th>
<th class="head">限制</th>
<th class="head">唯一</th>
<th class="head">说明</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td>return_id</td>
<td><em></em></td>
<td>string</td>
<td>&lt;=32</td>
<td></td>
<td>主键</td>
</tr>
<tr class="row-odd"><td>contract_code</td>
<td><em></em></td>
<td>string</td>
<td>&lt;=32</td>
<td></td>
<td>合同编号,通过code服务进
行选择</td>
</tr>
<tr class="row-even"><td>payment_period_number</td>
<td><em></em></td>
<td>int</td>
<td>&lt;=16</td>
<td></td>
<td>付款期数</td>
</tr>
<tr class="row-odd"><td>actual_reback_amount</td>
<td><em></em></td>
<td>float</td>
<td>&lt;=24</td>
<td></td>
<td>实际回款数额</td>
</tr>
<tr class="row-even"><td>reback_propority</td>
<td><em></em></td>
<td>float</td>
<td>&lt;=24</td>
<td></td>
<td>回款比例</td>
</tr>
<tr class="row-odd"><td>reback_note</td>
<td><em></em></td>
<td>text</td>
<td>&#160;</td>
<td></td>
<td>回款备注</td>
</tr>
</tbody>
</table>
</div></blockquote>
</div>
<div class="section" id="id5">
<h2>1.4. 合同开票信息表<a class="headerlink" href="#id5" title="Permalink to this headline"></a></h2>
<blockquote>
<div><p>表名:tb_receipt</p>
<table border="1" class="docutils">
<colgroup>
<col width="25%" />
<col width="14%" />
<col width="12%" />
<col width="12%" />
<col width="10%" />
<col width="28%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">字段名称</th>
<th class="head">是否必填</th>
<th class="head">类型</th>
<th class="head">限制</th>
<th class="head">唯一</th>
<th class="head">说明</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td>receipt_id</td>
<td><em></em></td>
<td>string</td>
<td>&lt;=32</td>
<td></td>
<td>合同开票信息主键</td>
</tr>
<tr class="row-odd"><td>contract_code</td>
<td><em></em></td>
<td>string</td>
<td>&lt;=32</td>
<td></td>
<td>合同编号,通过code服务进
行选择</td>
</tr>
<tr class="row-even"><td>receipt_progress</td>
<td><em></em></td>
<td>int</td>
<td>&lt;=16</td>
<td></td>
<td>开票进度</td>
</tr>
<tr class="row-odd"><td>receipt_amount</td>
<td><em></em></td>
<td>float</td>
<td>&lt;=24</td>
<td></td>
<td>开票金额</td>
</tr>
<tr class="row-even"><td>oa_flow_id</td>
<td><em></em></td>
<td>int</td>
<td>&lt;=32</td>
<td></td>
<td>oa流水号</td>
</tr>
<tr class="row-odd"><td>receipt_propority</td>
<td><em></em></td>
<td>float</td>
<td>&lt;=24</td>
<td></td>
<td>开票比例</td>
</tr>
<tr class="row-even"><td>total_receipt_amount</td>
<td><em></em></td>
<td>float</td>
<td>&lt;=24</td>
<td></td>
<td>累计开票金额</td>
</tr>
<tr class="row-odd"><td>is_reback</td>
<td><em></em></td>
<td>bool</td>
<td>&#160;</td>
<td></td>
<td>是否回款</td>
</tr>
<tr class="row-even"><td>receipt_note</td>
<td><em></em></td>
<td>text</td>
<td>&#160;</td>
<td></td>
<td>发票备注</td>
</tr>
</tbody>
</table>
</div></blockquote>
</div>
<div class="section" id="id6">
<h2>1.5. 发货信息表<a class="headerlink" href="#id6" title="Permalink to this headline"></a></h2>
<blockquote>
<div><p>表名:tb_deliver_goods</p>
<table border="1" class="docutils">
<colgroup>
<col width="25%" />
<col width="14%" />
<col width="12%" />
<col width="12%" />
<col width="10%" />
<col width="28%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">字段名称</th>
<th class="head">是否必填</th>
<th class="head">类型</th>
<th class="head">限制</th>
<th class="head">唯一</th>
<th class="head">说明</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td>deliver_id</td>
<td><em></em></td>
<td>string</td>
<td>&lt;=32</td>
<td></td>
<td>发货信息主键</td>
</tr>
<tr class="row-odd"><td>contract_code</td>
<td><em></em></td>
<td>string</td>
<td>&lt;=32</td>
<td></td>
<td>合同编号,通过code服务进
行选择</td>
</tr>
<tr class="row-even"><td>deliver_goods_date</td>
<td><em></em></td>
<td>date</td>
<td>&#160;</td>
<td></td>
<td>发货时间</td>
</tr>
<tr class="row-odd"><td>goods_check_date</td>
<td><em></em></td>
<td>date</td>
<td>&#160;</td>
<td></td>
<td>到货验收时间</td>
</tr>
</tbody>
</table>
</div></blockquote>
</div>
<div class="section" id="id7">
<h2>1.6. 工程验收信息表<a class="headerlink" href="#id7" title="Permalink to this headline"></a></h2>
<blockquote>
<div><p>表名:tb_project_check</p>
<table border="1" class="docutils">
<colgroup>
<col width="25%" />
<col width="14%" />
<col width="12%" />
<col width="12%" />
<col width="10%" />
<col width="28%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">字段名称</th>
<th class="head">是否必填</th>
<th class="head">类型</th>
<th class="head">限制</th>
<th class="head">唯一</th>
<th class="head">说明</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td>project_id</td>
<td><em></em></td>
<td>string</td>
<td>&lt;=32</td>
<td></td>
<td>工程验收信息主键</td>
</tr>
<tr class="row-odd"><td>contract_code</td>
<td><em></em></td>
<td>string</td>
<td>&lt;=32</td>
<td></td>
<td>合同编号,通过code服务进
行选择</td>
</tr>
<tr class="row-even"><td>is_first_check</td>
<td><em></em></td>
<td>bool</td>
<td>&#160;</td>
<td></td>
<td>是否是初验</td>
</tr>
<tr class="row-odd"><td>first_check_date</td>
<td><em></em></td>
<td>date</td>
<td>&#160;</td>
<td></td>
<td>初验时间</td>
</tr>
<tr class="row-even"><td>is_end_check</td>
<td><em></em></td>
<td>bool</td>
<td>&#160;</td>
<td></td>
<td>是否是终验</td>
</tr>
<tr class="row-odd"><td>end_check_date</td>
<td><em></em></td>
<td>date</td>
<td>&#160;</td>
<td></td>
<td>终验时间</td>
</tr>
<tr class="row-even"><td>check_note</td>
<td><em></em></td>
<td>text</td>
<td>&#160;</td>
<td></td>
<td>验收备注</td>
</tr>
</tbody>
</table>
</div></blockquote>
</div>
<div class="section" id="id8">
<h2>1.7. 附件表<a class="headerlink" href="#id8" title="Permalink to this headline"></a></h2>
<blockquote>
<div><p>表名:tb_appendix</p>
<table border="1" class="docutils">
<colgroup>
<col width="25%" />
<col width="14%" />
<col width="12%" />
<col width="12%" />
<col width="10%" />
<col width="28%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">字段名称</th>
<th class="head">是否必填</th>
<th class="head">类型</th>
<th class="head">限制</th>
<th class="head">唯一</th>
<th class="head">说明</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td>appendix_id</td>
<td><em></em></td>
<td>string</td>
<td>&lt;=32</td>
<td></td>
<td>附件主键</td>
</tr>
<tr class="row-odd"><td>foreign_key</td>
<td><em></em></td>
<td>string</td>
<td>&#160;</td>
<td></td>
<td>合同及子表的主键</td>
</tr>
<tr class="row-even"><td>appendix_type</td>
<td><em></em></td>
<td>string</td>
<td>&#160;</td>
<td></td>
<td>附件类型</td>
</tr>
<tr class="row-odd"><td>appendix_url</td>
<td><em></em></td>
<td>string</td>
<td>&#160;</td>
<td></td>
<td>附件下载地址</td>
</tr>
</tbody>
</table>
</div></blockquote>
......@@ -216,15 +904,13 @@
</div>
<div class="articleComments">
</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="2. 修订历史" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
<a href="02-finance-http.html" class="btn btn-neutral float-right" title="2. 财务进度服务http接口" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
<a href="index.html" class="btn btn-neutral" title="财务进度服务设计" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
......@@ -240,7 +926,7 @@
</p>
</div>
Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
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>
......@@ -259,6 +945,7 @@
var DOCUMENTATION_OPTIONS = {
URL_ROOT:'./',
VERSION:'1.0',
LANGUAGE:'None',
COLLAPSE_INDEX:false,
FILE_SUFFIX:'.html',
HAS_SOURCE: true,
......@@ -271,19 +958,13 @@
<script type="text/javascript" src="_static/js/theme.js"></script>
<script type="text/javascript" src="_static/js/theme.js"></script>
<script type="text/javascript">
jQuery(function () {
SphinxRtdTheme.StickyNav.enable();
SphinxRtdTheme.Navigation.enable(true);
});
</script>
</script>
</body>
</html>
\ No newline at end of file
<!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></li>
<li class="toctree-l2"><a class="reference internal" href="#id2">2.2. 查询合同详情</a></li>
<li class="toctree-l2"><a class="reference internal" href="#id3">2.3. 删除销售合同</a></li>
<li class="toctree-l2"><a class="reference internal" href="#id4">2.4. 修改销售合同</a></li>
<li class="toctree-l2"><a class="reference internal" href="#id5">2.5. 查询合同列表</a></li>
<li class="toctree-l2"><a class="reference internal" href="#id6">2.6. 导出表格</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>
<blockquote>
<div><div class="line-block">
<div class="line">Verb: POST</div>
<div class="line">Path: /api/v1/financial/contract</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;constract_code&quot;&quot;:&quot;</span><span class="mi">2018</span><span class="o">-</span><span class="mo">07</span><span class="mi">9</span><span class="s2">&quot;, #合同编号,选择</span>
<span class="s2">&quot;salesperson_unid&quot;</span><span class="p">:</span><span class="s2">&quot;吴旭&quot;</span><span class="p">,</span> <span class="c1">#销售员id,选择</span>
<span class="s2">&quot;project_unid&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;北京金源时代购物中心有限公司&quot;</span><span class="p">,</span> <span class="c1">#客户名称,选择</span>
<span class="s2">&quot;location_province&quot;</span><span class="p">:</span><span class="s2">&quot;河北省&quot;</span><span class="p">,</span> <span class="c1">#项目所在地的省份</span>
<span class="s2">&quot;location_city&quot;</span><span class="p">:</span><span class="s2">&quot;沧州市&quot;</span><span class="p">,</span> <span class="c1">#项目所在地的市区</span>
<span class="s2">&quot;location_area&quot;</span><span class="p">:</span><span class="s2">&quot;献县&quot;</span><span class="p">,</span> <span class="c1">#项目所在地的县或区</span>
<span class="s2">&quot;quality_cycle&quot;</span><span class="p">:</span><span class="s2">&quot;6/12/.../60&quot;</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/3/9&quot;</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;xxxx&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;xxxx&quot;</span><span class="p">,</span> <span class="c1">#合同状态,(已完成、待发货,施工中,项目暂停)</span>
<span class="s2">&quot;contract_nature&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_amount&quot;</span><span class="p">:</span><span class="s2">&quot;140000.00&quot;</span><span class="p">,</span> <span class="c1">#合同金额,小数点保留两位</span>
<span class="s2">&quot;deduct_amount&quot;</span><span class="p">:</span><span class="s2">&quot;5000.00&quot;</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;total_reback_amount&quot;</span><span class="p">:</span><span class="s2">&quot;133000.00&quot;</span><span class="p">,</span> <span class="c1">#累计回款额,小数点保留两位</span>
<span class="s2">&quot;stop_amount&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;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_remaining&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="s2">&quot;xxxx&quot;</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_file&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;bad_amount&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;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="s2">&quot;xxxx&quot;</span><span class="p">,</span> <span class="c1">#累计应收款,小数点保留两位</span>
<span class="s2">&quot;total_leave_amount&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;over_days_unid&quot;</span><span class="p">:</span><span class="s2">&quot;176&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="s2">&quot;xxxx&quot;</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;xxxx&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;xxxx&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;xxxx&quot;</span><span class="p">,</span> <span class="c1">#维保服务期结束时间</span>
<span class="s2">&quot;quality_start_point&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;start_quality_date&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;end_quality_date&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_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_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;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_id&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;payment_period_number&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;payment_period_state&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_days&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;payment_agree_date&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;payment_amount&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;payment_propority&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;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="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;return_id&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;payment_period_number&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;actual_reback_amount&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;reback_propority&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;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="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_id&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;receipt_progress&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;receipt_amount&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;oa_flow_id&quot;</span><span class="p">:</span><span class="s2">&quot;xxxx&quot;</span><span class="p">,</span> <span class="c1">#oa流水号</span>
<span class="s2">&quot;receipt_propority&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_receipt_amount&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_reback&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;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="s2">&quot;deliver_goods_date&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;goodsl_check_date&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;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;is_first_check&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;first_check_date&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;first_check_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;is_end_check&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;end_check_date&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;check_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;end_check_appendix&quot;</span><span class="p">:</span><span class="s2">&quot;xxxx&quot;</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;ecote&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="id2">
<h2>2.2. 查询合同详情<a class="headerlink" href="#id2" 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/contract/{constract_code}</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;constract_code&quot;&quot;:&quot;</span><span class="mi">2018</span><span class="o">-</span><span class="mo">07</span><span class="mi">9</span><span class="s2">&quot;, #合同编号,选择</span>
<span class="s2">&quot;salesperson_unid&quot;</span><span class="p">:</span><span class="s2">&quot;吴旭&quot;</span><span class="p">,</span> <span class="c1">#销售员id,选择</span>
<span class="s2">&quot;project_unid&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;北京金源时代购物中心有限公司&quot;</span><span class="p">,</span> <span class="c1">#客户名称,选择</span>
<span class="s2">&quot;location_province&quot;</span><span class="p">:</span><span class="s2">&quot;河北省&quot;</span><span class="p">,</span> <span class="c1">#项目所在地的省份</span>
<span class="s2">&quot;location_city&quot;</span><span class="p">:</span><span class="s2">&quot;沧州市&quot;</span><span class="p">,</span> <span class="c1">#项目所在地的市区</span>
<span class="s2">&quot;location_area&quot;</span><span class="p">:</span><span class="s2">&quot;献县&quot;</span><span class="p">,</span> <span class="c1">#项目所在地的县或区</span>
<span class="s2">&quot;quality_cycle&quot;</span><span class="p">:</span><span class="s2">&quot;6/12/.../60&quot;</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/3/9&quot;</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;xxxx&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;xxxx&quot;</span><span class="p">,</span> <span class="c1">#合同状态,(已完成、待发货,施工中,项目暂停)</span>
<span class="s2">&quot;contract_nature&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_amount&quot;</span><span class="p">:</span><span class="s2">&quot;140000.00&quot;</span><span class="p">,</span> <span class="c1">#合同金额,小数点保留两位</span>
<span class="s2">&quot;deduct_amount&quot;</span><span class="p">:</span><span class="s2">&quot;5000.00&quot;</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;total_reback_amount&quot;</span><span class="p">:</span><span class="s2">&quot;133000.00&quot;</span><span class="p">,</span> <span class="c1">#累计回款额,小数点保留两位</span>
<span class="s2">&quot;stop_amount&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;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_remaining&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="s2">&quot;xxxx&quot;</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_file&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;bad_amount&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;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="s2">&quot;xxxx&quot;</span><span class="p">,</span> <span class="c1">#累计应收款,小数点保留两位</span>
<span class="s2">&quot;total_leave_amount&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;over_days_unid&quot;</span><span class="p">:</span><span class="s2">&quot;176&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="s2">&quot;xxxx&quot;</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;xxxx&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;xxxx&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;xxxx&quot;</span><span class="p">,</span> <span class="c1">#维保服务期结束时间</span>
<span class="s2">&quot;quality_start_point&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;start_quality_date&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;end_quality_date&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_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_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;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_id&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;payment_period_number&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;payment_period_state&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_days&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;payment_agree_date&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;payment_amount&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;payment_propority&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;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="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;return_id&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;payment_period_number&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;actual_reback_amount&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;reback_propority&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;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="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_id&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;receipt_progress&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;receipt_amount&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;oa_flow_id&quot;</span><span class="p">:</span><span class="s2">&quot;xxxx&quot;</span><span class="p">,</span> <span class="c1">#oa流水号</span>
<span class="s2">&quot;receipt_propority&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_receipt_amount&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_reback&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;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="s2">&quot;deliver_goods_date&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;goodsl_check_date&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;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;is_first_check&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;first_check_date&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;first_check_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;is_end_check&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;end_check_date&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;check_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;end_check_appendix&quot;</span><span class="p">:</span><span class="s2">&quot;xxxx&quot;</span> <span class="c1">#终验附件</span>
<span class="p">}</span>
</pre></div>
</div>
</div></blockquote>
</div></blockquote>
</div>
<div class="section" id="id3">
<h2>2.3. 删除销售合同<a class="headerlink" href="#id3" title="Permalink to this headline"></a></h2>
<blockquote>
<div><div class="line-block">
<div class="line">Verb: DELETE</div>
<div class="line">Path: /api/v1/financial/contract/{constract_code}</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;ecote&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="id4">
<h2>2.4. 修改销售合同<a class="headerlink" href="#id4" 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/contract/{constract_code}</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;constract_code&quot;&quot;:&quot;</span><span class="mi">2018</span><span class="o">-</span><span class="mo">07</span><span class="mi">9</span><span class="s2">&quot;, #合同编号,选择</span>
<span class="s2">&quot;salesperson_unid&quot;</span><span class="p">:</span><span class="s2">&quot;吴旭&quot;</span><span class="p">,</span> <span class="c1">#销售员id,选择</span>
<span class="s2">&quot;project_unid&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;北京金源时代购物中心有限公司&quot;</span><span class="p">,</span> <span class="c1">#客户名称,选择</span>
<span class="s2">&quot;location_province&quot;</span><span class="p">:</span><span class="s2">&quot;河北省&quot;</span><span class="p">,</span> <span class="c1">#项目所在地的省份</span>
<span class="s2">&quot;location_city&quot;</span><span class="p">:</span><span class="s2">&quot;沧州市&quot;</span><span class="p">,</span> <span class="c1">#项目所在地的市区</span>
<span class="s2">&quot;location_area&quot;</span><span class="p">:</span><span class="s2">&quot;献县&quot;</span><span class="p">,</span> <span class="c1">#项目所在地的县或区</span>
<span class="s2">&quot;quality_cycle&quot;</span><span class="p">:</span><span class="s2">&quot;6/12/.../60&quot;</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/3/9&quot;</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;xxxx&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;xxxx&quot;</span><span class="p">,</span> <span class="c1">#合同状态,(已完成、待发货,施工中,项目暂停)</span>
<span class="s2">&quot;contract_nature&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_amount&quot;</span><span class="p">:</span><span class="s2">&quot;140000.00&quot;</span><span class="p">,</span> <span class="c1">#合同金额,小数点保留两位</span>
<span class="s2">&quot;deduct_amount&quot;</span><span class="p">:</span><span class="s2">&quot;5000.00&quot;</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;total_reback_amount&quot;</span><span class="p">:</span><span class="s2">&quot;133000.00&quot;</span><span class="p">,</span> <span class="c1">#累计回款额,小数点保留两位</span>
<span class="s2">&quot;stop_amount&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;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_remaining&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="s2">&quot;xxxx&quot;</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_file&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;bad_amount&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;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="s2">&quot;xxxx&quot;</span><span class="p">,</span> <span class="c1">#累计应收款,小数点保留两位</span>
<span class="s2">&quot;total_leave_amount&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;over_days_unid&quot;</span><span class="p">:</span><span class="s2">&quot;176&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="s2">&quot;xxxx&quot;</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;xxxx&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;xxxx&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;xxxx&quot;</span><span class="p">,</span> <span class="c1">#维保服务期结束时间</span>
<span class="s2">&quot;quality_start_point&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;start_quality_date&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;end_quality_date&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_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_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;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_id&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;payment_period_number&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;payment_period_state&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_days&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;payment_agree_date&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;payment_amount&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;payment_propority&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;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="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;return_id&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;payment_period_number&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;actual_reback_amount&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;reback_propority&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;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="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_id&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;receipt_progress&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;receipt_amount&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;oa_flow_id&quot;</span><span class="p">:</span><span class="s2">&quot;xxxx&quot;</span><span class="p">,</span> <span class="c1">#oa流水号</span>
<span class="s2">&quot;receipt_propority&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_receipt_amount&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_reback&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;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="s2">&quot;deliver_goods_date&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;goodsl_check_date&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;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;is_first_check&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;first_check_date&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;first_check_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;is_end_check&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;end_check_date&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;check_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;end_check_appendix&quot;</span><span class="p">:</span><span class="s2">&quot;xxxx&quot;</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;ecote&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">
<h2>2.5. 查询合同列表<a class="headerlink" href="#id5" 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/contract</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;吴旭&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;金源时代客流项目&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;北京金源时代购物中心有限公司&quot;</span><span class="p">,</span> <span class="c1">#客户名称</span>
<span class="s2">&quot;location_province&quot;</span><span class="p">:</span><span class="s2">&quot;河北省&quot;</span><span class="p">,</span> <span class="c1">#项目所在省</span>
<span class="s2">&quot;location_city&quot;</span><span class="p">:</span><span class="s2">&quot;沧州市&quot;</span><span class="p">,</span> <span class="c1">#项目所在市</span>
<span class="s2">&quot;location_area&quot;</span><span class="p">:</span><span class="s2">&quot;献县&quot;</span><span class="p">,</span> <span class="c1">#项目所在县(区)</span>
<span class="s2">&quot;quality_cycle&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;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;xxxx&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;xxxx&quot;</span><span class="p">,</span> <span class="c1">#合同状态(已完成、待发货,施工中,项目暂停)</span>
<span class="s2">&quot;contract_nature&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_end_check&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_file&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="s2">&quot;xxxx&quot;</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;xxxx&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;xxxx&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;xxxx&quot;</span><span class="p">,</span> <span class="c1">#结束时间,设置结束时间</span>
<span class="s2">&quot;amount_point&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;overdays_point&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;leave_amount_point&quot;</span><span class="p">:</span><span class="s2">&quot;xxxx&quot;</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="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;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;product_line_type&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;sign_date&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;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;salesperson_unid&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;location_province&quot;</span><span class="p">:</span><span class="s2">&quot;河北省&quot;</span><span class="p">,</span> <span class="c1">#所在省份</span>
<span class="s2">&quot;location_city&quot;</span><span class="p">:</span><span class="s2">&quot;沧州市&quot;</span><span class="p">,</span> <span class="c1">#所在市</span>
<span class="s2">&quot;location_area&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;北京金源时代购物中心有限公司&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;金源时代客流项目&quot;</span><span class="p">,</span> <span class="c1">#项目名称</span>
<span class="s2">&quot;contract_amount&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="s2">&quot;xxxx&quot;</span><span class="p">,</span> <span class="c1">#暂停金额</span>
<span class="s2">&quot;bad_amount&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="s2">&quot;xxxx&quot;</span><span class="p">,</span> <span class="c1">#豁免金额</span>
<span class="s2">&quot;deduct_amount&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_reback_amount&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_remaining&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;amount_state_unid&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="s2">&quot;xxxx&quot;</span><span class="p">,</span> <span class="c1">#累计应收款</span>
<span class="s2">&quot;total_leave_amount&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;over_days_unid&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;payment_amount&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;payment_amount&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;payment_amount&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;payment_amount&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;deliver_goods_date&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;payment_agree_date&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;payment_agree_date&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;end_quality_date&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;goods_check_date&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;check_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>
</pre></div>
</div>
</div></blockquote>
</div></blockquote>
</div>
<div class="section" id="id6">
<h2>2.6. 导出表格<a class="headerlink" href="#id6" 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/contract/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_unid&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;金源时代客流项目&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;北京金源时代购物中心有限公司&quot;</span><span class="p">,</span> <span class="c1">#客户名称</span>
<span class="s2">&quot;location_province&quot;</span><span class="p">:</span><span class="s2">&quot;河北省&quot;</span><span class="p">,</span> <span class="c1">#项目所在省</span>
<span class="s2">&quot;location_city&quot;</span><span class="p">:</span><span class="s2">&quot;沧州市&quot;</span><span class="p">,</span> <span class="c1">#项目所在市</span>
<span class="s2">&quot;location_area&quot;</span><span class="p">:</span><span class="s2">&quot;献县&quot;</span><span class="p">,</span> <span class="c1">#项目所在县(区)</span>
<span class="s2">&quot;quality_cycle&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;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;xxxx&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;xxxx&quot;</span><span class="p">,</span> <span class="c1">#合同状态(已完成、待发货,施工中,项目暂停)</span>
<span class="s2">&quot;contract_nature&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_end_check&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_file&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="s2">&quot;xxxx&quot;</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;xxxx&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;xxxx&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;xxxx&quot;</span><span class="p">,</span> <span class="c1">#结束时间,设置结束时间</span>
<span class="s2">&quot;amount_point&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;overdays_point&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;leave_amount_point&quot;</span><span class="p">:</span><span class="s2">&quot;xxxx&quot;</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>
</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>
\ No newline at end of file
......@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>2. 修订历史 &mdash; finance_serv 1.0 documentation</title>
<title>3. 修订历史 &mdash; finance_serv 1.0 documentation</title>
......@@ -24,26 +24,18 @@
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<link rel="index" title="Index"
href="genindex.html"/>
<link rel="search" title="Search" href="search.html"/>
<link rel="top" title="finance_serv 1.0 documentation" href="index.html"/>
<link rel="prev" title="1. 数据库设计" href="01-db.html"/>
<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="prev" title="2. 财务进度服务http接口" href="02-finance-http.html" />
<script src="_static/js/modernizr.min.js"></script>
</head>
<body class="wy-body-for-nav" role="document">
<body class="wy-body-for-nav">
<div class="wy-grid-for-nav">
......@@ -92,8 +84,9 @@
<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. 修订历史</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#id2">2.1. 2018.7.14</a></li>
<li class="toctree-l1"><a class="reference internal" href="02-finance-http.html">2. 财务进度服务http接口</a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="#">3. 修订历史</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#id2">3.1. 2018.7.14</a></li>
</ul>
</li>
</ul>
......@@ -107,7 +100,7 @@
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
<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>
......@@ -115,9 +108,10 @@
</nav>
<div class="wy-nav-content">
<div class="rst-content">
......@@ -140,7 +134,7 @@
<li><a href="index.html">Docs</a> &raquo;</li>
<li>2. 修订历史</li>
<li>3. 修订历史</li>
<li class="wy-breadcrumbs-aside">
......@@ -160,9 +154,9 @@
<div itemprop="articleBody">
<div class="section" id="id1">
<h1>2. 修订历史<a class="headerlink" href="#id1" title="Permalink to this headline"></a></h1>
<h1>3. 修订历史<a class="headerlink" href="#id1" title="Permalink to this headline"></a></h1>
<div class="section" id="id2">
<h2>2.1. 2018.7.14<a class="headerlink" href="#id2" title="Permalink to this headline"></a></h2>
<h2>3.1. 2018.7.14<a class="headerlink" href="#id2" title="Permalink to this headline"></a></h2>
<ol class="arabic simple">
<li>第一版,完成概述,数据库两部分的设计。</li>
</ol>
......@@ -171,16 +165,14 @@
</div>
<div class="articleComments">
</div>
</div>
<footer>
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
<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>
<a href="02-finance-http.html" class="btn btn-neutral" title="2. 财务进度服务http接口" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
</div>
......@@ -193,7 +185,7 @@
</p>
</div>
Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
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>
......@@ -212,6 +204,7 @@
var DOCUMENTATION_OPTIONS = {
URL_ROOT:'./',
VERSION:'1.0',
LANGUAGE:'None',
COLLAPSE_INDEX:false,
FILE_SUFFIX:'.html',
HAS_SOURCE: true,
......@@ -224,19 +217,13 @@
<script type="text/javascript" src="_static/js/theme.js"></script>
<script type="text/javascript" src="_static/js/theme.js"></script>
<script type="text/javascript">
jQuery(function () {
SphinxRtdTheme.StickyNav.enable();
SphinxRtdTheme.Navigation.enable(true);
});
</script>
</script>
</body>
</html>
\ No newline at end of file
数据库设计
=======================
合同表
销售合同表
++++++++++++
表名: tb_contract
......@@ -9,11 +9,232 @@
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| 字段名称 | 是否必填 | 类型 | 限制 | 唯一 | 说明 |
+=======================+=============+===========+===========+=========+==========================+
| contract_code | *是* | string | <=50 | 是 | 合同编号(合同表主键 |
| contract_code | *是* | string | <=32 | 是 | 合同编号(主键),通过 |
| | | | | | code服务进行选择 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| salesperson_unid | *是* | string | <=32 | | 销售员,通过code服 |
| salesperson_unid | *是* | string | <=32 | | 销售员,通过code服 |
| | | | | | 务进行选择 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| customer_unid | *是* | string | <=50 | 是 | 客户名称,通过code服务 |
| project_unid | *是* | string | <=32 | 否 | 项目名称,通过code服务 |
| | | | | | 进行选择 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| customer_unid | *是* | string | <=32 | 否 | 客户名称,通过code服务 |
| | | | | | 进行选择 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| location_province | *是* | string | <=32 | 否 | 项目所在地的省份 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| location_city | *是* | string | <=32 | 否 | 项目所在地的市 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| location_area | *是* | string | <=32 | 否 | 项目所在地的县(区) |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| quality_cycle | *是* | int | <=16 | 否 | 质保周期,通过code服务进 |
| | | | | | 行选择 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| sign_date | *是* | date | <=16 | 否 | 签订时间 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| year | *是* | string | <=4 | 否 | 所属年份 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| month | *是* | string | <=2 | 否 | 所属月份 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| product_line_type | *是* | string | <=32 | 否 | 产品线类型,通过code服务 |
| | | | | | 进行选择 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| contract_state | *是* | string | <=32 | 否 | 合同状态,通过code服务进 |
| | | | | | 行选择 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| contract_nature | *是* | string | <=32 | 否 | 合同性质,通过code服务进 |
| | | | | | 行选择 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| contract_amount | *是* | float | <=24 | 否 | 合同金额 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| deduct_amount | *是* | float | <=24 | 否 | 抵扣金额 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| contract_amount_note | *否* | text | | 否 | 合同金额备注 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| total_reback_amount | *是* | float | <=24 | 否 | 累计回款额 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| stop_amount | *是* | float | <=24 | 否 | 暂停金额 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| reback_note | *否* | text | | 否 | 累计回款额备注 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| contract_remaining | *是* | float | <=24 | 否 | 合同余额 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| exemptions_amount | *是* | float | <=24 | 否 | 豁免金额 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| contract_remain_note | *否* | text | | 否 | 合同余额备注 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| is_file | *是* | bool | | 否 | 是否归档,通过code服务进 |
| | | | | | 行选择 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| bad_amount | *是* | float | <=24 | 否 | 坏账金额 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| bad_amount_note | *否* | text | | 否 | 坏账金额备注 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| total_receive_amount | *是* | float | <=24 | 否 | 累计应收款 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| total_leave_amount | *是* | float | <=24 | 否 | 应收账款余额 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| over_days_unid | *是* | int | <=16 | 否 | 逾期天数 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| confirm_income_amount | *是* | float | <=24 | 否 | 确定收入金额 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| amount_state_unid | *是* | string | <=32 | 否 | 账款状态,通过code服务进行|
| | | | | | 选择 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| start_guarantee_date | *是* | date | | 否 | 维保服务期开始时间 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| end_guarantee_date | *是* | date | | 否 | 维保服务期结束时间 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| quality_start_point | *是* | string | <=32 | 否 | 质保期开始节点 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| start_quality_date | *是* | date | | 否 | 质保期开始时间 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| end_quality_date | *是* | date | | 否 | 质保期结束时间 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| contract_note | *否* | text | | 否 | 合同备注 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| contract_identify | *否* | bool | | 否 | 合同标识 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
付款约定表
++++++++++++
表名:tb_payment_agree
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| 字段名称 | 是否必填 | 类型 | 限制 | 唯一 | 说明 |
+=======================+=============+===========+===========+=========+==========================+
| payment_id | *是* | string | <=32 | 是 | 主键 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| contract_code | *是* | String | <=32 | 否 | 合同编号,通过code服务进 |
| | | | | | 行选择 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| payment_period_state | *是* | string | <=10 | 否 | 合同状态,通过code服务进 |
| | | | | | 行选择 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| total_days | *是* | int | <=32 | 否 | 天数 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| payment_agree_date | *是* | date | | 否 | 应付款日期 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| payment_amount | *是* | float | <=16 | 否 | 应付金额 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| payment_propority | *是* | float | <=16 | 否 | 付款比例,通过code服务进 |
| | | | | | 行选择 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| payment_requirement | *是* | text | | 否 | 付款条件 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
合同回款信息表
++++++++++++++++++
表名:tb_return_info
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| 字段名称 | 是否必填 | 类型 | 限制 | 唯一 | 说明 |
+=======================+=============+===========+===========+=========+==========================+
| return_id | *是* | string | <=32 | 是 | 主键 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| contract_code | *是* | string | <=32 | 否 | 合同编号,通过code服务进 |
| | | | | | 行选择 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| payment_period_number | *是* | int | <=16 | 否 | 付款期数 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| actual_reback_amount | *是* | float | <=24 | 否 | 实际回款数额 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| reback_propority | *是* | float | <=24 | 否 | 回款比例 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| reback_note | *否* | text | | 否 | 回款备注 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
合同开票信息表
+++++++++++++++++++++
表名:tb_receipt
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| 字段名称 | 是否必填 | 类型 | 限制 | 唯一 | 说明 |
+=======================+=============+===========+===========+=========+==========================+
| receipt_id | *是* | string | <=32 | 是 | 合同开票信息主键 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| contract_code | *是* | string | <=32 | 否 | 合同编号,通过code服务进 |
| | | | | | 行选择 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| receipt_progress | *是* | int | <=16 | 否 | 开票进度 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| receipt_amount | *是* | float | <=24 | 否 | 开票金额 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| oa_flow_id | *是* | int | <=32 | 否 | oa流水号 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| receipt_propority | *是* | float | <=24 | 否 | 开票比例 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| total_receipt_amount | *是* | float | <=24 | 否 | 累计开票金额 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| is_reback | *否* | bool | | 否 | 是否回款 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| receipt_note | *是* | text | | 否 | 发票备注 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
发货信息表
++++++++++++++++
表名:tb_deliver_goods
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| 字段名称 | 是否必填 | 类型 | 限制 | 唯一 | 说明 |
+=======================+=============+===========+===========+=========+==========================+
| deliver_id | *是* | string | <=32 | 是 | 发货信息主键 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| contract_code | *是* | string | <=32 | 否 | 合同编号,通过code服务进 |
| | | | | | 行选择 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| deliver_goods_date | *是* | date | | 否 | 发货时间 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| goods_check_date | *是* | date | | 否 | 到货验收时间 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
工程验收信息表
+++++++++++++++++++
表名:tb_project_check
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| 字段名称 | 是否必填 | 类型 | 限制 | 唯一 | 说明 |
+=======================+=============+===========+===========+=========+==========================+
| project_id | *是* | string | <=32 | 是 | 工程验收信息主键 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| contract_code | *是* | string | <=32 | 否 | 合同编号,通过code服务进 |
| | | | | | 行选择 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| is_first_check | *是* | bool | | 否 | 是否是初验 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| first_check_date | *是* | date | | 否 | 初验时间 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| is_end_check | *是* | bool | | 否 | 是否是终验 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| end_check_date | *否* | date | | 否 | 终验时间 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| check_note | *否* | text | | 否 | 验收备注 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
附件表
++++++++++++
表名:tb_appendix
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| 字段名称 | 是否必填 | 类型 | 限制 | 唯一 | 说明 |
+=======================+=============+===========+===========+=========+==========================+
| appendix_id | *是* | string | <=32 | 是 | 附件主键 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| foreign_key | *是* | string | | 是 | 合同及子表的主键 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| appendix_type | *是* | string | | 是 | 附件类型 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| appendix_url | *是* | string | | 否 | 附件下载地址 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
\ No newline at end of file
财务进度服务http接口
=======================
增加销售合同
^^^^^^^^^^^^^^^
| Verb: POST
| Path: /api/v1/financial/contract
| Header: (Content-Type: application/json)
Request Body:
.. code-block:: python
{
"constract_code"":"2018-079", #合同编号,选择
"salesperson_unid":"吴旭", #销售员id,选择
"project_unid":"金源时代客流项目", #项目名称,选择
"customer_unid":"北京金源时代购物中心有限公司", #客户名称,选择
"location_province":"河北省", #项目所在地的省份
"location_city":"沧州市", #项目所在地的市区
"location_area":"献县", #项目所在地的县或区
"quality_cycle":"6/12/.../60", #质保周期,月份,步长为6
"sign_date":"2018/3/9", #签订时间
"year":"2018", #所属年份
"month":"3", #所属月份
"product_line_type":"xxxx", #产品线类型,(安防、交通、客流、维保)
"contract_state":"xxxx", #合同状态,(已完成、待发货,施工中,项目暂停)
"contract_nature":"xxxx", #合同性质,(供货,施工,集成,维保)
"contract_amount":"140000.00", #合同金额,小数点保留两位
"deduct_amount":"5000.00", #折扣金额,小数点保留两位
"contract_amount_note":"xxxx", #合同金额备注,文本
"total_reback_amount":"133000.00", #累计回款额,小数点保留两位
"stop_amount":"xxxx", #暂停金额,小数点保留两位
"reback_note":"xxxx", #累计回款额备注,文本
"contract_remaining":"xxxx", #合同余额,小数点保留两位
"exemptions_amount":"xxxx", #豁免金额,小数点保留两位
"contract_remain_note":"xxxx", #合同余额备注
"is_file":"xxxx", #是否归档
"bad_amount":"xxxx", #坏账金额,小数点保留两位
"bad_amount_note":"xxxx", #坏账金额备注
"total_receive_amount":"xxxx", #累计应收款,小数点保留两位
"total_leave_amount":"xxxx", #应收账款余额,小数点保留两位
"over_days_unid":"176", #逾期天数
"confirm_income_amount":"xxxx", #确定收入金额,小数点保留两位
"amount_state_unid":"xxxx", #帐款状态
"start_guarantee_date":"xxxx", #维保服务期开始时间
"end_guarantee_date":"xxxx", #维保服务期结束时间
"quality_start_point":"xxxx", #质保期开始节点
"start_quality_date":"xxxx", #质保期开始时间
"end_quality_date":"xxxx", #质保期结束时间
"contract_note":"xxxx", #合同备注
"contract_appendix":"xxxx", #合同附件
"list_payment_data": #付款约定数据列表
[
{
"payment_id":"xxxx", #付款约定表主键
"payment_period_number":"xxxx", #合同期数
"payment_period_state":"xxxx", #合同期数的状态
"total_days":"xxxx", #天数
"payment_agree_date":"xxxx", #应付款日期
"payment_amount":"xxxx", #应付金额
"payment_propority":"xxxx", #付款比例
"payment_requirement":"xxxx", #付款条件
},
......
]
"list_reback_data": #合同回款信息表
[
{
"return_id":"xxxx", #回款信息表主键
"payment_period_number":"xxxx", #付款期数
"actual_reback_amount":"xxxx", #实际回款数额
"reback_propority":"xxxx", #回款比例
"reback_note":"xxxx", #回款备注
},
......
]
"list_receipt_data": #合同开票信息表
[
{
"receipt_id":"xxxx", #开票信息表主键
"receipt_progress":"xxxx", #开票进度
"receipt_amount":"xxxx", #开票金额
"oa_flow_id":"xxxx", #oa流水号
"receipt_propority":"xxxx", #开票比例
"total_receipt_amount":"xxxx", #累计开票金额
"is_reback":"xxxx", #是否回款
"receipt_note":"xxxx", #发票备注
},
......
]
"deliver_goods_date":"xxxx", #发货时间
"goodsl_check_date":"xxxx", #到货验收时间
"goods_sign_appendix":"xxxx", #到货签收单附件
"is_first_check":"xxxx", #是否是初验
"first_check_date":"xxxx", #初验时间
"first_check_appendix":"xxxx", #初验附件
"is_end_check":"xxxx", #是否是终验
"end_check_date":"xxxx", #终验时间
"check_note":"xxxx", #验收备注
"end_check_appendix":"xxxx" #终验附件
}
Response Body:
.. code-block:: python
{
"ecode":"200", #新增成功返回码
"ecote":"OK" #返回说明
}
查询合同详情
^^^^^^^^^^^^^^^^^^^^^
| Verb: GET
| Path: /api/v1/financial/contract/{constract_code}
| Header: (Content-Type: application/json)
Request Body:
Response Body:
.. code-block:: python
{
"constract_code"":"2018-079", #合同编号,选择
"salesperson_unid":"吴旭", #销售员id,选择
"project_unid":"金源时代客流项目", #项目名称,选择
"customer_unid":"北京金源时代购物中心有限公司", #客户名称,选择
"location_province":"河北省", #项目所在地的省份
"location_city":"沧州市", #项目所在地的市区
"location_area":"献县", #项目所在地的县或区
"quality_cycle":"6/12/.../60", #质保周期,月份,步长为6
"sign_date":"2018/3/9", #签订时间
"year":"2018", #所属年份
"month":"3", #所属月份
"product_line_type":"xxxx", #产品线类型,(安防、交通、客流、维保)
"contract_state":"xxxx", #合同状态,(已完成、待发货,施工中,项目暂停)
"contract_nature":"xxxx", #合同性质,(供货,施工,集成,维保)
"contract_amount":"140000.00", #合同金额,小数点保留两位
"deduct_amount":"5000.00", #折扣金额,小数点保留两位
"contract_amount_note":"xxxx", #合同金额备注,文本
"total_reback_amount":"133000.00", #累计回款额,小数点保留两位
"stop_amount":"xxxx", #暂停金额,小数点保留两位
"reback_note":"xxxx", #累计回款额备注,文本
"contract_remaining":"xxxx", #合同余额,小数点保留两位
"exemptions_amount":"xxxx", #豁免金额,小数点保留两位
"contract_remain_note":"xxxx", #合同余额备注
"is_file":"xxxx", #是否归档
"bad_amount":"xxxx", #坏账金额,小数点保留两位
"bad_amount_note":"xxxx", #坏账金额备注
"total_receive_amount":"xxxx", #累计应收款,小数点保留两位
"total_leave_amount":"xxxx", #应收账款余额,小数点保留两位
"over_days_unid":"176", #逾期天数
"confirm_income_amount":"xxxx", #确定收入金额,小数点保留两位
"amount_state_unid":"xxxx", #帐款状态
"start_guarantee_date":"xxxx", #维保服务期开始时间
"end_guarantee_date":"xxxx", #维保服务期结束时间
"quality_start_point":"xxxx", #质保期开始节点
"start_quality_date":"xxxx", #质保期开始时间
"end_quality_date":"xxxx", #质保期结束时间
"contract_note":"xxxx", #合同备注
"contract_appendix":"xxxx", #合同附件
"list_payment_data": #付款约定数据列表
[
{
"payment_id":"xxxx", #付款约定表主键
"payment_period_number":"xxxx", #合同期数
"payment_period_state":"xxxx", #合同期数的状态
"total_days":"xxxx", #天数
"payment_agree_date":"xxxx", #应付款日期
"payment_amount":"xxxx", #应付金额
"payment_propority":"xxxx", #付款比例
"payment_requirement":"xxxx", #付款条件
},
......
]
"list_reback_data": #合同回款信息表
[
{
"return_id":"xxxx", #回款信息表主键
"payment_period_number":"xxxx", #付款期数
"actual_reback_amount":"xxxx", #实际回款数额
"reback_propority":"xxxx", #回款比例
"reback_note":"xxxx", #回款备注
},
......
]
"list_receipt_data": #合同开票信息表
[
{
"receipt_id":"xxxx", #开票信息表主键
"receipt_progress":"xxxx", #开票进度
"receipt_amount":"xxxx", #开票金额
"oa_flow_id":"xxxx", #oa流水号
"receipt_propority":"xxxx", #开票比例
"total_receipt_amount":"xxxx", #累计开票金额
"is_reback":"xxxx", #是否回款
"receipt_note":"xxxx", #发票备注
},
......
]
"deliver_goods_date":"xxxx", #发货时间
"goodsl_check_date":"xxxx", #到货验收时间
"goods_sign_appendix":"xxxx", #到货签收单附件
"is_first_check":"xxxx", #是否是初验
"first_check_date":"xxxx", #初验时间
"first_check_appendix":"xxxx", #初验附件
"is_end_check":"xxxx", #是否是终验
"end_check_date":"xxxx", #终验时间
"check_note":"xxxx", #验收备注
"end_check_appendix":"xxxx" #终验附件
}
删除销售合同
^^^^^^^^^^^^^^^
| Verb: DELETE
| Path: /api/v1/financial/contract/{constract_code}
| Header: (Content-Type: application/json)
Request Body:无
Response Body:
.. code-block:: python
{
"ecode":"200", #删除成功返回码
"ecote":"OK" #返回说明
}
修改销售合同
^^^^^^^^^^^^^^^
| Verb: POST
| Path: /api/v1/financial/contract/{constract_code}
| Header: (Content-Type: application/json)
Request Body:
.. code-block:: python
{
"constract_code"":"2018-079", #合同编号,选择
"salesperson_unid":"吴旭", #销售员id,选择
"project_unid":"金源时代客流项目", #项目名称,选择
"customer_unid":"北京金源时代购物中心有限公司", #客户名称,选择
"location_province":"河北省", #项目所在地的省份
"location_city":"沧州市", #项目所在地的市区
"location_area":"献县", #项目所在地的县或区
"quality_cycle":"6/12/.../60", #质保周期,月份,步长为6
"sign_date":"2018/3/9", #签订时间
"year":"2018", #所属年份
"month":"3", #所属月份
"product_line_type":"xxxx", #产品线类型,(安防、交通、客流、维保)
"contract_state":"xxxx", #合同状态,(已完成、待发货,施工中,项目暂停)
"contract_nature":"xxxx", #合同性质,(供货,施工,集成,维保)
"contract_amount":"140000.00", #合同金额,小数点保留两位
"deduct_amount":"5000.00", #折扣金额,小数点保留两位
"contract_amount_note":"xxxx", #合同金额备注,文本
"total_reback_amount":"133000.00", #累计回款额,小数点保留两位
"stop_amount":"xxxx", #暂停金额,小数点保留两位
"reback_note":"xxxx", #累计回款额备注,文本
"contract_remaining":"xxxx", #合同余额,小数点保留两位
"exemptions_amount":"xxxx", #豁免金额,小数点保留两位
"contract_remain_note":"xxxx", #合同余额备注
"is_file":"xxxx", #是否归档
"bad_amount":"xxxx", #坏账金额,小数点保留两位
"bad_amount_note":"xxxx", #坏账金额备注
"total_receive_amount":"xxxx", #累计应收款,小数点保留两位
"total_leave_amount":"xxxx", #应收账款余额,小数点保留两位
"over_days_unid":"176", #逾期天数
"confirm_income_amount":"xxxx", #确定收入金额,小数点保留两位
"amount_state_unid":"xxxx", #帐款状态
"start_guarantee_date":"xxxx", #维保服务期开始时间
"end_guarantee_date":"xxxx", #维保服务期结束时间
"quality_start_point":"xxxx", #质保期开始节点
"start_quality_date":"xxxx", #质保期开始时间
"end_quality_date":"xxxx", #质保期结束时间
"contract_note":"xxxx", #合同备注
"contract_appendix":"xxxx", #合同附件
"list_payment_data": #付款约定数据列表
[
{
"payment_id":"xxxx", #付款约定表主键
"payment_period_number":"xxxx", #合同期数
"payment_period_state":"xxxx", #合同期数的状态
"total_days":"xxxx", #天数
"payment_agree_date":"xxxx", #应付款日期
"payment_amount":"xxxx", #应付金额
"payment_propority":"xxxx", #付款比例
"payment_requirement":"xxxx", #付款条件
},
......
]
"list_reback_data": #合同回款信息表
[
{
"return_id":"xxxx", #回款信息表主键
"payment_period_number":"xxxx", #付款期数
"actual_reback_amount":"xxxx", #实际回款数额
"reback_propority":"xxxx", #回款比例
"reback_note":"xxxx", #回款备注
},
......
]
"list_receipt_data": #合同开票信息表
[
{
"receipt_id":"xxxx", #开票信息表主键
"receipt_progress":"xxxx", #开票进度
"receipt_amount":"xxxx", #开票金额
"oa_flow_id":"xxxx", #oa流水号
"receipt_propority":"xxxx", #开票比例
"total_receipt_amount":"xxxx", #累计开票金额
"is_reback":"xxxx", #是否回款
"receipt_note":"xxxx", #发票备注
},
......
]
"deliver_goods_date":"xxxx", #发货时间
"goodsl_check_date":"xxxx", #到货验收时间
"goods_sign_appendix":"xxxx", #到货签收单附件
"is_first_check":"xxxx", #是否是初验
"first_check_date":"xxxx", #初验时间
"first_check_appendix":"xxxx", #初验附件
"is_end_check":"xxxx", #是否是终验
"end_check_date":"xxxx", #终验时间
"check_note":"xxxx", #验收备注
"end_check_appendix":"xxxx" #终验附件
}
Response Body:
.. code-block:: python
{
"ecode":"200", #修改成功返回码
"ecote":"OK" #返回说明
}
查询合同列表
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| Verb: GET
| Path: /api/v1/financial/contract
| Header: (Content-Type: application/json)
Request Body:
.. code-block:: python
{
"salesperson_unid":"吴旭", #销售员
"project_unid":"金源时代客流项目", #项目名称
"customer_unid":"北京金源时代购物中心有限公司", #客户名称
"location_province":"河北省", #项目所在省
"location_city":"沧州市", #项目所在市
"location_area":"献县", #项目所在县(区)
"quality_cycle":"xxxx", #质保周期
"year":"2018", #所属年份
"month":"3", #所属月份
"product_line_type":"xxxx", #产品线类型(安防、交通、客流、维保)
"contract_state":"xxxx", #合同状态(已完成、待发货,施工中,项目暂停)
"contract_nature":"xxxx", #合同性质(供货,施工,集成,维保)
"is_end_check":"xxxx", #是否终验
"is_file":"xxxx", #合同是否归档
"confirm_income_amount":"xxxx", #确定收入金额
"amount_state_unid":"xxxx", #账款状态
"start_date":"xxxx", #签订时间,设置开始时间
"end_date":"xxxx", #结束时间,设置结束时间
"amount_point":"xxxx", #设置金额查询节点
"overdays_point":"xxxx", #设置逾期天数查询节点
"leave_amount_point":"xxxx" #设置应收账款余额查询节点
}
Response Body:
.. code-block:: python
{
[
"contract_code":"2019-079", #合同编号
"year":"2018", #所属年份
"product_line_type":"xxxx", #产品线类型(安防、交通、客流、维保)
"sign_date":"xxxx", #签订日期
"month":"3", #所属月份
"salesperson_unid":"xxxx", #销售员
"location_province":"河北省", #所在省份
"location_city":"沧州市", #所在市
"location_area":"献县", #所在县(区)
"customer_unid":"北京金源时代购物中心有限公司", #客户名称
"project_unid":"金源时代客流项目", #项目名称
"contract_amount":"xxxx", #合同金额
"stop_amount":"xxxx", #暂停金额
"bad_amount":"xxxx", #坏账金额
"exemptions_amount":"xxxx", #豁免金额
"deduct_amount":"xxxx", #抵扣金额
"total_reback_amount":"xxxx", #累计回款额
"contract_remaining":"xxxx", #合同余额
"amount_state_unid":"xxxx", #账款状态
"total_receive_amount":"xxxx", #累计应收款
"total_leave_amount":"xxxx", #应收账款余额
"over_days_unid":"xxxx", #逾期天数
"payment_amount":"xxxx", #预付款金额
"payment_amount":"xxxx", #到货款金额
"payment_amount":"xxxx", #验收款金额
"payment_amount":"xxxx", #质保金额
"deliver_goods_date":"xxxx", #发货时间
"payment_agree_date":"xxxx", #到货款到期日
"payment_agree_date":"xxxx", #验收款到期日
"end_quality_date":"xxxx", #质保期结束时间
"goods_check_date":"xxxx", #验收日期
"check_note":"xxxx", #合同备注
],
......
}
导出表格
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| Verb: GET
| Path: /api/v1/financial/contract/export
| Header: (Content-Type: application/json)
Request Body:
.. code-block:: python
{
"salesperson_unid":"吴旭", #销售员
"project_unid":"金源时代客流项目", #项目名称
"customer_unid":"北京金源时代购物中心有限公司", #客户名称
"location_province":"河北省", #项目所在省
"location_city":"沧州市", #项目所在市
"location_area":"献县", #项目所在县(区)
"quality_cycle":"xxxx", #质保周期
"year":"2018", #所属年份
"month":"3", #所属月份
"product_line_type":"xxxx", #产品线类型(安防、交通、客流、维保)
"contract_state":"xxxx", #合同状态(已完成、待发货,施工中,项目暂停)
"contract_nature":"xxxx", #合同性质(供货,施工,集成,维保)
"is_end_check":"xxxx", #是否终验
"is_file":"xxxx", #合同是否归档
"confirm_income_amount":"xxxx", #确定收入金额
"amount_state_unid":"xxxx", #账款状态
"start_date":"xxxx", #签订时间,设置开始时间
"end_date":"xxxx", #结束时间,设置结束时间
"amount_point":"xxxx", #设置金额查询节点
"overdays_point":"xxxx", #设置逾期天数查询节点
"leave_amount_point":"xxxx" #设置应收账款余额查询节点
}
Response Body:
.. code-block:: python
\ No newline at end of file
......@@ -12,6 +12,7 @@
:caption: 目录:
01-db
02-finance-http
99-history
Indices and tables
......
......@@ -4,7 +4,7 @@
*
* Sphinx stylesheet -- basic theme.
*
* :copyright: Copyright 2007-2017 by the Sphinx team, see AUTHORS.
* :copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
......@@ -82,9 +82,21 @@ div.sphinxsidebar input {
}
div.sphinxsidebar #searchbox input[type="text"] {
width: 170px;
float: left;
width: 80%;
padding: 0.25em;
box-sizing: border-box;
}
div.sphinxsidebar #searchbox input[type="submit"] {
float: left;
width: 20%;
border-left: none;
padding: 0.25em;
box-sizing: border-box;
}
img {
border: 0;
max-width: 100%;
......@@ -199,6 +211,11 @@ table.modindextable td {
/* -- general body styles --------------------------------------------------- */
div.body {
min-width: 450px;
max-width: 800px;
}
div.body p, div.body dd, div.body li, div.body blockquote {
-moz-hyphens: auto;
-ms-hyphens: auto;
......@@ -332,6 +349,11 @@ table.docutils {
border-collapse: collapse;
}
table.align-center {
margin-left: auto;
margin-right: auto;
}
table caption span.caption-number {
font-style: italic;
}
......@@ -398,6 +420,13 @@ table.field-list td, table.field-list th {
margin: 0;
}
.field-name {
-moz-hyphens: manual;
-ms-hyphens: manual;
-webkit-hyphens: manual;
hyphens: manual;
}
/* -- other body styles ----------------------------------------------------- */
ol.arabic {
......@@ -438,10 +467,14 @@ dd {
margin-left: 30px;
}
dt:target, .highlighted {
dt:target, span.highlighted {
background-color: #fbe54e;
}
rect.highlighted {
fill: #fbe54e;
}
dl.glossary dt {
font-weight: bold;
font-size: 1.1em;
......
.fa:before{-webkit-font-smoothing:antialiased}.clearfix{*zoom:1}.clearfix:before,.clearfix:after{display:table;content:""}.clearfix:after{clear:both}@font-face{font-family:FontAwesome;font-weight:normal;font-style:normal;src:url("../font/fontawesome_webfont.eot");src:url("../font/fontawesome_webfont.eot?#iefix") format("embedded-opentype"),url("../font/fontawesome_webfont.woff") format("woff"),url("../font/fontawesome_webfont.ttf") format("truetype"),url("../font/fontawesome_webfont.svg#FontAwesome") format("svg")}.fa:before{display:inline-block;font-family:FontAwesome;font-style:normal;font-weight:normal;line-height:1;text-decoration:inherit}a .fa{display:inline-block;text-decoration:inherit}li .fa{display:inline-block}li .fa-large:before,li .fa-large:before{width:1.875em}ul.fas{list-style-type:none;margin-left:2em;text-indent:-0.8em}ul.fas li .fa{width:0.8em}ul.fas li .fa-large:before,ul.fas li .fa-large:before{vertical-align:baseline}.fa-book:before{content:""}.icon-book:before{content:""}.fa-caret-down:before{content:""}.icon-caret-down:before{content:""}.fa-caret-up:before{content:""}.icon-caret-up:before{content:""}.fa-caret-left:before{content:""}.icon-caret-left:before{content:""}.fa-caret-right:before{content:""}.icon-caret-right:before{content:""}.rst-versions{position:fixed;bottom:0;left:0;width:300px;color:#fcfcfc;background:#1f1d1d;border-top:solid 10px #343131;font-family:"Lato","proxima-nova","Helvetica Neue",Arial,sans-serif;z-index:400}.rst-versions a{color:#2980B9;text-decoration:none}.rst-versions .rst-badge-small{display:none}.rst-versions .rst-current-version{padding:12px;background-color:#272525;display:block;text-align:right;font-size:90%;cursor:pointer;color:#27AE60;*zoom:1}.rst-versions .rst-current-version:before,.rst-versions .rst-current-version:after{display:table;content:""}.rst-versions .rst-current-version:after{clear:both}.rst-versions .rst-current-version .fa{color:#fcfcfc}.rst-versions .rst-current-version .fa-book{float:left}.rst-versions .rst-current-version .icon-book{float:left}.rst-versions .rst-current-version.rst-out-of-date{background-color:#E74C3C;color:#fff}.rst-versions .rst-current-version.rst-active-old-version{background-color:#F1C40F;color:#000}.rst-versions.shift-up .rst-other-versions{display:block}.rst-versions .rst-other-versions{font-size:90%;padding:12px;color:gray;display:none}.rst-versions .rst-other-versions hr{display:block;height:1px;border:0;margin:20px 0;padding:0;border-top:solid 1px #413d3d}.rst-versions .rst-other-versions dd{display:inline-block;margin:0}.rst-versions .rst-other-versions dd a{display:inline-block;padding:6px;color:#fcfcfc}.rst-versions.rst-badge{width:auto;bottom:20px;right:20px;left:auto;border:none;max-width:300px}.rst-versions.rst-badge .icon-book{float:none}.rst-versions.rst-badge .fa-book{float:none}.rst-versions.rst-badge.shift-up .rst-current-version{text-align:right}.rst-versions.rst-badge.shift-up .rst-current-version .fa-book{float:left}.rst-versions.rst-badge.shift-up .rst-current-version .icon-book{float:left}.rst-versions.rst-badge .rst-current-version{width:auto;height:30px;line-height:30px;padding:0 6px;display:block;text-align:center}@media screen and (max-width: 768px){.rst-versions{width:85%;display:none}.rst-versions.shift{display:block}}
/*# sourceMappingURL=badge_only.css.map */
.fa:before{-webkit-font-smoothing:antialiased}.clearfix{*zoom:1}.clearfix:before,.clearfix:after{display:table;content:""}.clearfix:after{clear:both}@font-face{font-family:FontAwesome;font-weight:normal;font-style:normal;src:url("../fonts/fontawesome-webfont.eot");src:url("../fonts/fontawesome-webfont.eot?#iefix") format("embedded-opentype"),url("../fonts/fontawesome-webfont.woff") format("woff"),url("../fonts/fontawesome-webfont.ttf") format("truetype"),url("../fonts/fontawesome-webfont.svg#FontAwesome") format("svg")}.fa:before{display:inline-block;font-family:FontAwesome;font-style:normal;font-weight:normal;line-height:1;text-decoration:inherit}a .fa{display:inline-block;text-decoration:inherit}li .fa{display:inline-block}li .fa-large:before,li .fa-large:before{width:1.875em}ul.fas{list-style-type:none;margin-left:2em;text-indent:-0.8em}ul.fas li .fa{width:.8em}ul.fas li .fa-large:before,ul.fas li .fa-large:before{vertical-align:baseline}.fa-book:before{content:""}.icon-book:before{content:""}.fa-caret-down:before{content:""}.icon-caret-down:before{content:""}.fa-caret-up:before{content:""}.icon-caret-up:before{content:""}.fa-caret-left:before{content:""}.icon-caret-left:before{content:""}.fa-caret-right:before{content:""}.icon-caret-right:before{content:""}.rst-versions{position:fixed;bottom:0;left:0;width:300px;color:#fcfcfc;background:#1f1d1d;font-family:"Lato","proxima-nova","Helvetica Neue",Arial,sans-serif;z-index:400}.rst-versions a{color:#2980B9;text-decoration:none}.rst-versions .rst-badge-small{display:none}.rst-versions .rst-current-version{padding:12px;background-color:#272525;display:block;text-align:right;font-size:90%;cursor:pointer;color:#27AE60;*zoom:1}.rst-versions .rst-current-version:before,.rst-versions .rst-current-version:after{display:table;content:""}.rst-versions .rst-current-version:after{clear:both}.rst-versions .rst-current-version .fa{color:#fcfcfc}.rst-versions .rst-current-version .fa-book{float:left}.rst-versions .rst-current-version .icon-book{float:left}.rst-versions .rst-current-version.rst-out-of-date{background-color:#E74C3C;color:#fff}.rst-versions .rst-current-version.rst-active-old-version{background-color:#F1C40F;color:#000}.rst-versions.shift-up{height:auto;max-height:100%}.rst-versions.shift-up .rst-other-versions{display:block}.rst-versions .rst-other-versions{font-size:90%;padding:12px;color:gray;display:none}.rst-versions .rst-other-versions hr{display:block;height:1px;border:0;margin:20px 0;padding:0;border-top:solid 1px #413d3d}.rst-versions .rst-other-versions dd{display:inline-block;margin:0}.rst-versions .rst-other-versions dd a{display:inline-block;padding:6px;color:#fcfcfc}.rst-versions.rst-badge{width:auto;bottom:20px;right:20px;left:auto;border:none;max-width:300px}.rst-versions.rst-badge .icon-book{float:none}.rst-versions.rst-badge .fa-book{float:none}.rst-versions.rst-badge.shift-up .rst-current-version{text-align:right}.rst-versions.rst-badge.shift-up .rst-current-version .fa-book{float:left}.rst-versions.rst-badge.shift-up .rst-current-version .icon-book{float:left}.rst-versions.rst-badge .rst-current-version{width:auto;height:30px;line-height:30px;padding:0 6px;display:block;text-align:center}@media screen and (max-width: 768px){.rst-versions{width:85%;display:none}.rst-versions.shift{display:block}}
This diff could not be displayed because it is too large.
......@@ -4,7 +4,7 @@
*
* Sphinx JavaScript utilities for all documentation.
*
* :copyright: Copyright 2007-2017 by the Sphinx team, see AUTHORS.
* :copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
......@@ -45,7 +45,7 @@ jQuery.urlencode = encodeURIComponent;
* it will always return arrays of strings for the value parts.
*/
jQuery.getQueryParameters = function(s) {
if (typeof s == 'undefined')
if (typeof s === 'undefined')
s = document.location.search;
var parts = s.substr(s.indexOf('?') + 1).split('&');
var result = {};
......@@ -66,29 +66,55 @@ jQuery.getQueryParameters = function(s) {
* span elements with the given class name.
*/
jQuery.fn.highlightText = function(text, className) {
function highlight(node) {
if (node.nodeType == 3) {
function highlight(node, addItems) {
if (node.nodeType === 3) {
var val = node.nodeValue;
var pos = val.toLowerCase().indexOf(text);
if (pos >= 0 && !jQuery(node.parentNode).hasClass(className)) {
var span = document.createElement("span");
span.className = className;
if (pos >= 0 &&
!jQuery(node.parentNode).hasClass(className) &&
!jQuery(node.parentNode).hasClass("nohighlight")) {
var span;
var isInSVG = jQuery(node).closest("body, svg, foreignObject").is("svg");
if (isInSVG) {
span = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
} else {
span = document.createElement("span");
span.className = className;
}
span.appendChild(document.createTextNode(val.substr(pos, text.length)));
node.parentNode.insertBefore(span, node.parentNode.insertBefore(
document.createTextNode(val.substr(pos + text.length)),
node.nextSibling));
node.nodeValue = val.substr(0, pos);
if (isInSVG) {
var bbox = span.getBBox();
var rect = document.createElementNS("http://www.w3.org/2000/svg", "rect");
rect.x.baseVal.value = bbox.x;
rect.y.baseVal.value = bbox.y;
rect.width.baseVal.value = bbox.width;
rect.height.baseVal.value = bbox.height;
rect.setAttribute('class', className);
var parentOfText = node.parentNode.parentNode;
addItems.push({
"parent": node.parentNode,
"target": rect});
}
}
}
else if (!jQuery(node).is("button, select, textarea")) {
jQuery.each(node.childNodes, function() {
highlight(this);
highlight(this, addItems);
});
}
}
return this.each(function() {
highlight(this);
var addItems = [];
var result = this.each(function() {
highlight(this, addItems);
});
for (var i = 0; i < addItems.length; ++i) {
jQuery(addItems[i].parent).before(addItems[i].target);
}
return result;
};
/*
......@@ -131,21 +157,21 @@ var Documentation = {
* i18n support
*/
TRANSLATIONS : {},
PLURAL_EXPR : function(n) { return n == 1 ? 0 : 1; },
PLURAL_EXPR : function(n) { return n === 1 ? 0 : 1; },
LOCALE : 'unknown',
// gettext and ngettext don't access this so that the functions
// can safely bound to a different name (_ = Documentation.gettext)
gettext : function(string) {
var translated = Documentation.TRANSLATIONS[string];
if (typeof translated == 'undefined')
if (typeof translated === 'undefined')
return string;
return (typeof translated == 'string') ? translated : translated[0];
return (typeof translated === 'string') ? translated : translated[0];
},
ngettext : function(singular, plural, n) {
var translated = Documentation.TRANSLATIONS[singular];
if (typeof translated == 'undefined')
if (typeof translated === 'undefined')
return (n == 1) ? singular : plural;
return translated[Documentation.PLURALEXPR(n)];
},
......@@ -180,7 +206,7 @@ var Documentation = {
* see: https://bugzilla.mozilla.org/show_bug.cgi?id=645075
*/
fixFirefoxAnchorBug : function() {
if (document.location.hash)
if (document.location.hash && $.browser.mozilla)
window.setTimeout(function() {
document.location.href += '';
}, 10);
......@@ -216,7 +242,7 @@ var Documentation = {
var src = $(this).attr('src');
var idnum = $(this).attr('id').substr(7);
$('tr.cg-' + idnum).toggle();
if (src.substr(-9) == 'minus.png')
if (src.substr(-9) === 'minus.png')
$(this).attr('src', src.substr(0, src.length-9) + 'plus.png');
else
$(this).attr('src', src.substr(0, src.length-8) + 'minus.png');
......@@ -248,7 +274,7 @@ var Documentation = {
var path = document.location.pathname;
var parts = path.split(/\//);
$.each(DOCUMENTATION_OPTIONS.URL_ROOT.split(/\//), function() {
if (this == '..')
if (this === '..')
parts.pop();
});
var url = parts.join('/');
......
var DOCUMENTATION_OPTIONS = {
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
VERSION: '1.0',
LANGUAGE: 'None',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true,
SOURCELINK_SUFFIX: '.txt'
};
\ No newline at end of file
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({"sphinx-rtd-theme":[function(require,module,exports){
var jQuery = (typeof(window) != 'undefined') ? window.jQuery : require('jquery');
// Sphinx theme nav state
function ThemeNav () {
var nav = {
navBar: null,
win: null,
winScroll: false,
winResize: false,
linkScroll: false,
winPosition: 0,
winHeight: null,
docHeight: null,
isRunning: false
};
nav.enable = function () {
var self = this;
if (!self.isRunning) {
self.isRunning = true;
jQuery(function ($) {
self.init($);
self.reset();
self.win.on('hashchange', self.reset);
// Set scroll monitor
self.win.on('scroll', function () {
if (!self.linkScroll) {
self.winScroll = true;
}
});
setInterval(function () { if (self.winScroll) self.onScroll(); }, 25);
// Set resize monitor
self.win.on('resize', function () {
self.winResize = true;
});
setInterval(function () { if (self.winResize) self.onResize(); }, 25);
self.onResize();
});
};
};
nav.init = function ($) {
var doc = $(document),
self = this;
this.navBar = $('div.wy-side-scroll:first');
this.win = $(window);
// Set up javascript UX bits
$(document)
// Shift nav in mobile when clicking the menu.
.on('click', "[data-toggle='wy-nav-top']", function() {
$("[data-toggle='wy-nav-shift']").toggleClass("shift");
$("[data-toggle='rst-versions']").toggleClass("shift");
})
// Nav menu link click operations
.on('click', ".wy-menu-vertical .current ul li a", function() {
var target = $(this);
// Close menu when you click a link.
$("[data-toggle='wy-nav-shift']").removeClass("shift");
$("[data-toggle='rst-versions']").toggleClass("shift");
// Handle dynamic display of l3 and l4 nav lists
self.toggleCurrent(target);
self.hashChange();
})
.on('click', "[data-toggle='rst-current-version']", function() {
$("[data-toggle='rst-versions']").toggleClass("shift-up");
})
// Make tables responsive
$("table.docutils:not(.field-list)")
.wrap("<div class='wy-table-responsive'></div>");
// Add expand links to all parents of nested ul
$('.wy-menu-vertical ul').not('.simple').siblings('a').each(function () {
var link = $(this);
expand = $('<span class="toctree-expand"></span>');
expand.on('click', function (ev) {
self.toggleCurrent(link);
ev.stopPropagation();
return false;
});
link.prepend(expand);
});
};
nav.reset = function () {
// Get anchor from URL and open up nested nav
var anchor = encodeURI(window.location.hash);
if (anchor) {
try {
var link = $('.wy-menu-vertical')
.find('[href="' + anchor + '"]');
// If we didn't find a link, it may be because we clicked on
// something that is not in the sidebar (eg: when using
// sphinxcontrib.httpdomain it generates headerlinks but those
// aren't picked up and placed in the toctree). So let's find
// the closest header in the document and try with that one.
if (link.length === 0) {
var doc_link = $('.document a[href="' + anchor + '"]');
var closest_section = doc_link.closest('div.section');
// Try again with the closest section entry.
link = $('.wy-menu-vertical')
.find('[href="#' + closest_section.attr("id") + '"]');
}
$('.wy-menu-vertical li.toctree-l1 li.current')
.removeClass('current');
link.closest('li.toctree-l2').addClass('current');
link.closest('li.toctree-l3').addClass('current');
link.closest('li.toctree-l4').addClass('current');
}
catch (err) {
console.log("Error expanding nav for anchor", err);
}
}
};
nav.onScroll = function () {
this.winScroll = false;
var newWinPosition = this.win.scrollTop(),
winBottom = newWinPosition + this.winHeight,
navPosition = this.navBar.scrollTop(),
newNavPosition = navPosition + (newWinPosition - this.winPosition);
if (newWinPosition < 0 || winBottom > this.docHeight) {
return;
}
this.navBar.scrollTop(newNavPosition);
this.winPosition = newWinPosition;
};
nav.onResize = function () {
this.winResize = false;
this.winHeight = this.win.height();
this.docHeight = $(document).height();
};
nav.hashChange = function () {
this.linkScroll = true;
this.win.one('hashchange', function () {
this.linkScroll = false;
});
};
nav.toggleCurrent = function (elem) {
var parent_li = elem.closest('li');
parent_li.siblings('li.current').removeClass('current');
parent_li.siblings().find('li.current').removeClass('current');
parent_li.find('> ul li.current').removeClass('current');
parent_li.toggleClass('current');
}
return nav;
};
module.exports.ThemeNav = ThemeNav();
if (typeof(window) != 'undefined') {
window.SphinxRtdTheme = { StickyNav: module.exports.ThemeNav };
}
},{"jquery":"jquery"}]},{},["sphinx-rtd-theme"]);
/* sphinx_rtd_theme version 0.4.0 | MIT license */
/* Built 20180606 11:06 */
require=function n(e,i,t){function o(s,a){if(!i[s]){if(!e[s]){var l="function"==typeof require&&require;if(!a&&l)return l(s,!0);if(r)return r(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var u=i[s]={exports:{}};e[s][0].call(u.exports,function(n){var i=e[s][1][n];return o(i||n)},u,u.exports,n,e,i,t)}return i[s].exports}for(var r="function"==typeof require&&require,s=0;s<t.length;s++)o(t[s]);return o}({"sphinx-rtd-theme":[function(n,e,i){var jQuery="undefined"!=typeof window?window.jQuery:n("jquery");e.exports.ThemeNav={navBar:null,win:null,winScroll:!1,winResize:!1,linkScroll:!1,winPosition:0,winHeight:null,docHeight:null,isRunning:!1,enable:function(n){var e=this;void 0===n&&(n=!0),e.isRunning||(e.isRunning=!0,jQuery(function(i){e.init(i),e.reset(),e.win.on("hashchange",e.reset),n&&e.win.on("scroll",function(){e.linkScroll||e.winScroll||(e.winScroll=!0,requestAnimationFrame(function(){e.onScroll()}))}),e.win.on("resize",function(){e.winResize||(e.winResize=!0,requestAnimationFrame(function(){e.onResize()}))}),e.onResize()}))},enableSticky:function(){this.enable(!0)},init:function(n){n(document);var e=this;this.navBar=n("div.wy-side-scroll:first"),this.win=n(window),n(document).on("click","[data-toggle='wy-nav-top']",function(){n("[data-toggle='wy-nav-shift']").toggleClass("shift"),n("[data-toggle='rst-versions']").toggleClass("shift")}).on("click",".wy-menu-vertical .current ul li a",function(){var i=n(this);n("[data-toggle='wy-nav-shift']").removeClass("shift"),n("[data-toggle='rst-versions']").toggleClass("shift"),e.toggleCurrent(i),e.hashChange()}).on("click","[data-toggle='rst-current-version']",function(){n("[data-toggle='rst-versions']").toggleClass("shift-up")}),n("table.docutils:not(.field-list,.footnote,.citation)").wrap("<div class='wy-table-responsive'></div>"),n("table.docutils.footnote").wrap("<div class='wy-table-responsive footnote'></div>"),n("table.docutils.citation").wrap("<div class='wy-table-responsive citation'></div>"),n(".wy-menu-vertical ul").not(".simple").siblings("a").each(function(){var i=n(this);expand=n('<span class="toctree-expand"></span>'),expand.on("click",function(n){return e.toggleCurrent(i),n.stopPropagation(),!1}),i.prepend(expand)})},reset:function(){var n=encodeURI(window.location.hash)||"#";try{var e=$(".wy-menu-vertical"),i=e.find('[href="'+n+'"]');if(0===i.length){var t=$('.document [id="'+n.substring(1)+'"]').closest("div.section");0===(i=e.find('[href="#'+t.attr("id")+'"]')).length&&(i=e.find('[href="#"]'))}i.length>0&&($(".wy-menu-vertical .current").removeClass("current"),i.addClass("current"),i.closest("li.toctree-l1").addClass("current"),i.closest("li.toctree-l1").parent().addClass("current"),i.closest("li.toctree-l1").addClass("current"),i.closest("li.toctree-l2").addClass("current"),i.closest("li.toctree-l3").addClass("current"),i.closest("li.toctree-l4").addClass("current"))}catch(o){console.log("Error expanding nav for anchor",o)}},onScroll:function(){this.winScroll=!1;var n=this.win.scrollTop(),e=n+this.winHeight,i=this.navBar.scrollTop()+(n-this.winPosition);n<0||e>this.docHeight||(this.navBar.scrollTop(i),this.winPosition=n)},onResize:function(){this.winResize=!1,this.winHeight=this.win.height(),this.docHeight=$(document).height()},hashChange:function(){this.linkScroll=!0,this.win.one("hashchange",function(){this.linkScroll=!1})},toggleCurrent:function(n){var e=n.closest("li");e.siblings("li.current").removeClass("current"),e.siblings().find("li.current").removeClass("current"),e.find("> ul li.current").removeClass("current"),e.toggleClass("current")}},"undefined"!=typeof window&&(window.SphinxRtdTheme={Navigation:e.exports.ThemeNav,StickyNav:e.exports.ThemeNav}),function(){for(var n=0,e=["ms","moz","webkit","o"],i=0;i<e.length&&!window.requestAnimationFrame;++i)window.requestAnimationFrame=window[e[i]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[e[i]+"CancelAnimationFrame"]||window[e[i]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(e,i){var t=(new Date).getTime(),o=Math.max(0,16-(t-n)),r=window.setTimeout(function(){e(t+o)},o);return n=t+o,r}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(n){clearTimeout(n)})}()},{jquery:"jquery"}]},{},["sphinx-rtd-theme"]);
\ No newline at end of file
......@@ -4,7 +4,7 @@
*
* Sphinx JavaScript utilities for the full-text search.
*
* :copyright: Copyright 2007-2017 by the Sphinx team, see AUTHORS.
* :copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
......@@ -540,6 +540,9 @@ var Search = {
});
} else if (DOCUMENTATION_OPTIONS.HAS_SOURCE) {
var suffix = DOCUMENTATION_OPTIONS.SOURCELINK_SUFFIX;
if (suffix === undefined) {
suffix = '.txt';
}
$.ajax({url: DOCUMENTATION_OPTIONS.URL_ROOT + '_sources/' + item[5] + (item[5].slice(-suffix.length) === suffix ? '' : suffix),
dataType: "text",
complete: function(jqxhr, textstatus) {
......
......@@ -4,7 +4,7 @@
*
* sphinx.websupport utilities for all documentation.
*
* :copyright: Copyright 2007-2017 by the Sphinx team, see AUTHORS.
* :copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
......@@ -301,7 +301,7 @@
li.hide();
// Determine where in the parents children list to insert this comment.
for(i=0; i < siblings.length; i++) {
for(var i=0; i < siblings.length; i++) {
if (comp(comment, siblings[i]) <= 0) {
$('#cd' + siblings[i].id)
.parent()
......
......@@ -25,25 +25,17 @@
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<link rel="index" title="Index"
href="#"/>
<link rel="search" title="Search" href="search.html"/>
<link rel="top" title="finance_serv 1.0 documentation" href="index.html"/>
<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="#" />
<link rel="search" title="Search" href="search.html" />
<script src="_static/js/modernizr.min.js"></script>
</head>
<body class="wy-body-for-nav" role="document">
<body class="wy-body-for-nav">
<div class="wy-grid-for-nav">
......@@ -92,7 +84,8 @@
<p class="caption"><span class="caption-text">目录:</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="01-db.html">1. 数据库设计</a></li>
<li class="toctree-l1"><a class="reference internal" href="99-history.html">2. 修订历史</a></li>
<li class="toctree-l1"><a class="reference internal" href="02-finance-http.html">2. 财务进度服务http接口</a></li>
<li class="toctree-l1"><a class="reference internal" href="99-history.html">3. 修订历史</a></li>
</ul>
......@@ -104,7 +97,7 @@
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
<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>
......@@ -112,9 +105,10 @@
</nav>
<div class="wy-nav-content">
<div class="rst-content">
......@@ -163,9 +157,7 @@
</div>
<div class="articleComments">
</div>
</div>
<footer>
......@@ -178,7 +170,7 @@
</p>
</div>
Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
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>
......@@ -197,6 +189,7 @@
var DOCUMENTATION_OPTIONS = {
URL_ROOT:'./',
VERSION:'1.0',
LANGUAGE:'None',
COLLAPSE_INDEX:false,
FILE_SUFFIX:'.html',
HAS_SOURCE: true,
......@@ -209,19 +202,13 @@
<script type="text/javascript" src="_static/js/theme.js"></script>
<script type="text/javascript" src="_static/js/theme.js"></script>
<script type="text/javascript">
jQuery(function () {
SphinxRtdTheme.StickyNav.enable();
SphinxRtdTheme.Navigation.enable(true);
});
</script>
</script>
</body>
</html>
\ No newline at end of file
......@@ -24,26 +24,18 @@
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<link rel="index" title="Index"
href="genindex.html"/>
<link rel="search" title="Search" href="search.html"/>
<link rel="top" title="finance_serv 1.0 documentation" href="#"/>
<link rel="next" title="1. 数据库设计" href="01-db.html"/>
<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="1. 数据库设计" href="01-db.html" />
<script src="_static/js/modernizr.min.js"></script>
</head>
<body class="wy-body-for-nav" role="document">
<body class="wy-body-for-nav">
<div class="wy-grid-for-nav">
......@@ -92,7 +84,8 @@
<p class="caption"><span class="caption-text">目录:</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="01-db.html">1. 数据库设计</a></li>
<li class="toctree-l1"><a class="reference internal" href="99-history.html">2. 修订历史</a></li>
<li class="toctree-l1"><a class="reference internal" href="02-finance-http.html">2. 财务进度服务http接口</a></li>
<li class="toctree-l1"><a class="reference internal" href="99-history.html">3. 修订历史</a></li>
</ul>
......@@ -104,7 +97,7 @@
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
<nav class="wy-nav-top" aria-label="top navigation">
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="#">finance_serv</a>
......@@ -112,9 +105,10 @@
</nav>
<div class="wy-nav-content">
<div class="rst-content">
......@@ -162,11 +156,26 @@
<p class="caption"><span class="caption-text">目录:</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="01-db.html">1. 数据库设计</a><ul>
<li class="toctree-l2"><a class="reference internal" href="01-db.html#id2">1.1. 合同表</a></li>
<li class="toctree-l2"><a class="reference internal" href="01-db.html#id2">1.1. 销售合同表</a></li>
<li class="toctree-l2"><a class="reference internal" href="01-db.html#id3">1.2. 付款约定表</a></li>
<li class="toctree-l2"><a class="reference internal" href="01-db.html#id4">1.3. 合同回款信息表</a></li>
<li class="toctree-l2"><a class="reference internal" href="01-db.html#id5">1.4. 合同开票信息表</a></li>
<li class="toctree-l2"><a class="reference internal" href="01-db.html#id6">1.5. 发货信息表</a></li>
<li class="toctree-l2"><a class="reference internal" href="01-db.html#id7">1.6. 工程验收信息表</a></li>
<li class="toctree-l2"><a class="reference internal" href="01-db.html#id8">1.7. 附件表</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="99-history.html">2. 修订历史</a><ul>
<li class="toctree-l2"><a class="reference internal" href="99-history.html#id2">2.1. 2018.7.14</a></li>
<li class="toctree-l1"><a class="reference internal" href="02-finance-http.html">2. 财务进度服务http接口</a><ul>
<li class="toctree-l2"><a class="reference internal" href="02-finance-http.html#id1">2.1. 增加销售合同</a></li>
<li class="toctree-l2"><a class="reference internal" href="02-finance-http.html#id2">2.2. 查询合同详情</a></li>
<li class="toctree-l2"><a class="reference internal" href="02-finance-http.html#id3">2.3. 删除销售合同</a></li>
<li class="toctree-l2"><a class="reference internal" href="02-finance-http.html#id4">2.4. 修改销售合同</a></li>
<li class="toctree-l2"><a class="reference internal" href="02-finance-http.html#id5">2.5. 查询合同列表</a></li>
<li class="toctree-l2"><a class="reference internal" href="02-finance-http.html#id6">2.6. 导出表格</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="99-history.html">3. 修订历史</a><ul>
<li class="toctree-l2"><a class="reference internal" href="99-history.html#id2">3.1. 2018.7.14</a></li>
</ul>
</li>
</ul>
......@@ -183,9 +192,7 @@
</div>
<div class="articleComments">
</div>
</div>
<footer>
......@@ -205,7 +212,7 @@
</p>
</div>
Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
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>
......@@ -224,6 +231,7 @@
var DOCUMENTATION_OPTIONS = {
URL_ROOT:'./',
VERSION:'1.0',
LANGUAGE:'None',
COLLAPSE_INDEX:false,
FILE_SUFFIX:'.html',
HAS_SOURCE: true,
......@@ -236,19 +244,13 @@
<script type="text/javascript" src="_static/js/theme.js"></script>
<script type="text/javascript" src="_static/js/theme.js"></script>
<script type="text/javascript">
jQuery(function () {
SphinxRtdTheme.StickyNav.enable();
SphinxRtdTheme.Navigation.enable(true);
});
</script>
</script>
</body>
</html>
\ No newline at end of file
......@@ -24,25 +24,17 @@
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<link rel="index" title="Index"
href="genindex.html"/>
<link rel="search" title="Search" href="#"/>
<link rel="top" title="finance_serv 1.0 documentation" href="index.html"/>
<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="#" />
<script src="_static/js/modernizr.min.js"></script>
</head>
<body class="wy-body-for-nav" role="document">
<body class="wy-body-for-nav">
<div class="wy-grid-for-nav">
......@@ -91,7 +83,8 @@
<p class="caption"><span class="caption-text">目录:</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="01-db.html">1. 数据库设计</a></li>
<li class="toctree-l1"><a class="reference internal" href="99-history.html">2. 修订历史</a></li>
<li class="toctree-l1"><a class="reference internal" href="02-finance-http.html">2. 财务进度服务http接口</a></li>
<li class="toctree-l1"><a class="reference internal" href="99-history.html">3. 修订历史</a></li>
</ul>
......@@ -103,7 +96,7 @@
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
<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>
......@@ -111,9 +104,10 @@
</nav>
<div class="wy-nav-content">
<div class="rst-content">
......@@ -141,6 +135,8 @@
<li class="wy-breadcrumbs-aside">
</li>
</ul>
......@@ -166,9 +162,7 @@
</div>
</div>
<div class="articleComments">
</div>
</div>
<footer>
......@@ -181,7 +175,7 @@
</p>
</div>
Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
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>
......@@ -200,6 +194,7 @@
var DOCUMENTATION_OPTIONS = {
URL_ROOT:'./',
VERSION:'1.0',
LANGUAGE:'None',
COLLAPSE_INDEX:false,
FILE_SUFFIX:'.html',
HAS_SOURCE: true,
......@@ -213,19 +208,13 @@
<script type="text/javascript" src="_static/js/theme.js"></script>
<script type="text/javascript" src="_static/js/theme.js"></script>
<script type="text/javascript">
jQuery(function () {
SphinxRtdTheme.StickyNav.enable();
SphinxRtdTheme.Navigation.enable(true);
});
</script>
<script type="text/javascript">
jQuery(function() { Search.loadIndex("searchindex.js"); });
</script>
......
Search.setIndex({docnames:["01-db","99-history","index"],envversion:51,filenames:["01-db.rst","99-history.rst","index.rst"],objects:{},objnames:{},objtypes:{},terms:{"\u4f8b\u5982\u5ba2\u6237\u7aef\u7528\u6237":[],"\u4fee\u8ba2\u5386\u53f2":2,"\u5237\u65b0token":[],"\u52a1\u8fdb\u884c\u9009\u62e9":0,"\u5408\u540c\u7f16\u53f7":0,"\u5408\u540c\u8868":2,"\u5408\u540c\u8868\u4e3b\u952e":0,"\u552f\u4e00":0,"\u5b57\u6bb5\u540d":[],"\u5b57\u6bb5\u540d\u79f0":0,"\u5b8c\u6210\u6982\u8ff0":1,"\u5ba2\u6237\u540d\u79f0":0,"\u5e94\u7528\u670d\u52a1\u8fdb\u7a0b":[],"\u6570\u636e\u5e93\u4e24\u90e8\u5206\u7684\u8bbe\u8ba1":1,"\u6570\u636e\u5e93\u8bbe\u8ba1":2,"\u662f":0,"\u662f\u5426\u5fc5\u586b":0,"\u7528\u6237\u662f\u5426\u6709\u6548":[],"\u7528\u6237\u7684\u521b\u5efa\u65f6\u95f4":[],"\u7528\u6237\u7684\u552f\u4e00id":[],"\u76ee\u5f55":2,"\u7b2c\u4e00\u7248":1,"\u7c7b\u578b":0,"\u8868\u540d":0,"\u8bbe\u5907":[],"\u8bbf\u95eetoken":[],"\u8bf4\u660e":0,"\u8fd9\u91cc\u7684\u7528\u6237\u662f\u6307\u6240\u6709\u9700\u8981\u4e0e\u672c\u670d\u52a1\u8fdb\u884c\u4ea4\u4e92\u7684\u5bf9\u8c61":[],"\u8fdb\u884c\u9009\u62e9":0,"\u901a\u8fc7code\u670d":0,"\u901a\u8fc7code\u670d\u52a1":0,"\u901a\u8fc7code\u670d\u52a1\u8fdb\u884c\u9009\u62e9":[],"\u9500\u552e\u5458":0,"\u9650\u5236":0,"atoken\u7684\u5230\u671f\u65f6\u95f4":[],"rtoken\u7684\u5230\u671f\u65f6\u95f4":[],atoken:[],atoken_edt:[],bool:[],contract_cod:0,create_dt:[],customer_unid:0,datetim:[],devic:[],index:2,is_act:[],modul:2,page:2,rtoken:[],rtoken_edt:[],salesperson_unid:0,search:2,servic:[],string:0,tb_auth_us:[],tb_contract:0,type:[],unid:[],user:[]},titles:["1. \u6570\u636e\u5e93\u8bbe\u8ba1","2. \u4fee\u8ba2\u5386\u53f2","\u8d22\u52a1\u8fdb\u5ea6\u670d\u52a1\u8bbe\u8ba1"],titleterms:{"\u4e3b\u8868":[],"\u4fee\u8ba2\u5386\u53f2":1,"\u5408\u540c\u8868":0,"\u6570\u636e\u5e93\u8bbe\u8ba1":0,"\u8d22\u52a1\u8fdb\u5ea6\u670d\u52a1\u8bbe\u8ba1":2,indic:2,tabl:2}})
\ No newline at end of file
Search.setIndex({docnames:["01-db","02-finance-http","99-history","index"],envversion:53,filenames:["01-db.rst","02-finance-http.rst","99-history.rst","index.rst"],objects:{},objnames:{},objtypes:{},terms:{"\u4e3b\u952e":0,"\u4ea4\u901a":1,"\u4ea7\u54c1\u7ebf\u7c7b\u578b":[0,1],"\u4ed8\u6b3e\u671f\u6570":[0,1],"\u4ed8\u6b3e\u6761\u4ef6":[0,1],"\u4ed8\u6b3e\u6bd4\u4f8b":[0,1],"\u4ed8\u6b3e\u7ea6\u5b9a\u6570\u636e\u5217\u8868":1,"\u4ed8\u6b3e\u7ea6\u5b9a\u8868":3,"\u4ed8\u6b3e\u7ea6\u5b9a\u8868\u4e3b\u952e":1,"\u4f9b\u8d27":1,"\u4fee\u6539\u6210\u529f\u8fd4\u56de\u7801":1,"\u4fee\u6539\u9500\u552e\u5408\u540c":3,"\u4fee\u8ba2\u5386\u53f2":3,"\u521d\u9a8c\u65f6\u95f4":[0,1],"\u521d\u9a8c\u9644\u4ef6":1,"\u5220\u9664\u6210\u529f\u8fd4\u56de\u7801":1,"\u5220\u9664\u9500\u552e\u5408\u540c":3,"\u5230\u8d27\u6b3e\u5230\u671f\u65e5":1,"\u5230\u8d27\u6b3e\u91d1\u989d":1,"\u5230\u8d27\u7b7e\u6536\u5355\u9644\u4ef6":1,"\u5230\u8d27\u7b7e\u6536\u9644\u4ef6":[],"\u5230\u8d27\u9a8c\u6536\u65f6\u95f4":[0,1],"\u52a1\u8fdb\u884c\u9009\u62e9":0,"\u5317\u4eac\u91d1\u6e90\u65f6\u4ee3\u8d2d\u7269\u4e2d\u5fc3\u6709\u9650\u516c\u53f8":1,"\u533a":[0,1],"\u53d1\u7968\u5907\u6ce8":[0,1],"\u53d1\u8d27\u4fe1\u606f\u4e3b\u952e":0,"\u53d1\u8d27\u4fe1\u606f\u8868":3,"\u53d1\u8d27\u65f6\u95f4":[0,1],"\u5408\u540c\u4f59\u989d":[0,1],"\u5408\u540c\u4f59\u989d\u5907\u6ce8":[0,1],"\u5408\u540c\u53ca\u5b50\u8868\u7684\u4e3b\u952e":0,"\u5408\u540c\u56de\u6b3e\u4fe1\u606f\u8868":[1,3],"\u5408\u540c\u5907\u6ce8":[0,1],"\u5408\u540c\u5f00\u7968\u4fe1\u606f\u4e3b\u952e":0,"\u5408\u540c\u5f00\u7968\u4fe1\u606f\u8868":[1,3],"\u5408\u540c\u6027\u8d28":[0,1],"\u5408\u540c\u662f\u5426\u5f52\u6863":1,"\u5408\u540c\u671f\u6570":1,"\u5408\u540c\u671f\u6570\u7684\u72b6\u6001":1,"\u5408\u540c\u6807\u8bc6":0,"\u5408\u540c\u72b6\u6001":[0,1],"\u5408\u540c\u7f16\u53f7":[0,1],"\u5408\u540c\u8868":[],"\u5408\u540c\u8868\u4e3b\u952e":[],"\u5408\u540c\u91d1\u989d":[0,1],"\u5408\u540c\u91d1\u989d\u5907\u6ce8":[0,1],"\u5408\u540c\u9644\u4ef6":1,"\u5426":0,"\u5434\u65ed":1,"\u552f\u4e00":0,"\u56de\u6b3e\u4fe1\u606f\u5217\u8868":[],"\u56de\u6b3e\u4fe1\u606f\u8868\u4e3b\u952e":1,"\u56de\u6b3e\u5907\u6ce8":[0,1],"\u56de\u6b3e\u6bd4\u4f8b":[0,1],"\u574f\u8d26\u91d1\u989d":[0,1],"\u574f\u8d26\u91d1\u989d\u5907\u6ce8":[0,1],"\u589e\u52a0\u9500\u552e\u5408\u540c":3,"\u5907\u6ce8":[],"\u5929\u6570":[0,1],"\u5b57\u6bb5\u540d\u79f0":0,"\u5b89\u9632":1,"\u5b8c\u6210\u6982\u8ff0":2,"\u5b9e\u9645\u56de\u6b3e\u6570\u989d":[0,1],"\u5ba2\u6237\u540d\u79f0":[0,1],"\u5ba2\u6d41":1,"\u5bfc\u51fa\u8868\u683c":3,"\u5c0f\u6570\u70b9\u4fdd\u7559\u4e24\u4f4d":1,"\u5de5\u7a0b\u9a8c\u6536\u4fe1\u606f\u4e3b\u952e":0,"\u5de5\u7a0b\u9a8c\u6536\u4fe1\u606f\u8868":3,"\u5df2\u5b8c\u6210":1,"\u5e10\u6b3e\u72b6\u6001":1,"\u5e94\u4ed8\u6b3e\u65e5\u671f":[0,1],"\u5e94\u4ed8\u91d1\u989d":[0,1],"\u5e94\u6536\u8d26\u6b3e\u4f59\u989d":[0,1],"\u5f00\u7968\u4fe1\u606f\u8868\u4e3b\u952e":1,"\u5f00\u7968\u6bd4\u4f8b":[0,1],"\u5f00\u7968\u8fdb\u5ea6":[0,1],"\u5f00\u7968\u91d1\u989d":[0,1],"\u5f85\u53d1\u8d27":1,"\u6240\u5728\u53bf":1,"\u6240\u5728\u5e02":1,"\u6240\u5728\u7701\u4efd":1,"\u6240\u5c5e\u5e74\u4efd":[0,1],"\u6240\u5c5e\u6708\u4efd":[0,1],"\u6298\u6263\u91d1\u989d":1,"\u62b5\u6263\u91d1\u989d":[0,1],"\u6570\u636e\u5e93\u4e24\u90e8\u5206\u7684\u8bbe\u8ba1":2,"\u6570\u636e\u5e93\u8bbe\u8ba1":3,"\u6587\u672c":1,"\u65b0\u589e\u6210\u529f\u8fd4\u56de\u7801":1,"\u65bd\u5de5":1,"\u65bd\u5de5\u4e2d":1,"\u65e0":1,"\u662f":0,"\u662f\u5426\u56de\u6b3e":[0,1],"\u662f\u5426\u5f52\u6863":[0,1],"\u662f\u5426\u5fc5\u586b":0,"\u662f\u5426\u662f\u521d\u9a8c":[0,1],"\u662f\u5426\u662f\u7ec8\u9a8c":[0,1],"\u662f\u5426\u7ec8\u9a8c":1,"\u6682\u505c\u91d1\u989d":[0,1],"\u6708\u4efd":1,"\u670d\u52a1\u8fdb\u884c\u9009\u62e9":[],"\u6761\u4ef6\u7b5b\u9009":[],"\u67e5\u770b\u5408\u540c\u5217\u8868":[],"\u67e5\u8be2\u5408\u540c\u5217\u8868":3,"\u67e5\u8be2\u5408\u540c\u8be6\u60c5":3,"\u67e5\u8be2\u9500\u552e\u5408\u540c":[],"\u6839\u636e\u6761\u4ef6\u67e5\u770b\u5408\u540c\u5217\u8868":[],"\u6b65\u957f\u4e3a6":1,"\u6ca7\u5dde\u5e02":1,"\u6cb3\u5317\u7701":1,"\u732e\u53bf":1,"\u76ee\u5f55":3,"\u786e\u5b9a\u6536\u5165\u91d1\u989d":[0,1],"\u7b2c\u4e00\u7248":2,"\u7b7e\u8ba2\u65e5\u671f":1,"\u7b7e\u8ba2\u65f6\u95f4":[0,1],"\u7c7b\u578b":0,"\u7cbe\u786e\u7b5b\u9009":[],"\u7d2f\u8ba1\u56de\u6b3e\u989d":[0,1],"\u7d2f\u8ba1\u56de\u6b3e\u989d\u5907\u6ce8":[0,1],"\u7d2f\u8ba1\u5e94\u6536\u6b3e":[0,1],"\u7d2f\u8ba1\u5f00\u7968\u91d1\u989d":[0,1],"\u7ec8\u9a8c\u65f6\u95f4":[0,1],"\u7ec8\u9a8c\u9644\u4ef6":1,"\u7ed3\u675f\u65f6\u95f4":1,"\u7ef4\u4fdd":1,"\u7ef4\u4fdd\u670d\u52a1\u671f\u5f00\u59cb\u65f6\u95f4":[0,1],"\u7ef4\u4fdd\u670d\u52a1\u671f\u7ed3\u675f\u65f6\u95f4":[0,1],"\u884c\u9009\u62e9":0,"\u8868\u540d":0,"\u8bbe\u7f6e\u5e94\u6536\u8d26\u6b3e\u4f59\u989d\u67e5\u8be2\u8282\u70b9":1,"\u8bbe\u7f6e\u5f00\u59cb\u65f6\u95f4":1,"\u8bbe\u7f6e\u7ed3\u675f\u65f6\u95f4":1,"\u8bbe\u7f6e\u903e\u671f\u5929\u6570\u67e5\u8be2\u8282\u70b9":1,"\u8bbe\u7f6e\u91d1\u989d\u67e5\u8be2\u8282\u70b9":1,"\u8bf4\u660e":0,"\u8c41\u514d\u91d1\u989d":[0,1],"\u8d22\u52a1\u8fdb\u5ea6\u670d\u52a1http\u63a5\u53e3":3,"\u8d26\u6b3e\u72b6\u6001":[0,1],"\u8d28\u4fdd\u5468\u671f":[0,1],"\u8d28\u4fdd\u671f\u5f00\u59cb\u65f6\u95f4":[0,1],"\u8d28\u4fdd\u671f\u5f00\u59cb\u8282\u70b9":[0,1],"\u8d28\u4fdd\u671f\u7ed3\u675f\u65f6\u95f4":[0,1],"\u8d28\u4fdd\u91d1\u989d":1,"\u8fd4\u56de\u8bf4\u660e":1,"\u8fdb\u884c\u9009\u62e9":0,"\u9009\u62e9":[0,1],"\u901a\u8fc7":0,"\u901a\u8fc7code":[],"\u901a\u8fc7code\u670d":0,"\u901a\u8fc7code\u670d\u52a1":0,"\u901a\u8fc7code\u670d\u52a1\u8fdb":0,"\u901a\u8fc7code\u670d\u52a1\u8fdb\u884c":0,"\u903e\u671f\u5929\u6570":[0,1],"\u91d1\u6e90\u65f6\u4ee3\u5ba2\u6d41\u9879\u76ee":1,"\u9500\u552e\u5408\u540c\u8868":3,"\u9500\u552e\u5458":[0,1],"\u9500\u552e\u5458id":1,"\u9644\u4ef6\u4e0b\u8f7d\u5730\u5740":0,"\u9644\u4ef6\u4e3b\u952e":0,"\u9644\u4ef6\u7c7b\u578b":0,"\u9644\u4ef6\u8868":3,"\u9650\u5236":0,"\u96c6\u6210":1,"\u9879\u76ee\u540d\u79f0":[0,1],"\u9879\u76ee\u6240\u5728\u53bf":1,"\u9879\u76ee\u6240\u5728\u5730\u7684\u53bf":0,"\u9879\u76ee\u6240\u5728\u5730\u7684\u53bf\u6216\u533a":1,"\u9879\u76ee\u6240\u5728\u5730\u7684\u5e02":0,"\u9879\u76ee\u6240\u5728\u5730\u7684\u5e02\u533a":1,"\u9879\u76ee\u6240\u5728\u5730\u7684\u7701\u4efd":[0,1],"\u9879\u76ee\u6240\u5728\u5e02":1,"\u9879\u76ee\u6240\u5728\u7701":1,"\u9879\u76ee\u6682\u505c":1,"\u9884\u4ed8\u6b3e\u91d1\u989d":1,"\u9a8c\u6536\u5907\u6ce8":[0,1],"\u9a8c\u6536\u65e5\u671f":1,"\u9a8c\u6536\u6b3e\u5230\u671f\u65e5":1,"\u9a8c\u6536\u6b3e\u91d1\u989d":1,"code\u670d\u52a1\u8fdb\u884c\u9009\u62e9":0,"export":1,"float":0,"int":0,"oa\u6d41\u6c34\u53f7":[0,1],accuratequeri:[],actual_reback_amount:[0,1],addcontract:[],amount_point:1,amount_state_unid:[0,1],api:1,appendix_id:0,appendix_typ:0,appendix_url:0,applic:1,bad_amount:[0,1],bad_amount_not:[0,1],bodi:1,bool:0,bytea:[],check_not:[0,1],condit:[],conditionqueri:[],confirm_income_amount:[0,1],constract_cod:1,content:1,contract:1,contract_amount:[0,1],contract_amount_not:[0,1],contract_appendix:1,contract_cod:[0,1],contract_identifi:0,contract_natur:[0,1],contract_not:[0,1],contract_remain:[0,1],contract_remain_not:[0,1],contract_st:[0,1],customer_unid:[0,1],date:0,deduct_amount:[0,1],delet:1,deletecontract:[],deliver_goods_d:[0,1],deliver_id:0,ecod:1,ecot:1,end_check_appendix:1,end_check_d:[0,1],end_dat:1,end_guarantee_d:[0,1],end_quality_d:[0,1],enot:[],exemptions_amount:[0,1],financi:1,first_check_appendix:1,first_check_d:[0,1],foreign_kei:0,get:1,goods_check_d:[0,1],goods_sign_appendix:1,goodsl_check_d:1,header:1,index:3,is_end_check:[0,1],is_fil:[0,1],is_first_check:[0,1],is_reback:[0,1],json:1,leave_amount_point:1,list_payment_data:1,list_reback_data:1,list_receipt_data:1,location_area:[0,1],location_c:[0,1],location_provinc:[0,1],modul:3,month:[0,1],oa_flow_id:[0,1],over_days_unid:[0,1],overdays_point:1,page:3,path:1,payment_agree_d:[0,1],payment_amount:[0,1],payment_id:[0,1],payment_period_numb:[0,1],payment_period_st:[0,1],payment_propor:[0,1],payment_requir:[0,1],post:1,product_line_typ:[0,1],project_id:0,project_unid:[0,1],put:[],quality_cycl:[0,1],quality_start_point:[0,1],querybycondit:[],querycontract:[],querycontractlist:[],reback_not:[0,1],reback_propor:[0,1],receipt_amount:[0,1],receipt_id:[0,1],receipt_not:[0,1],receipt_progress:[0,1],receipt_propor:[0,1],request:1,respons:1,return_id:[0,1],salesperson_unid:[0,1],search:3,select:[],sign_dat:[0,1],start_dat:1,start_guarantee_d:[0,1],start_quality_d:[0,1],stop_amount:[0,1],string:0,tb_appendix:0,tb_contract:0,tb_deliver_good:0,tb_payment_agre:0,tb_project_check:0,tb_receipt:0,tb_return_info:0,text:0,total_dai:[0,1],total_leave_amount:[0,1],total_reback_amount:[0,1],total_receipt_amount:[0,1],total_receive_amount:[0,1],type:1,updat:[],updatecontract:[],verb:1,xxxx:1,year:[0,1]},titles:["1. \u6570\u636e\u5e93\u8bbe\u8ba1","2. \u8d22\u52a1\u8fdb\u5ea6\u670d\u52a1http\u63a5\u53e3","3. \u4fee\u8ba2\u5386\u53f2","\u8d22\u52a1\u8fdb\u5ea6\u670d\u52a1\u8bbe\u8ba1"],titleterms:{"\u4ed8\u6b3e\u7ea6\u5b9a\u8868":0,"\u4fee\u6539\u9500\u552e\u5408\u540c":1,"\u4fee\u8ba2\u5386\u53f2":2,"\u5220\u9664\u9500\u552e\u5408\u540c":1,"\u53d1\u8d27\u4fe1\u606f\u8868":0,"\u5408\u540c\u56de\u6b3e\u4fe1\u606f\u8868":0,"\u5408\u540c\u5f00\u7968\u4fe1\u606f\u8868":0,"\u5408\u540c\u8868":[],"\u589e\u52a0\u9500\u552e\u5408\u540c":1,"\u5bfc\u51fa\u8868\u683c":1,"\u5de5\u7a0b\u9a8c\u6536\u4fe1\u606f\u8868":0,"\u6570\u636e\u5e93\u8bbe\u8ba1":0,"\u6761\u4ef6\u7b5b\u9009":[],"\u67e5\u770b\u5408\u540c\u5217\u8868":[],"\u67e5\u8be2\u5408\u540c\u5217\u8868":1,"\u67e5\u8be2\u5408\u540c\u8be6\u60c5":1,"\u67e5\u8be2\u9500\u552e\u5408\u540c":[],"\u6839\u636e\u6761\u4ef6\u67e5\u770b\u5408\u540c\u5217\u8868":[],"\u7cbe\u786e\u7b5b\u9009":[],"\u8d22\u52a1\u8fdb\u5ea6\u670d\u52a1\u8bbe\u8ba1":3,"\u8d22\u52a1\u8fdb\u5ea6\u670d\u52a1http\u63a5\u53e3":1,"\u9500\u552e\u5408\u540c\u8868":0,"\u9644\u4ef6\u8868":0,indic:3,tabl:3}})
\ No newline at end of file
数据库设计
=======================
合同表
销售合同表
++++++++++++
表名: tb_contract
......@@ -9,11 +9,232 @@
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| 字段名称 | 是否必填 | 类型 | 限制 | 唯一 | 说明 |
+=======================+=============+===========+===========+=========+==========================+
| contract_code | *是* | string | <=50 | 是 | 合同编号(合同表主键 |
| contract_code | *是* | string | <=32 | 是 | 合同编号(主键),通过 |
| | | | | | code服务进行选择 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| salesperson_unid | *是* | string | <=32 | | 销售员,通过code服 |
| salesperson_unid | *是* | string | <=32 | | 销售员,通过code服 |
| | | | | | 务进行选择 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| customer_unid | *是* | string | <=50 | 是 | 客户名称,通过code服务 |
| project_unid | *是* | string | <=32 | 否 | 项目名称,通过code服务 |
| | | | | | 进行选择 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| customer_unid | *是* | string | <=32 | 否 | 客户名称,通过code服务 |
| | | | | | 进行选择 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| location_province | *是* | string | <=32 | 否 | 项目所在地的省份 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| location_city | *是* | string | <=32 | 否 | 项目所在地的市 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| location_area | *是* | string | <=32 | 否 | 项目所在地的县(区) |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| quality_cycle | *是* | int | <=16 | 否 | 质保周期,通过code服务进 |
| | | | | | 行选择 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| sign_date | *是* | date | <=16 | 否 | 签订时间 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| year | *是* | string | <=4 | 否 | 所属年份 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| month | *是* | string | <=2 | 否 | 所属月份 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| product_line_type | *是* | string | <=32 | 否 | 产品线类型,通过code服务 |
| | | | | | 进行选择 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| contract_state | *是* | string | <=32 | 否 | 合同状态,通过code服务进 |
| | | | | | 行选择 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| contract_nature | *是* | string | <=32 | 否 | 合同性质,通过code服务进 |
| | | | | | 行选择 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| contract_amount | *是* | float | <=24 | 否 | 合同金额 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| deduct_amount | *是* | float | <=24 | 否 | 抵扣金额 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| contract_amount_note | *否* | text | | 否 | 合同金额备注 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| total_reback_amount | *是* | float | <=24 | 否 | 累计回款额 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| stop_amount | *是* | float | <=24 | 否 | 暂停金额 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| reback_note | *否* | text | | 否 | 累计回款额备注 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| contract_remaining | *是* | float | <=24 | 否 | 合同余额 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| exemptions_amount | *是* | float | <=24 | 否 | 豁免金额 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| contract_remain_note | *否* | text | | 否 | 合同余额备注 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| is_file | *是* | bool | | 否 | 是否归档,通过code服务进 |
| | | | | | 行选择 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| bad_amount | *是* | float | <=24 | 否 | 坏账金额 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| bad_amount_note | *否* | text | | 否 | 坏账金额备注 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| total_receive_amount | *是* | float | <=24 | 否 | 累计应收款 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| total_leave_amount | *是* | float | <=24 | 否 | 应收账款余额 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| over_days_unid | *是* | int | <=16 | 否 | 逾期天数 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| confirm_income_amount | *是* | float | <=24 | 否 | 确定收入金额 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| amount_state_unid | *是* | string | <=32 | 否 | 账款状态,通过code服务进行|
| | | | | | 选择 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| start_guarantee_date | *是* | date | | 否 | 维保服务期开始时间 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| end_guarantee_date | *是* | date | | 否 | 维保服务期结束时间 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| quality_start_point | *是* | string | <=32 | 否 | 质保期开始节点 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| start_quality_date | *是* | date | | 否 | 质保期开始时间 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| end_quality_date | *是* | date | | 否 | 质保期结束时间 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| contract_note | *否* | text | | 否 | 合同备注 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| contract_identify | *否* | bool | | 否 | 合同标识 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
付款约定表
++++++++++++
表名:tb_payment_agree
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| 字段名称 | 是否必填 | 类型 | 限制 | 唯一 | 说明 |
+=======================+=============+===========+===========+=========+==========================+
| payment_id | *是* | string | <=32 | 是 | 主键 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| contract_code | *是* | String | <=32 | 否 | 合同编号,通过code服务进 |
| | | | | | 行选择 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| payment_period_state | *是* | string | <=10 | 否 | 合同状态,通过code服务进 |
| | | | | | 行选择 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| total_days | *是* | int | <=32 | 否 | 天数 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| payment_agree_date | *是* | date | | 否 | 应付款日期 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| payment_amount | *是* | float | <=16 | 否 | 应付金额 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| payment_propority | *是* | float | <=16 | 否 | 付款比例,通过code服务进 |
| | | | | | 行选择 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| payment_requirement | *是* | text | | 否 | 付款条件 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
合同回款信息表
++++++++++++++++++
表名:tb_return_info
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| 字段名称 | 是否必填 | 类型 | 限制 | 唯一 | 说明 |
+=======================+=============+===========+===========+=========+==========================+
| return_id | *是* | string | <=32 | 是 | 主键 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| contract_code | *是* | string | <=32 | 否 | 合同编号,通过code服务进 |
| | | | | | 行选择 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| payment_period_number | *是* | int | <=16 | 否 | 付款期数 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| actual_reback_amount | *是* | float | <=24 | 否 | 实际回款数额 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| reback_propority | *是* | float | <=24 | 否 | 回款比例 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| reback_note | *否* | text | | 否 | 回款备注 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
合同开票信息表
+++++++++++++++++++++
表名:tb_receipt
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| 字段名称 | 是否必填 | 类型 | 限制 | 唯一 | 说明 |
+=======================+=============+===========+===========+=========+==========================+
| receipt_id | *是* | string | <=32 | 是 | 合同开票信息主键 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| contract_code | *是* | string | <=32 | 否 | 合同编号,通过code服务进 |
| | | | | | 行选择 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| receipt_progress | *是* | int | <=16 | 否 | 开票进度 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| receipt_amount | *是* | float | <=24 | 否 | 开票金额 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| oa_flow_id | *是* | int | <=32 | 否 | oa流水号 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| receipt_propority | *是* | float | <=24 | 否 | 开票比例 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| total_receipt_amount | *是* | float | <=24 | 否 | 累计开票金额 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| is_reback | *否* | bool | | 否 | 是否回款 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| receipt_note | *是* | text | | 否 | 发票备注 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
发货信息表
++++++++++++++++
表名:tb_deliver_goods
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| 字段名称 | 是否必填 | 类型 | 限制 | 唯一 | 说明 |
+=======================+=============+===========+===========+=========+==========================+
| deliver_id | *是* | string | <=32 | 是 | 发货信息主键 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| contract_code | *是* | string | <=32 | 否 | 合同编号,通过code服务进 |
| | | | | | 行选择 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| deliver_goods_date | *是* | date | | 否 | 发货时间 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| goods_check_date | *是* | date | | 否 | 到货验收时间 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
工程验收信息表
+++++++++++++++++++
表名:tb_project_check
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| 字段名称 | 是否必填 | 类型 | 限制 | 唯一 | 说明 |
+=======================+=============+===========+===========+=========+==========================+
| project_id | *是* | string | <=32 | 是 | 工程验收信息主键 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| contract_code | *是* | string | <=32 | 否 | 合同编号,通过code服务进 |
| | | | | | 行选择 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| is_first_check | *是* | bool | | 否 | 是否是初验 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| first_check_date | *是* | date | | 否 | 初验时间 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| is_end_check | *是* | bool | | 否 | 是否是终验 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| end_check_date | *否* | date | | 否 | 终验时间 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| check_note | *否* | text | | 否 | 验收备注 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
附件表
++++++++++++
表名:tb_appendix
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| 字段名称 | 是否必填 | 类型 | 限制 | 唯一 | 说明 |
+=======================+=============+===========+===========+=========+==========================+
| appendix_id | *是* | string | <=32 | 是 | 附件主键 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| foreign_key | *是* | string | | 是 | 合同及子表的主键 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| appendix_type | *是* | string | | 是 | 附件类型 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
| appendix_url | *是* | string | | 否 | 附件下载地址 |
+-----------------------+-------------+-----------+-----------+---------+--------------------------+
\ No newline at end of file
财务进度服务http接口
=======================
增加销售合同
^^^^^^^^^^^^^^^
| Verb: POST
| Path: /api/v1/financial/contract
| Header: (Content-Type: application/json)
Request Body:
.. code-block:: python
{
"constract_code"":"2018-079", #合同编号,选择
"salesperson_unid":"吴旭", #销售员id,选择
"project_unid":"金源时代客流项目", #项目名称,选择
"customer_unid":"北京金源时代购物中心有限公司", #客户名称,选择
"location_province":"河北省", #项目所在地的省份
"location_city":"沧州市", #项目所在地的市区
"location_area":"献县", #项目所在地的县或区
"quality_cycle":"6/12/.../60", #质保周期,月份,步长为6
"sign_date":"2018/3/9", #签订时间
"year":"2018", #所属年份
"month":"3", #所属月份
"product_line_type":"xxxx", #产品线类型,(安防、交通、客流、维保)
"contract_state":"xxxx", #合同状态,(已完成、待发货,施工中,项目暂停)
"contract_nature":"xxxx", #合同性质,(供货,施工,集成,维保)
"contract_amount":"140000.00", #合同金额,小数点保留两位
"deduct_amount":"5000.00", #折扣金额,小数点保留两位
"contract_amount_note":"xxxx", #合同金额备注,文本
"total_reback_amount":"133000.00", #累计回款额,小数点保留两位
"stop_amount":"xxxx", #暂停金额,小数点保留两位
"reback_note":"xxxx", #累计回款额备注,文本
"contract_remaining":"xxxx", #合同余额,小数点保留两位
"exemptions_amount":"xxxx", #豁免金额,小数点保留两位
"contract_remain_note":"xxxx", #合同余额备注
"is_file":"xxxx", #是否归档
"bad_amount":"xxxx", #坏账金额,小数点保留两位
"bad_amount_note":"xxxx", #坏账金额备注
"total_receive_amount":"xxxx", #累计应收款,小数点保留两位
"total_leave_amount":"xxxx", #应收账款余额,小数点保留两位
"over_days_unid":"176", #逾期天数
"confirm_income_amount":"xxxx", #确定收入金额,小数点保留两位
"amount_state_unid":"xxxx", #帐款状态
"start_guarantee_date":"xxxx", #维保服务期开始时间
"end_guarantee_date":"xxxx", #维保服务期结束时间
"quality_start_point":"xxxx", #质保期开始节点
"start_quality_date":"xxxx", #质保期开始时间
"end_quality_date":"xxxx", #质保期结束时间
"contract_note":"xxxx", #合同备注
"contract_appendix":"xxxx", #合同附件
"list_payment_data": #付款约定数据列表
[
{
"payment_id":"xxxx", #付款约定表主键
"payment_period_number":"xxxx", #合同期数
"payment_period_state":"xxxx", #合同期数的状态
"total_days":"xxxx", #天数
"payment_agree_date":"xxxx", #应付款日期
"payment_amount":"xxxx", #应付金额
"payment_propority":"xxxx", #付款比例
"payment_requirement":"xxxx", #付款条件
},
......
]
"list_reback_data": #合同回款信息表
[
{
"return_id":"xxxx", #回款信息表主键
"payment_period_number":"xxxx", #付款期数
"actual_reback_amount":"xxxx", #实际回款数额
"reback_propority":"xxxx", #回款比例
"reback_note":"xxxx", #回款备注
},
......
]
"list_receipt_data": #合同开票信息表
[
{
"receipt_id":"xxxx", #开票信息表主键
"receipt_progress":"xxxx", #开票进度
"receipt_amount":"xxxx", #开票金额
"oa_flow_id":"xxxx", #oa流水号
"receipt_propority":"xxxx", #开票比例
"total_receipt_amount":"xxxx", #累计开票金额
"is_reback":"xxxx", #是否回款
"receipt_note":"xxxx", #发票备注
},
......
]
"deliver_goods_date":"xxxx", #发货时间
"goodsl_check_date":"xxxx", #到货验收时间
"goods_sign_appendix":"xxxx", #到货签收单附件
"is_first_check":"xxxx", #是否是初验
"first_check_date":"xxxx", #初验时间
"first_check_appendix":"xxxx", #初验附件
"is_end_check":"xxxx", #是否是终验
"end_check_date":"xxxx", #终验时间
"check_note":"xxxx", #验收备注
"end_check_appendix":"xxxx" #终验附件
}
Response Body:
.. code-block:: python
{
"ecode":"200", #新增成功返回码
"ecote":"OK" #返回说明
}
查询合同详情
^^^^^^^^^^^^^^^^^^^^^
| Verb: GET
| Path: /api/v1/financial/contract/{constract_code}
| Header: (Content-Type: application/json)
Request Body:
Response Body:
.. code-block:: python
{
"constract_code"":"2018-079", #合同编号,选择
"salesperson_unid":"吴旭", #销售员id,选择
"project_unid":"金源时代客流项目", #项目名称,选择
"customer_unid":"北京金源时代购物中心有限公司", #客户名称,选择
"location_province":"河北省", #项目所在地的省份
"location_city":"沧州市", #项目所在地的市区
"location_area":"献县", #项目所在地的县或区
"quality_cycle":"6/12/.../60", #质保周期,月份,步长为6
"sign_date":"2018/3/9", #签订时间
"year":"2018", #所属年份
"month":"3", #所属月份
"product_line_type":"xxxx", #产品线类型,(安防、交通、客流、维保)
"contract_state":"xxxx", #合同状态,(已完成、待发货,施工中,项目暂停)
"contract_nature":"xxxx", #合同性质,(供货,施工,集成,维保)
"contract_amount":"140000.00", #合同金额,小数点保留两位
"deduct_amount":"5000.00", #折扣金额,小数点保留两位
"contract_amount_note":"xxxx", #合同金额备注,文本
"total_reback_amount":"133000.00", #累计回款额,小数点保留两位
"stop_amount":"xxxx", #暂停金额,小数点保留两位
"reback_note":"xxxx", #累计回款额备注,文本
"contract_remaining":"xxxx", #合同余额,小数点保留两位
"exemptions_amount":"xxxx", #豁免金额,小数点保留两位
"contract_remain_note":"xxxx", #合同余额备注
"is_file":"xxxx", #是否归档
"bad_amount":"xxxx", #坏账金额,小数点保留两位
"bad_amount_note":"xxxx", #坏账金额备注
"total_receive_amount":"xxxx", #累计应收款,小数点保留两位
"total_leave_amount":"xxxx", #应收账款余额,小数点保留两位
"over_days_unid":"176", #逾期天数
"confirm_income_amount":"xxxx", #确定收入金额,小数点保留两位
"amount_state_unid":"xxxx", #帐款状态
"start_guarantee_date":"xxxx", #维保服务期开始时间
"end_guarantee_date":"xxxx", #维保服务期结束时间
"quality_start_point":"xxxx", #质保期开始节点
"start_quality_date":"xxxx", #质保期开始时间
"end_quality_date":"xxxx", #质保期结束时间
"contract_note":"xxxx", #合同备注
"contract_appendix":"xxxx", #合同附件
"list_payment_data": #付款约定数据列表
[
{
"payment_id":"xxxx", #付款约定表主键
"payment_period_number":"xxxx", #合同期数
"payment_period_state":"xxxx", #合同期数的状态
"total_days":"xxxx", #天数
"payment_agree_date":"xxxx", #应付款日期
"payment_amount":"xxxx", #应付金额
"payment_propority":"xxxx", #付款比例
"payment_requirement":"xxxx", #付款条件
},
......
]
"list_reback_data": #合同回款信息表
[
{
"return_id":"xxxx", #回款信息表主键
"payment_period_number":"xxxx", #付款期数
"actual_reback_amount":"xxxx", #实际回款数额
"reback_propority":"xxxx", #回款比例
"reback_note":"xxxx", #回款备注
},
......
]
"list_receipt_data": #合同开票信息表
[
{
"receipt_id":"xxxx", #开票信息表主键
"receipt_progress":"xxxx", #开票进度
"receipt_amount":"xxxx", #开票金额
"oa_flow_id":"xxxx", #oa流水号
"receipt_propority":"xxxx", #开票比例
"total_receipt_amount":"xxxx", #累计开票金额
"is_reback":"xxxx", #是否回款
"receipt_note":"xxxx", #发票备注
},
......
]
"deliver_goods_date":"xxxx", #发货时间
"goodsl_check_date":"xxxx", #到货验收时间
"goods_sign_appendix":"xxxx", #到货签收单附件
"is_first_check":"xxxx", #是否是初验
"first_check_date":"xxxx", #初验时间
"first_check_appendix":"xxxx", #初验附件
"is_end_check":"xxxx", #是否是终验
"end_check_date":"xxxx", #终验时间
"check_note":"xxxx", #验收备注
"end_check_appendix":"xxxx" #终验附件
}
删除销售合同
^^^^^^^^^^^^^^^
| Verb: DELETE
| Path: /api/v1/financial/contract/{constract_code}
| Header: (Content-Type: application/json)
Request Body:无
Response Body:
.. code-block:: python
{
"ecode":"200", #删除成功返回码
"ecote":"OK" #返回说明
}
修改销售合同
^^^^^^^^^^^^^^^
| Verb: POST
| Path: /api/v1/financial/contract/{constract_code}
| Header: (Content-Type: application/json)
Request Body:
.. code-block:: python
{
"constract_code"":"2018-079", #合同编号,选择
"salesperson_unid":"吴旭", #销售员id,选择
"project_unid":"金源时代客流项目", #项目名称,选择
"customer_unid":"北京金源时代购物中心有限公司", #客户名称,选择
"location_province":"河北省", #项目所在地的省份
"location_city":"沧州市", #项目所在地的市区
"location_area":"献县", #项目所在地的县或区
"quality_cycle":"6/12/.../60", #质保周期,月份,步长为6
"sign_date":"2018/3/9", #签订时间
"year":"2018", #所属年份
"month":"3", #所属月份
"product_line_type":"xxxx", #产品线类型,(安防、交通、客流、维保)
"contract_state":"xxxx", #合同状态,(已完成、待发货,施工中,项目暂停)
"contract_nature":"xxxx", #合同性质,(供货,施工,集成,维保)
"contract_amount":"140000.00", #合同金额,小数点保留两位
"deduct_amount":"5000.00", #折扣金额,小数点保留两位
"contract_amount_note":"xxxx", #合同金额备注,文本
"total_reback_amount":"133000.00", #累计回款额,小数点保留两位
"stop_amount":"xxxx", #暂停金额,小数点保留两位
"reback_note":"xxxx", #累计回款额备注,文本
"contract_remaining":"xxxx", #合同余额,小数点保留两位
"exemptions_amount":"xxxx", #豁免金额,小数点保留两位
"contract_remain_note":"xxxx", #合同余额备注
"is_file":"xxxx", #是否归档
"bad_amount":"xxxx", #坏账金额,小数点保留两位
"bad_amount_note":"xxxx", #坏账金额备注
"total_receive_amount":"xxxx", #累计应收款,小数点保留两位
"total_leave_amount":"xxxx", #应收账款余额,小数点保留两位
"over_days_unid":"176", #逾期天数
"confirm_income_amount":"xxxx", #确定收入金额,小数点保留两位
"amount_state_unid":"xxxx", #帐款状态
"start_guarantee_date":"xxxx", #维保服务期开始时间
"end_guarantee_date":"xxxx", #维保服务期结束时间
"quality_start_point":"xxxx", #质保期开始节点
"start_quality_date":"xxxx", #质保期开始时间
"end_quality_date":"xxxx", #质保期结束时间
"contract_note":"xxxx", #合同备注
"contract_appendix":"xxxx", #合同附件
"list_payment_data": #付款约定数据列表
[
{
"payment_id":"xxxx", #付款约定表主键
"payment_period_number":"xxxx", #合同期数
"payment_period_state":"xxxx", #合同期数的状态
"total_days":"xxxx", #天数
"payment_agree_date":"xxxx", #应付款日期
"payment_amount":"xxxx", #应付金额
"payment_propority":"xxxx", #付款比例
"payment_requirement":"xxxx", #付款条件
},
......
]
"list_reback_data": #合同回款信息表
[
{
"return_id":"xxxx", #回款信息表主键
"payment_period_number":"xxxx", #付款期数
"actual_reback_amount":"xxxx", #实际回款数额
"reback_propority":"xxxx", #回款比例
"reback_note":"xxxx", #回款备注
},
......
]
"list_receipt_data": #合同开票信息表
[
{
"receipt_id":"xxxx", #开票信息表主键
"receipt_progress":"xxxx", #开票进度
"receipt_amount":"xxxx", #开票金额
"oa_flow_id":"xxxx", #oa流水号
"receipt_propority":"xxxx", #开票比例
"total_receipt_amount":"xxxx", #累计开票金额
"is_reback":"xxxx", #是否回款
"receipt_note":"xxxx", #发票备注
},
......
]
"deliver_goods_date":"xxxx", #发货时间
"goodsl_check_date":"xxxx", #到货验收时间
"goods_sign_appendix":"xxxx", #到货签收单附件
"is_first_check":"xxxx", #是否是初验
"first_check_date":"xxxx", #初验时间
"first_check_appendix":"xxxx", #初验附件
"is_end_check":"xxxx", #是否是终验
"end_check_date":"xxxx", #终验时间
"check_note":"xxxx", #验收备注
"end_check_appendix":"xxxx" #终验附件
}
Response Body:
.. code-block:: python
{
"ecode":"200", #修改成功返回码
"ecote":"OK" #返回说明
}
查询合同列表
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| Verb: GET
| Path: /api/v1/financial/contract
| Header: (Content-Type: application/json)
Request Body:
.. code-block:: python
{
"salesperson_unid":"吴旭", #销售员
"project_unid":"金源时代客流项目", #项目名称
"customer_unid":"北京金源时代购物中心有限公司", #客户名称
"location_province":"河北省", #项目所在省
"location_city":"沧州市", #项目所在市
"location_area":"献县", #项目所在县(区)
"quality_cycle":"xxxx", #质保周期
"year":"2018", #所属年份
"month":"3", #所属月份
"product_line_type":"xxxx", #产品线类型(安防、交通、客流、维保)
"contract_state":"xxxx", #合同状态(已完成、待发货,施工中,项目暂停)
"contract_nature":"xxxx", #合同性质(供货,施工,集成,维保)
"is_end_check":"xxxx", #是否终验
"is_file":"xxxx", #合同是否归档
"confirm_income_amount":"xxxx", #确定收入金额
"amount_state_unid":"xxxx", #账款状态
"start_date":"xxxx", #签订时间,设置开始时间
"end_date":"xxxx", #结束时间,设置结束时间
"amount_point":"xxxx", #设置金额查询节点
"overdays_point":"xxxx", #设置逾期天数查询节点
"leave_amount_point":"xxxx" #设置应收账款余额查询节点
}
Response Body:
.. code-block:: python
{
[
"contract_code":"2019-079", #合同编号
"year":"2018", #所属年份
"product_line_type":"xxxx", #产品线类型(安防、交通、客流、维保)
"sign_date":"xxxx", #签订日期
"month":"3", #所属月份
"salesperson_unid":"xxxx", #销售员
"location_province":"河北省", #所在省份
"location_city":"沧州市", #所在市
"location_area":"献县", #所在县(区)
"customer_unid":"北京金源时代购物中心有限公司", #客户名称
"project_unid":"金源时代客流项目", #项目名称
"contract_amount":"xxxx", #合同金额
"stop_amount":"xxxx", #暂停金额
"bad_amount":"xxxx", #坏账金额
"exemptions_amount":"xxxx", #豁免金额
"deduct_amount":"xxxx", #抵扣金额
"total_reback_amount":"xxxx", #累计回款额
"contract_remaining":"xxxx", #合同余额
"amount_state_unid":"xxxx", #账款状态
"total_receive_amount":"xxxx", #累计应收款
"total_leave_amount":"xxxx", #应收账款余额
"over_days_unid":"xxxx", #逾期天数
"payment_amount":"xxxx", #预付款金额
"payment_amount":"xxxx", #到货款金额
"payment_amount":"xxxx", #验收款金额
"payment_amount":"xxxx", #质保金额
"deliver_goods_date":"xxxx", #发货时间
"payment_agree_date":"xxxx", #到货款到期日
"payment_agree_date":"xxxx", #验收款到期日
"end_quality_date":"xxxx", #质保期结束时间
"goods_check_date":"xxxx", #验收日期
"check_note":"xxxx", #合同备注
],
......
}
导出表格
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| Verb: GET
| Path: /api/v1/financial/contract/export
| Header: (Content-Type: application/json)
Request Body:
.. code-block:: python
{
"salesperson_unid":"吴旭", #销售员
"project_unid":"金源时代客流项目", #项目名称
"customer_unid":"北京金源时代购物中心有限公司", #客户名称
"location_province":"河北省", #项目所在省
"location_city":"沧州市", #项目所在市
"location_area":"献县", #项目所在县(区)
"quality_cycle":"xxxx", #质保周期
"year":"2018", #所属年份
"month":"3", #所属月份
"product_line_type":"xxxx", #产品线类型(安防、交通、客流、维保)
"contract_state":"xxxx", #合同状态(已完成、待发货,施工中,项目暂停)
"contract_nature":"xxxx", #合同性质(供货,施工,集成,维保)
"is_end_check":"xxxx", #是否终验
"is_file":"xxxx", #合同是否归档
"confirm_income_amount":"xxxx", #确定收入金额
"amount_state_unid":"xxxx", #账款状态
"start_date":"xxxx", #签订时间,设置开始时间
"end_date":"xxxx", #结束时间,设置结束时间
"amount_point":"xxxx", #设置金额查询节点
"overdays_point":"xxxx", #设置逾期天数查询节点
"leave_amount_point":"xxxx" #设置应收账款余额查询节点
}
Response Body:
.. code-block:: python
\ No newline at end of file
......@@ -12,6 +12,7 @@
:caption: 目录:
01-db
02-finance-http
99-history
Indices and tables
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!