|
|
@@ -520,13 +520,14 @@
|
|
|
<div class="com_tab tab_top" style="margin-bottom: 0px">
|
|
|
<ul>
|
|
|
<li ng-class="{'active': active=='all'}" ng-click="setActive('all')"><a> 未对账</a></li>
|
|
|
- <li ng-class="{'active': active=='todo'}" ng-click="setActive('todo')"><a>待确认(<em ng-class="{'color-black': !unread.replied }" ng-bind="unread.replied || 0"></em>)</a></li>
|
|
|
- <li ng-class="{'active': active=='done'}" ng-click="setActive('done')"><a>已确认</a></li>
|
|
|
+ <!--<li ng-class="{'active': active=='todo'}" ng-click="setActive('todo')"><a>待确认(<em ng-class="{'color-black': !unread.replied }" ng-bind="unread.replied || 0"></em>)</a></li>-->
|
|
|
+ <li ng-class="{'active': active=='done'}" ng-click="setActive('done')"><a>已对账</a></li>
|
|
|
<li ng-class="{'active': active=='end'}" ng-click="setActive('end')"><a>已作废(<em ng-class="{'color-black': !unread.cancelled }" ng-bind="unread.cancelled || 0"></em>)</a></li>
|
|
|
+ <li style="float: right;font-size: 14px;cursor: pointer;" ng-hide="!showNotCheck" ng-click="hideshowNotCheck()"><img src="/static/img/vendor/images/backIcon.png" width="20"/>返回</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
- <div class="screen check-filter">
|
|
|
- <div class="radio-block date-radio" ng-if="active !== 'all'" style="width: 33%">
|
|
|
+ <div class="screen check-filter" ng-show="!showNotCheck">
|
|
|
+ <div class="radio-block date-radio" ng-show="active !== 'all'" style="width: 33%">
|
|
|
时间:
|
|
|
<label class="com-check-radio">
|
|
|
<input type="radio" id="oneMonth" name="date" ng-click="changeDateZone(1);condition.$open=false" checked>
|
|
|
@@ -549,6 +550,37 @@
|
|
|
自定义
|
|
|
</label>
|
|
|
</div>
|
|
|
+ <div class="fl" ng-show="active === 'all'" >
|
|
|
+ <label class="control-label">请选择月份:</label>
|
|
|
+ <span ng-click="addMouthOut(-1)" style=" display: inline-block;
|
|
|
+ width: 30px;
|
|
|
+ height: 30px;
|
|
|
+ border: 1px solid #ddd;
|
|
|
+ text-align: center;
|
|
|
+ line-height: 30px;
|
|
|
+ cursor: pointer;
|
|
|
+ vertical-align: middle;">
|
|
|
+ <img src="/static/img/vendor/images/arrow-left-d-l.png" width="24"/>
|
|
|
+ </span>
|
|
|
+ <span class="inputsIcon control-label" style="padding-right: 5px;display: inline-block">
|
|
|
+ <wui-date
|
|
|
+ format="yyyy-mm"
|
|
|
+ placeholder="请选择或输入日期"
|
|
|
+ id="date3"
|
|
|
+ btns="{'ok':'确定','now':'此刻'}"
|
|
|
+ ng-model="thisMouthOut"
|
|
|
+ >
|
|
|
+ </wui-date>
|
|
|
+ </span>
|
|
|
+ <span ng-click="addMouthOut(1)" style="display: inline-block;
|
|
|
+ width: 30px;
|
|
|
+ height: 30px;
|
|
|
+ border: 1px solid #ddd;
|
|
|
+ text-align: center;
|
|
|
+ line-height: 30px;
|
|
|
+ cursor: pointer;
|
|
|
+ vertical-align: middle;"><img src="/static/img/vendor/images/arrow-right-d-l.png" width="24"/></span>
|
|
|
+ </div>
|
|
|
<div class="sreach fr">
|
|
|
<div ng-show="condition.$open" class="date fl">
|
|
|
<div class="data-input">
|
|
|
@@ -580,18 +612,14 @@
|
|
|
</div>
|
|
|
<div class="sreach-input fr">
|
|
|
<input type="search" placeholder="单据编号/客户名称/物料名称" class="form-control" ng-model="keyword" ng-search="onSearch(keyword)" ng-show="active !== 'all'"/>
|
|
|
- <input type="search" placeholder="客户名称" class="form-control" ng-model="keyword" ng-search="onSearch(keyword)" ng-show="active === 'all'"/>
|
|
|
- <a class="seek" href="javascript:void(0)" ng-click="onSearch(keyword)">搜索</a>
|
|
|
+ <a class="seek" href="javascript:void(0)" ng-click="onSearch(keyword)" ng-show="active !== 'all'">搜索</a>
|
|
|
+ <input type="search" placeholder="客户名称" class="form-control" ng-model="keyword" ng-search="onSearch(keyword)" ng-show="active === 'all' && !showNotCheck"/>
|
|
|
+ <a class="seek" href="javascript:void(0)" ng-click="onSearch(keyword)" ng-show="active === 'all' && !showNotCheck">搜索</a>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div ng-hide="showNotCheck">
|
|
|
|
|
|
- <!--<div ng-show="active === 'all'">-->
|
|
|
- <!--<table class="order-table block order-table2" ng-table="tableParams" width="100%" style="table-layout:fixed">-->
|
|
|
-
|
|
|
- <!--</table>-->
|
|
|
- <!--</div>-->
|
|
|
<div >
|
|
|
<table class="order-table block" ng-class="{'order-table2': active === 'all'}" ng-table="tableParams" ng-table="tableParams" width="100%" style="table-layout:fixed">
|
|
|
<thead ng-show="active !== 'all'">
|
|
|
@@ -676,17 +704,27 @@
|
|
|
<thead ng-show="active === 'all'">
|
|
|
<tr class="header">
|
|
|
<th width="313">客户名称</th>
|
|
|
- <th width="250">上次对账时间</th>
|
|
|
- <th width="250">未对账总额</th>
|
|
|
+ <th width="250">本月应收</th>
|
|
|
+ <th width="250">应收总额</th>
|
|
|
<th width="160">操作</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody ng-show="active === 'all'" ng-repeat="check in ALLList">
|
|
|
<tr >
|
|
|
<td style="color: #3f84f6">{{::check.myEnterprise.enName}}</td>
|
|
|
- <td ng-if="check.lastCheckDate">{{::check.lastCheckDate | date : 'MM月dd日 HH:mm'}}</td>
|
|
|
- <td ng-if="!check.lastCheckDate">-</td>
|
|
|
- <td>{{::check.uncheckedCount || '-'}}</td>
|
|
|
+ <td ng-if="check.thisMonthCount && check.thisMonthCount.length > 0">
|
|
|
+ <div ng-repeat="count in check.thisMonthCount">
|
|
|
+ <span>{{count.currency}}:{{count.amount | number:2}}</span>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </td>
|
|
|
+ <td ng-if="!check.thisMonthCount">-</td>
|
|
|
+ <td ng-if="check.totalCount && check.totalCount.length > 0">
|
|
|
+ <div ng-repeat="count in check.totalCount">
|
|
|
+ <span>{{count.currency}}:{{count.amount | number:2}}</span>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ <td ng-if="!check.totalCount">-</td>
|
|
|
<td style="color: #3f84f6;cursor: pointer" ng-click="goToMNs(check)">立即对账</td>
|
|
|
</tr>
|
|
|
</tbody>
|
|
|
@@ -732,20 +770,100 @@
|
|
|
<form class="form-horizontal"
|
|
|
style="padding-top: 10px; padding-bottom: 20px;">
|
|
|
<div class="form-group form-group-sm form-group-inline">
|
|
|
- <label class="col-sm-1 control-label">客 户:</label>
|
|
|
- <div class="col-sm-7 control-label" style="text-align:left">
|
|
|
- {{suuorname}}
|
|
|
+ <div class="col-sm-7 control-label">
|
|
|
+ <div style="text-align: left">
|
|
|
+ <label>应收客户:</label>
|
|
|
+ <label style="text-align:left">
|
|
|
+ {{suuorname}}
|
|
|
+ </label>
|
|
|
+ </div>
|
|
|
+ <div style="text-align: left;margin-top: 20px">
|
|
|
+ <label>本期间应收:</label>
|
|
|
+ <label style="text-align:left;vertical-align: top;">
|
|
|
+ <div ng-if="dataInfo.thisMonthCount.length > 0" ng-repeat="count in dataInfo.thisMonthCount">
|
|
|
+ <span>{{count.currency}}:{{count.amount | number:2}}</span>
|
|
|
+ </div>
|
|
|
+ <div ng-if="dataInfo.thisMonthCount.length === 0">
|
|
|
+ 0
|
|
|
+ </div>
|
|
|
+ </label>
|
|
|
+ </div>
|
|
|
+ <div style="text-align: left;margin-top: 20px">
|
|
|
+ <label>应收总额:</label>
|
|
|
+ <label style="text-align:left;vertical-align: top;">
|
|
|
+ <div ng-if="dataInfo.totalCount.length > 0" ng-repeat="count in dataInfo.totalCount">
|
|
|
+ <span>{{count.currency}}:{{count.amount | number:2}}</span>
|
|
|
+ </div>
|
|
|
+ <div ng-if="dataInfo.totalCount.length === 0">
|
|
|
+ 0
|
|
|
+ </div>
|
|
|
+ </label>
|
|
|
</div>
|
|
|
- <label class="col-sm-2 control-label">请选择月份:</label>
|
|
|
- <div class="col-sm-2" style="padding-right: 5px">
|
|
|
- <wui-date
|
|
|
- format="yyyy-mm"
|
|
|
- placeholder="请选择或输入日期"
|
|
|
- id="date4"
|
|
|
- btns="{'ok':'确定','now':'此刻'}"
|
|
|
- ng-model="thisMouth"
|
|
|
- >
|
|
|
- </wui-date>
|
|
|
+ </div>
|
|
|
+ <div class="col-sm-5 control-label">
|
|
|
+ <div>
|
|
|
+ <label class="control-label">请选择月份:</label>
|
|
|
+ <span ng-click="addMouth(-1)" style=" display: inline-block;
|
|
|
+ width: 30px;
|
|
|
+ height: 30px;
|
|
|
+ border: 1px solid #ddd;
|
|
|
+ text-align: center;
|
|
|
+ line-height: 30px;
|
|
|
+ cursor: pointer;
|
|
|
+ vertical-align: middle;">
|
|
|
+ <img src="/static/img/vendor/images/arrow-left-d-l.png" width="24"/>
|
|
|
+ </span>
|
|
|
+ <span class="control-label" style="padding-right: 5px;display: inline-block" ng-click="apCheckCondition.$open = false">
|
|
|
+ <wui-date
|
|
|
+ format="yyyy-mm"
|
|
|
+ placeholder="请选择或输入日期"
|
|
|
+ id="date4"
|
|
|
+ btns="{'ok':'确定','now':'此刻'}"
|
|
|
+ ng-model="thisMouth"
|
|
|
+ >
|
|
|
+ </wui-date>
|
|
|
+ </span><span ng-click="addMouth(1)" style="display: inline-block;
|
|
|
+ width: 30px;
|
|
|
+ height: 30px;
|
|
|
+ border: 1px solid #ddd;
|
|
|
+ text-align: center;
|
|
|
+ line-height: 30px;
|
|
|
+ cursor: pointer;
|
|
|
+ vertical-align: middle;"><img src="/static/img/vendor/images/arrow-right-d-l.png" width="24"/></span>
|
|
|
+ <label class="control-label com-check-radio" ng-click="apCheckCondition.$open = true">
|
|
|
+ <input type="radio" name="psa" ng-checked="apCheckCondition.$open === true" ng-model="apCheckCondition.$open">
|
|
|
+ <label for="autoMonth"></label>
|
|
|
+ 自定义
|
|
|
+ </label>
|
|
|
+ </div>
|
|
|
+ <div ng-hide="!apCheckCondition.$open" class="date fr" style="margin-top: 14px;">
|
|
|
+ <div class="data-input">
|
|
|
+ <input type="text" ng-model="apCheckCondition.dateFrom"
|
|
|
+ class="form-control select-adder" placeholder="起始时间"
|
|
|
+ datepicker-popup="yyyy-MM-dd"
|
|
|
+ is-open="apCheckCondition.$fromOpened"
|
|
|
+ max-date="apCheckCondition.dateTo" current-text="今天" clear-text="清除" close-text="关闭"
|
|
|
+ ng-focus="apCheckopenFilterDatePicker($event, apCheckCondition, '$fromOpened')"
|
|
|
+ datepicker-options="{formatDayTitle: 'yyyy年M月', formatMonth: 'M月', showWeeks: false}"
|
|
|
+ style="width: 130px;height: 32px"
|
|
|
+ />
|
|
|
+ <button class="open" ng-click="apCheckopenFilterDatePicker($event, apCheckCondition, '$fromOpened')"></button>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <em style="float:left;margin: 0 10px">–</em>
|
|
|
+ <div class="data-input">
|
|
|
+ <input type="text" ng-model="apCheckCondition.dateTo"
|
|
|
+ class="form-control select-adder" placeholder="结束时间"
|
|
|
+ datepicker-popup="yyyy-MM-dd"
|
|
|
+ is-open="apCheckCondition.$toOpened"
|
|
|
+ min-date="apCheckCondition.dateFrom" current-text="今天" clear-text="清除" close-text="关闭"
|
|
|
+ ng-focus="apCheckopenFilterDatePicker($event, apCheckCondition, '$toOpened')"
|
|
|
+ datepicker-options="{formatDayTitle: 'yyyy年M月', formatMonth: 'M月', showWeeks: false}"
|
|
|
+ style="width: 130px;height: 32px"
|
|
|
+ />
|
|
|
+ <button class="open" ng-click="apCheckopenFilterDatePicker($event, apCheckCondition, '$toOpened')"></button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group form-group-sm form-group-inline">
|
|
|
@@ -822,68 +940,60 @@
|
|
|
<div class="table-header-wrap">
|
|
|
<table class="table table-bordered">
|
|
|
<tr>
|
|
|
- <th width="36" style="vertical-align: middle;">
|
|
|
- <input type="checkbox" name="checkbox" ng-model="checkboxes.checked" ng-click="checkAll()"></th>
|
|
|
- <th width="100">本次<br>对账数</th>
|
|
|
+ <th width="36" style="vertical-align: middle;"><input type="checkbox" name="checkbox" ng-model="checkboxes.checked" ng-click="checkAll()"></th>
|
|
|
<!--<th width="70">客户<br>名称</th>-->
|
|
|
- <th width="60">单据<br>编号</th>
|
|
|
- <th width="60">发货<br>单号</th>
|
|
|
- <th width="35">序号</th>
|
|
|
- <th width="60">类型</th>
|
|
|
- <th width="60">单据<br>日期</th>
|
|
|
- <th width="90">应付<br>供应商</th>
|
|
|
- <th width="70">客户<br>采购单</th>
|
|
|
- <th width="65">客户<br>料号</th>
|
|
|
- <th width="70">客户物<br>料名称</th>
|
|
|
- <th width="70">客户规<br>格型号</th>
|
|
|
- <th width="65">送货<br>工厂</th>
|
|
|
- <th width="55">数量</th>
|
|
|
+ <th width="70">采购单</th>
|
|
|
+ <th width="70">物料名称</th>
|
|
|
+ <th width="70">规格型号</th>
|
|
|
+ <th width="60">发货单</th>
|
|
|
+ <th width="55">发货数量</th>
|
|
|
+ <th width="60">验收单</th>
|
|
|
+ <th width="100">验收数量</th>
|
|
|
<th width="40">单价</th>
|
|
|
- <th width="30">币别</th>
|
|
|
<th width="40">税率</th>
|
|
|
- <th width="60">金额</th>
|
|
|
- <th width="70">本次对<br>账金额</th>
|
|
|
+ <th width="70">小计</th>
|
|
|
+ <!--<th width="35">序号</th>-->
|
|
|
+ <!--<th width="60">类型</th>-->
|
|
|
+ <!--<th width="60">单据<br>日期</th>-->
|
|
|
+ <!--<th width="90">应付<br>供应商</th>-->
|
|
|
+ <!--<th width="65">客户<br>料号</th>-->
|
|
|
+ <!--<th width="65">送货<br>工厂</th>-->
|
|
|
+ <!--<th width="30">币别</th>-->
|
|
|
+ <!--<th width="60">金额</th>-->
|
|
|
</tr>
|
|
|
</table>
|
|
|
</div>
|
|
|
<div class="table-body-wrap">
|
|
|
<table class="table table-bordered">
|
|
|
- <tr ng-repeat="check in data"
|
|
|
- class="thAlign" style="height: 40px;">
|
|
|
- <td width="36" style="text-align: center;vertical-align: middle;"><input
|
|
|
- ng-model="check.$selected" name="checkbox"
|
|
|
- ng-click="checkOne(check)" ng-change="getTotalMoney()"
|
|
|
- type="checkbox"></td>
|
|
|
- <td width="100"><input ng-model="check.thischeckqty"
|
|
|
- type="number" max="data.maxThisCheckQty"
|
|
|
- min="data.minThisCheckQty" ng-change="getTotalMoney()"
|
|
|
- style="width: 75px;" class=" input-sm text-center"></td>
|
|
|
- <!--<td width="70" title="{{check.custname}}"><div-->
|
|
|
- <!--style="display: -webkit-box; text-overflow: ellipsis; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: 3; -webkit-box-orient: vertical;">{{::check.custname}}</div></td>-->
|
|
|
- <td width="60">{{::check.inoutno}}</td>
|
|
|
- <td width="60">{{::check.sendcode}}</td>
|
|
|
- <td width="35" align="center">{{::check.detno}}</td>
|
|
|
- <td width="60">{{::check.piclass}}</td>
|
|
|
- <td width="60">{{::check.pidate | date:'yyyy-MM-dd' }}</td>
|
|
|
- <td width="90" title="{{check.receivename}}">
|
|
|
- <div
|
|
|
- style="display: -webkit-box; text-overflow: ellipsis; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: 3; -webkit-box-orient: vertical;">{{::check.receivename}}</div>
|
|
|
- </td>
|
|
|
+ <tr ng-repeat="check in data" ng-click="checkOne(check);getTotalMoney()" class="thAlign" style="height: 40px;">
|
|
|
+ <td width="36" style="text-align: center;vertical-align: middle;">
|
|
|
+ <input ng-model="check.$selected" name="checkbox" type="checkbox" ng-checked="check.$selected"></td>
|
|
|
<td width="70">{{::check.ordercode}}</td>
|
|
|
- <td width="65">{{::check.prodcode}}</td>
|
|
|
<td width="70" title="{{check.prodtitle}}">
|
|
|
- <div
|
|
|
- style="display: -webkit-box; text-overflow: ellipsis; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: 3; -webkit-box-orient: vertical;">{{::check.prodtitle}}</div>
|
|
|
+ <div style="display: -webkit-box; text-overflow: ellipsis; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: 3; -webkit-box-orient: vertical;">{{::check.prodtitle}}</div>
|
|
|
</td>
|
|
|
- <td width="70" title="{{check.prodspec}}"><div
|
|
|
- style="display: -webkit-box; text-overflow: ellipsis; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: 3; -webkit-box-orient: vertical;">{{::check.prodspec}}</div></td>
|
|
|
- <td width="65">{{::check.factory}}</td>
|
|
|
+ <td width="70" title="{{check.prodspec}}">
|
|
|
+ <div style="display: -webkit-box; text-overflow: ellipsis; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: 3; -webkit-box-orient: vertical;">{{::check.prodspec}}</div></td>
|
|
|
+ <td width="60">{{::check.sendcode}}</td>
|
|
|
<td width="55">{{::check.qty}}</td>
|
|
|
+ <td width="60">{{::check.inoutno}}</td>
|
|
|
+ <td width="100">{{::check.thischeckqty}}</td>
|
|
|
<td width="40">{{::check.orderprice}}</td>
|
|
|
- <td width="30">{{::check.currency}}</td>
|
|
|
<td width="40" align="center">{{::check.taxrate}}</td>
|
|
|
- <td width="60">{{::(check.qty || 0)*(check.orderprice || 0) | number:2}}</td>
|
|
|
- <td width="60">{{::(check.orderprice || 0)*(check.thischeckqty || 0) | number:2}}</td>
|
|
|
+ <td width="70">{{::(check.orderprice || 0)*(check.thischeckqty || 0) | number:2}}</td>
|
|
|
+ <!--<td width="70" title="{{check.custname}}"><div-->
|
|
|
+ <!--style="display: -webkit-box; text-overflow: ellipsis; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: 3; -webkit-box-orient: vertical;">{{::check.custname}}</div></td>-->
|
|
|
+ <!--<td width="35" align="center">{{::check.detno}}</td>-->
|
|
|
+ <!--<td width="60">{{::check.piclass}}</td>-->
|
|
|
+ <!--<td width="60">{{::check.pidate | date:'yyyy-MM-dd' }}</td>-->
|
|
|
+ <!--<td width="90" title="{{check.receivename}}">-->
|
|
|
+ <!--<div style="display: -webkit-box; text-overflow: ellipsis; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: 3; -webkit-box-orient: vertical;">{{::check.receivename}}</div>-->
|
|
|
+ <!--</td>-->
|
|
|
+ <!--<td width="65">{{::check.prodcode}}</td>-->
|
|
|
+ <!--<td width="65">{{::check.factory}}</td>-->
|
|
|
+ <!--<td width="30">{{::check.currency}}</td>-->
|
|
|
+ <!--<td width="60">{{::(check.qty || 0)*(check.orderprice || 0) | number:2}}</td>-->
|
|
|
+
|
|
|
</tr>
|
|
|
<tr ng-if="!data || data.length==0">
|
|
|
<td colspan="19">
|
|
|
@@ -1006,4 +1116,8 @@
|
|
|
font-size: 14px;
|
|
|
color: #666;
|
|
|
}
|
|
|
+
|
|
|
+ .inputsIcon .wui-date-editor .icon1{
|
|
|
+ top: 11px !important;
|
|
|
+ }
|
|
|
</style>
|