소스 검색

提交费用报销

Lijy 1 년 전
부모
커밋
1f6326ec13
1개의 변경된 파일10개의 추가작업 그리고 0개의 파일을 삭제
  1. 10 0
      fhKeeper/formulahousekeeper/timesheet/src/views/expense/expense.vue

+ 10 - 0
fhKeeper/formulahousekeeper/timesheet/src/views/expense/expense.vue

@@ -1733,6 +1733,15 @@ export default {
           spl[i].pic = spl[i].pic.map(a => a.name).join(',')
         }
       }
+      console.log(paramData, '<== paramData')
+      let noAmount = paramData.invoiceList.filter(item => !item.amount)
+      if(noAmount.length > 0) {
+        this.$message({
+          message: '请填写完整费用金额',
+          type: "error"
+        });
+        return;
+      }
       paramData.items = JSON.stringify(paramData.invoiceList)//这里要传发票列表的json转string
       // console.log(paramData, '<== paramData')
       // return
@@ -2386,6 +2395,7 @@ export default {
         endDate: end,
         ownerId: this.ownerId,
         type: this.type,
+        projectId: this.selectProject ? this.selectProject : null,
       },
         res => {
           if (res.code == "ok") {