|
|
@@ -125,7 +125,7 @@
|
|
|
:label="$t('workOrder.approver')"
|
|
|
name="approvalId"
|
|
|
:required="true"
|
|
|
- v-if="maintain.ifDeal == 0"
|
|
|
+ v-if="maintain.ifDeal == 0 && deptName !== 'rh'"
|
|
|
>
|
|
|
<uni-data-select
|
|
|
:clear="false"
|
|
|
@@ -280,7 +280,11 @@ import {
|
|
|
nextTick,
|
|
|
getCurrentInstance,
|
|
|
} from "vue";
|
|
|
-import { createFault, getFailureApprovalList } from "@/api/fault.js";
|
|
|
+import {
|
|
|
+ createFault,
|
|
|
+ getFailureApprovalList,
|
|
|
+ getDeptName,
|
|
|
+} from "@/api/fault.js";
|
|
|
import dayjs from "dayjs";
|
|
|
import { uploadFile } from "@/api";
|
|
|
|
|
|
@@ -320,6 +324,8 @@ const selectedDevices = ref([]);
|
|
|
const onAddDevice = () => {
|
|
|
deviceSingleRef.value.open();
|
|
|
};
|
|
|
+
|
|
|
+let deptName = ref("");
|
|
|
const onChooseDevice = (data) => {
|
|
|
console.log("onChooseDevice", data);
|
|
|
maintain.value.deviceId = data.id;
|
|
|
@@ -327,6 +333,11 @@ const onChooseDevice = (data) => {
|
|
|
maintain.value.deviceCode = data.deviceCode;
|
|
|
maintain.value.deviceName = data.deviceName;
|
|
|
console.log("onChooseDevice-maintain", maintain.value);
|
|
|
+
|
|
|
+ getDeptName(data.id).then((res) => {
|
|
|
+ console.log("🚀 ~ getDeptName>>>>>>>>>>>>>>>>>>>> ~ res:", res);
|
|
|
+ deptName.value = res.data;
|
|
|
+ });
|
|
|
};
|
|
|
// 上传图片
|
|
|
const upload = async (event) => {
|