|
@@ -442,6 +442,7 @@ const removeReportDetailRow = (index) => {
|
|
|
|
|
|
|
|
const taskId = ref(undefined);
|
|
const taskId = ref(undefined);
|
|
|
const taskOptions = ref([]);
|
|
const taskOptions = ref([]);
|
|
|
|
|
+const noGasTasks = ref([]);
|
|
|
|
|
|
|
|
const inputCurrentDepth = useDebounceFn(function inputCurrentDepth(list) {
|
|
const inputCurrentDepth = useDebounceFn(function inputCurrentDepth(list) {
|
|
|
const details = reportDetails.value;
|
|
const details = reportDetails.value;
|
|
@@ -630,6 +631,7 @@ onLoad(async (option) => {
|
|
|
|
|
|
|
|
const daily = detail ?? {
|
|
const daily = detail ?? {
|
|
|
wellNamePair: {},
|
|
wellNamePair: {},
|
|
|
|
|
+ noGasTasks: [],
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
taskOptions.value = Object.keys(daily.wellNamePair ?? {}).map((key) => ({
|
|
taskOptions.value = Object.keys(daily.wellNamePair ?? {}).map((key) => ({
|
|
@@ -637,6 +639,8 @@ onLoad(async (option) => {
|
|
|
value: Number(key),
|
|
value: Number(key),
|
|
|
}));
|
|
}));
|
|
|
|
|
|
|
|
|
|
+ noGasTasks.value = (daily.noGasTasks ?? []).map(Number);
|
|
|
|
|
+
|
|
|
taskId.value = taskOptions.value[0]?.value || undefined;
|
|
taskId.value = taskOptions.value[0]?.value || undefined;
|
|
|
|
|
|
|
|
const data = await getDeptName(detail.deptId);
|
|
const data = await getDeptName(detail.deptId);
|
|
@@ -1453,7 +1457,9 @@ const onSubmit = async () => {
|
|
|
// 增加判断条件:如果当日运转时间H等于24,则非生产原因和非生产时间H为非必填,否则为必填
|
|
// 增加判断条件:如果当日运转时间H等于24,则非生产原因和非生产时间H为非必填,否则为必填
|
|
|
if (
|
|
if (
|
|
|
nonSumItem.description === "dailyGasInjection" &&
|
|
nonSumItem.description === "dailyGasInjection" &&
|
|
|
- deptName.value === "rh"
|
|
|
|
|
|
|
+ deptName.value === "rh" &&
|
|
|
|
|
+ taskId.value &&
|
|
|
|
|
+ !noGasTasks.value.includes(taskId.value)
|
|
|
) {
|
|
) {
|
|
|
if (dailyInjectGasTime.fillContent > 0) {
|
|
if (dailyInjectGasTime.fillContent > 0) {
|
|
|
if (nonSumItem.fillContent <= 0) {
|
|
if (nonSumItem.fillContent <= 0) {
|