|
@@ -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") {
|