zhuanjiahuidetail.vue 16.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 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742
<template>
	<view class="box">
		<!-- <view class="headbox">
			<view class="headboxleft" :class="selact==1?'headactive':''" @click="fenhui" data-id="1">分类汇总</view>
			<view class="headboxleft" :class="selact==2?'headactive':''" @click="fenhui" data-id="2">分类明细</view>
		</view> -->

		<!-- <view class="hengping" @click="screenheng">点击横屏显示</view> -->
		<!-- <view class="nodata" v-if="huizonglist.length==1">暂无数据</view> -->
		<view class="nodata" v-if="huizonglist.length==0">暂无数据</view>
		<block v-else>
			<!-- 分类台账汇总 -->
			<view class="taizhangbox" v-if="huizong">
				<view class="taizhanghead">
					<view class="taizhangitem">专家</view>
					<view class="taizhangitem">
						<view class="shunum">项目数量</view>
						<view class="shenjie">(已审结)</view>
					</view>
					<view class="taizhangitem">总送审题</view>
					<view class="taizhangitem">总审定题</view>
					<view class="taizhangitem">总审减额</view>
					<view class="taizhangitem">综合审减率</view>
					<view class="taizhangitem">操作</view>
				</view>

				<view class="taizhanglist">
					<view class="taizhangflistitem" v-for="(item,index) in huizonglist" :key="index">
						<view class="taiitem itemname">{{item.fname}}
						</view>
						<view class="taiitem itemshu">{{item.prjnum}}</view>
						<view class="taiitem songshen">{{item.auduitsum}}</view>
						<view class="taiitem shending">{{item.amountsum}}</view>
						<view class="taiitem shenjian">{{item.freesum}}</view>
						<view class="taiitem shenlv">{{item.freerate}}</view>
						<view class="taiitem detailname" @click="detail" :data-id="item.id">详情</view>
					</view>



				</view>

			</view>

			<!-- 分类台账明细 -->
			<view class="taizhangbox" v-else>
				<view class="taizhanghead taizhangheadde">
					<view class="taizhangitem">项目编号</view>
					<!-- <view class="taizhangitem">
											<view class="shunum">项目名称</view>
											<view class="shenjie">(已审结)</view>
										</view> -->
					<view class="taizhangitem">专家</view>
					<!-- <view class="taizhangitem">送审年度</view> -->
					<view class="taizhangitem">项目名称</view>
					<view class="taizhangitem">评审类型</view>
					<view class="taizhangitem">送审金额</view>

					<view class="taizhangitem">送审单位</view>
					<view class="taizhangitem">项目类型</view>
					<view class="taizhangitem">送审时间</view>
					<view class="taizhangitem">审定金额</view>
					<view class="taizhangitem">审减率</view>
					<view class="taizhangitem">审减金额</view>

				</view>

				<view class="taizhanglist">
					<view class="taizhangflistitem taizhangflistitemde" v-for="(item,index) in huizonglist" :key="index">
						<view class="taiitem itemname">{{item.fprjnumber}}
						</view>
						<view class="taiitem itemshu">{{item.fintorgid}}</view>
						<view class="taiitem songshen">{{item.fprjname}}</view>
						<view class="taiitem shending">{{item.freviewtype}}</view>
						<view class="taiitem pingleixing">{{item.ftoauditamt}}</view>
						<view class="taiitem danwei">{{item.fdevorgid}}</view>
						<view class="taiitem protype">{{item.fprojecttype}}</view>

						<!-- <view class="taiitem itemname">{{item.fsubmitfindate}}
											</view> -->
						<view class="taiitem itemshu">{{item.fsubmitfindate}}</view>

						<view class="taiitem shendingmoney">{{item.fauditamount}}</view>
						<view class="taiitem shenjian">{{item.fauditratio}}</view>
						<view class="taiitem shenlv">{{item.fshenjianmoney}}</view>
						<!-- <view class="taiitem shenlv">{{item.fauditledername}}</view> -->


					</view>



				</view>



			</view>



		</block>

		<!-- 底部 -->
		<!-- <view class="dibu">
			<view class="dibuleft">
				<view class="dibuliteml">上一页</view>

				<view class="dibulitemm">
					<view class="di">第</view>
					<view class="dishu">
						<input type="number">
					</view>
					<view class="ye">页</view>

				</view>
				<view class="dibulitemx ">下一页</view>
			</view>

			<view class="diburight">
				共30页
			</view>
		</view>
 -->

		<view class="register" v-if="tizhangshow">
			<view class="taizhangwrap xiangmuzi">
				<view class="wrapbox">
					<view class="wrapitem">
						<view class="wrapitemleft">项目类型</view>
						<picker @change="bindPickerChange" :value="index" :range="projectlist" range-key="fname">
							<view class="wrapitemright">

								<view class="uni-input projectname">{{projectname}}</view>

								<!-- <input type="text" /> -->
							</view>
						</picker>
					</view>
					<view class="wrapitem">
						<view class="wrapitemleft">评审类型</view>

						<picker @change="danweichange" :value="danweiindex" :range="danweilist" range-key="fname">
							<view class="wrapitemright">

								<view class="uni-input projectname">{{danweiname}}</view>

								<!-- <input type="text" /> -->
							</view>
						</picker>

					</view>
					<!-- <view class="wrapitem">
						<view class="wrapitemleft">咨询单位</view>
					
						<picker @change="danweichangez" :value="danweiindexz" :range="danweilistz" range-key="fname">
							<view class="wrapitemright">
					
								<view class="uni-input projectname">{{danweinamez}}</view>
					
								
							</view>
						</picker>
					
					</view> -->



					<view class="wrapitem">
						<view class="wrapitemleft">年度</view>
						<picker @change="yearchange" :value="yearindex" :range="yeararr">
							<view class="wrapitemright">



								<view class="nianduleft">
									<view class="uni-input projectname">{{yeararr[yearindex]}}</view>
									<!-- <input type="text" /> -->
								</view>

								<view class="nianduright">
									<image src="../../static/img/number.png" mode=""></image>
								</view>

							</view>
						</picker>
					</view>
					<view class="wrapitem">
						<view class="wrapitemleft">时间</view>
						<view class="time">

							<picker mode="date" :value="date" :start="startDate" :end="endDate" @change="bindDateChange">


								<view class="timeleft">
									{{startdate}}
									<!-- <input   placeholder="" /> -->
									<!-- <input type="text" placeholder="" /> -->
								</view>
							</picker>
							<view class="timemiddle"></view>
							<picker mode="date" :value="date" :start="startDate" :end="endDate" @change="endDateChange">


								<view class="timeleft">
									{{endate}}
									<!-- <input   placeholder="" /> -->
									<!-- <input type="text" placeholder="" /> -->
								</view>
							</picker>
						</view>
					</view>

				</view>

				<view class="zibot">
					<view class="reset" @click="reset">重置</view>
					<!-- <view class="chaxun" @click="search">查询</view> -->
					<view class="chaxun" @click="searchdetail">查询</view>
				</view>

			</view>
		</view>



	</view>
