diff --git a/src/http/api/info/index.ts b/src/http/api/info/index.ts
new file mode 100644
index 0000000..394ab4d
--- /dev/null
+++ b/src/http/api/info/index.ts
@@ -0,0 +1,7 @@
+import { get, post } from '../../index'
+
+
+// 合同列表
+export const getListApi = (data: any = {}) => {
+ return get('/material-mall/notice/list', data)
+}
diff --git a/src/views/enterpriseZone/index.vue b/src/views/enterpriseZone/index.vue
index 13e7f2e..a582c0e 100644
--- a/src/views/enterpriseZone/index.vue
+++ b/src/views/enterpriseZone/index.vue
@@ -1,11 +1,25 @@
@@ -19,8 +33,8 @@ const leaseList = ref([
:header-cell-style="{ background: '#00a288', color: '#fff' }"
>
-
-
+
+
diff --git a/src/views/user/goodsManagement/index.vue b/src/views/user/goodsManagement/index.vue
index 3bcb8a3..123b892 100644
--- a/src/views/user/goodsManagement/index.vue
+++ b/src/views/user/goodsManagement/index.vue
@@ -300,6 +300,7 @@ const getDetailData = async (row: any) => {
if(addAndEditForm.tableList!=null){
addAndEditForm.tableList.forEach((item:any) =>{
equipTableList.value.push({
+ id:item.id,
identifyCode: item.identifyCode,
name2: item.insurancePdf[0].fileUrl,
checkMan: item.checkMan,
@@ -312,6 +313,7 @@ const getDetailData = async (row: any) => {
})
}else{
equipTableList.value = [{
+ id:'',
identifyCode: '',
name2: '',
checkMan: '',
@@ -322,11 +324,11 @@ const getDetailData = async (row: any) => {
examinationPdf: [],
}]
}
- addAndEditForm.id = addAndEditForm.tableList[0].id
}else{
if(addAndEditForm.tableList!=null){
addAndEditForm.tableList.forEach((item:any) =>{
equipTableList.value.push({
+ id:item.id,
identifyCode: item.identifyCode,
name2: item.insurancePdf[0].fileUrl,
checkMan: item.checkMan,
@@ -493,6 +495,7 @@ const dialogTypeChange = async () => {
addAndEditFormRef.value.clearValidate(['unitName', 'dayLeasePrice'])
equipTableList.value = []
equipTableList.value.push({
+ id: '',
identifyCode: '',
name2: '',
checkMan: '',
@@ -729,7 +732,7 @@ const submitFun = (type: any) => {
for (let i = 0; i < addAndEditForm.tableList.length; i++) {
const row = addAndEditForm.tableList[i];
for (const key in row) {
- if (row.hasOwnProperty(key) && (row[key] === null || row[key] === '' || row[key].length ===0) && key !== 'name2' && key !== 'name6') {
+ if (row.hasOwnProperty(key) && (row[key] === null || row[key] === '' || row[key].length ===0) && key !== 'name2' && key !== 'name6'&& key !== 'id') {
if(key=='identifyCode'){
ElMessage({
type: 'error',
@@ -1027,7 +1030,6 @@ const addAndEditForm = reactive({
examinationPdfs: [],
devInfoProperties: [],
tableList: [],
- id:'',
})
// const addAndEditFormTemp = reactive()
const uploadUrl = import.meta.env.VITE_API_URL + '/file/upload'
diff --git a/src/views/user/lessor/quality-manage/index.vue b/src/views/user/lessor/quality-manage/index.vue
index b599618..372346f 100644
--- a/src/views/user/lessor/quality-manage/index.vue
+++ b/src/views/user/lessor/quality-manage/index.vue
@@ -217,10 +217,11 @@
@@ -229,13 +230,13 @@
-
+
@@ -417,6 +418,7 @@ import {
} from 'http/api/quality-manage'
import { InfoFilled } from '@element-plus/icons-vue'
import { ElMessage } from 'element-plus'
+import dayjs from 'dayjs';
const total = ref(0)
const totalInDialog = ref(0)
@@ -463,6 +465,7 @@ const addOrEditForm = ref({
qcName: '',
qcUser: '',
qcTime: '',
+ nextCheckTime: '',
fileInfoList: [],
fileInfoTempList: [],
})
@@ -486,7 +489,7 @@ const checkMaxNum = (rule: any, value: any, callback: any) => {
const addOrEditFormRules = reactive({
maId: [{ required: true, message: '请选择关联装备', trigger: 'change' }],
- nextQcTime: [{ required: true, message: '请输入下次质检日期', trigger: 'blur' }],
+ nextCheckTime: [{ required: true, message: '请输入下次质检日期', trigger: 'blur' }],
qcUser: [{ required: true, message: '请输入质检员', trigger: 'change' }],
qcTime: [{ required: true, message: '请选择质检日期', trigger: 'change' }],
fileInfoList: [{ required: true, message: '请上传质检附件', trigger: 'blur' }],
@@ -634,9 +637,25 @@ const onFileChange = (fileList: any) => {
addOrEditForm.value.fileInfoTempList.push(...fileListTemp)
}
+
+const warningDays: any = ref(0)
const onChange = (value: any) => {
+ console.log('11111',value)
addOrEditForm.value.qcTime = ''
- addOrEditForm.value.nextQcTime = ''
+ addOrEditForm.value.nextCheckTime = ''
+ console.log('11111111',associationList)
+ associationList.value.forEach((e: any) => {
+ if (e.maId === value) {
+ console.log('11111111',e.maintenanceAlarmDay)
+ warningDays.value = Number(e.maintenanceAlarmDay)
+ }
+ })
+}
+const onQcChange = (value: any) => {
+ const currentDate = new Date(value);
+ currentDate.setDate(currentDate.getDate() + warningDays.value);
+ addOrEditForm.value.nextCheckTime = dayjs(currentDate).format('YYYY-MM-DD hh:mm:ss');
+
}
// 取消按钮