﻿<template>
	<transition name="el-zoom-in-center">
		<div class="NCC-preview-main">
			<div class="NCC-common-page-header">
				<el-page-header @back="goBack" :content="'详情'"/>
				<div class="options">
					<el-button @click="goBack">取 消</el-button>
				</div>
			</div>
		<div class="tem_list">
          <div class="tem_main">
            <h1>{{ dataForm.contractType }}</h1>
            <h4></h4>
            <p class="title text-primary">合同编号：{{ dataForm.contractId }}</p>
			<el-row :gutter="15"  class="main" :style="{margin: '0 auto',width:'95%'}">
				<el-form ref="elForm" :model="dataForm" size="medium" label-width="115px" label-position="right" >
					<el-col :span="24" >
						<el-form-item label="项目名称" prop="proName">
							{{dataForm.proName}}
						</el-form-item>
					</el-col>
					<el-col :span="12" >
						<el-form-item label="合同甲方" prop="partyA">
							{{dataForm.partyA}}
						</el-form-item>
					</el-col>
					<el-col :span="12" >
						<el-form-item label="合同乙方" prop="partyB">
							{{dataForm.partyB}}
						</el-form-item>
					</el-col>
					<el-col :span="12" >
						<el-form-item label="合同阶段" prop="stage">
							{{dataForm.stage}}
						</el-form-item>
					</el-col>
					<el-col :span="12" >
						<el-form-item label="合同金额" prop="amount">
							{{dataForm.amount| currency('¥')}}元
						</el-form-item>
					</el-col>
					<el-col :span="12" >
						<el-form-item label="签约时间" prop="signingTime">
							{{ dataForm.signingTime | toDate("yyyy-MM-dd") }}
						</el-form-item>
					</el-col>
					<el-col :span="12" >
						<el-form-item label="履约时间" prop="startTime">
							{{ dataForm.startTime | toDate("yyyy-MM-dd") }}
						</el-form-item>
					</el-col>
					<el-col :span="12" >
						<el-form-item label="对方签约人" prop="lastHander">
							{{dataForm.lastHander}}
						</el-form-item>
					</el-col>
					<el-col :span="12" >
						<el-form-item label="对方联系电话" prop="lastHanderMobile">
							{{dataForm.lastHanderMobile}}
						</el-form-item>
					</el-col>
					<el-col :span="24" >
						<el-form-item label="合同说明" prop="remark">
							{{dataForm.remark}}
						</el-form-item>
					</el-col>
					<el-col :span="24" >
						<el-form-item label="合同附件" prop="appendix">
							<NCC-UploadFz v-model="dataForm.appendix"  disabled>
							</NCC-UploadFz>
						</el-form-item>
					</el-col>
					<el-col :span="24" >
						<el-form-item label="中标通知书" prop="spare2">
							<NCC-UploadFz v-model="dataForm.bidNotice"  disabled >
							</NCC-UploadFz>
						</el-form-item>
					</el-col>
					<el-col :span="6" v-if="false" >
						<el-form-item label="创建人" prop="creater">
							<el-input v-model="dataForm.creater" placeholder="系统自动生成" readonly >
							</el-input>
						</el-form-item>
					</el-col>
					<el-col :span="6" v-if="false" >
						<el-form-item label="创建时间" prop="createTime">
							<el-input v-model="dataForm.createTime" placeholder="系统自动生成" readonly >
							</el-input>
						</el-form-item>
					</el-col>
					<el-col :span="6" v-if="false" >
						<el-form-item label="最后修改人" prop="modifyer">
							<el-input v-model="dataForm.modifyer" placeholder="系统自动生成" readonly >
							</el-input>
						</el-form-item>
					</el-col>
					<el-col :span="6" v-if="false" >
						<el-form-item label="修改时间" prop="modifyTime">
							<el-input v-model="dataForm.modifyTime" placeholder="系统自动生成" readonly >
							</el-input>
						</el-form-item>
					</el-col>
				</el-form>
			</el-row>
		  </div>
		</div>
		</div>
	</transition>