</template>

<script>
	import app from "../../App.vue";
	import helper from '../../common/help.js';
	export default {
		data() {
			return {
				selact: 1,
				tizhangshow: false,
				danweiindex: 0,

				danweilist: [],
				projectlist: [],

				index: 0,
				yeararr: [],
				yearindex: -1,
				startdate: '开始时间',
				endate: '结束时间',
				danweiname: '评审类型',
				projectname: '项目类型',
				danweilistz: [],
				danweiindexz: 0,
				danweinamez: '咨询单位',
				toaudit: '',
				fintorg: '',
				fprojectcategory: '',
				submitdateone: '',
				submitdatetwo: '',
				sendyear: '',
				huizonglist: [],
				type: '',
				fid: '',
				huizong: false,

			}
		},
		onLoad(options) {
			this.fid = options.fid;

			// 获取今年
			var date = new Date();
			var jinyear = date.getFullYear();
			console.log(jinyear);
			var qianyear = jinyear - 19
			for (var i = qianyear; i <= jinyear; i++) {
				this.yeararr.push(i)
			}


			// 获取评审类型
			this.getpingtype();
			// 获取项目类型
			this.getprojectkind();
			// 获取咨询单位
			this.getzixundanwei();
			// 获取分类汇总数据
			// this.getfenhuilist()
			this.getdetail()


		},
		methods: {
			reset() {
				this.yearindex = -1,
					this.startdate = '开始时间';
				this.endate = '结束时间';
				this.danweiname = '评审类型';
				this.projectname = '项目类型';
				this.toaudit = '';
				this.fprojectcategory = '';
				this.sendyear = '';
				this.submitdateone = '';
				this.submitdatetwo = ''

			},
			// 筛选
			onNavigationBarButtonTap() {
				this.tizhangshow = !this.tizhangshow
				// 点击筛选
			},
			// 年改变
			yearchange(e) {
				this.yearindex = e.target.value;
				this.sendyear = this.yeararr[e.target.value]
			},
			// 修改日期

			bindDateChange: function(e) {
				this.startdate = e.target.value;
				this.submitdateone = e.target.value;
			},

			endDateChange(e) {
				this.endate = e.target.value;
				this.submitdatetwo = e.target.value;
			},

			fenhui(e) {
				console.log(e)
				let id = e.currentTarget.dataset.id;
				console.log(id)
				this.selact = id;
			},
			// 横屏显示
			screenheng() {
				console.log(999)
				// plus.screen.lockOrientation('landscape-primary');
			},

			//获取咨询单位
			getzixundanwei() {
				let that = this;
				console.log(9988776655)
				let url = "project/Get_IntermediaryOrg";


				app.post(url, '', 'get').then(r => {
					console.log(r);
					that.danweilistz = r.data;

				}).catch(err => {
					console.log(err)


				})
			},
			danweichangez: function(e) {

				console.log('picker发送选择改变,携带值为', e);
				console.log('998877654', this.danweilistz);
				console.log('09988776545', this.danweilistz[e.target.value].fname)
				this.danweiindexz = e.target.value;
				this.fintorg = this.danweilistz[e.target.value].fname;
				this.danweinamez = this.danweilistz[e.target.value].fname;
			},
			// 获取评审类型
			getpingtype() {
				let that = this;
				console.log(9988776655)
				let url = "project/Get_ToAuditType";
				// console.log('8877665544',param)
				app.post(url, '', 'get').then(r => {
					console.log(r)
					that.danweilist = r.data;
					// that.ftrialnumber = r.data[0].ftrialnumber;
					// that.fconcludenumber = r.data[0].fconcludenumber;

					// console.log('1234567890',JSON.stringify(r))
					// that.rizhilist = r.data;
					// console.log(that.rizhilist)
				}).catch(err => {
					console.log(err)


				})
			},
			danweichange: function(e) {
				console.log('picker发送选择改变,携带值为', e.target.value)
				this.danweiindex = e.target.value;
				this.toaudit = this.danweilist[e.target.value].fname;
				this.danweiname = this.danweilist[e.target.value].fname;
			},

			// 显示项目类型
			getprojectkind() {
				let url = "project/Get_ProjectType";

				app.post(url, '', 'get').then(r => {
					console.log(r)
					this.projectlist = r.data;
					console.log(this.projectlist);

					// this.xiangmulist=r.data;
					// console.log(this.xiangmulist)

				}).catch(err => {
					console.log(err)
				})
			},

			// 选择项目
			bindPickerChange: function(e) {
				console.log('picker发送选择改变,携带值为', e.target.value)
				this.index = e.target.value;
				this.fprojectcategory = this.projectlist[e.target.value].fname;
				this.projectname = this.projectlist[e.target.value].fname
			},


			// 获取分类汇总的数据
			getfenhuilist() {
				let that = this;
				console.log(9988776655)
				let url = "project/Get_ExpertgorprjySum";
				let param = {
					toaudit: that.toaudit,
					fprojectcategory: that.fprojectcategory,
					sendyear: that.sendyear,
					submitdateone: that.submitdateone,
					submitdatetwo: that.submitdatetwo,

				}
				console.log(param)
				// console.log('8877665544',param)
				app.post(url, param, 'get').then(r => {
					console.log(r);
					that.huizonglist = r.data;
					// that.ftrialnumber = r.data[0].ftrialnumber;
					// that.fconcludenumber = r.data[0].fconcludenumber;

					// console.log('1234567890',JSON.stringify(r))
					// that.rizhilist = r.data;
					// console.log(that.rizhilist)
				}).catch(err => {
					console.log(err)
				})
			},
			detail(e) {
				this.fid = e.target.dataset.id;
				this.huizong = false;
				this.getdetail()
			},
			getdetail() {
				let that = this;
				console.log(9988776655)
				let url = "project/Get_Expertgorprjy";
				let param = {
					fid: that.fid,
					toaudit: that.toaudit,
					fprojectcategory: that.fprojectcategory,
					sendyear: that.sendyear,
					submitdateone: that.submitdateone,
					submitdatetwo: that.submitdatetwo,

				}
				console.log(param)
				// console.log('8877665544',param)
				app.post(url, param, 'get').then(r => {
					console.log(r);
					that.huizonglist = r.data;
					let newhuizonglist = that.huizonglist;
					for (var obj of newhuizonglist) {
						obj.fauditamount = helper.change(obj.fauditamount);
						obj.fshenjianmoney = helper.change(obj.fshenjianmoney);
						obj.ftoauditamt = helper.change(obj.ftoauditamt);
						obj.fsubmitfindate = obj.fsubmitfindate.split("T");
						obj.fsubmitfindate = obj.fsubmitfindate[0]

					}
					this.huizonglist = newhuizonglist
					// that.ftrialnumber = r.data[0].ftrialnumber;
					// that.fconcludenumber = r.data[0].fconcludenumber;
					// console.log('1234567890',JSON.stringify(r))
					// that.rizhilist = r.data;
					// console.log(that.rizhilist)
				}).catch(err => {
					console.log(err)
				})
			},


			search() {
				this.getfenhuilist();
				this.tizhangshow = false;
			},
			searchdetail() {
				this.getdetail();
				this.tizhangshow = false;
			}
		},

	}
