From 789a2ddb815dbcac398928b32a048a490a5b414d Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期四, 21 十二月 2023 19:00:17 +0800
Subject: [PATCH] 收款计划的收款计划负责人默认选中登录人的逻辑,之前是name修改为id,切初始的时候循环添加到列表中
---
src/views/other/payment/collectionPlan/AddCollectionPlan.vue | 3 ++-
src/views/sales/salesDetails/AddSalesDetailsDialog.vue | 5 +++--
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/views/other/payment/collectionPlan/AddCollectionPlan.vue b/src/views/other/payment/collectionPlan/AddCollectionPlan.vue
index 8b9d4d3..b36e2ac 100644
--- a/src/views/other/payment/collectionPlan/AddCollectionPlan.vue
+++ b/src/views/other/payment/collectionPlan/AddCollectionPlan.vue
@@ -209,7 +209,6 @@
created() {
console.log(this.editCommonConfig)
this.setData()
- this.setTableForm()
this.getCommonData()
},
methods: {
@@ -253,7 +252,9 @@
this.$set(this.editConfig.infomation, "principalId", item.id)
}
})
+ this.principalId=this.editConfig.infomation.principalId
}
+ this.setTableForm()
})
.catch((err) => {
console.log(err)
diff --git a/src/views/sales/salesDetails/AddSalesDetailsDialog.vue b/src/views/sales/salesDetails/AddSalesDetailsDialog.vue
index 0477013..83c70a2 100644
--- a/src/views/sales/salesDetails/AddSalesDetailsDialog.vue
+++ b/src/views/sales/salesDetails/AddSalesDetailsDialog.vue
@@ -675,8 +675,9 @@
this.$message.error("璇烽�夋嫨浜у搧")
} else {
for (let i = 0; i < this.tableData.length; i++) {
- if (this.tableData[i].cost||Number(this.tableData[i].cost)==0) {
- let reg = /^\+?[1-9]\d*$/;
+ if (this.tableData[i].cost) {
+ let reg =
+ /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/;
if(!reg.test(this.tableData[i].cost)){
this.$message.error("鎴愭湰鍗曚环闇�瑕佸~鍐欏ぇ浜�0鐨�2浣嶅皬鏁帮紒")
return true;
--
Gitblit v1.8.0