detail.html
19.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
<style>
.form-group .col-sm-2{
max-width: 120px;
}
.form-control{ height: 31px}
</style>
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
<div class="row content">
<div class="panel-group" id="accordion">
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse"
href="#collapseOne">
<span>{:__('客户资料')}</span> <small>(编号:{$row.customer_id|htmlentities})</small>
</a>
<span class="label label-primary bg-red pull-right">
<a href="javascript:parent.Fast.api.open('facrm/customer/index/detail/ids/{$row.customer_id|htmlentities}',__('客户详情-'));" style="color: #fff;"> 详情</a></span>
</h4>
</div>
<div id="collapseOne" class="panel-collapse collapse in">
<div class="panel-body">
<div class="col-md-6 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/selectpage/type/all"
class="form-control selectpage" name="row[customer_id]" type="text" value="{$row.customer_id|htmlentities}" disabled>
</div>
</div>
<div class="col-md-6 col-xs-12 form-group business_id_div" >
<label for="c-business_id" class="control-label col-xs-12 col-sm-2">{:__('商机')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-business_id" data-rule="required" data-source="facrm/business/index/index"
class="form-control selectpage" name="" type="text" value="{$row.business_id|htmlentities}" disabled>
</div>
</div>
<div class="form-group col-md-6 col-xs-12">
<label class="control-label col-xs-12 col-sm-2">{:__('手机')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-mobile" type="text" data-rule="required" class="form-control" name="row[mobile]" value="{$row.customer.mobile|htmlentities}" disabled />
</div>
</div>
<div class="col-md-6 col-xs-12 form-group ">
<label for="c-address" class="control-label col-xs-12 col-sm-2">客户地址:</label>
<div class="col-xs-12 col-sm-8">
<div class="form-inline" data-toggle="cxselect" data-selects="province,city,area" id="c-address">
<select class="province form-control" name="province" data-url="ajax/area" disabled>
<option value="{$row.customer.province|htmlentities}" selected=""></option>
</select>
<select class="city form-control" name="city" data-url="ajax/area" disabled>
<option value="{$row.customer.city|htmlentities}" selected=""></option>
</select>
<select class="area form-control" name="area" data-url="ajax/area" disabled>
<option value="{$row.customer.area|htmlentities}" selected=""></option>
</select>
</div>
</div>
</div>
<div class="col-md-6 col-xs-12 form-group ">
<label for="c-address" class="control-label ol-xs-12 col-sm-2">详细地址:</label>
<div class="col-xs-6 col-sm-8">
<input id="c-detail_address" type="text" data-rule="required" class="form-control" name="row[detail_address]"
value="{$row.customer.detail_address|htmlentities}" disabled />
</div>
</div>
</div>
</div>
</div>
<div class="panel panel-warning">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse"
href="#collapseFour">
<span>{:__('合同编号')}:</span><small>{$row.number|htmlentities}</small>
<span style="margin-left: 30px;">{:__('下单日期')}:</span><small>{$row.order_time|datetime|htmlentities}</small>
</a>
</h4>
</div>
<div id="collapseFour" class="panel-collapse collapse in">
<div class="panel-body">
<div class="col-md-12 col-xs-12 form-group">
<label for="c-deposit_money" class="control-label col-xs-12 col-sm-2"></label>
<div class="col-xs-12 col-sm-10">
<p></p>
</div>
</div>
<div class="col-md-6 col-xs-12 form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('回款金额')}:</label>
<div class="col-xs-12 col-sm-8 ">
<label class="control-label">¥{$row.return_money|htmlentities}({:__('已开票')}:{$row.invoice_money|htmlentities})</label>
</div>
</div>
<div class="col-md-6 col-xs-12 form-group">
<label for="c-start_time" class="control-label col-xs-12 col-sm-2">{:__('合同始止日期')}:</label>
<div class="col-xs-12 col-sm-8">
<label class="control-label">{$row.start_time|date='Y-m-d H:i',###} ~ {$row.end_time|date='Y-m-d H:i',###}</label>
</div>
</div>
<div class="col-md-6 col-xs-12 form-group">
<label for="c-order_admin_id" class="control-label col-xs-12 col-sm-2">{:__('销售人员')}:</label>
<div class="col-xs-12 col-sm-8">
<label class="control-label">{$row.order_admin.nickname|htmlentities}</label>
</div>
</div>
<div class="col-md-6 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">
<label class="control-label">{$row.remark|htmlentities}</label>
</div>
</div>
<div class="">
<div class="col-md-12 col-xs-12 form-group">
<div class="col-xs-12 col-sm-12">
<div class="table-responsive" >
<table id="table" class="table table-striped table-bordered table-hover table-nowrap">
<thead>
<th>{:__('序号')}</th>
<th>{:__('编码')}</th>
<th style="width: 100px">{:__('商品')}</th>
<th>{:__('规格')}</th>
<th>{:__('属性')}</th>
<th >{:__('单位')}</th>
<th style="width: 80px">{:__('数量')}</th>
<th style="width: 80px">{:__('售价')}</th>
<th>{:__('小计')}</th>
<th>{:__('备注')}</th>
</thead>
<tbody>
{foreach name="$row.product" item="vo" index="i" }
<tr>
<td>{$i|htmlentities}</td>
<td>{$vo.sku|htmlentities}</td>
<td>
<input date-rule="required;" style="width: 100px" value="{$vo.name|htmlentities}" type="text" name="product[{$i|htmlentities}][name]" data-index="{$i|htmlentities}" class="find" class="" data-toggle="modal" data-target="#modelProduct" disabled >
</td>
<td class="gg">{$vo.specification|htmlentities}</td>
<td>
{$vo.prop|htmlentities}
</td>
<td class="unit">{$vo.unit|htmlentities}</td>
<td>
{$vo.nums|htmlentities}
</td>
<td>
{$vo.sales_price|htmlentities}/<span style="text-decoration: line-through;">{$vo.price|htmlentities}</span>
</td>
<td class="subtotal">
{$vo.subtotal|htmlentities}
</td>
<td> {$vo.remarks|htmlentities}</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
<div>
<div class="row">
<div class="col-md-4 col-xs-6">
<label class="control-label col-xs-12 col-sm-6">{:__('优惠率%')}:</label>
<div class="col-xs-12 col-sm-6">
<label class="control-label "> {$row.discount_rate|htmlentities}</label>
</div>
</div>
<div class="col-md-4 col-xs-6">
<label class="control-label col-xs-12 col-sm-6"> {:__('总额¥')}:</label>
<div class="col-xs-12 col-sm-6">
<label class="control-label "> {$row.total_price|htmlentities}</label>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="panel panel-info">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse"
href="#collapseThree">
合同扩展
</a>
</h4>
</div>
<div id="collapseThree" class="panel-collapse collapse in">
<div class="panel-body">
<div id="extend"></div>
</div>
</div>
</div>
<div class="panel panel-success">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse"
href="#collapsepay">
付款信息
</a>
</h4>
</div>
<div id="collapsepay" class="panel-collapse collapse in">
<div class="panel-body">
<div class="col-md-12 col-xs-12 form-group">
<div class="col-xs-12 col-sm-12">
<div class="table-responsive">
<table id="tablepay" class="table table-striped table-bordered table-hover table-nowrap">
<thead>
<th>{:__('ID')}</th>
<th>{:__('编号')}</th>
<th>{:__('金额')}</th>
<th>{:__('时间')}</th>
<th>{:__('备注')}</th>
<th>{:__('状态')}</th>
</thead>
<tbody>
{foreach name="$row.receivables" item="v" index="j" }
<tr>
<td>{$v.id|htmlentities}</td>
<td>
{$v.number|htmlentities}
</td>
<td>
{$v.money|htmlentities}
</td>
<td>
{$v.return_time|datetime|htmlentities}
</td>
<td>
{$v.remark|htmlentities}
</td>
<td>
{$v.check_status_text|htmlentities}
</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse"
href="#collapse7">
{:__('回款计划')}
</a>
</h4>
</div>
<div id="collapse7" class="panel-collapse collapse ">
<div class="panel-body">
<table id="plantable" class="table table-striped table-bordered table-hover table-nowrap"
width="100%">
</table>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse"
href="#collapse5">
{:__('审核日志')}
</a>
</h4>
</div>
<div id="collapse5" class="panel-collapse collapse ">
<div class="panel-body">
<div class="col-md-12 col-xs-12 form-group">
<div class="col-xs-12 col-sm-12">
<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>
<th>{:__('时间')}</th>
</thead>
<tbody>
{foreach name="row.flow_log" 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>
<td>
{$v.create_time|datetime|htmlentities}
</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
{if($auth->check('facrm/operatelog/index'))}
<div class="panel panel-info">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse"
href="#collapseseven1">
操作记录
</a>
</h4>
</div>
<div id="collapseseven1" class="panel-collapse collapse ">
<div class="panel-body">
<table id="operatelog" class="table table-striped table-bordered table-hover table-nowrap"
width="100%">
</table>
</div>
</div>
</div>
{/if}
</div>
</div>
</form>
<script>
var contract_id={:intval(input('ids'))};
var types="{:input('types')}";
</script>