瀏覽代碼

Merge remote-tracking branch 'origin/dev' into dev

2545307760@qq.com 7 月之前
父節點
當前提交
4e215f716a
共有 2 個文件被更改,包括 17 次插入3 次删除
  1. 1 1
      server/dao/projectFee.go
  2. 16 2
      web/src/view/finance/financeAnalysis/components/payment.vue

+ 1 - 1
server/dao/projectFee.go

@@ -64,7 +64,7 @@ func (e ProjectFee) CreateProjectFee() error {
 }
 
 func (e ProjectFee) UpdateProjectFee() error {
-	return global.GVA_DB.Model(&ProjectFee{}).Save(&e).Error
+	return global.GVA_DB.Model(&ProjectFee{}).Where("id = ?", e.ID).Updates(&e).Error
 }
 
 func (e ProjectFee) DeleteProjectFee() error {

+ 16 - 2
web/src/view/finance/financeAnalysis/components/payment.vue

@@ -193,6 +193,15 @@
             @clear="paymentAddData.collectionTime = ''"
           />
         </el-form-item>
+        <el-form-item
+          label="银行流水单号:"
+          size="large"
+        >
+          <el-input
+            v-model="paymentAddData.serialNumber"
+            placeholder="可输入银行流水单号(选填)"
+          />
+        </el-form-item>
         <el-form-item
           label="收款备注:"
           size="large"
@@ -250,7 +259,8 @@ const paymentEditData = reactive({
   projectCode: '',
   collectionPrice: 0,
   remarks: '',
-  collectionTime: ''
+  collectionTime: '',
+  serialNumber: ''
 })
 
 const editAmount = ref('')
@@ -261,7 +271,8 @@ const paymentAddData = reactive({
   projectCode: '',
   collectionPrice: 0,
   remarks: '',
-  collectionTime: ''
+  collectionTime: '',
+  serialNumber: ''
 })
 
 const addAmount = ref('')
@@ -335,6 +346,9 @@ const paymentAdd = () => {
   addData.collectionPrice = addAmount.value.length === 0 ? 0 : parseFloat(addAmount.value)
   addData.projectCode = serial.currentCode
   for (const item in addData) {
+    if (item === 'serialNumber') {
+      continue
+    }
     if (addData[item] === '' || addData[item] === 0) {
       ElMessage({
         message: '请将信息填写完整',