销售订单问题

product
杨世强 2 years ago
parent 8f1f61c064
commit 4e184ff002

@ -371,6 +371,8 @@ public class SaleorderitemController {
}
sale.setList(dList);
sale.setDocumentNo(generaterSwapUtil.getBillNumber("collection", false));
BigDecimal amount = sale.getPrice().subtract(sale.getAmountCollected());
sale.setAmount(amount);
list.add(sale);
}else{
return ActionResult.fail("数据状态无法回款");

@ -168,4 +168,7 @@ public class SaleorderitemEntity {
@TableField("CUSTOMER_ID")
private String customerId;
@TableField(exist = false)
private BigDecimal amount;
}

@ -294,13 +294,13 @@
</el-date-picker>
</template>
</el-table-column>
<el-table-column prop="attachMent" label="发票附件">
<template slot-scope="scope">
<JNPF-UploadFz v-model="scope.row.attachMent"
:fileSize="100" sizeUnit="MB" :limit="5" buttonText="点击上传" >
</JNPF-UploadFz>
</template>
</el-table-column>
<!-- <el-table-column prop="attachMent" label="发票附件">-->
<!-- <template slot-scope="scope">-->
<!-- <JNPF-UploadFz v-model="scope.row.attachMent"-->
<!-- :fileSize="100" sizeUnit="MB" :limit="5" buttonText="点击上传" >-->
<!-- </JNPF-UploadFz>-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column label="操作" width="50" >
<template slot-scope="scope">
<el-button size="mini" type="text" class="JNPF-table-delBtn" @click="delarinvoices_item0List(scope.$index)"></el-button>

@ -343,12 +343,11 @@
for (let i = 0;i<list.length;i++){
this.dataForm.collection_item0List[i].salesorderId = list[i].id;
this.dataForm.collection_item0List[i].rate = list[i].price - list[i].notPrice;
this.amount
this.dataForm.collection_item0List[i].amount = list[i].price - list[i].amountCollected;
amountCollected = amountCollected + this.dataForm.collection_item0List[i].amount;
// this.dataForm.collection_item0List[i].amount = list[i].price - list[i].amountCollected;
// amountCollected = amountCollected + this.dataForm.collection_item0List[i].amount;
debugger
}
this.dataForm.amountCollected = amountCollected;
// this.dataForm.amountCollected = amountCollected;
this.$store.commit('generator/UPDATE_RELATION_DATA', {})
},
//

Loading…
Cancel
Save