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 @@
-
+
@@ -253,6 +248,8 @@ const showDialog = ref(false)
const showDialog1 = ref(false)
const project_name = ref('')
const project_code = ref('')
+const supplier_name = ref('')
+const supplier_code = ref('')
const formDataannex = reactive([])
const tableData = reactive([])
const tableData1 = reactive([])
@@ -365,17 +362,25 @@ const formData = reactive({
})
const customEvent = (e: any) => {
project_name.value = e.name
- formData.project_id = e.id
+ formData.procurement_contract_id = e.id
+ formData.supplier_id = e.supplier_id
+ formData.contract_no = e.contract_name
+ formData.contract_type = e.contract_type
+ formData.pay_type = e.pay_type
+ formData.account_period = e.account_period
+ formData.signing_date = e.signing_date
+ formData.amount = e.amount
+ formData.amount_daxie = e.amount_daxie
+ formData.retention_money = e.retention_money
+ formData.amount_excluding_tax = e.amount_excluding_tax
+ project_name.value = e.project_name
+ supplier_name.value = e.supplier_name
+ supplier_code.value = e.supplier_code
project_code.value = e.project_code
showDialog.value = false;
- showDialog.value = false;
};
-const customEvent1 = (e: any) => {
- showDialog1.value = false;
-};
-
// 表单验证
const formRules = reactive({
diff --git a/src/views/project/edit.vue b/src/views/project/edit.vue
index fc8fec3..e2d0f01 100644
--- a/src/views/project/edit.vue
+++ b/src/views/project/edit.vue
@@ -3,12 +3,12 @@
-
+
-
+
@@ -16,11 +16,11 @@
-
+
-
+
@@ -34,28 +34,28 @@
-
+
-
+
-
+
-
+
-
+
@@ -64,31 +64,55 @@
-
+
-
+
-
+
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -98,24 +122,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -125,11 +131,7 @@
-
-
-
-
-
+
@@ -184,7 +186,7 @@
-
+
diff --git a/src/views/project_estimate/edit.vue b/src/views/project_estimate/edit.vue
index 8c9a473..6147fe7 100644
--- a/src/views/project_estimate/edit.vue
+++ b/src/views/project_estimate/edit.vue
@@ -1,87 +1,94 @@