From 10c3bce9528daaf45682efa8b163e63c5006a72f Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期四, 21 十二月 2023 18:36:05 +0800
Subject: [PATCH] 必填只能编辑数量,非必填编辑销售单价,成本单价,数量+成本单价不填写可以通过校验填写则需要校验大于0
---
src/components/makepager/CommonFormTableView.vue | 1 -
src/views/other/payment/collectionPlan/AddCollectionPlan.vue | 10 ++++++++--
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/src/components/makepager/CommonFormTableView.vue b/src/components/makepager/CommonFormTableView.vue
index 194cfc0..d8ecea7 100644
--- a/src/components/makepager/CommonFormTableView.vue
+++ b/src/components/makepager/CommonFormTableView.vue
@@ -1,7 +1,6 @@
<template>
<div class="page-view">
<el-form ref="form" :model="tableList" :show-message="false" label-position="right">
- {{ tableList.tableData }}
<el-table
ref="fromTable"
:data="tableList.tableData"
diff --git a/src/views/other/payment/collectionPlan/AddCollectionPlan.vue b/src/views/other/payment/collectionPlan/AddCollectionPlan.vue
index 52cd7d5..8b9d4d3 100644
--- a/src/views/other/payment/collectionPlan/AddCollectionPlan.vue
+++ b/src/views/other/payment/collectionPlan/AddCollectionPlan.vue
@@ -198,7 +198,7 @@
amount: 130,
sourceType: this.editCommonConfig.sourceType, // 婧愬崟绫诲瀷 1閿�鍞槑缁�2鏈嶅姟鍚堝悓3閿�鍞彂绁�
sourceId: this.editCommonConfig.infomation.id,
- principalId: this.getCookie('username')||0,
+ principalId:0,
planAmount: 0, // 璁″垝閲戦
firstDate: this.getCurrentDate(1),
collectionType: 1,
@@ -238,7 +238,7 @@
collectionType: this.collectionType,
moneyType: "浜烘皯甯�",
amountTotal: this.editCommonConfig.infomation.amountTotal,
- principalId:this.getCookie('username')
+ principalId:0
}
},
getCommonData() {
@@ -247,6 +247,12 @@
console.log(res)
if (res.code === 200) {
this.memberOptions = res.data.member
+ let username =this.getCookie('username')
+ this.memberOptions.map((item) => {
+ if (item.username == username) {
+ this.$set(this.editConfig.infomation, "principalId", item.id)
+ }
+ })
}
})
.catch((err) => {
--
Gitblit v1.8.0