diff --git a/src/views/mechanical_files/inspect_annually/add.vue b/src/views/mechanical_files/inspect_annually/add.vue
index 01c29a2..7e665c5 100644
--- a/src/views/mechanical_files/inspect_annually/add.vue
+++ b/src/views/mechanical_files/inspect_annually/add.vue
@@ -348,6 +348,9 @@ const getDueDate = () => {
}
}
form.value.DUE_DATE = timeTransformation(form.value.PROCESSING_DATE, num);
+ var dueDate = new Date(form.value.DUE_DATE);
+ dueDate.setDate(dueDate.getDate() - 1)
+ form.value.DUE_DATE = subtractDaysFromDate(dueDate,0)
if (form.value.REMINDER_DAYS) {
form.value.REMINDER_DATE = subtractDaysFromDate(
form.value.DUE_DATE,
diff --git a/src/views/mechanical_files/insure/add.vue b/src/views/mechanical_files/insure/add.vue
index 0fb3d2f..399270c 100644
--- a/src/views/mechanical_files/insure/add.vue
+++ b/src/views/mechanical_files/insure/add.vue
@@ -420,6 +420,9 @@ const getBusInfo = (val) => {
const getDueDate = (val) => {
if (val) {
form.value.DUE_DATE = timeTransformation(val, 12);
+ var date = new Date(form.value.DUE_DATE);
+ date.setDate(date.getDate() - 1)
+ form.value.DUE_DATE = subtractDaysFromDate(date,0)
if (form.value.REMINDER_DAYS) {
form.value.REMINDER_DATE = subtractDaysFromDate(
form.value.DUE_DATE,
diff --git a/src/views/mechanical_files/maintenance/add.vue b/src/views/mechanical_files/maintenance/add.vue
index e7d91a0..fbdc879 100644
--- a/src/views/mechanical_files/maintenance/add.vue
+++ b/src/views/mechanical_files/maintenance/add.vue
@@ -341,6 +341,9 @@ const getDueDate = () => {
form.value.MAINTENANCE_CYCLE,
true
);
+ var date = new Date(form.value.DUE_DATE);
+ date.setDate(date.getDate() - 1)
+ form.value.DUE_DATE = subtractDaysFromDate(date, 0);
if (form.value.REMINDER_DAYS) {
form.value.REMINDER_DATE = subtractDaysFromDate(
form.value.DUE_DATE,
diff --git a/src/views/mechanical_files/operations/add.vue b/src/views/mechanical_files/operations/add.vue
index 8d5e25e..c45f942 100644
--- a/src/views/mechanical_files/operations/add.vue
+++ b/src/views/mechanical_files/operations/add.vue
@@ -199,13 +199,13 @@
-
+
@@ -277,6 +277,7 @@ const data = reactive({
vehicleList: [],
busInfo: {
DRIVING_LICENSE_IMG: [],
+ OPERATION_CERTIFICATE_IMG: [],
PLATE_NUMBER: "",
VIN: "",
TRAILER_TYPE: "",
@@ -317,6 +318,9 @@ const getDueDate = () => {
}
}
form.value.DUE_DATE = timeTransformation(form.value.PROCESSING_DATE, num);
+ var date = new Date(form.value.DUE_DATE);
+ date.setDate(date.getDate() - 1);
+ form.value.DUE_DATE = subtractDaysFromDate(date,0);
if (form.value.REMINDER_DAYS) {
form.value.REMINDER_DATE = subtractDaysFromDate(
form.value.DUE_DATE,
@@ -358,6 +362,7 @@ const getVehicle = async (event) => {
data.busInfo.CAR_OWNERS_TEL = "";
data.busInfo.INITIAL_REGISTRATION_DATE = "";
data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile([]);
+ data.busInfo.OPERATION_CERTIFICATE_IMG = addingPrefixToFile([]);
};
const fnBusChange = async (event) => {
if (!OPERATIONS_ID) {
@@ -375,6 +380,9 @@ const fnBusChange = async (event) => {
data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile(
resData.drivingLicenseImgs
);
+ data.busInfo.OPERATION_CERTIFICATE_IMG = addingPrefixToFile(
+ resData.operatingcertificateImgs
+ );
};
const getBusInfo = (val) => {
if (val) {
diff --git a/src/views/mechanical_files/operations/view.vue b/src/views/mechanical_files/operations/view.vue
index d54166a..ceeae8c 100644
--- a/src/views/mechanical_files/operations/view.vue
+++ b/src/views/mechanical_files/operations/view.vue
@@ -113,6 +113,7 @@ const data = reactive({
CAR_OWNERS: "",
CAR_OWNERS_TEL: "",
INITIAL_REGISTRATION_DATE: "",
+ OPERATION_CERTIFICATE_IMG: []
},
});
const fnBusChange = async (event) => {
@@ -128,7 +129,9 @@ const fnGetData = async () => {
info.value = resData.pd;
info.value.OPERATIONSINFO = [];
fnBusChange(resData.pd.VEHICLE);
- info.value.OPERATIONSINFO = addingPrefixToFile(resData.operationsinfoImgs);
+ info.value.OPERATIONSINFO = addingPrefixToFile(
+ resData.operationsinfoImgs
+ );
};
fnGetData();
diff --git a/src/views/mechanical_files/taxation_manage/add.vue b/src/views/mechanical_files/taxation_manage/add.vue
index 0deaaa5..b833144 100644
--- a/src/views/mechanical_files/taxation_manage/add.vue
+++ b/src/views/mechanical_files/taxation_manage/add.vue
@@ -144,7 +144,7 @@
-
+
{
const year = date.getFullYear();
let month = date.getMonth() + 1;
month = month < 10 ? "0" + month : month;
- let day = date.getDate();
+ let day = date.getDate() - 1;
day = day < 10 ? "0" + day : day;
form.value.EXPIRE_DATE = year + "-" + month + "-" + day;
if (form.value.TRANSACTION_DATA === null) {
diff --git a/src/views/mechanical_files/taxation_manage/edit.vue b/src/views/mechanical_files/taxation_manage/edit.vue
index c38004f..adbfb77 100644
--- a/src/views/mechanical_files/taxation_manage/edit.vue
+++ b/src/views/mechanical_files/taxation_manage/edit.vue
@@ -324,7 +324,7 @@ const fnGetExpireDate = async () => {
const year = date.getFullYear();
let month = date.getMonth() + 1;
month = month < 10 ? "0" + month : month;
- let day = date.getDate();
+ let day = date.getDate() - 1;
day = day < 10 ? "0" + day : day;
form.value.EXPIRE_DATE = year + "-" + month + "-" + day;
}
diff --git a/src/views/security_investment/extraction_and_use/index.vue b/src/views/security_investment/extraction_and_use/index.vue
index 82d4c7b..133b259 100644
--- a/src/views/security_investment/extraction_and_use/index.vue
+++ b/src/views/security_investment/extraction_and_use/index.vue
@@ -212,6 +212,7 @@ const fnDelete = debounce(
await setExtractionAndUseBatchDelete({ DATA_IDS });
ElMessage.success("删除成功");
fnGetData();
+
},
{ atBegin: true }
);