|
@ -9,74 +9,15 @@ $(function(){
|
9
|
9
|
|
10
|
10
|
var resourceNamePass = true;
|
11
|
11
|
var professorPass=true;
|
12
|
|
var supportedServicesPass=true;
|
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
|
|
|
|
12
|
var supportedServicesPass=true;
|
73
|
13
|
|
74
|
14
|
$("#workmysrc").on("click",".resoumag",function()
|
75
|
15
|
{
|
76
|
16
|
|
77
|
17
|
var indexNum=$(this).parent().parent().parent().parent().parent().parent().index();
|
78
|
18
|
|
79
|
|
ResourceInfo();
|
|
19
|
ResourceInfo();
|
|
20
|
$(".respublisher").css("display","none");
|
80
|
21
|
$(".stateinfor span").text("资源发布中");
|
81
|
22
|
var resourceID=$(this).attr("resourceId");
|
82
|
23
|
|
|
@ -188,7 +129,7 @@ $(function(){
|
188
|
129
|
}else{
|
189
|
130
|
$(".li1").eq(mm1).text("应用行业:"+ data.data[mm1].subject);
|
190
|
131
|
}
|
191
|
|
if(data.data[mm1].industry==undefined){
|
|
132
|
|
192
|
133
|
$(".li2").eq(mm1).css({"display":"none"});
|
193
|
134
|
}else{
|
194
|
135
|
$(".li2").eq(mm1).text("可提供服务:"+data.data[mm1].industry);
|
|
@ -208,7 +149,7 @@ $(function(){
|
208
|
149
|
}else{
|
209
|
150
|
$(".li5").eq(mm1).text("备注:" +data.data[mm1].cooperationNotes)
|
210
|
151
|
|
211
|
|
}
|
|
152
|
} */
|
212
|
153
|
}
|
213
|
154
|
else
|
214
|
155
|
{
|
|
@ -234,9 +175,9 @@ $(function(){
|
234
|
175
|
for(var i=oLength;i<data.data.length;i++)
|
235
|
176
|
{
|
236
|
177
|
var add='<div class="maintab"><div class="lefttab fl"><table class="resoubrief"><tr><td><img width="100%" height="140" src=""></td>'
|
237
|
|
add+='</tr><tr><td><ul><li>资源名称:'+data.data[i].resourceName+'</li><li>发布人:'+name+'</li><li>使用用途:'+data.data[i].supportedServices+'</li> '
|
238
|
|
add+='<li class="li1">应用行业:'+data.data[i].subject+'</li><li class="li2">可提供服务:'+data.data[i].industry+'</li><li class="li3">期望付款方式:'+data.data[i].hopePayMethod+'</li> '
|
239
|
|
add+='<li class="li4">详细描述:'+data.data[i].descp+'</li><li class="li5">备注:'+data.data[i].cooperationNotes+'</li></ul></td></tr><tr>'
|
|
178
|
add+='</tr><tr><td><ul><li>'+data.data[i].resourceName+'</li><li>'+data.data[i].supportedServices+'</li> '
|
|
179
|
add+='<li class="li1">'+data.data[i].subject+'</li> '
|
|
180
|
add+='</ul></td></tr><tr>'
|
240
|
181
|
add+='<td><span class="resoumag"">资源管理</span></td></tr></table></div>'
|
241
|
182
|
add+='<div class="righttab fr"><table width="100%" class="worktab tablecon">'
|
242
|
183
|
add+='<tr class="worktabtit"><th width="12%" height="40">申请时间</th><th width="12%">需求方</th>'
|
|
@ -246,7 +187,7 @@ $(function(){
|
246
|
187
|
if(data.data[i].subject==undefined){
|
247
|
188
|
$(".li1").eq(i).css({"display":"none"});
|
248
|
189
|
}
|
249
|
|
if(data.data[i].industry==undefined){
|
|
190
|
|
250
|
191
|
$(".li2").eq(i).css({"display":"none"});
|
251
|
192
|
}
|
252
|
193
|
if(data.data[i].hopePayMethod==undefined){
|
|
@ -257,7 +198,7 @@ $(function(){
|
257
|
198
|
}
|
258
|
199
|
if(data.data[i].cooperationNotes==undefined){
|
259
|
200
|
$(".li5").eq(i).css({"display":"none"});
|
260
|
|
}
|
|
201
|
}*/
|
261
|
202
|
$('.resoumag').eq(i+1).attr("resourceId",data.data[i].resourceId);
|
262
|
203
|
(function(i){
|
263
|
204
|
$.ajax({
|
|
@ -384,6 +325,7 @@ $(function(){
|
384
|
325
|
})
|
385
|
326
|
}
|
386
|
327
|
getDataResource();
|
|
328
|
var t=0;
|
387
|
329
|
function getDataResource(){
|
388
|
330
|
$.ajax({
|
389
|
331
|
"url":"/ajax/resource/qapro",
|
|
@ -399,19 +341,19 @@ $(function(){
|
399
|
341
|
for(var i=0;i<data.data.length;i++)
|
400
|
342
|
{
|
401
|
343
|
var add='<div class="maintab"><div class="lefttab fl"><table class="resoubrief"><tr><td><img width="100%" height="140" src=""></td>'
|
402
|
|
add+='</tr><tr><td><ul><li>资源名称:'+data.data[i].resourceName+'</li><li>发布人:'+name+'</li><li>使用用途:'+data.data[i].supportedServices+'</li> '
|
403
|
|
add+='<li class="li1">应用行业:'+data.data[i].subject+'</li><li class="li2">可提供服务:'+data.data[i].industry+'</li><li class="li3">期望付款方式:'+data.data[i].hopePayMethod+'</li> '
|
404
|
|
add+='<li class="li4">详细描述:'+data.data[i].descp+'</li><li class="li5">备注:'+data.data[i].cooperationNotes+'</li></ul></td></tr><tr>'
|
|
344
|
add+='</tr><tr><td><ul><li>'+data.data[i].resourceName+'</li><li>'+data.data[i].supportedServices+'</li> '
|
|
345
|
add+='<li class="li1">'+data.data[i].subject+'</li>'
|
|
346
|
add+='</ul></td></tr><tr>'
|
405
|
347
|
add+='<td><span class="resoumag"">资源管理</span></td></tr></table></div>'
|
406
|
348
|
add+='<div class="righttab fr"><table width="100%" class="worktab tablecon">'
|
407
|
349
|
add+='<tr class="worktabtit"><th width="12%" height="40">申请时间</th><th width="12%">需求方</th>'
|
408
|
350
|
add+='<th width="12%">联系人</th><th width="12%">交付时间</th><th width="12%">成交金额</th><th width="12%">付款方式</th>'
|
409
|
|
add+='<th width="14%">付款进程</th><th width="14%">状态/操作</th></tr></table></div></div>';
|
|
351
|
add+='<th width="14%">付款进程</th><th width="14%">状态/操作</th></tr></table><div class="tcdPageCode tcdPageCod'+i+'"></div></div>';
|
410
|
352
|
$("#consd").append(add);
|
411
|
353
|
if(data.data[i].subject==undefined){
|
412
|
354
|
$(".li1").eq(i).css({"display":"none"});
|
413
|
355
|
}
|
414
|
|
if(data.data[i].industry==undefined){
|
|
356
|
|
415
|
357
|
$(".li2").eq(i).css({"display":"none"});
|
416
|
358
|
}
|
417
|
359
|
if(data.data[i].hopePayMethod==undefined){
|
|
@ -422,129 +364,19 @@ $(function(){
|
422
|
364
|
}
|
423
|
365
|
if(data.data[i].cooperationNotes==undefined){
|
424
|
366
|
$(".li5").eq(i).css({"display":"none"});
|
425
|
|
}
|
|
367
|
}*/
|
426
|
368
|
|
427
|
369
|
$('.resoumag').eq(i+1).attr("resourceId",data.data[i].resourceId);
|
428
|
370
|
|
429
|
371
|
|
430
|
372
|
(function(i){
|
431
|
|
$.ajax({
|
432
|
|
"url":"/ajax/operation/pqres",
|
433
|
|
"type":"get",
|
434
|
|
"async": true,
|
435
|
|
"data":{"resourceId":$('.resoumag').eq(i+1).attr("resourceId")},
|
436
|
|
"success":function(data){
|
437
|
|
if(data.success)
|
438
|
|
{
|
439
|
|
for(var j=0;j<data.data.data.length;j++){
|
440
|
|
if(data.data.data[j].dealPrice==undefined)
|
441
|
|
{
|
442
|
|
data.data.data[j].dealPrice=0;
|
443
|
|
}
|
444
|
|
if(data.data.data[j].payMethod==undefined){
|
445
|
|
data.data.data[j].payMethod="";
|
446
|
|
}
|
447
|
|
var inquiry=inquiryGetPaidMoney(data.data.data[j].operationId);
|
448
|
|
var addString='<tr class="workitem">'
|
449
|
|
addString+='<td>'+data.data.data[j].dealTime+'</td>'
|
450
|
|
addString+='<td class="workitemsrc">'+data.data.data[j].applysquare+'</td>'
|
451
|
|
addString+='<td> <a class="worktel" href="">'+data.data.data[j].professor.name+'<span class="worktelbtn"></span></a></td>'
|
452
|
|
addString+='<td>'+data.data.data[j].deliverTime+'</td>'
|
453
|
|
addString+='<td class="price1">'+data.data.data[j].dealPrice+'</td>'
|
454
|
|
addString+='<td>'+data.data.data[j].payMethod+'</td>'
|
455
|
|
addString+='<td><span>'+inquiry+'</span>/<span>'+data.data.data[j].dealPrice+'</span><br></td>'
|
456
|
|
addString+='<td><div class="modification"></div></td> </tr>'
|
457
|
|
$(".tablecon").eq(i).append(addString);
|
458
|
|
if($(".price1").eq(k).text()==0){
|
459
|
|
$(".price1").eq(k).text("");
|
460
|
|
}
|
461
|
|
switch(data.data.data[j].operationStatus)
|
462
|
|
{
|
463
|
|
case 1:
|
464
|
|
var string='<span>新的申请</span><br/>'
|
465
|
|
string+='<a class="operatebtn">'
|
466
|
|
string+='<span class="detailmess"resourId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+'>回复申请</span><br />'
|
467
|
|
string+='</a>'
|
468
|
|
$(".modification").eq(k).html(string)
|
469
|
|
break;
|
470
|
|
case 2:
|
471
|
|
var string='<span>发送报价待对方确认</span><br/>'
|
472
|
|
string+='<a class="operatebtn">'
|
473
|
|
string+='<span class="detailmess"resourId='+data.data.data[j].resource.resourceId+' operationStatus="2" operationId='+data.data.data[j].operationId+'>修改报价</span><br />'
|
474
|
|
string+='</a>'
|
475
|
|
$(".modification").eq(k).html(string);
|
476
|
|
break;
|
477
|
|
case 3:
|
478
|
|
var string='<span>对方发来报价合作进行中</span><br/>'
|
479
|
|
string+='<a class="operatebtn">'
|
480
|
|
string+='<span class="detailmess"resourId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+' dealPrice='+data.data.data[j].dealPrice+'>查看详情</span><br />'
|
481
|
|
string+='<span class="drawback"resourId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+' dealPrice='+data.data.data[j].dealPrice+'>退款</span><br />'
|
482
|
|
string+='<span resourId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+'>投诉</span>'
|
483
|
|
string+='</a>'
|
484
|
|
$(".modification").eq(k).html(string);
|
485
|
|
break;
|
486
|
|
case 4:
|
487
|
|
var string='<span>对方拒绝报价,合作结束</span><br/>'
|
488
|
|
string+='<a class="operatebtn">'
|
489
|
|
string+='<span class="detailmess"resourId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+'>查看详情</span><br />'
|
490
|
|
string+='</a>'
|
491
|
|
$(".modification").eq(k).html(string);
|
492
|
|
break;
|
493
|
|
case 5:
|
494
|
|
var string='<span>本人拒绝合作</span><br/>'
|
495
|
|
string+='<a class="operatebtn">'
|
496
|
|
string+='<span class="detailmess"resourId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+'>查看详情</span><br />'
|
497
|
|
string+='</a>'
|
498
|
|
$(".modification").eq(k).html(string);
|
499
|
|
break;
|
500
|
|
case 6:
|
501
|
|
var string='<span>对方中止合作合作结束</span><br/>'
|
502
|
|
string+='<a class="operatebtn">'
|
503
|
|
string+='<span class="detailmess"resourId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+' dealPrice='+data.data.data[j].dealPrice+'>查看详情</span><br />'
|
504
|
|
|
505
|
|
string+='<span class="drawback"resourId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+' dealPrice='+data.data.data[j].dealPrice+'>退款</span><br />'
|
506
|
|
string+='<span class="complain"resourId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+'>投诉</span>'
|
507
|
|
string+='</a>'
|
508
|
|
$(".modification").eq(k).html(string);
|
509
|
|
break;
|
510
|
|
case 7:
|
511
|
|
var string='<span>合作进行中</span><br/>'
|
512
|
|
string+='<a class="operatebtn">'
|
513
|
|
string+='<span class="detailmess"resourId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+' dealPrice='+data.data.data[j].dealPrice+'>查看详情</span><br />'
|
514
|
|
string+='<span class="acknowledgement"resourceId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+'>确认完成</span><br />'
|
515
|
|
string+='<span class="complain"resourId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+'>投诉</span>'
|
516
|
|
string+='</a>'
|
517
|
|
$(".modification").eq(k).html(string);
|
518
|
|
break;
|
519
|
|
case 8:
|
520
|
|
var string='<span>完成</span><br/>'
|
521
|
|
string+='<a class="operatebtn">'
|
522
|
|
string+='<span class="detailmess"resourId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+' dealPrice='+data.data.data[j].dealPrice+'>查看详情</span><br />'
|
523
|
|
|
524
|
|
string+='<span class="complain"resourId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+'>投诉</span>'
|
525
|
|
string+='</a>'
|
526
|
|
$(".modification").eq(k).html(string);
|
527
|
|
break;
|
528
|
|
default:
|
529
|
|
|
530
|
|
}
|
531
|
|
k++;
|
532
|
|
addString="";
|
533
|
|
}
|
534
|
|
|
535
|
|
}
|
536
|
|
else
|
537
|
|
{
|
538
|
|
$.MsgBox.Alert("消息","系统异常!");
|
539
|
|
}
|
540
|
|
},
|
541
|
|
"error":function(){$.MsgBox.Alert('message','failed')}
|
542
|
|
});
|
543
|
|
|
|
373
|
getPageResource(3,1,true,i,k)
|
|
374
|
k++;
|
544
|
375
|
})(i);
|
545
|
376
|
|
546
|
377
|
add="";
|
547
|
|
}
|
|
378
|
}
|
|
379
|
|
548
|
380
|
}
|
549
|
381
|
else
|
550
|
382
|
{
|
|
@ -554,6 +386,135 @@ $(function(){
|
554
|
386
|
"error":function(){$.MsgBox.Alert('message','failed')}
|
555
|
387
|
});
|
556
|
388
|
}
|
|
389
|
function getPageResource(pageSize,pageNo,isbind,e,f)
|
|
390
|
{
|
|
391
|
$(".maintab").eq(f).find(".workitem").remove();
|
|
392
|
$.ajax({
|
|
393
|
"url":"/ajax/operation/pqres",
|
|
394
|
"type":"get",
|
|
395
|
"async": true,
|
|
396
|
"data":{"resourceId":$('.resoumag').eq(e+1).attr("resourceId"),"pageSize":pageSize,"pageNo":pageNo},
|
|
397
|
"success":function(data){
|
|
398
|
if(data.success)
|
|
399
|
{
|
|
400
|
for(var j=0;j<data.data.data.length;j++){
|
|
401
|
if(data.data.data[j].dealPrice==undefined)
|
|
402
|
{
|
|
403
|
data.data.data[j].dealPrice=0;
|
|
404
|
}
|
|
405
|
|
|
406
|
if(data.data.data[j].payMethod==undefined){
|
|
407
|
data.data.data[j].payMethod="";
|
|
408
|
}
|
|
409
|
var inquiry=inquiryGetPaidMoney(data.data.data[j].operationId);
|
|
410
|
var addString='<tr class="workitem">'
|
|
411
|
addString+='<td>'+data.data.data[j].dealTime+'</td>'
|
|
412
|
addString+='<td class="workitemsrc">'+data.data.data[j].applysquare+'</td>'
|
|
413
|
addString+='<td> <a class="worktel" href="">'+data.data.data[j].professor.name+'<span class="worktelbtn"></span></a></td>'
|
|
414
|
addString+='<td>'+data.data.data[j].deliverTime+'</td>'
|
|
415
|
addString+='<td class="price1">'+data.data.data[j].dealPrice+'</td>'
|
|
416
|
addString+='<td>'+data.data.data[j].payMethod+'</td>'
|
|
417
|
addString+='<td><span>'+inquiry+'</span>/<span>'+data.data.data[j].dealPrice+'</span><br></td>'
|
|
418
|
addString+='<td><div class="modification"></div></td> </tr>'
|
|
419
|
$(".tablecon").eq(e).append(addString);
|
|
420
|
|
|
421
|
if($(".price1").eq(t).text()==0){
|
|
422
|
$(".price1").eq(t).text("");
|
|
423
|
}
|
|
424
|
console.log(f);
|
|
425
|
switch(data.data.data[j].operationStatus)
|
|
426
|
{
|
|
427
|
case 1:
|
|
428
|
var string='<span>新的申请</span><br/>'
|
|
429
|
string+='<a class="operatebtn">'
|
|
430
|
string+='<span class="detailmess"resourId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+'>回复申请</span><br />'
|
|
431
|
string+='</a>'
|
|
432
|
$(".modification").eq(t).html(string);
|
|
433
|
break;
|
|
434
|
case 2:
|
|
435
|
var string='<span>发送报价待对方确认</span><br/>'
|
|
436
|
string+='<a class="operatebtn">'
|
|
437
|
string+='<span class="detailmess"resourId='+data.data.data[j].resource.resourceId+' operationStatus="2" operationId='+data.data.data[j].operationId+'>修改报价</span><br />'
|
|
438
|
string+='</a>'
|
|
439
|
$(".modification").eq(t).html(string);
|
|
440
|
break;
|
|
441
|
case 3:
|
|
442
|
var string='<span>对方发来报价合作进行中</span><br/>'
|
|
443
|
string+='<a class="operatebtn">'
|
|
444
|
string+='<span class="detailmess"resourId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+' dealPrice='+data.data.data[j].dealPrice+'>查看详情</span><br />'
|
|
445
|
string+='<span class="drawback"resourId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+' dealPrice='+data.data.data[j].dealPrice+'>退款</span><br />'
|
|
446
|
string+='<span resourId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+'>投诉</span>'
|
|
447
|
string+='</a>'
|
|
448
|
$(".modification").eq(t).html(string);
|
|
449
|
break;
|
|
450
|
case 4:
|
|
451
|
var string='<span>对方拒绝报价,合作结束</span><br/>'
|
|
452
|
string+='<a class="operatebtn">'
|
|
453
|
string+='<span class="detailmess"resourId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+'>查看详情</span><br />'
|
|
454
|
string+='</a>'
|
|
455
|
$(".modification").eq(t).html(string);
|
|
456
|
break;
|
|
457
|
case 5:
|
|
458
|
var string='<span>本人拒绝合作</span><br/>'
|
|
459
|
string+='<a class="operatebtn">'
|
|
460
|
string+='<span class="detailmess"resourId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+'>查看详情</span><br />'
|
|
461
|
string+='</a>'
|
|
462
|
$(".modification").eq(t).html(string);
|
|
463
|
break;
|
|
464
|
case 6:
|
|
465
|
var string='<span>对方中止合作合作结束</span><br/>'
|
|
466
|
string+='<a class="operatebtn">'
|
|
467
|
string+='<span class="detailmess"resourId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+' dealPrice='+data.data.data[j].dealPrice+'>查看详情</span><br />'
|
|
468
|
|
|
469
|
string+='<span class="drawback"resourId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+' dealPrice='+data.data.data[j].dealPrice+'>退款</span><br />'
|
|
470
|
string+='<span class="complain"resourId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+'>投诉</span>'
|
|
471
|
string+='</a>'
|
|
472
|
$(".modification").eq(t).html(string);
|
|
473
|
break;
|
|
474
|
case 7:
|
|
475
|
var string='<span>合作进行中</span><br/>'
|
|
476
|
string+='<a class="operatebtn">'
|
|
477
|
string+='<span class="detailmess"resourId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+' dealPrice='+data.data.data[j].dealPrice+'>查看详情</span><br />'
|
|
478
|
string+='<span class="acknowledgement"resourceId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+'>确认完成</span><br />'
|
|
479
|
string+='<span class="complain"resourId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+'>投诉</span>'
|
|
480
|
string+='</a>'
|
|
481
|
$(".modification").eq(t).html(string);
|
|
482
|
break;
|
|
483
|
case 8:
|
|
484
|
var string='<span>完成</span><br/>'
|
|
485
|
string+='<a class="operatebtn">'
|
|
486
|
string+='<span class="detailmess"resourId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+' dealPrice='+data.data.data[j].dealPrice+'>查看详情</span><br />'
|
|
487
|
|
|
488
|
string+='<span class="complain"resourId='+data.data.data[j].resource.resourceId+' operationStatus='+data.data.data[j].operationStatus+' operationId='+data.data.data[j].operationId+'>投诉</span>'
|
|
489
|
string+='</a>'
|
|
490
|
$(".modification").eq(t).html(string);
|
|
491
|
break;
|
|
492
|
default:
|
|
493
|
|
|
494
|
}
|
|
495
|
t++;
|
|
496
|
addString="";
|
|
497
|
}
|
|
498
|
if(isbind == true)
|
|
499
|
{
|
|
500
|
$(".tcdPageCod"+e+"").createPage({
|
|
501
|
pageCount:Math.ceil(data.data.total/pageSize),
|
|
502
|
current:data.data.pageNo,
|
|
503
|
backFn:function(p){
|
|
504
|
$(this).parent().parent().find(".workitem").remove();
|
|
505
|
getPageResource(3,p,false,e,f);
|
|
506
|
}
|
|
507
|
});
|
|
508
|
}
|
|
509
|
}
|
|
510
|
else
|
|
511
|
{
|
|
512
|
$.MsgBox.Alert("消息","系统异常!");
|
|
513
|
}
|
|
514
|
},
|
|
515
|
"error":function(){$.MsgBox.Alert('message','failed')}
|
|
516
|
});
|
|
517
|
}
|
557
|
518
|
|
558
|
519
|
|
559
|
520
|
$("#consd").on("click",".detailmess",function(){
|
|
@ -572,7 +533,7 @@ $("#consd").on("click",".detailmess",function(){
|
572
|
533
|
$("select").replaceWith("<span class='sname'></span>")
|
573
|
534
|
$(".btnboxdown").css({"display":"none"});
|
574
|
535
|
$(".applysure").css({"display":"none"});
|
575
|
|
$(".resouinfotype2").text("");
|
|
536
|
|
576
|
537
|
$("#nextStep").click(function(){
|
577
|
538
|
$(".stateinfor span").text("报价中");
|
578
|
539
|
$(".btnboxup").css({"display":"none"});
|
|
@ -623,7 +584,7 @@ $("#consd").on("click",".detailmess",function(){
|
623
|
584
|
$("select").replaceWith("<span class='sname'></span>")
|
624
|
585
|
$(".btnboxdown").css({"display":"none"});
|
625
|
586
|
$(".applysure").css({"display":"none"});
|
626
|
|
$(".resouinfotype2").text("");
|
|
587
|
|
627
|
588
|
$(".stateinfor span").text("修改报价中");
|
628
|
589
|
$(".btnboxup").css({"display":"none"});
|
629
|
590
|
$(".btnboxdown").css({"display":"block"});
|
|
@ -666,6 +627,7 @@ $("#consd").on("click",".detailmess",function(){
|
666
|
627
|
$(".pingjiainfo").css("display","none");
|
667
|
628
|
ajaxGet1(operationId);
|
668
|
629
|
$(".payaddbox1").css("display","none");
|
|
630
|
|
669
|
631
|
discussGetPaidMoney(operationId,priceDifference)
|
670
|
632
|
}
|
671
|
633
|
if(flag==0&&operationStatus==5){
|
|
@ -676,7 +638,7 @@ $("#consd").on("click",".detailmess",function(){
|
676
|
638
|
$("select").replaceWith("<span class='sname'></span>")
|
677
|
639
|
$(".btnboxdown").css({"display":"none"});
|
678
|
640
|
$(".applysure").css({"display":"none"});
|
679
|
|
$(".resouinfotype2").text("");
|
|
641
|
|
680
|
642
|
$(".addrebtn").css("display","none");
|
681
|
643
|
}
|
682
|
644
|
if(flag==0&&operationStatus==4){
|
|
@ -687,7 +649,7 @@ $("#consd").on("click",".detailmess",function(){
|
687
|
649
|
$("select").replaceWith("<span class='sname'></span>")
|
688
|
650
|
$(".btnboxdown").css({"display":"none"});
|
689
|
651
|
$(".applysure").css({"display":"none"});
|
690
|
|
$(".resouinfotype2").text("");
|
|
652
|
|
691
|
653
|
$(".stateinfor span").text("详情");
|
692
|
654
|
$(".btnboxup").css({"display":"none"});
|
693
|
655
|
$(".btnboxdown").css({"display":"block"});
|
|
@ -733,15 +695,17 @@ if(flag==0&&operationStatus==8){
|
733
|
695
|
|
734
|
696
|
|
735
|
697
|
|
736
|
|
$.ajax({
|
|
698
|
function getPageData(pageSize,pageNo,isbind){
|
|
699
|
$.ajax({
|
737
|
700
|
"url":"/ajax/operation/pqdem",
|
738
|
701
|
"type":"get",
|
739
|
702
|
"async": true,
|
740
|
|
"data":{"demandId":userid},
|
|
703
|
"data":{"demandId":userid,"pageSize":pageSize,"pageNo":pageNo},
|
741
|
704
|
"success":function(data){
|
742
|
705
|
if(data.success)
|
743
|
706
|
{
|
744
|
|
|
|
707
|
$(".worktabb").html("");
|
|
708
|
console.log(data);
|
745
|
709
|
|
746
|
710
|
for(var i=0;i<data.data.data.length;i++)
|
747
|
711
|
{
|
|
@ -836,6 +800,16 @@ $.ajax({
|
836
|
800
|
default:
|
837
|
801
|
}
|
838
|
802
|
}
|
|
803
|
if(isbind == true)
|
|
804
|
{
|
|
805
|
$(".tcdPageCode1").createPage({
|
|
806
|
pageCount:Math.ceil(data.data.total/pageSize),
|
|
807
|
current:data.data.pageNo,
|
|
808
|
backFn:function(p){
|
|
809
|
getPageData(pageSize,p,false);
|
|
810
|
},
|
|
811
|
});
|
|
812
|
}
|
839
|
813
|
}
|
840
|
814
|
else
|
841
|
815
|
{
|
|
@ -844,6 +818,8 @@ $.ajax({
|
844
|
818
|
},
|
845
|
819
|
"error":function(){$.MsgBox.Alert('message','failddd')}
|
846
|
820
|
});
|
|
821
|
}
|
|
822
|
getPageData(4,1,true);
|
847
|
823
|
|
848
|
824
|
$(".workmysrc").on("click",".acknowledgement",function(){
|
849
|
825
|
finish();
|
|
@ -1287,7 +1263,7 @@ $(".workmysrc").on("click",".detailm",function(){
|
1287
|
1263
|
ajaxGet(operationId);
|
1288
|
1264
|
|
1289
|
1265
|
|
1290
|
|
$("#del").on("click",function()
|
|
1266
|
$("#deliver").on("click",function()
|
1291
|
1267
|
{
|
1292
|
1268
|
var $data = {};
|
1293
|
1269
|
$data.operationId=operationId;
|
|
@ -1325,7 +1301,7 @@ $(".workmysrc").on("click",".detailm",function(){
|
1325
|
1301
|
$("select").replaceWith("<span class='sname'></span>")
|
1326
|
1302
|
$(".btnboxdown").css({"display":"none"});
|
1327
|
1303
|
$(".applysure").css({"display":"none"});
|
1328
|
|
$(".resouinfotype2").text("");
|
|
1304
|
|
1329
|
1305
|
$(".stateinfor span").text("详情");
|
1330
|
1306
|
$(".btnboxup").css({"display":"none"});
|
1331
|
1307
|
$(".btnboxdown").css({"display":"block"});
|
|
@ -1379,7 +1355,7 @@ $(".workmysrc").on("click",".detailm",function(){
|
1379
|
1355
|
$("select").replaceWith("<span class='sname'></span>")
|
1380
|
1356
|
$(".btnboxdown").css({"display":"none"});
|
1381
|
1357
|
$(".applysure").css({"display":"none"});
|
1382
|
|
$(".resouinfotype2").text("");
|
|
1358
|
|
1383
|
1359
|
$(".addrebtn").css("display","none");
|
1384
|
1360
|
}
|
1385
|
1361
|
if(flag==1&&operationStatus==5){
|
|
@ -1390,7 +1366,7 @@ $(".workmysrc").on("click",".detailm",function(){
|
1390
|
1366
|
$("select").replaceWith("<span class='sname'></span>")
|
1391
|
1367
|
$(".btnboxdown").css({"display":"none"});
|
1392
|
1368
|
$(".applysure").css({"display":"none"});
|
1393
|
|
$(".resouinfotype2").text("");
|
|
1369
|
|
1394
|
1370
|
$(".stateinfor span").text("详情");
|
1395
|
1371
|
$(".btnboxup").css({"display":"none"});
|
1396
|
1372
|
$(".btnboxdown").css({"display":"block"});
|
|
@ -1404,6 +1380,7 @@ $(".workmysrc").on("click",".detailm",function(){
|
1404
|
1380
|
if(flag==1&&operationStatus==6){
|
1405
|
1381
|
DetailInfo();
|
1406
|
1382
|
$("#totalPrice").text(priceDifference);
|
|
1383
|
$(".filebox").css("display","none");
|
1407
|
1384
|
$(".liuyaninfo").css("display","none");
|
1408
|
1385
|
$(".pingjiainfo").css("display","none");
|
1409
|
1386
|
ajaxGet1(operationId);
|
|
@ -1479,12 +1456,15 @@ function ajaxGet(operationId){
|
1479
|
1456
|
"success":function(data){
|
1480
|
1457
|
if(data.success)
|
1481
|
1458
|
{
|
|
1459
|
|
1482
|
1460
|
$(".log").text(data.data.resource.resourceName);
|
1483
|
1461
|
$(".timelog").text(data.data.deliverTime);
|
1484
|
1462
|
$(".contration").text(data.data.operationId);
|
1485
|
1463
|
$(".detail").text(data.data.detailDemand);
|
1486
|
1464
|
$(".dealTime").text(data.data.dealTime);
|
1487
|
1465
|
$(".sname").text(data.data.applysquare);
|
|
1466
|
$(".namecon").text(data.data.resource.professor.name);
|
|
1467
|
|
1488
|
1468
|
if(data.data.payMethod){
|
1489
|
1469
|
$("#payMethod").val(data.data.payMethod);
|
1490
|
1470
|
}
|
|
@ -1511,12 +1491,13 @@ function ajaxGet1(operationId){
|
1511
|
1491
|
|
1512
|
1492
|
"success":function(data){
|
1513
|
1493
|
if(data.success)
|
1514
|
|
{
|
|
1494
|
{console.log(data);
|
1515
|
1495
|
$(".log").text(data.data.resource.resourceName);
|
1516
|
1496
|
$(".timelog").text(data.data.deliverTime);
|
1517
|
1497
|
$(".contration").text(data.data.operationId);
|
1518
|
1498
|
$(".detail").text(data.data.detailDemand);
|
1519
|
1499
|
$(".dealTime").text(data.data.dealTime);
|
|
1500
|
$(".namecon").text(data.data.resource.professor.name);
|
1520
|
1501
|
$(".sname").text(data.data.applysquare);
|
1521
|
1502
|
if(data.data.payMethod){
|
1522
|
1503
|
$("#payMethod").text(data.data.payMethod);
|