|
@@ -14,7 +14,6 @@
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="客户名称" prop="customerName"
|
|
|
:rules="[
|
|
|
- {required: true, message:'客户名称不能为空', trigger:'blur'}
|
|
|
]">
|
|
|
<el-input v-model="inputForm.customerName" placeholder="请填写客户名称" ></el-input>
|
|
|
</el-form-item>
|
|
@@ -30,7 +29,6 @@
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="评估目的" prop="evaluationObjective"
|
|
|
:rules="[
|
|
|
- {required: true, message:'评估目的不能为空', trigger:'blur'}
|
|
|
]">
|
|
|
<el-input v-model="inputForm.evaluationObjective" placeholder="请填写评估目的" ></el-input>
|
|
|
</el-form-item>
|
|
@@ -38,7 +36,6 @@
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="项目类型" prop="projectType"
|
|
|
:rules="[
|
|
|
- {required: true, message:'项目类型不能为空', trigger:'blur'}
|
|
|
]">
|
|
|
<el-input v-model="inputForm.projectType" placeholder="请填写项目类型" ></el-input>
|
|
|
</el-form-item>
|
|
@@ -48,8 +45,8 @@
|
|
|
:rules="[
|
|
|
|
|
|
]">
|
|
|
-<!-- {required: true, message:'评估基准日不能为空', trigger:'blur'}-->
|
|
|
-<!-- <el-input v-model="inputForm.evaluationBaseDate" placeholder="请填写评估基准日" ></el-input>-->
|
|
|
+ <!-- {required: true, message:'评估基准日不能为空', trigger:'blur'}-->
|
|
|
+ <!-- <el-input v-model="inputForm.evaluationBaseDate" placeholder="请填写评估基准日" ></el-input>-->
|
|
|
<el-date-picker
|
|
|
style="width:100%;"
|
|
|
v-model="inputForm.evaluationBaseDateUi"
|
|
@@ -64,8 +61,8 @@
|
|
|
:rules="[
|
|
|
|
|
|
]">
|
|
|
-<!-- {required: true, message:'评估报告日不能为空', trigger:'blur'}-->
|
|
|
-<!-- <el-input v-model="inputForm.evaluationReportDate" placeholder="请填写评估报告日" ></el-input>-->
|
|
|
+ <!-- {required: true, message:'评估报告日不能为空', trigger:'blur'}-->
|
|
|
+ <!-- <el-input v-model="inputForm.evaluationReportDate" placeholder="请填写评估报告日" ></el-input>-->
|
|
|
<el-date-picker
|
|
|
style="width:100%;"
|
|
|
v-model="inputForm.evaluationReportDateUi"
|
|
@@ -78,7 +75,6 @@
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="协议号" prop="protocolNum"
|
|
|
:rules="[
|
|
|
- {required: true, message:'协议号不能为空', trigger:'blur'}
|
|
|
]">
|
|
|
<el-input v-model="inputForm.protocolNum" placeholder="请填写协议号" ></el-input>
|
|
|
</el-form-item>
|
|
@@ -94,7 +90,6 @@
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="项目负责人" prop="projectHead"
|
|
|
:rules="[
|
|
|
- {required: true, message:'项目负责人不能为空', trigger:'blur'}
|
|
|
]">
|
|
|
<el-input v-model="inputForm.projectHead" placeholder="请填写项目负责人" ></el-input>
|
|
|
</el-form-item>
|
|
@@ -102,7 +97,6 @@
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="废旧物资评估(万元)" prop="waystEvaluation"
|
|
|
:rules="[
|
|
|
- {required: true, message:'废旧物资评估不能为空', trigger:'blur'}
|
|
|
]">
|
|
|
<el-input v-model="inputForm.waystEvaluation" placeholder="请填写废旧物资评估" ></el-input>
|
|
|
</el-form-item>
|
|
@@ -110,7 +104,6 @@
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="固定资产评估(万元)" prop="fixedAssetsEvaluation"
|
|
|
:rules="[
|
|
|
- {required: true, message:'固定资产评估不能为空', trigger:'blur'}
|
|
|
]">
|
|
|
<el-input v-model="inputForm.fixedAssetsEvaluation" placeholder="请填写固定资产评估" ></el-input>
|
|
|
</el-form-item>
|
|
@@ -118,7 +111,6 @@
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="净资产评估" prop="netAssetsEvaluation"
|
|
|
:rules="[
|
|
|
- {required: true, message:'净资产评估不能为空', trigger:'blur'}
|
|
|
]">
|
|
|
<el-input v-model="inputForm.netAssetsEvaluation" placeholder="请填写净资产评估" ></el-input>
|
|
|
</el-form-item>
|
|
@@ -126,7 +118,6 @@
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="租金评估(万/年)" prop="rentEvaluation"
|
|
|
:rules="[
|
|
|
- {required: true, message:'租金评估不能为空', trigger:'blur'}
|
|
|
]">
|
|
|
<el-input v-model="inputForm.rentEvaluation" placeholder="请填写租金评估" ></el-input>
|
|
|
</el-form-item>
|
|
@@ -134,7 +125,6 @@
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="司法鉴定" prop="forensics"
|
|
|
:rules="[
|
|
|
- {required: true, message:'司法鉴定不能为空', trigger:'blur'}
|
|
|
]">
|
|
|
<el-input v-model="inputForm.forensics" placeholder="请填写司法鉴定" ></el-input>
|
|
|
</el-form-item>
|
|
@@ -142,7 +132,6 @@
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="报告收费(元)" prop="reportCharges"
|
|
|
:rules="[
|
|
|
- {required: true, message:'报告收费不能为空', trigger:'blur'}
|
|
|
]">
|
|
|
<el-input v-model="inputForm.reportCharges" placeholder="请填写报告收费" ></el-input>
|
|
|
</el-form-item>
|
|
@@ -150,7 +139,6 @@
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="当前处理人" prop="currentDisposePerson"
|
|
|
:rules="[
|
|
|
- {required: true, message:'当前处理人不能为空', trigger:'blur'}
|
|
|
]">
|
|
|
<el-input v-model="inputForm.currentDisposePerson" placeholder="请填写当前处理人" ></el-input>
|
|
|
</el-form-item>
|
|
@@ -158,7 +146,6 @@
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="是否开票" prop="isInvoice"
|
|
|
:rules="[
|
|
|
- {required: true, message:'是否开票不能为空', trigger:'blur'}
|
|
|
]">
|
|
|
<el-radio-group v-model="inputForm.isInvoice">
|
|
|
<el-radio v-for="item in $dictUtils.getDictList('yes_no')" :label="item.value" :key="item.id">{{item.label}}</el-radio>
|
|
@@ -169,7 +156,7 @@
|
|
|
<el-form-item label="开票日期" prop="invoiceDateUi"
|
|
|
:rules="[
|
|
|
]">
|
|
|
-<!-- {required: true, message:'开票日期不能为空', trigger:'blur'}-->
|
|
|
+ <!-- {required: true, message:'开票日期不能为空', trigger:'blur'}-->
|
|
|
<!-- <el-input v-model="inputForm.invoiceDate" placeholder="请填写开票日期" ></el-input>-->
|
|
|
<el-date-picker
|
|
|
style="width:100%;"
|
|
@@ -183,7 +170,6 @@
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="预估/实际收费(元)" prop="actualCharges"
|
|
|
:rules="[
|
|
|
- {required: true, message:'预估/实际收费不能为空', trigger:'blur'}
|
|
|
]">
|
|
|
<el-input v-model="inputForm.actualCharges" placeholder="请填写预估/实际收费" ></el-input>
|
|
|
</el-form-item>
|
|
@@ -191,9 +177,8 @@
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="合同是否存档" prop="isContractArchive"
|
|
|
:rules="[
|
|
|
- {required: true, message:'合同是否存档不能为空', trigger:'blur'}
|
|
|
]">
|
|
|
-<!-- <el-input v-model="inputForm.isContractArchive" placeholder="请填写合同是否存档" ></el-input>-->
|
|
|
+ <!-- <el-input v-model="inputForm.isContractArchive" placeholder="请填写合同是否存档" ></el-input>-->
|
|
|
<el-radio-group v-model="inputForm.isContractArchive">
|
|
|
<el-radio v-for="item in $dictUtils.getDictList('yes_no')" :label="item.value" :key="item.id">{{item.label}}</el-radio>
|
|
|
</el-radio-group>
|
|
@@ -202,9 +187,8 @@
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="底稿是否完好" prop="isPapersIntact"
|
|
|
:rules="[
|
|
|
- {required: true, message:'底稿是否完好不能为空', trigger:'blur'}
|
|
|
]">
|
|
|
-<!-- <el-input v-model="inputForm.isPapersIntact" placeholder="请填写底稿是否完好" ></el-input>-->
|
|
|
+ <!-- <el-input v-model="inputForm.isPapersIntact" placeholder="请填写底稿是否完好" ></el-input>-->
|
|
|
<el-radio-group v-model="inputForm.isPapersIntact">
|
|
|
<el-radio v-for="item in $dictUtils.getDictList('yes_no')" :label="item.value" :key="item.id">{{item.label}}</el-radio>
|
|
|
</el-radio-group>
|
|
@@ -213,9 +197,8 @@
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="底稿是否归档" prop="isPapersArchive"
|
|
|
:rules="[
|
|
|
- {required: true, message:'底稿是否归档不能为空', trigger:'blur'}
|
|
|
]">
|
|
|
-<!-- <el-input v-model="inputForm.isPapersArchive" placeholder="请填写底稿是否归档" ></el-input>-->
|
|
|
+ <!-- <el-input v-model="inputForm.isPapersArchive" placeholder="请填写底稿是否归档" ></el-input>-->
|
|
|
<el-radio-group v-model="inputForm.isPapersArchive">
|
|
|
<el-radio v-for="item in $dictUtils.getDictList('yes_no')" :label="item.value" :key="item.id">{{item.label}}</el-radio>
|
|
|
</el-radio-group>
|
|
@@ -224,7 +207,6 @@
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="报销外勤天数" prop="opsAmount"
|
|
|
:rules="[
|
|
|
- {required: true, message:'报销外勤天数不能为空', trigger:'blur'}
|
|
|
]">
|
|
|
<el-input v-model="inputForm.opsAmount" placeholder="请填写报销外勤天数" ></el-input>
|
|
|
</el-form-item>
|
|
@@ -232,9 +214,8 @@
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="外勤是否已经报销" prop="isOpsReimbursement"
|
|
|
:rules="[
|
|
|
- {required: true, message:'外勤是否已经报销不能为空', trigger:'blur'}
|
|
|
]">
|
|
|
-<!-- <el-input v-model="inputForm.isOpsReimbursement" placeholder="请填写外勤是否已经报销" ></el-input>-->
|
|
|
+ <!-- <el-input v-model="inputForm.isOpsReimbursement" placeholder="请填写外勤是否已经报销" ></el-input>-->
|
|
|
<el-radio-group v-model="inputForm.isOpsReimbursement">
|
|
|
<el-radio v-for="item in $dictUtils.getDictList('yes_no')" :label="item.value" :key="item.id">{{item.label}}</el-radio>
|
|
|
</el-radio-group>
|
|
@@ -243,9 +224,8 @@
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="是否已经报销提成" prop="isCommissionReimbursement"
|
|
|
:rules="[
|
|
|
- {required: true, message:'是否已经报销提成不能为空', trigger:'blur'}
|
|
|
]">
|
|
|
-<!-- <el-input v-model="inputForm.isCommissionReimbursement" placeholder="请填写是否已经报销提成" ></el-input>-->
|
|
|
+ <!-- <el-input v-model="inputForm.isCommissionReimbursement" placeholder="请填写是否已经报销提成" ></el-input>-->
|
|
|
<el-radio-group v-model="inputForm.isCommissionReimbursement">
|
|
|
<el-radio v-for="item in $dictUtils.getDictList('yes_no')" :label="item.value" :key="item.id">{{item.label}}</el-radio>
|
|
|
</el-radio-group>
|
|
@@ -254,7 +234,6 @@
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="已报销金额" prop="reimbursementAmount"
|
|
|
:rules="[
|
|
|
- {required: true, message:'已报销金额不能为空', trigger:'blur'}
|
|
|
]">
|
|
|
<el-input v-model="inputForm.reimbursementAmount" placeholder="请填写已报销金额" ></el-input>
|
|
|
</el-form-item>
|
|
@@ -262,7 +241,6 @@
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="未报销金额" prop="unreimbursedAmount"
|
|
|
:rules="[
|
|
|
- {required: true, message:'未报销金额不能为空', trigger:'blur'}
|
|
|
]">
|
|
|
<el-input v-model="inputForm.unreimbursedAmount" placeholder="请填写未报销金额" ></el-input>
|
|
|
</el-form-item>
|
|
@@ -270,7 +248,6 @@
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="报销单号" prop="reimbursementNum"
|
|
|
:rules="[
|
|
|
- {required: true, message:'报销单号不能为空', trigger:'blur'}
|
|
|
]">
|
|
|
<el-input v-model="inputForm.reimbursementNum" placeholder="请填写报销单号" ></el-input>
|
|
|
</el-form-item>
|
|
@@ -278,9 +255,8 @@
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="报销日期" prop="reimbursementDateUi"
|
|
|
:rules="[
|
|
|
- {required: true, message:'报销日期不能为空', trigger:'blur'}
|
|
|
]">
|
|
|
-<!-- <el-input v-model="inputForm.reimbursementDate" placeholder="请填写报销日期" ></el-input>-->
|
|
|
+ <!-- <el-input v-model="inputForm.reimbursementDate" placeholder="请填写报销日期" ></el-input>-->
|
|
|
<el-date-picker
|
|
|
style="width:100%;"
|
|
|
v-model="inputForm.reimbursementDateUi"
|
|
@@ -293,7 +269,6 @@
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="签字评估师1" prop="evaluationPersonOne"
|
|
|
:rules="[
|
|
|
- {required: true, message:'签字评估师1不能为空', trigger:'blur'}
|
|
|
]">
|
|
|
<el-input v-model="inputForm.evaluationPersonOne" placeholder="请填写签字评估师1" ></el-input>
|
|
|
</el-form-item>
|
|
@@ -301,7 +276,6 @@
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="签字评估师2" prop="evaluationPersonTwo"
|
|
|
:rules="[
|
|
|
- {required: true, message:'签字评估师2不能为空', trigger:'blur'}
|
|
|
]">
|
|
|
<el-input v-model="inputForm.evaluationPersonTwo" placeholder="请填写签字评估师2" ></el-input>
|
|
|
</el-form-item>
|
|
@@ -309,9 +283,8 @@
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="项目状态" prop="status"
|
|
|
:rules="[
|
|
|
- {required: true, message:'项目状态不能为空', trigger:'blur'}
|
|
|
]">
|
|
|
-<!-- <el-input v-model="inputForm.status" placeholder="请填写项目状态" ></el-input>-->
|
|
|
+ <!-- <el-input v-model="inputForm.status" placeholder="请填写项目状态" ></el-input>-->
|
|
|
<el-select v-model="inputForm.status" placeholder="请选择">
|
|
|
<el-option
|
|
|
v-for="item in $dictUtils.getDictList('project_status')"
|
|
@@ -402,7 +375,8 @@
|
|
|
assessReportMessage: '',
|
|
|
assessBaseMessage: '',
|
|
|
invoiceMessage: '',
|
|
|
- isCommissionReimbursement: ''
|
|
|
+ isCommissionReimbursement: '',
|
|
|
+ itemType: ''
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -413,6 +387,48 @@
|
|
|
methods: {
|
|
|
init (method, id) {
|
|
|
this.method = method
|
|
|
+ this.inputForm = {
|
|
|
+ customerName: '',
|
|
|
+ projectName: '',
|
|
|
+ evaluationObjective: '',
|
|
|
+ projectType: '',
|
|
|
+ evaluationBaseDate: '',
|
|
|
+ evaluationBaseDateUi: '',
|
|
|
+ evaluationReportDate: '',
|
|
|
+ evaluationReportDateUi: '',
|
|
|
+ protocolNum: '',
|
|
|
+ documentNum: '',
|
|
|
+ projectHead: '',
|
|
|
+ waystEvaluation: '',
|
|
|
+ fixedAssetsEvaluation: '',
|
|
|
+ netAssetsEvaluation: '',
|
|
|
+ rentEvaluation: '',
|
|
|
+ forensics: '',
|
|
|
+ reportCharges: '',
|
|
|
+ currentDisposePerson: '',
|
|
|
+ isInvoice: '',
|
|
|
+ invoiceDate: '',
|
|
|
+ invoiceDateUi: '',
|
|
|
+ actualCharges: '',
|
|
|
+ isContractArchive: '',
|
|
|
+ isPapersIntact: '',
|
|
|
+ isPapersArchive: '',
|
|
|
+ opsAmount: '',
|
|
|
+ isOpsReimbursement: '',
|
|
|
+ reimbursementAmount: '',
|
|
|
+ unreimbursedAmount: '',
|
|
|
+ reimbursementNum: '',
|
|
|
+ reimbursementDate: '',
|
|
|
+ reimbursementDateUi: '',
|
|
|
+ evaluationPersonOne: '',
|
|
|
+ evaluationPersonTwo: '',
|
|
|
+ status: '',
|
|
|
+ assessReportMessage: '',
|
|
|
+ assessBaseMessage: '',
|
|
|
+ invoiceMessage: '',
|
|
|
+ isCommissionReimbursement: '',
|
|
|
+ itemType: ''
|
|
|
+ }
|
|
|
this.inputForm.id = id
|
|
|
if (method === 'add') {
|
|
|
this.title = `新建项目`
|
|
@@ -444,6 +460,7 @@
|
|
|
this.$refs['inputForm'].validate((valid) => {
|
|
|
if (valid) {
|
|
|
this.loading = true
|
|
|
+ this.inputForm.itemType = '1'
|
|
|
this.projectService.save(this.inputForm).then(({data}) => {
|
|
|
this.close()
|
|
|
this.$message.success(data)
|