|
@@ -129,6 +129,14 @@
|
|
|
@click.stop="navigatorDetail(item)"
|
|
@click.stop="navigatorDetail(item)"
|
|
|
>查看详情</button
|
|
>查看详情</button
|
|
|
>
|
|
>
|
|
|
|
|
+ <button
|
|
|
|
|
+ v-show="item.auditStatus === 20 && rdNonProductFlag"
|
|
|
|
|
+ class="action-btn fill-btn"
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ @click.stop="navigatorEdit(item, 'true')"
|
|
|
|
|
+ >{{ $t("operation.time") }}</button
|
|
|
|
|
+ >
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -208,6 +216,14 @@
|
|
|
@click.stop="navigatorDetail(item)"
|
|
@click.stop="navigatorDetail(item)"
|
|
|
>查看详情</button
|
|
>查看详情</button
|
|
|
>
|
|
>
|
|
|
|
|
+ <button
|
|
|
|
|
+ v-show="item.auditStatus === 20 && rdNonProductFlag"
|
|
|
|
|
+ class="action-btn fill-btn"
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ @click.stop="navigatorEdit(item, 'true')"
|
|
|
|
|
+ >{{ $t("operation.time") }}</button
|
|
|
|
|
+ >
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view
|
|
<view
|
|
@@ -304,6 +320,7 @@ import {
|
|
|
getRuiduReportSummary,
|
|
getRuiduReportSummary,
|
|
|
getRuiduReportTeamSummary,
|
|
getRuiduReportTeamSummary,
|
|
|
} from "@/api/ruiduReport";
|
|
} from "@/api/ruiduReport";
|
|
|
|
|
+import { getLoginUserInfo } from "@/api/login";
|
|
|
import { specifiedSimpleDepts } from "@/api";
|
|
import { specifiedSimpleDepts } from "@/api";
|
|
|
import { getDeptId } from "@/utils/auth";
|
|
import { getDeptId } from "@/utils/auth";
|
|
|
|
|
|
|
@@ -314,6 +331,7 @@ const currentView = ref(0);
|
|
|
const teams = ref([]);
|
|
const teams = ref([]);
|
|
|
const teamLoading = ref(false);
|
|
const teamLoading = ref(false);
|
|
|
const years = ref([]);
|
|
const years = ref([]);
|
|
|
|
|
+const rdNonProductFlag = ref(false);
|
|
|
const timers = [];
|
|
const timers = [];
|
|
|
const filterPopup = ref(null);
|
|
const filterPopup = ref(null);
|
|
|
const deptOptions = ref([]);
|
|
const deptOptions = ref([]);
|
|
@@ -721,14 +739,23 @@ const navigatorDetail = (item) => {
|
|
|
: `/pages/ruiDu/detail?id=${item.id}`;
|
|
: `/pages/ruiDu/detail?id=${item.id}`;
|
|
|
uni.navigateTo({ url });
|
|
uni.navigateTo({ url });
|
|
|
};
|
|
};
|
|
|
-const navigatorEdit = (item) => {
|
|
|
|
|
|
|
+const navigatorEdit = (item, istime = "false") => {
|
|
|
const url =
|
|
const url =
|
|
|
item.projectId === null && item.taskId === null
|
|
item.projectId === null && item.taskId === null
|
|
|
- ? `/pages/ruiDu/create?id=${item.id}&isview=detail`
|
|
|
|
|
- : `/pages/ruiDu/edit?id=${item.id}&istime=false`;
|
|
|
|
|
|
|
+ ? `/pages/ruiDu/create?id=${item.id}&isview=${
|
|
|
|
|
+ istime === "true" ? "time" : "detail"
|
|
|
|
|
+ }`
|
|
|
|
|
+ : `/pages/ruiDu/edit?id=${item.id}&istime=${istime}`;
|
|
|
uni.navigateTo({ url });
|
|
uni.navigateTo({ url });
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+const getLoginUser = async () => {
|
|
|
|
|
+ const response = await getLoginUserInfo();
|
|
|
|
|
+ if (response.code === 0) {
|
|
|
|
|
+ rdNonProductFlag.value = response.data.rdNonProductFlag;
|
|
|
|
|
+ }
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
const loadDeptOptions = async () => {
|
|
const loadDeptOptions = async () => {
|
|
|
try {
|
|
try {
|
|
|
const response = await specifiedSimpleDepts(getDeptId());
|
|
const response = await specifiedSimpleDepts(getDeptId());
|
|
@@ -799,6 +826,7 @@ const queryReportTeamSummary = async (params) => {
|
|
|
|
|
|
|
|
queryReportSummary({ createTime: getCurrentYearRange() });
|
|
queryReportSummary({ createTime: getCurrentYearRange() });
|
|
|
queryReportTeamSummary();
|
|
queryReportTeamSummary();
|
|
|
|
|
+getLoginUser();
|
|
|
onMounted(loadDeptOptions);
|
|
onMounted(loadDeptOptions);
|
|
|
onUnmounted(() => timers.forEach((timer) => clearTimeout(timer)));
|
|
onUnmounted(() => timers.forEach((timer) => clearTimeout(timer)));
|
|
|
</script>
|
|
</script>
|