From 2822c8a030f5dbe5cecb5b6ee677f97bba935107 Mon Sep 17 00:00:00 2001 From: jia <1451658316@qq.com> Date: Thu, 28 Dec 2023 17:32:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=BA=E5=8A=9B=E6=94=AF=E5=87=BA=E5=8F=8A?= =?UTF-8?q?=E7=95=8C=E9=9D=A2=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/procurement/index.vue | 4 +- src/views/bid_document_examination/edit.vue | 18 +- src/views/custom/edit.vue | 39 +-- src/views/custom_follow/edit.vue | 7 +- src/views/custom_follow/index.vue | 8 +- .../procurement_contract_change/edit.vue | 67 ++-- src/views/project/edit.vue | 78 ++--- src/views/project_estimate/edit.vue | 183 ++++++----- .../project_salary_detail/detail.vue | 186 ----------- .../project_salary_detail/edit.vue | 288 ------------------ .../project_salary_detail/index.vue | 176 ----------- src/views/project_salary_detail/index.vue | 116 +++++++ .../detail.vue | 33 +- .../list => project_salary_payment}/edit.vue | 0 .../list => project_salary_payment}/index.vue | 10 +- src/views/quotation/edit.vue | 11 +- 16 files changed, 348 insertions(+), 876 deletions(-) delete mode 100644 src/views/project_salary/project_salary_detail/detail.vue delete mode 100644 src/views/project_salary/project_salary_detail/edit.vue delete mode 100644 src/views/project_salary/project_salary_detail/index.vue create mode 100644 src/views/project_salary_detail/index.vue rename src/views/{project_salary/list => project_salary_payment}/detail.vue (87%) rename src/views/{project_salary/list => project_salary_payment}/edit.vue (100%) rename src/views/{project_salary/list => project_salary_payment}/index.vue (94%) diff --git a/src/components/procurement/index.vue b/src/components/procurement/index.vue index b0e86ce..57c4226 100644 --- a/src/components/procurement/index.vue +++ b/src/components/procurement/index.vue @@ -16,8 +16,8 @@
- - + + diff --git a/src/views/bid_document_examination/edit.vue b/src/views/bid_document_examination/edit.vue index 0268e05..3ec0128 100644 --- a/src/views/bid_document_examination/edit.vue +++ b/src/views/bid_document_examination/edit.vue @@ -3,12 +3,12 @@ - - - - - - + + + + + +
@@ -22,11 +22,7 @@ - - - - - + diff --git a/src/views/custom/edit.vue b/src/views/custom/edit.vue index abbeac6..7252def 100644 --- a/src/views/custom/edit.vue +++ b/src/views/custom/edit.vue @@ -29,7 +29,7 @@ - + @@ -233,6 +233,7 @@ const emit = defineEmits(['success', 'close']) const formRef = shallowRef() const popupRef = shallowRef>() const mode = ref('add') +const companyname = ref('') const list1 = reactive([]) const showDialog = ref(false); const list2 = reactive([]) @@ -245,8 +246,8 @@ const datas = reactive({ }); const customEvent = (e: any) => { - formData.custom_id = e.id; - formData.custom_name = e.name; + formData.parent_company = e.id; + companyname.value = e.name; showDialog.value = false; }; @@ -255,39 +256,19 @@ const customEvent = (e: any) => { const popupTitle = computed(() => { return mode.value == 'edit' ? '编辑客户表' : '新增客户表' }) +//验证 const checkPhone = (rule: any, value: any, callback: (arg0: Error) => any) => { - const phoneReg = /^1[3|4|5|7|8][0-9]{9}$/ - // if (!value) { - // return callback(new Error('电话号码不能为空')) - // } - // setTimeout(() => { - // if (phoneReg.test(value)) { - // callback() - // } else { - // callback(new Error('电话号码格式不正确')) - // } - // }, 100) - - if (value && phoneReg.test(value)) { - return callback(new Error('电话号码格式不正确')) + if (value && !/^1\d{10}$/.test(value)) { + callback(new Error('请输入正确的手机号码')); } else { callback() } + } const userEmail = (rule: any, value: string, callback: (arg0: Error | undefined) => void) => { const mailReg = /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+/ - // if (!value) { - // return callback(new Error('邮箱不能为空')) - // } - // setTimeout(() => { - // if (mailReg.test(value)) { - // callback() - // } else { - // callback(new Error('请输入正确的邮箱格式')) - // } - // }, 100) - if (value && mailReg.test(value)) { + if (value && !mailReg.test(value)) { return callback(new Error('请输入正确的邮箱格式')) } else { callback() @@ -328,7 +309,7 @@ const formData = reactive({ org_id: '', name: '', custom_type: '', - parent_company: 5565665, + parent_company: '', phone: '', credit_rating: '', province: '', diff --git a/src/views/custom_follow/edit.vue b/src/views/custom_follow/edit.vue index 88d3893..1ebb3a7 100644 --- a/src/views/custom_follow/edit.vue +++ b/src/views/custom_follow/edit.vue @@ -1,7 +1,7 @@