销售订单问题

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

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

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

@ -294,13 +294,13 @@
</el-date-picker> </el-date-picker>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="attachMent" label="发票附件"> <!-- <el-table-column prop="attachMent" label="发票附件">-->
<template slot-scope="scope"> <!-- <template slot-scope="scope">-->
<JNPF-UploadFz v-model="scope.row.attachMent" <!-- <JNPF-UploadFz v-model="scope.row.attachMent"-->
:fileSize="100" sizeUnit="MB" :limit="5" buttonText="点击上传" > <!-- :fileSize="100" sizeUnit="MB" :limit="5" buttonText="点击上传" >-->
</JNPF-UploadFz> <!-- </JNPF-UploadFz>-->
</template> <!-- </template>-->
</el-table-column> <!-- </el-table-column>-->
<el-table-column label="操作" width="50" > <el-table-column label="操作" width="50" >
<template slot-scope="scope"> <template slot-scope="scope">
<el-button size="mini" type="text" class="JNPF-table-delBtn" @click="delarinvoices_item0List(scope.$index)"></el-button> <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++){ for (let i = 0;i<list.length;i++){
this.dataForm.collection_item0List[i].salesorderId = list[i].id; this.dataForm.collection_item0List[i].salesorderId = list[i].id;
this.dataForm.collection_item0List[i].rate = list[i].price - list[i].notPrice; 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;
this.dataForm.collection_item0List[i].amount = list[i].price - list[i].amountCollected; // amountCollected = amountCollected + this.dataForm.collection_item0List[i].amount;
amountCollected = amountCollected + this.dataForm.collection_item0List[i].amount;
debugger debugger
} }
this.dataForm.amountCollected = amountCollected; // this.dataForm.amountCollected = amountCollected;
this.$store.commit('generator/UPDATE_RELATION_DATA', {}) this.$store.commit('generator/UPDATE_RELATION_DATA', {})
}, },
// //

Loading…
Cancel
Save