detail.html
12.5 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
<link href="__CDN__/assets/addons/antis/css/common.css?v={$Think.config.site.version}" rel="stylesheet">
<style type="text/css">
.btn-list {
position: fixed;
right: 40px;
}
.div-flex {
display: flex
}
.div-flex .form-group {
margin-right: 50px;
text-align: center;
line-height: 25px;
margin-bottom: 0;
}
.tab-pane {
border: 1px solid #F6F6F6;
}
.i-color {
font-size: 34px;margin-right: 10px;color: #86C3FF;
}
.thumbnail {
display: flow-root;
width: max-content;
}
.thumbnail img {
width: 50px;
float: left;
padding: 5px;
}
.text-color{
color:#777;
}
</style>
<style type="text/css">
.examine_title{
font-size: 14px;
color: #333;
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
display: block;
height: 30px;
}
.examine_box{
padding-left:20px;
position: relative;
}
.examine_box .newicon{
position: absolute;
left:0;
top:0;
z-index: 2;
}
.examine_box .xian{
width:1px;
height:100%;
background:#e6e6e6;
position: absolute;
left:4px;
top:10px;
z-index: 1;
}
.examine_box .examine_bg{
position: relative;
margin-top: 15px;
border-radius: 4px;
background-color: #f7f8fa;
font-size: 12px;
color: #929293;
padding: 8px;
line-height: 18px;
}
.rowbox{
display: flex;
justify-content: flex-start;
align-items: center;
}
.stafflist{
width: 70px;text-align: center;float: left;
}
.stafflist-right{
width: 30px;text-align: center;float: left;margin: 0 20px;
}
.stafflist-right:last-child{
display: none;
}
.stafflist img{
width: 40px;
height: 40px;
margin: 10px;
border-radius:50%;
}
</style>
<style>
/* 使用弹性居中布局让所有分部居中水平排列 */
.steps {
padding: 20px;
display: flex;
justify-content: center;
width:100%;
}
/* 进度线宽,4份,25% */
.step {
width: 25%;
height: 20px;
}
/* 进度线和序号,使用弹性居中布局让序号和进度线居中 */
.step-progress {
display: flex;
justify-content: center;
}
/* 文本居中 */
.step-text {
width: 100%;
margin-top: 10px;
text-align: center;
}
/* 进度线 */
.step-line {
width: 100%;
height: 9px;
margin-top: 7px;
background-color: #cccccc;
}
/* 数字序号 */
.step-num {
width: 18px;
height: 18px;
line-height: 17px;
/* 圆角背景 */
border-radius: 50%;
color: #ffffff;
font-size: 16px;
/* 序号居中显示 */
text-align: center;
background-color: #cccccc;
border: 2px solid #cccccc;
/* 使用相对于父元素定位,强行回到原来的位置 */
position: absolute;
}
/* 使用渐变背景处理两边 */
.step-progress.right div{
background: linear-gradient(to right, #cccccc 0%, #cccccc 50%, transparent 51%, transparent 100%);
}
.step-progress.left div{
background: linear-gradient(to left, #cccccc 0%, #cccccc 50%, transparent 51%, transparent 100%);
}
/* 完成效果 */
.step-progress.done div{
background: #4395ff;
}
.step-progress.done span{
background-color: #4395ff;
border: 2px solid #4395ff;
}
/* 完成效果左右两边特制 */
.step-progress.right.done div{
background: linear-gradient(to right, #4395ff 0%, #4395ff 50%, transparent 51%, transparent 100%);
}
.step-progress.left.done div{
background: linear-gradient(to left, #4395ff 0%, #4395ff 50%, transparent 51%, transparent 100%);
}
</style>
<div class="panel panel-default panel-intro">
<input type="hidden" name="ids" id="ids" value="{$ids}"/>
<div class="div-flex">
<i class="fa fa-address-card i-color"></i>
<div style="line-height: 35px"><b>{$row.name}</b></div>
<div class="btn-list">
<a class="btn btn-success btn-status" data-id="{$row.id}">推进项目</a>
<a class="btn btn-success btn-edit" data-id="{$row.id}">编辑</a>
<a class="btn btn-success btn-transfer" data-id="{$row.id}"
data-title="转移项目" >转移</a>
<a class="btn btn-danger btn-danger btn-del" id="dels">删除</a>
</div>
</div>
<div class="div-flex" style="margin-top: 20px">
<div class="form-group">
<span class="text-muted">客户名称</span>
<p>{if condition="isset($row.customer.name)"}{$row.customer.name}{/if}</p>
</div>
<div class="form-group">
<span class="text-muted">项目金额(元)</span>
<p>{$row.money}</p>
</div>
<div class="form-group">
<span class="text-muted">预计成交时间</span>
<p>{$row.expect_time}</p>
</div>
<div class="form-group">
<span class="text-muted">下次联系时间</span>
<p>{$row.next_time}</p>
</div>
<div class="form-group">
<span class="text-muted">负责人</span>
<p>{if condition="isset($row.owner_staff.name)"}{$row.owner_staff.name}{/if}</p>
</div>
</div>
<div class="div-flex" style="margin-bottom:30px;">
<!-- 步骤进度条 -->
<div class="steps">
<!-- 第一部分 -->
<div class="step">
<div class="step-progress left {if condition='$row.type egt 0'} done {/if}">
<div class="step-line"></div>
<span class="step-num">1</span>
</div>
<div class="step-text">
<span>初期沟通</span>
</div>
</div>
<!-- 第二部分 -->
<div class="step">
<div class="step-progress {if condition='$row.type egt 1'} done {/if}">
<div class="step-line"></div>
<span class="step-num">2</span>
</div>
<div class="step-text">
<span>立项跟踪</span>
</div>
</div>
<!-- 第三部分 -->
<div class="step">
<div class="step-progress {if condition='$row.type egt 2'} done {/if}">
<div class="step-line"></div>
<span class="step-num">3</span>
</div>
<div class="step-text">
<span>方案/报价</span>
</div>
</div>
<!-- 第四部分 -->
<div class="step">
<div class="step-progress {if condition='$row.type egt 3'} done {/if}">
<div class="step-line"></div>
<span class="step-num">4</span>
</div>
<div class="step-text">
<span>谈判审核</span>
</div>
</div>
<div class="step">
<div class="step-progress right {if condition='$row.type egt 4'} done {/if}">
<div class="step-line"></div>
<span class="step-num">5</span>
</div>
<div class="step-text">
<span>{if condition='$row.type eq 5'} 输单 {elseif condition='$row.type eq 6'} 无效 {else\} 赢单 {/if}</span>
</div>
</div>
</div>
</div>
<div>
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" class="active"><a href="#record" aria-controls="home" role="tab" data-toggle="tab">跟进记录</a></li>
<li role="presentation"><a href="#basic" aria-controls="profile" role="tab" data-toggle="tab">基本信息</a></li>
<!-- <li role="presentation"><a href="#secord" aria-controls="profile" role="tab" data-toggle="tab">产品信息</a></li>-->
<li role="presentation"><a href="#third" aria-controls="profile" role="tab" data-toggle="tab">合同信息</a></li>
<li role="presentation"><a href="#four" aria-controls="profile" role="tab" data-toggle="tab">推进历史</a></li>
<li role="presentation"><a href="#five" aria-controls="profile" role="tab" data-toggle="tab">报价单</a></li>
</ul>
<div class="tab-content" style="overflow-y: scroll;height:565px">
<div role="tabpanel" class="tab-pane fade active in panel-body" id="record">
<div id="toolbar_records" class="toolbar">
{:build_toolbar('refresh')}
<a class="btn btn-success btn-dialog {:$auth->check('antis/contract/record/add')?'':'hide'}"
data-url="antis/customer/business/record?ids={$row.id}" data-title="新建跟进" data-refresh="true" data-area=["90%","90%"]>新建跟进</a>
</div>
<table id="records" class="table table-striped table-bordered table-hover table-nowrap"
width="100%">
</table>
</div>
<div role="tabpanel" class="tab-pane fade panel-body form-horizontal" id="basic">
<div class="form-group">
<div class="col-xs-6 col-sm-5">
<div class="form-group col-sm-10">
<span class="text-muted">客户名称:</span>
<span class="text-black">{$row.customer.name}</span>
</div>
</div>
{include file="antis/common/form_detail" /}
</div>
</div>
<div role="tabpanel" class="tab-pane fade panel-body form-horizontal" id="secord">
<div id="toolbar_secord" class="toolbar">
{:build_toolbar('refresh')}
</div>
<table id="product" class="table table-striped table-bordered table-hover table-nowrap"
width="100%">
</table>
</div>
<div role="tabpanel" class="tab-pane fade panel-body form-horizontal" id="third">
<div id="toolbar_third" class="toolbar">
{:build_toolbar('refresh')}
<a class="btn btn-success btn-dialog {:$auth->check('antis/customer/contract/add')?'':'hide'}"
data-url="antis/customer/contract/add?business_id={$row.id}&customer_id={$row.customer_id}" data-title="新建合同" data-refresh="true" data-area=["90%","90%"] >新建合同</a>
</div>
<table id="contract" class="table table-striped table-bordered table-hover table-nowrap"
width="100%">
</table>
</div>
<div role="tabpanel" class="tab-pane fade panel-body form-horizontal" id="four">
<div id="toolbar_four" class="toolbar">
{:build_toolbar('refresh')}
</div>
<table id="history" class="table table-striped table-bordered table-hover table-nowrap"
width="100%">
</table>
</div>
<div role="tabpanel" class="tab-pane fade panel-body form-horizontal" id="five">
<div id="toolbar_five" class="toolbar">
{:build_toolbar('refresh')}
<a class="btn btn-success" href="javascript:void(0)" onclick="if(window.openQuotationWindowFromProject){window.openQuotationWindowFromProject({$row.id})}else if(window.openQuotationWindow){window.openQuotationWindow({$row.id})}">新建报价单</a>
<!-- -->
<!-- <a class="btn btn-success btn-dialog" id="editBill"-->
<!-- data-url="antis/customer/billczgprz/edit?business_id={$row.id}&customer_id={$row.customer_id}" data-title="新建报价单" data-refresh="true" data-area=["90%","90%"] >新建报价单</a>-->
</div>
<table id="bill" class="table table-striped table-bordered table-hover table-nowrap"
width="100%">
</table>
</div>
</div>
</div>
</div>
<script>
// 设置用友集成前端URL(供JavaScript使用)
window.YONGYOU_INTEGRATION_URL = '<?php echo get_yongyou_integration_url(); ?>';
</script>