|
@@ -275,6 +275,10 @@ export default {
|
|
|
if(this.currentRow.reportTemplateJson?.basicInfoData) {
|
|
if(this.currentRow.reportTemplateJson?.basicInfoData) {
|
|
|
this.basicInfoData = this.currentRow.reportTemplateJson.basicInfoData || {};
|
|
this.basicInfoData = this.currentRow.reportTemplateJson.basicInfoData || {};
|
|
|
this.inspectionItems = this.currentRow.reportTemplateJson.inspectionItems || [];
|
|
this.inspectionItems = this.currentRow.reportTemplateJson.inspectionItems || [];
|
|
|
|
|
+
|
|
|
|
|
+ this.$set(this.basicInfoData, 'inspectionTime', this.basicInfoData.inspectionTime?.split(' ')[0] || '');
|
|
|
|
|
+ this.$set(this.basicInfoData, 'reviewTime', this.basicInfoData.reviewTime?.split(' ')[0] || '');
|
|
|
|
|
+ this.$set(this.basicInfoData, 'approvedDate', this.basicInfoData.approvedDate?.split(' ')[0] || '');
|
|
|
} else {
|
|
} else {
|
|
|
this.getBasicInfo();
|
|
this.getBasicInfo();
|
|
|
this.getInspectionItems();
|
|
this.getInspectionItems();
|
|
@@ -283,6 +287,9 @@ export default {
|
|
|
getBasicInfo() {
|
|
getBasicInfo() {
|
|
|
queryInspectionReportData(this.currentRow.id).then(res => {
|
|
queryInspectionReportData(this.currentRow.id).then(res => {
|
|
|
this.basicInfoData = res;
|
|
this.basicInfoData = res;
|
|
|
|
|
+ this.$set(this.basicInfoData, 'inspectionTime', this.basicInfoData.inspectionTime?.split(' ')[0] || '');
|
|
|
|
|
+ this.$set(this.basicInfoData, 'reviewTime', this.basicInfoData.reviewTime?.split(' ')[0] || '');
|
|
|
|
|
+ this.$set(this.basicInfoData, 'approvedDate', this.basicInfoData.approvedDate?.split(' ')[0] || '');
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
getInspectionItems() {
|
|
getInspectionItems() {
|