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 @@