|
@@ -68,7 +68,7 @@
|
|
|
<el-row :gutter="10">
|
|
|
<el-col :span="24">
|
|
|
<el-form-item label="前期准备阶段:" label-width="180" class="form-item" prop="preparationPhase">
|
|
|
- <el-date-picker v-model="eqptBaseInfo.preparationPhase" value-format="YYYY年MM月" type="month"
|
|
|
+ <el-date-picker v-model="eqptBaseInfo.preparationPhase" value-format="YYYY年M月" type="month"
|
|
|
clearable style="width: 100%;" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -76,7 +76,7 @@
|
|
|
<el-row :gutter="10">
|
|
|
<el-col :span="24">
|
|
|
<el-form-item label="评估基准日:" label-width="180" class="form-item" prop="valuationBasisDate">
|
|
|
- <el-date-picker v-model="eqptBaseInfo.valuationBasisDate" value-format="YYYY年MM月DD日"
|
|
|
+ <el-date-picker v-model="eqptBaseInfo.valuationBasisDate" value-format="YYYY年M月D日"
|
|
|
type="date" clearable style="width: 100%;" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -84,7 +84,7 @@
|
|
|
<el-row :gutter="10">
|
|
|
<el-col :span="24">
|
|
|
<el-form-item label="现场调查日:" label-width="180" class="form-item" prop="fieldInvestigationDay">
|
|
|
- <el-date-picker v-model="eqptBaseInfo.fieldInvestigationDay" value-format="YYYY年MM月DD日"
|
|
|
+ <el-date-picker v-model="eqptBaseInfo.fieldInvestigationDay" value-format="YYYY年M月D日"
|
|
|
type="date" clearable style="width: 100%;" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -108,8 +108,8 @@
|
|
|
<el-col :span="24">
|
|
|
<el-form-item label="是否包含增值税:" label-width="180" class="form-item" prop="hasVAT">
|
|
|
<el-radio-group v-model="eqptBaseInfo.hasVAT">
|
|
|
- <el-radio value="true">是</el-radio>
|
|
|
- <el-radio value="false">否</el-radio>
|
|
|
+ <el-radio value="包含增值税">是</el-radio>
|
|
|
+ <el-radio value="不包含增值税">否</el-radio>
|
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -117,7 +117,7 @@
|
|
|
<el-row :gutter="10">
|
|
|
<el-col :span="24">
|
|
|
<el-form-item label="评估报告日:" label-width="180" class="form-item" prop="reportDate">
|
|
|
- <el-date-picker v-model="eqptBaseInfo.reportDate" value-format="YYYY年MM月DD日" type="date"
|
|
|
+ <el-date-picker v-model="eqptBaseInfo.reportDate" value-format="YYYY年M月D日" type="date"
|
|
|
clearable style="width: 100%;" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -125,7 +125,7 @@
|
|
|
<el-row :gutter="10">
|
|
|
<el-col :span="24">
|
|
|
<el-form-item label="报告有效期:" label-width="180" class="form-item" prop="reportValidity">
|
|
|
- <el-date-picker v-model="eqptBaseInfo.reportValidity" value-format="YYYY年MM月DD日"
|
|
|
+ <el-date-picker v-model="eqptBaseInfo.reportValidity" value-format="YYYY年M月D日"
|
|
|
:type="reportValidityDatePicker" range-separator="至" clearable style="width: 100%;" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -352,7 +352,7 @@
|
|
|
<el-row :gutter="10">
|
|
|
<el-col :span="24">
|
|
|
<el-form-item label="成立日期:" class="form-item" prop="consignorEstablishmentDate">
|
|
|
- <el-date-picker v-model="consignorInfo.consignorEstablishmentDate" value-format="YYYY年MM月DD日"
|
|
|
+ <el-date-picker v-model="consignorInfo.consignorEstablishmentDate" value-format="YYYY年M月D日"
|
|
|
type="date" clearable style="width: 100%;" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -414,7 +414,7 @@
|
|
|
<el-row :gutter="10">
|
|
|
<el-col :span="24">
|
|
|
<el-form-item label="成立日期:" class="form-item" prop="ownerEstablishmentDate">
|
|
|
- <el-date-picker v-model="propertyOwnerInfo.ownerEstablishmentDate" value-format="YYYY年MM月DD日"
|
|
|
+ <el-date-picker v-model="propertyOwnerInfo.ownerEstablishmentDate" value-format="YYYY年M月D日"
|
|
|
type="date" clearable style="width: 100%;" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -440,7 +440,8 @@
|
|
|
<script>
|
|
|
import { mapStores } from 'pinia'
|
|
|
import { assetsProjectInfo } from '@/stores/assetsProjectStore';
|
|
|
-import { updateReportBaseInfo, getReportBaseInfo, generateEquipmentReport } from '@/api/assetsReport'
|
|
|
+import { updateReportBaseInfo, getReportBaseInfo, generateEquipmentReport } from '@/api/assetsReport';
|
|
|
+import { getReferencesInfoById } from '@/api/assetsCalculate';
|
|
|
|
|
|
export default {
|
|
|
data() {
|
|
@@ -576,6 +577,7 @@ export default {
|
|
|
if (this.projectStore.reportProgress) {
|
|
|
this.getReportBaseInfo();
|
|
|
}
|
|
|
+ this.getReferencesInfoById();
|
|
|
},
|
|
|
computed: {
|
|
|
...mapStores(assetsProjectInfo),
|
|
@@ -617,7 +619,7 @@ export default {
|
|
|
if (valid) {
|
|
|
// 提交信息前将reportValidity的从数组改为字符串,并将对应的日期选择器类型改为date,不然日期选择器组件接收的数组会报错
|
|
|
this.reportValidityDatePicker = 'date';
|
|
|
- this.eqptBaseInfo.reportValidity = this.eqptBaseInfo.reportValidity.join('至');
|
|
|
+ this.eqptBaseInfo.reportValidity = this.eqptBaseInfo.reportValidity.join('起至');
|
|
|
let params = {};
|
|
|
params.reportId = this.projectStore.reportProgress.id;
|
|
|
params.baseInfo = JSON.stringify(this.eqptBaseInfo);
|
|
@@ -634,7 +636,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
// 提交信息之后再改回来
|
|
|
- const parts = this.eqptBaseInfo.reportValidity.split('至');
|
|
|
+ const parts = this.eqptBaseInfo.reportValidity.split('起至');
|
|
|
this.eqptBaseInfo.reportValidity = parts.map(part => part.trim());
|
|
|
this.reportValidityDatePicker = 'daterange';
|
|
|
})
|
|
@@ -646,16 +648,34 @@ export default {
|
|
|
getReportBaseInfo(this.projectStore.reportProgress.id).then(res => {
|
|
|
if (res.data) {
|
|
|
this.eqptBaseInfo = JSON.parse(res.data);
|
|
|
- const parts = this.eqptBaseInfo.reportValidity.split('至');
|
|
|
+ const parts = this.eqptBaseInfo.reportValidity.split('起至');
|
|
|
this.eqptBaseInfo.reportValidity = parts.map(part => part.trim());
|
|
|
// 返回不为空说明该步骤以前已经完成了,不需要更新本地缓存
|
|
|
this.needUpdateStore = false;
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- // 组装报告名字
|
|
|
- reportNameChange() {
|
|
|
-
|
|
|
+ // 根据测算表id获取生成机器设备融资项目报告引用的测算表信息
|
|
|
+ getReferencesInfoById() {
|
|
|
+ getReferencesInfoById(this.projectStore.reportProgress.calculateId).then(res => {
|
|
|
+ if (res.data) {
|
|
|
+ if (!this.eqptBaseInfo.assetsInfo.purchasePeriod) {
|
|
|
+ this.eqptBaseInfo.assetsInfo.purchasePeriod = res.data.purchasePeriod;
|
|
|
+ if (!this.eqptBaseInfo.assetsInfo.majorEquipmentAssets) {
|
|
|
+ this.eqptBaseInfo.assetsInfo.majorEquipmentAssets = res.data.majorEquipmentAssets;
|
|
|
+ }
|
|
|
+ if (!this.eqptBaseInfo.assetsInfo.assetCount) {
|
|
|
+ this.eqptBaseInfo.assetsInfo.assetCount = res.data.assetCount;
|
|
|
+ }
|
|
|
+ if (!this.eqptBaseInfo.assetsInfo.assetCount) {
|
|
|
+ this.eqptBaseInfo.assetsInfo.assetCount = res.data.assetCount;
|
|
|
+ }
|
|
|
+ if (!this.eqptBaseInfo.valuationBasisDate) {
|
|
|
+ this.eqptBaseInfo.valuationBasisDate = res.data.valuationBasisDate;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
// 生成机器设备报告word文件
|
|
|
generateEquipmentReport() {
|
|
@@ -666,6 +686,8 @@ export default {
|
|
|
message: res.message,
|
|
|
type: 'success'
|
|
|
})
|
|
|
+ // 更新本地缓存的测算表进度
|
|
|
+ this.projectStore.reportProgress.progress = 'FINISHED'
|
|
|
}
|
|
|
})
|
|
|
}
|