receivables.html
7.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
<div class="row">
<div class="col-md-4 col-xs-12 form-group">
<label for="c-number" class="control-label col-xs-12 col-sm-2">{:__('回款编号')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-number" data-rule="required" type="text" class="form-control" name="row[number]" value="{$row.number|htmlentities}" disabled/>
</div>
</div>
<div class="col-md-4 col-xs-12 form-group">
<label for="c-customer_id" class="control-label col-xs-12 col-sm-2">{:__('客户')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-customer_id" data-rule="required" data-source="facrm/customer/index"
class="form-control selectpage" disabled name="row[customer_id]" type="text" value="{$row.customer_id|htmlentities}">
</div>
</div>
<div class="col-md-4 col-xs-12 form-group">
<label for="c-contract_id" class="control-label col-xs-12 col-sm-2">{:__('合同')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-contract_id" data-rule="required" data-source="facrm/contract/index/selectpage"
class="form-control selectpage" disabled name="row[contract_id]" type="text" value="{$row.contract_id|htmlentities}">
<span class="text-gray"><a href="facrm/contract/index/edit/ids/{$row.contract_id|htmlentities}" class="btn-addtabs" title="{:__('合同详情')}">{:__("查看合同详情")}》</a></span>
</div>
</div>
<div class="col-md-4 col-xs-12 form-group">
<label for="c-customer_id" class="control-label col-xs-12 col-sm-2">{:__('收款帐户')}:</label>
<div class="col-xs-12 col-sm-8">
{:build_select('row[account_id]', $account_list,$row.account_id, ['class'=>'form-control selectpicker','disabled', 'data-rule'=>'required'])}
</div>
</div>
<div class="col-md-4 col-xs-12 form-group">
<label for="c-money" class="control-label col-xs-12 col-sm-2">{:__('回款金额')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-money" type="number" class="form-control" name="row[money]" value="{$row.money|htmlentities}" disabled/>
</div>
</div>
<div class="col-md-4 col-xs-12 form-group">
<label for="c-return_time" class="control-label col-xs-12 col-sm-2">{:__('回款日期')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-return_time" value="{:datetime($row.return_time)}" class="form-control datetimepicker"
data-date-format="YYYY-MM-DD HH:mm" data-use-current="true" name="row[return_time]" type="text" disabled>
</div>
</div>
<div class="col-md-4 col-xs-12 form-group">
<label for="c-flow_admin_id" class="control-label col-xs-12 col-sm-2">{:__('待审批人')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-flow_admin_id" data-source="facrm/common/selectpage/model/admin/type/all" data-field="nickname" data-multiple="true" {$flow->config==1?'disabled':''}
class="form-control selectpage" name="row[flow_admin_id]" type="text" value="{$row->flow_admin_id|htmlentities}">
</div>
</div>
<div id="extend"></div>
<div class="col-md-4 col-xs-12 form-group">
<label for="c-remark" class="control-label col-xs-12 col-sm-2">{:__('备注')}:</label>
<div class="col-xs-12 col-sm-8">
<textarea id="c-remark" class="form-control" name="row[remark]" disabled>{$row.remark|htmlentities}</textarea>
</div>
</div>
</div>
<div class="row">
<div class="col-md-10 col-xs-12 form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('审核日志')}:</label>
<div class="col-xs-12 col-sm-10">
<div class="table-responsive">
<table id="table11" class="table table-striped table-bordered table-hover table-nowrap">
<thead>
<th>{:__('顺序')}</th>
<th>{:__('审核人')}</th>
<th>{:__('意见')}</th>
<th>{:__('状态')}</th>
</thead>
<tbody>
{foreach name="log_list" item="v" index="j" }
<tr>
<td>{$j|htmlentities}</td>
<td>
{$v.nickname|htmlentities}({$v.admin_id|htmlentities})
</td>
<td>
{$v.remark|htmlentities}{$v.is_end==1?"(审核结束)":""}
</td>
<td>
{$v.status==1?"通过":"未通过"}
</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
</div>
</div>
</div>
{if $flow->config==0}
<!-- Modal -->
<style>
.modal-backdrop{z-index: 1;}
.modal {z-index: 2;}
</style>
<div class="modal fade" id="modelProduct" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document" >
<div class="modal-content" >
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span>
</button>
<h4 class="modal-title" id="myModalLabel">{:__('审核提示')}</h4>
</div>
<div class="modal-body">
<div id="lays-row" class="row">
<div class="col-md-4 col-xs-12 form-group">
<label for="c-next_admin_id" class="control-label col-xs-12 col-sm-4">{:__('下个审批人')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-next_admin_id" data-source="facrm/common/selectpage/model/admin/type/all" data-field="nickname" data-multiple="true"
class="form-control selectpage" name="next_admin_id" type="text" value="">
<span class="text-red">*如果要结束审批请不要选择审批人</span>
</div>
</div>
<div class="col-md-4 col-xs-12 form-group">
<label class="control-label col-xs-12 col-sm-4"></label>
<div class="col-xs-12 col-sm-8">
<button type="button" class="btn btn-success btn-embossed ">{:__('审核通过')}</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{/if}
<div class="form-group layer-footer">
<label class="control-label col-xs-12 col-sm-2"></label>
<div class="col-xs-12 col-sm-8">
{if $flow->config==0}
<button type="button" class="btn btn-primary btn-embossed " data-toggle="modal" data-target="#modelProduct">{:__('审核')}</button>
{else/}
<button type="button" class="btn btn-success btn-embossed ">{:__('审核通过')}</button>
{/if}
<button type="button" class="btn btn-danger btn-embossed btn-reject">{:__('驳回')}</button>
</div>
</div>
</form>
<script>
var ids={:input('ids')};
var types="{:input('types','','htmlentities')}";
</script>