</script>

<style>
	page {
		background: #f9f9f9;
	}

	.headbox {
		background: #fff;
		height: 100rpx;
		display: flex;
		align-items: center;


	}

	.headboxleft {
		width: 350rpx;
		height: 100rpx;
		line-height: 100rpx;
		text-align: center;
		color: #06121E;
		font-size: 28rpx;
	}

	.headactive {
		color: #0093FF;
		border-bottom: 1rpx solid #0093FF;
	}

	.hengping {
		width: 144rpx;
		color: #0093FF;
		font-size: 24rpx;
		border-bottom: 1rpx solid #0093FF;
		margin: 34rpx auto 0;
	}

	.taizhangbox {
		width: 700rpx;
		overflow-x: scroll;
		margin: 28rpx;
		padding: 0 20rpx;
		box-sizing: border-box;
		background: #fff;
	}

	.taizhanghead {
		width: 1400rpx;
		overflow-x: scroll;
		display: flex;
		align-items: center;
		padding: 16rpx 0;
		box-sizing: border-box;
		border-bottom: 1rpx solid #BDC4CE
	}

	.taizhangitem {

		color: #06121E;
		font-size: 22rpx;
		margin-right: 118rpx;
		font-weight: bold;
	}

	.shenjie {
		text-align: center;
		margin-top: 5rpx;
		font-size: 20rpx;
	}

	.taizhangflistitem {
		width: 1400rpx;
		overflow-x: scroll;
		padding: 18rpx 0;
		box-sizing: border-box;
		display: flex;
		align-items: center;
		border-bottom: 1rpx solid #BDC4CE
	}

	.taiitem {
		color: #06121E;
		font-size: 24rpx;
	}

	.itemname {
		width: 86rpx
	}

	.itemshu {
		width: 150rpx;
		text-align: center;
		margin-left: 72rpx
	}

	.songshen {
		width: 200rpx;
		text-align: center;
		margin-left: 1rpx;
	}

	.shending {
		width: 200rpx;
		text-align: center;
		margin-left: 5rpx
	}

	.shenjian {
		width: 200rpx;
		text-align: center;
		margin-left: 10rpx
	}

	.shenlv {
		width: 200rpx;
		text-align: center;
		margin-left: 15rpx
	}

	.dibu {
		display: flex;
		align-items: center;
		justify-content: flex-end;
		width: 750rpx;
		height: 104rpx;
		padding: 0 32rpx;
		box-sizing: border-box;
		background: #fff;
		position: fixed;
		bottom: 0;
		left: 0
	}

	.dibuleft {
		display: flex;
		align-items: center;
		margin-right: 72rpx;
	}

	.dibulitemm {
		display: flex;
		align-items: center;
	}

	.dishu {
		width: 40rpx;
		height: 30rpx;
		border: 1rpx solid #707070;
		border-radius: 4rpx;
		margin: 0 6rpx;
		font-size: 0;
		display: flex;
		align-items: center;
		justify-content: center;


	}

	.dishu input {
		width: 100%;
		height: 30rpx;
		line-height: 30rpx;
		padding: 5rpx 0;
		box-sizing: border-box;
		text-align: center;
		font-size: 26rpx;
		color: #8C9198;
		/* height:20rpx; */

	}

	.dibuliteml,
	.di,
	.ye,
	.dibulitemx,
	.diburight {
		color: #06121E;
		font-size: 28rpx;
	}

	.dibuliteml {
		margin-right: 36rpx
	}

	.dibulitemx {
		margin-left: 36rpx
	}

	.xiangmuzi {
		height: 784rpx;
	}

	.detailname {
		color: #0093FF;
		font-size: 24rpx;
		width: 120rpx;
		margin-left: 20rpx;
	}

	.taizhangheadde {
		width: 3200rpx;
		overflow-x: scroll;
		display: flex;
		align-items: center;
		padding: 16rpx 0;
		box-sizing: border-box;
		border-bottom: 1rpx solid #BDC4CE
	}

	.taizhangflistitemde {
		width: 3200rpx;
		overflow-x: scroll;
		padding: 18rpx 0;
		box-sizing: border-box;
		display: flex;
		align-items: center;
		border-bottom: 1rpx solid #BDC4CE
	}

	.pingleixing {
		width: 160rpx;
		text-align: center;
		margin-left: 10rpx;
	}

	.danwei {
		width: 250rpx;
		margin-left: 40rpx
	}

	.protype {
		width: 100rpx;

	}

	.shendingmoney {
		width: 150rpx;
		text-align: center;
		margin-left: 50rpx
	}
</style>