From fd9e8623debbb38824f0292a3b53d88d37eb4def Mon Sep 17 00:00:00 2001
From: zmj <1493694146@qq.com>
Date: Fri, 3 May 2024 14:59:57 +0800
Subject: [PATCH] add
---
.env.development | 2 +-
src/views/apply_with_seal/edit.vue | 23 +++++++++++------
.../edit.vue | 22 +++++++++++++++-
src/views/cost_projects/edit.vue | 18 +++++++------
src/views/data_reception/edit.vue | 25 +++++++++++++++++--
.../jianli_project_progress_report/edit.vue | 17 ++++++++-----
src/views/project_change_visa/edit.vue | 12 +++++++--
src/views/project_commission/edit.vue | 19 +++++++++++---
src/views/project_rectification/edit.vue | 12 ++++++---
.../task_handling_three_level_review/edit.vue | 21 ++++++++++------
10 files changed, 129 insertions(+), 42 deletions(-)
diff --git a/.env.development b/.env.development
index 7aa79be..2a54d74 100644
--- a/.env.development
+++ b/.env.development
@@ -1,5 +1,5 @@
NODE_ENV = 'development'
-VITE_APP_BASE_URL = 'http://ccc.cn/'
+VITE_APP_BASE_URL = 'https://ceshi-engineering.lihaink.cn/'
# VITE_APP_BASE_URL = 'http://www.eng.local/'
# VITE_APP_BASE_URL = 'http://192.168.1.5:9090/'
\ No newline at end of file
diff --git a/src/views/apply_with_seal/edit.vue b/src/views/apply_with_seal/edit.vue
index 87b2c2b..23f80f3 100644
--- a/src/views/apply_with_seal/edit.vue
+++ b/src/views/apply_with_seal/edit.vue
@@ -109,7 +109,7 @@
-
+
@@ -121,7 +121,7 @@
-
@@ -134,7 +134,7 @@
-
+
@@ -146,7 +146,7 @@
-
+
@@ -209,6 +209,7 @@ const formData = reactive({
org_id: "",
depar: '',
stampman: '',
+ stampman_name: '',
project_id: '',
project_name: '',
project_director: '',
@@ -217,11 +218,14 @@ const formData = reactive({
borrow: '',
returndate: '',
applicant: '',
+ applicant_name: '',
date: '',
sjborrow: '',
sjborrower: '',
+ sjborrower_name: '',
sjreturn: '',
returnee: '',
+ returnee_name: '',
annex: [],
projectInfo: {}
@@ -234,22 +238,27 @@ const customEvent = (e: any) => {
showDialog.value = false
}
-const tableKey = ref('')
+let keys;
+
//打开弹窗
const userclick = async (key) => {
- tableKey.value = key
+ keys=key
showDialog3.value = true
await nextTick()
personnel.value.open()
}
+
+
//确认
const submituser = (e: any) => {
- formData[tableKey.value] = e.name
+ formData[keys] = e.id
+ formData[keys+'_name'] = e.name
showDialog3.value = false
}
+
const chekcDate = (rule: any, value: any, callback: any) => {
if (new Date(formData.returndate) < new Date(formData.borrow)) {
callback(new Error('印章借用日期不能早于结束借用日期'))
diff --git a/src/views/approval_issuance_achievement_documents/edit.vue b/src/views/approval_issuance_achievement_documents/edit.vue
index b5cf049..83b5d69 100644
--- a/src/views/approval_issuance_achievement_documents/edit.vue
+++ b/src/views/approval_issuance_achievement_documents/edit.vue
@@ -28,7 +28,7 @@
-
+
@@ -49,6 +49,10 @@
+
@@ -71,6 +75,8 @@ const formRef = shallowRef()
const popupRef = shallowRef>()
const mode = ref('add')
const showDialog = ref(false)
+const showDialog3 = ref(false)
+const personnel = ref()
// 弹窗标题
@@ -91,6 +97,7 @@ const formData = reactive({
number: '',
apptime: '',
person: '',
+ person_name: "",
tips: '',
fd_1: '',
fd_2: '',
@@ -105,6 +112,19 @@ const customEvent = (e) => {
showDialog.value = false
}
+//打开弹窗
+const userclick = async () => {
+ showDialog3.value = true
+ await nextTick()
+ personnel.value.open()
+
+}
+//确认
+const submituser = (e: any) => {
+ formData.person_name = e.name
+ formData.person = e.id
+ showDialog3.value = false
+}
// 表单验证
const formRules = reactive({
diff --git a/src/views/cost_projects/edit.vue b/src/views/cost_projects/edit.vue
index 463d39b..4a8d119 100644
--- a/src/views/cost_projects/edit.vue
+++ b/src/views/cost_projects/edit.vue
@@ -1,6 +1,7 @@
@@ -117,7 +122,8 @@ const formRef = shallowRef()
const popupRef = shallowRef>()
const mode = ref('add')
const showDialog = ref(false)
-
+const showDialog3 = ref(false)
+const personnel = ref()
// 弹窗标题
const popupTitle = computed(() => {
@@ -134,6 +140,7 @@ const formData = reactive({
project_num: "",
apptime: '',
person: '',
+ person_name: '',
number: '',
position: '',
tips: '',
@@ -148,6 +155,20 @@ const formData = reactive({
})
+//打开弹窗
+const userclick = async () => {
+ showDialog3.value = true
+ await nextTick()
+ personnel.value.open()
+
+}
+//确认
+const submituser = (e: any) => {
+ formData.person_name = e.name
+ formData.person = e.id
+ showDialog3.value = false
+}
+
const customEvent = (e) => {
formData.project_id = e.id
formData.project_name = e.project_name
diff --git a/src/views/jianli_project_progress_report/edit.vue b/src/views/jianli_project_progress_report/edit.vue
index 2652f2d..fe4c204 100644
--- a/src/views/jianli_project_progress_report/edit.vue
+++ b/src/views/jianli_project_progress_report/edit.vue
@@ -21,13 +21,13 @@
-
+
-
+
@@ -76,7 +76,7 @@
-
+
@@ -151,8 +151,10 @@ const formData = reactive({
project_name: '',
project_num: '',
bm_master: '',
+ bm_master_name: '',
wt_unit: '',
xm_master: '',
+ xm_master_name: '',
start_date: '',
end_date: '',
duration: '',
@@ -160,6 +162,7 @@ const formData = reactive({
done_progress: '',
bjd_progress: '',
djr: '',
+ djr_name: '',
apptime: '',
jdms: '',
datas: '',
@@ -181,9 +184,11 @@ const customEvent = (e: any) => {
formData.xm_master = e.principal_name
showDialog.value = false
}
+let keys;
//打开弹窗
-const userclick = async () => {
+const userclick = async (key) => {
+ keys=key
showDialog3.value = true
await nextTick()
personnel.value.open()
@@ -193,8 +198,8 @@ const userclick = async () => {
//确认
const submituser = (e: any) => {
- formData['bm_master'] = e.name
- // formData.project_change_visa_content[tableIndex.value][tableKey.value + '_id'] = e.id
+ formData[keys] = e.id
+ formData[keys+'_name'] = e.name
showDialog3.value = false
}
diff --git a/src/views/project_change_visa/edit.vue b/src/views/project_change_visa/edit.vue
index 8737add..065a993 100644
--- a/src/views/project_change_visa/edit.vue
+++ b/src/views/project_change_visa/edit.vue
@@ -23,7 +23,7 @@
-
+
@@ -165,6 +165,7 @@ const formData = reactive({
project_num: '',
projectInfo: {},
djr: '',
+ djr_name: '',
djrq: '',
project_change_visa_content: [
]
@@ -196,8 +197,15 @@ const userclick = async (e: any, key) => {
//确认
const submituser = (e: any) => {
- formData.project_change_visa_content[tableIndex.value][tableKey.value] = e.name
+ if(tableIndex.value=='djr'){
+
+ formData.djr=e.id
+ formData.djr_name=e.name
+
+ }else{
+ formData.project_change_visa_content[tableIndex.value][tableKey.value] = e.name
formData.project_change_visa_content[tableIndex.value][tableKey.value + '_id'] = e.id
+ }
showDialog3.value = false
}
diff --git a/src/views/project_commission/edit.vue b/src/views/project_commission/edit.vue
index f1780de..ff064fe 100644
--- a/src/views/project_commission/edit.vue
+++ b/src/views/project_commission/edit.vue
@@ -1,6 +1,7 @@