|
@@ -0,0 +1,187 @@
|
|
|
+<template xmlns:v-slot="http://www.w3.org/1999/XSL/Transform">
|
|
|
+ <div>
|
|
|
+ <el-dialog
|
|
|
+ title="资产评估项目(校对)审核记录表"
|
|
|
+ :close-on-click-modal="false"
|
|
|
+ v-dialogDrag
|
|
|
+ width="1300px"
|
|
|
+ @close="close"
|
|
|
+ @keyup.enter.native=""
|
|
|
+ :visible.sync="visible">
|
|
|
+ <el-form size="middle" :model="inputForm" ref="inputForm" v-loading="loading" :class="method==='view'?'readonly':''" :disabled="method==='view'"
|
|
|
+ label-width="220px" @submit.native.prevent>
|
|
|
+
|
|
|
+ <el-row :gutter="15">
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item label="项目名称" prop="projectName">
|
|
|
+ <el-input :disabled="true" v-model="inputForm.projectName"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="评估基准日" prop="assessmentDate">
|
|
|
+ <el-input :disabled="true" v-model="inputForm.assessmentDate"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="项目负责人" prop="projectManagerName">
|
|
|
+ <el-input :disabled="true" v-model="inputForm.projectManagerName"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="项目审核人" prop="processUserName">
|
|
|
+ <el-input :disabled="true" v-model="inputForm.processUserName"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="审核日期" prop="processDate">
|
|
|
+ <el-date-picker
|
|
|
+ v-model="inputForm.processDate"
|
|
|
+ type="date"
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
+ :disabled="true"
|
|
|
+ style="width: 100%"
|
|
|
+ placeholder="选择日期">
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+
|
|
|
+ <el-divider content-position="left"><i class="el-icon-document"></i> 项目基本情况信息</el-divider>
|
|
|
+
|
|
|
+ <el-form-item label="保留意见" prop="reservations">
|
|
|
+ <el-input v-model="inputForm.reservations"
|
|
|
+ type="textarea"
|
|
|
+ :rows="5"
|
|
|
+ maxlength="2000"
|
|
|
+ placeholder="请输入保留意见"
|
|
|
+ show-word-limit>
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <el-form-item label="未修改意见" prop="unmodifiedComments">
|
|
|
+ <el-input v-model="inputForm.unmodifiedComments"
|
|
|
+ type="textarea"
|
|
|
+ :rows="5"
|
|
|
+ maxlength="2000"
|
|
|
+ placeholder="请输入未修改意见"
|
|
|
+ show-word-limit>
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ </el-form>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button size="small" @click="close()" icon="el-icon-circle-close">关闭</el-button>
|
|
|
+ <el-button size="small" type="primary" v-if="method != 'view'" @click="doSubmit()" icon="el-icon-circle-check" v-noMoreClick>确定</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+ import ProofreadInfoService from '@/api/sys/ProofreadInfoService'
|
|
|
+ import ProgramProjectListInfoService from '@/api/program/ProgramProjectListInfoService'
|
|
|
+ import UserService from '@/api/sys/UserService'
|
|
|
+ export default {
|
|
|
+ data () {
|
|
|
+ return {
|
|
|
+ title: '',
|
|
|
+ method: '',
|
|
|
+ visible: false,
|
|
|
+ loading: false,
|
|
|
+ inputForm: {
|
|
|
+ projectId: '',
|
|
|
+ projectName: '',
|
|
|
+ assessmentDate: '',
|
|
|
+ projectManagerName: '',
|
|
|
+ processUserId: '',
|
|
|
+ processUserName: '',
|
|
|
+ processDate: '',
|
|
|
+ reservations: '',
|
|
|
+ unmodifiedComments: ''
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ proofreadInfoService: null,
|
|
|
+ ProgramProjectListInfoService: null,
|
|
|
+ UserService: null,
|
|
|
+ created () {
|
|
|
+ this.proofreadInfoService = new ProofreadInfoService()
|
|
|
+ this.programProjectListInfoService = new ProgramProjectListInfoService()
|
|
|
+ this.userService = new UserService()
|
|
|
+ },
|
|
|
+ components: {
|
|
|
+ },
|
|
|
+ computed: {
|
|
|
+ name () {
|
|
|
+ return JSON.parse(localStorage.getItem('user')).name
|
|
|
+ },
|
|
|
+ userId () {
|
|
|
+ return JSON.parse(localStorage.getItem('user')).id
|
|
|
+ }
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ init (id) {
|
|
|
+ this.inputForm = {
|
|
|
+ projectId: '',
|
|
|
+ projectName: '',
|
|
|
+ assessmentDate: '',
|
|
|
+ projectManagerName: '',
|
|
|
+ processUserId: '',
|
|
|
+ processUserName: '',
|
|
|
+ processDate: '',
|
|
|
+ reservations: '',
|
|
|
+ unmodifiedComments: ''
|
|
|
+ }
|
|
|
+ this.visible = true
|
|
|
+ this.loading = false
|
|
|
+ // 初始化
|
|
|
+ this.programProjectListInfoService.queryById(id).then(({data}) => {
|
|
|
+ this.inputForm.projectId = data.id
|
|
|
+ this.inputForm.projectName = data.name
|
|
|
+ this.inputForm.assessmentDate = data.assessmentDate
|
|
|
+ this.userService.queryById(data.projectManager).then(({data}) => {
|
|
|
+ this.inputForm.projectManagerName = data.name
|
|
|
+ })
|
|
|
+ })
|
|
|
+ this.inputForm.processUserId = this.userId
|
|
|
+ this.inputForm.processUserName = this.name
|
|
|
+ this.inputForm.processDate = new Date()
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.loading = true
|
|
|
+ this.proofreadInfoService.findById(id).then(({data}) => {
|
|
|
+ if (!this.commonJS.isEmpty(data.projectId)) {
|
|
|
+ this.$refs.inputForm.resetFields()
|
|
|
+ this.inputForm = this.recover(this.inputForm, data)
|
|
|
+ this.inputForm = JSON.parse(JSON.stringify(this.inputForm))
|
|
|
+ }
|
|
|
+ this.loading = false
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 表单提交
|
|
|
+ doSubmit () {
|
|
|
+ this.$refs['inputForm'].validate((valid) => {
|
|
|
+ if (valid) {
|
|
|
+ this.loading = true
|
|
|
+ this.proofreadInfoService.save(this.inputForm).then(({data}) => {
|
|
|
+ this.close()
|
|
|
+ this.$message.success(data)
|
|
|
+ this.loading = false
|
|
|
+ }).catch(() => {
|
|
|
+ this.loading = false
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ close () {
|
|
|
+ this.$refs.inputForm.resetFields()
|
|
|
+ this.visible = false
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+</script>
|
|
|
+<style scoped>
|
|
|
+ /deep/ .el-input-number .el-input__inner {
|
|
|
+ text-align: left;
|
|
|
+ }
|
|
|
+</style>
|