|
@@ -1,12 +1,12 @@
|
|
|
<script setup>
|
|
<script setup>
|
|
|
import { useDataDictStore } from '@/store/modules/dataDict';
|
|
import { useDataDictStore } from '@/store/modules/dataDict';
|
|
|
-import { onMounted, reactive, ref, computed, getCurrentInstance, watch } from 'vue';
|
|
|
|
|
|
|
+ import { onMounted, reactive, ref, computed, getCurrentInstance, watch } from 'vue';
|
|
|
|
|
|
|
|
import tpfTimeRange from '@/components/tpf-time-range/tpf-time-range.vue';
|
|
import tpfTimeRange from '@/components/tpf-time-range/tpf-time-range.vue';
|
|
|
-import deviceTransfer from '@/components/device-transfer/index.vue';
|
|
|
|
|
|
|
+ import deviceTransfer from '@/components/device-transfer/index.vue';
|
|
|
|
|
|
|
|
import { updateRuiDuReportBatch, getRuiDuReportAttrs } from '@/api/ruiDu.js';
|
|
import { updateRuiDuReportBatch, getRuiDuReportAttrs } from '@/api/ruiDu.js';
|
|
|
-import config from '@/utils/config';
|
|
|
|
|
|
|
+ import config from '@/utils/config';
|
|
|
|
|
|
|
|
import { getTenantId, getAccessToken } from '@/utils/auth.js';
|
|
import { getTenantId, getAccessToken } from '@/utils/auth.js';
|
|
|
|
|
|
|
@@ -151,16 +151,26 @@ import config from '@/utils/config';
|
|
|
attr.actualValue = Number(attr.actualValue);
|
|
attr.actualValue = Number(attr.actualValue);
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
+
|
|
|
|
|
+ let platformWell = props.reportData.platformWell;
|
|
|
|
|
+
|
|
|
|
|
+ if (platformWell === 1) {
|
|
|
|
|
+ platformWell = id === props.reportData.id ? 1 : 2;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
const data = {
|
|
const data = {
|
|
|
id,
|
|
id,
|
|
|
timeRange: ['1970-01-01T00:00:00.008Z', '1970-01-01T00:00:00.008Z'],
|
|
timeRange: ['1970-01-01T00:00:00.008Z', '1970-01-01T00:00:00.008Z'],
|
|
|
projectDepartment: '',
|
|
projectDepartment: '',
|
|
|
costCenter: '',
|
|
costCenter: '',
|
|
|
dynamicFields: {},
|
|
dynamicFields: {},
|
|
|
- platformWell: props.reportData.platformWell,
|
|
|
|
|
|
|
+ platformWell,
|
|
|
companyId: props.reportData.companyId,
|
|
companyId: props.reportData.companyId,
|
|
|
deptId: props.reportData.deptId,
|
|
deptId: props.reportData.deptId,
|
|
|
- attachments: formDataCopy.attachments,
|
|
|
|
|
|
|
+ attachments: formDataCopy.attachments.map(item => {
|
|
|
|
|
+ item.bizId = id;
|
|
|
|
|
+ return item;
|
|
|
|
|
+ }),
|
|
|
deviceIds: formDataCopy.deviceIds,
|
|
deviceIds: formDataCopy.deviceIds,
|
|
|
startTime: formDataCopy.startTime,
|
|
startTime: formDataCopy.startTime,
|
|
|
endTime: formDataCopy.endTime,
|
|
endTime: formDataCopy.endTime,
|