</template>
<script>
	import request from '@/utils/request'
	export default {
		components: {},
		props: [],
		data() {
			return {
				loading: false,
				visible: false,
				isDetail: false,
				dataForm: {
					contractId:undefined,
					proName:undefined,
					contractType:undefined,
					partyA:undefined,
					partyB:undefined,
					stage:undefined,
					amount:0,
					signingTime:undefined,
					desPersonName:undefined,
					startTime:undefined,
					endTime:undefined,
					lastHander:undefined,
					lastHanderMobile:undefined,
					remark:undefined,
					appendix:[],
					bidNotice:[],
					creater:undefined,
					createTime:undefined,
					modifyer:undefined,
					modifyTime:undefined,
				},
			}
		},
		computed: {},
        watch: {},
        created() {
		},
		mounted() {
        },
		methods: {
			goBack() {
                this.$emit('detailrefresh')
            },
			init(id) {
				this.dataForm.id = id || 0;
                this.visible = true;
				this.$nextTick(() => {
					if (this.dataForm.id) {
						request({
							url: '/api/SubDev/ZyZbContract/Actions/GetProContractInfo/' + this.dataForm.id,
							method: 'get'
						}).then(res =>{
							this.dataForm = res.data;
							if(!this.dataForm.appendix)this.dataForm.appendix=[]
							if(!this.dataForm.bidNotice)this.dataForm.bidNotice=[]
						})
					}
				})
			},
		}
	}
</script>
<style lang="scss" scoped>
.tem_main {
  width: 1100px;
  margin: 0 auto;
}
.content1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  .item {
    width: 545px;
    padding: 8px 0;
    border-bottom: 1px solid #ebeef5;
    span {
      font-size: 16px;
      padding: 10px 0;
      color: #606266;
    }
  }
}
.el-table,
.content1 {
  width: 920px !important;
  margin: 0 auto !important;
}
h1,
h2,
h3 {
  text-align: center !important;
}
p,
h4 {
  width: 920px !important;
  margin: 0 auto !important;
}
p.title {
  border-bottom: 2px dashed #606266;
  line-height: 30px;
  font-size: 14px;
  margin-bottom: 15px;
  margin-top: 15px;
  color: #606266;
  font-weight: bolder;
}
p.lip {
  padding: 20px 0;
  color: #606266;
}
.temdate {
  font-size: 14px;
  width: 802px;
  margin: 0 auto;
  text-align: right;
  margin: 20px 60px;
  color: #606266;
}
.seal {
  font-size: 14px;
  width: 480px;
  margin: 0 auto;
  text-align: right;
  margin: 10px 120px;
  padding-bottom: 40px;
  color: #606266;
}
.offer-container {
  height: 100%;
  overflow: auto;
  .tem_list {
    width: 1100px;
    height: 100%;
    margin: 0 auto;
    background: #fff;
    .tem_main {
      width: 90%;
      margin: 0 auto;
      font-size: 14px;
      padding-top: 10px;
      color: #606266;
      h1,
      h2 {
        text-align: center;
        color: #606266;
      }
      .title {
        border-bottom: 2px dashed #606266;
        line-height: 30px;
        font-size: 14px;
        color: #606266;
      }
      >>> .el-table thead tr th {
        background-color: #fff;
        color: #606266;
      }
      .lip {
        padding: 20px 0;
        color: #606266;
      }
      .demo-form-inline {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
      }
      .el-form-item--mini.el-form-item,
      .el-form-item--small.el-form-item {
        border-bottom: 1px solid #ebeef5;
        width: 48%;
        margin: 0;
        >>> .el-input__inner {
          border: 0 !important;
          padding: 0;
          width: 220px;
          font-size: 12px;
        }
        >>> .el-form-item__label {
          font-size: 12px;
        }
      }
      .temdate {
        text-align: right;
        margin: 20px 60px;
      }
      .seal {
        text-align: right;
        margin: 10px 120px;
        padding-bottom: 40px;
      }
    }
  }
}
</style>
