|
|
@@ -175,7 +175,6 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
-import { getDeptId } from "@/utils/auth.js";
|
|
|
import { ref, reactive, getCurrentInstance, watch, onMounted } from "vue";
|
|
|
import { onReady, onLoad } from "@dcloudio/uni-app";
|
|
|
import dayjs from "dayjs";
|
|
|
@@ -212,12 +211,6 @@ const accumulatedValues = reactive({
|
|
|
"当日注气量-方": 0,
|
|
|
});
|
|
|
|
|
|
-onMounted(() => {
|
|
|
- getDeptName(getDeptId()).then((res) => {
|
|
|
- deptName.value = res.data;
|
|
|
- });
|
|
|
-});
|
|
|
-
|
|
|
onReady(() => {
|
|
|
console.log("onReady");
|
|
|
});
|
|
|
@@ -235,7 +228,10 @@ onLoad(async (option) => {
|
|
|
// 请求工单详情
|
|
|
if (params.value?.orderId) {
|
|
|
const detail = (await getRecordFillingDetail(params.value.orderId)).data;
|
|
|
- console.log("🚀getRecordFillingDetail ~ detail:", detail);
|
|
|
+
|
|
|
+ const data = await getDeptName(detail.deptId);
|
|
|
+ deptName.value = data.data;
|
|
|
+
|
|
|
params.value = {
|
|
|
...params.value,
|
|
|
...detail,
|