diff --git a/src/views/enterprise/qualitySupervision/components/transformInfo.vue b/src/views/enterprise/qualitySupervision/components/transformInfo.vue
index 2837143..66802bf 100644
--- a/src/views/enterprise/qualitySupervision/components/transformInfo.vue
+++ b/src/views/enterprise/qualitySupervision/components/transformInfo.vue
@@ -92,7 +92,7 @@
@row-click="rowClick"
>
-
+
{});
font-family: Source Han Sans CN-Regular, Source Han Sans CN;
font-weight: 400;
color: #333333;
+ overflow-wrap: anywhere;
}
.imgList {
display: flex;
diff --git a/src/views/enterprise/safetySupervision/components/transformInfo.vue b/src/views/enterprise/safetySupervision/components/transformInfo.vue
index 6a18798..82b475b 100644
--- a/src/views/enterprise/safetySupervision/components/transformInfo.vue
+++ b/src/views/enterprise/safetySupervision/components/transformInfo.vue
@@ -92,7 +92,7 @@
@row-click="rowClick"
>
-
+
{});
font-family: Source Han Sans CN-Regular, Source Han Sans CN;
font-weight: 400;
color: #333333;
+ overflow-wrap: anywhere;
}
.imgList {
display: flex;
diff --git a/src/views/goverment/qualitySupervision/components/orderAdd.vue b/src/views/goverment/qualitySupervision/components/orderAdd.vue
index bc7eccd..24c5931 100644
--- a/src/views/goverment/qualitySupervision/components/orderAdd.vue
+++ b/src/views/goverment/qualitySupervision/components/orderAdd.vue
@@ -79,6 +79,7 @@
placeholder="请选择日期"
format="YYYY-MM-DD HH:mm:ss"
value-format="YYYY-MM-DD HH:mm:ss"
+ :disabledDate="disabledDate"
/>
整改类型:
@@ -196,7 +197,7 @@
:cell-style="{ textAlign: 'center', height: '40px' }"
>
-
+
查询
-
+
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
@@ -435,7 +433,7 @@ import { ElMessage, ElMessageBox } from "element-plus";
import type { FormInstance, UploadProps } from "element-plus";
import {
addDividerQuestion,
- AIengList,
+ getEngineeringApproveList,
AIproList,
getEngineerInfo,
getProjectInfo,
@@ -491,6 +489,7 @@ const transformDialog = ref(false); // 整改记录对话框
const recordData = ref([]); // 整改记录表格数据
const basicData = ref({
// 基础信息
+ requireType: 1,
opSignature: [],
supervisorSignature: [],
inspectSignature: [],
@@ -501,6 +500,16 @@ const dialogStyle = ref({
});
const selectedMemberList = ref([]); // 选中的检查人员列表
const selectedSmallList = ref([]); // 选中的小项列表
+// 设置日期的禁用状态
+const disabledDate = date => {
+ let todayTime = new Date().getTime();
+ let dateTime = date.getTime();
+ if (dateTime < todayTime) {
+ return true;
+ } else {
+ return false;
+ }
+};
const deleteImg = (arrIndex, index) => {
// 删除签名图片
switch (arrIndex) {
@@ -591,6 +600,7 @@ const searchData = () => {
};
const getRowDetails = async () => {
basicData.value = {
+ requireType: 1,
opSignature: [],
supervisorSignature: [],
inspectSignature: [],
@@ -610,10 +620,12 @@ const getRowDetails = async () => {
const getEngieerData = async () => {
// 工程列表
let requestData = {
- engineeringName: projectForm.value.name
+ engineeringName: projectForm.value.name,
+ pageSize: -1,
+ pageNo: -1
};
- const res = await AIengList(requestData);
- projectTableData.value = res.result;
+ const res = await getEngineeringApproveList(requestData);
+ projectTableData.value = res.result.records;
console.log(res);
};
const getProjectData = async () => {
@@ -728,6 +740,22 @@ const submitForm = async () => {
};
// 全部提交
const allSubmit = async () => {
+ if (!(projectSelectedData.value.projectName || projectSelectedData.value.engineeringName)) {
+ ElMessage.error("请选择工程/项目");
+ return;
+ }
+ // if (!basicData.value.selectedMember) {
+ // ElMessage.error("请选择检查人员");
+ // return;
+ // }
+ if (!basicData.value.deadline) {
+ ElMessage.error("请选择整改期限");
+ return;
+ }
+ if (recordData.value.length == 0) {
+ ElMessage.error("请添加隐患问题");
+ return;
+ }
recordData.value.map(item => {
item.image = JSON.stringify(item.image);
});
@@ -768,6 +796,7 @@ watch(
visible1.value = n;
if (n) {
basicData.value = {
+ requireType: 1,
opSignature: [],
supervisorSignature: [],
inspectSignature: [],
diff --git a/src/views/goverment/qualitySupervision/components/transformInfo.vue b/src/views/goverment/qualitySupervision/components/transformInfo.vue
index 371e8a6..d172e3b 100644
--- a/src/views/goverment/qualitySupervision/components/transformInfo.vue
+++ b/src/views/goverment/qualitySupervision/components/transformInfo.vue
@@ -86,13 +86,14 @@
-
+
{});
font-family: Source Han Sans CN-Regular, Source Han Sans CN;
font-weight: 400;
color: #333333;
+ overflow-wrap: anywhere;
}
.imgList {
display: flex;
diff --git a/src/views/goverment/safetySupervision/components/orderAdd.vue b/src/views/goverment/safetySupervision/components/orderAdd.vue
index cef2818..b94ed5a 100644
--- a/src/views/goverment/safetySupervision/components/orderAdd.vue
+++ b/src/views/goverment/safetySupervision/components/orderAdd.vue
@@ -79,6 +79,7 @@
placeholder="请选择日期"
format="YYYY-MM-DD HH:mm:ss"
value-format="YYYY-MM-DD HH:mm:ss"
+ :disabledDate="disabledDate"
/>
整改类型:
@@ -190,13 +191,14 @@
-
+
查询
-
+
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
@@ -433,7 +432,7 @@ import { ElMessage, ElMessageBox } from "element-plus";
import type { FormInstance, UploadProps } from "element-plus";
import {
addDividerQuestion,
- AIengList,
+ getEngineeringApproveList,
AIproList,
getEngineerInfo,
getProjectInfo,
@@ -488,6 +487,7 @@ const transformDialog = ref(false); // 整改记录对话框
const recordData = ref([]); // 整改记录表格数据
const basicData = ref({
// 基础信息
+ requireType: 1,
opSignature: [],
supervisorSignature: [],
inspectSignature: [],
@@ -498,6 +498,16 @@ const dialogStyle = ref({
});
const selectedMemberList = ref([]); // 选中的检查人员列表
const selectedSmallList = ref([]); // 选中的小项列表
+// 设置日期的禁用状态
+const disabledDate = date => {
+ let todayTime = new Date().getTime();
+ let dateTime = date.getTime();
+ if (dateTime < todayTime) {
+ return true;
+ } else {
+ return false;
+ }
+};
const deleteImg = (arrIndex, index) => {
// 删除签名图片
switch (arrIndex) {
@@ -588,6 +598,7 @@ const searchData = () => {
};
const getRowDetails = async () => {
basicData.value = {
+ requireType: 1,
opSignature: [],
supervisorSignature: [],
inspectSignature: [],
@@ -607,10 +618,12 @@ const getRowDetails = async () => {
const getEngieerData = async () => {
// 工程列表
let requestData = {
- engineeringName: projectForm.value.name
+ engineeringName: projectForm.value.name,
+ pageSize: -1,
+ pageNo: -1
};
- const res = await AIengList(requestData);
- projectTableData.value = res.result;
+ const res = await getEngineeringApproveList(requestData);
+ projectTableData.value = res.result.records;
console.log(res);
};
const getProjectData = async () => {
@@ -710,6 +723,22 @@ const submitForm = async () => {
};
// 全部提交
const allSubmit = async () => {
+ if (!(projectSelectedData.value.projectName || projectSelectedData.value.engineeringName)) {
+ ElMessage.error("请选择工程/项目");
+ return;
+ }
+ // if (!basicData.value.selectedMember) {
+ // ElMessage.error("请选择检查人员");
+ // return;
+ // }
+ if (!basicData.value.deadline) {
+ ElMessage.error("请选择整改期限");
+ return;
+ }
+ if (recordData.value.length == 0) {
+ ElMessage.error("请添加隐患问题");
+ return;
+ }
recordData.value.map(item => {
item.image = JSON.stringify(item.image);
});
@@ -750,6 +779,7 @@ watch(
visible1.value = n;
if (n) {
basicData.value = {
+ requireType: 1,
opSignature: [],
supervisorSignature: [],
inspectSignature: [],
@@ -958,7 +988,7 @@ onMounted(() => {
.imgList {
display: flex;
flex-wrap: wrap;
- >div{
+ > div {
position: relative;
}
:deep(.el-icon) {
diff --git a/src/views/goverment/safetySupervision/components/transformInfo.vue b/src/views/goverment/safetySupervision/components/transformInfo.vue
index cc33ced..720947f 100644
--- a/src/views/goverment/safetySupervision/components/transformInfo.vue
+++ b/src/views/goverment/safetySupervision/components/transformInfo.vue
@@ -91,7 +91,7 @@
@row-click="rowClick"
>
-
+
{});
font-family: Source Han Sans CN-Regular, Source Han Sans CN;
font-weight: 400;
color: #333333;
+ overflow-wrap: anywhere;
}
.imgList {
display: flex;
diff --git a/src/views/project/qualitySupervision/components/transformInfo.vue b/src/views/project/qualitySupervision/components/transformInfo.vue
index 2f10905..0a8e0a7 100644
--- a/src/views/project/qualitySupervision/components/transformInfo.vue
+++ b/src/views/project/qualitySupervision/components/transformInfo.vue
@@ -92,7 +92,7 @@
@row-click="rowClick"
>
-
+
{});
font-family: Source Han Sans CN-Regular, Source Han Sans CN;
font-weight: 400;
color: #333333;
+ overflow-wrap: anywhere;
}
.imgList {
display: flex;
diff --git a/src/views/project/safetySupervision/components/transformInfo.vue b/src/views/project/safetySupervision/components/transformInfo.vue
index 1a643cb..5dc6f9b 100644
--- a/src/views/project/safetySupervision/components/transformInfo.vue
+++ b/src/views/project/safetySupervision/components/transformInfo.vue
@@ -92,7 +92,7 @@
@row-click="rowClick"
>
-
+
{});
font-family: Source Han Sans CN-Regular, Source Han Sans CN;
font-weight: 400;
color: #333333;
+ overflow-wrap: anywhere;
}
.imgList {
display: flex;