草稿保存
parent
998278fd7e
commit
db3a7ce557
|
@ -457,10 +457,8 @@ public class ProcessController {
|
||||||
purchaseAmount.setBudgetCostId(amountForm.budgetCostId);
|
purchaseAmount.setBudgetCostId(amountForm.budgetCostId);
|
||||||
purchaseAmount.setAmountCurrent(amountForm.amountCurrent);
|
purchaseAmount.setAmountCurrent(amountForm.amountCurrent);
|
||||||
|
|
||||||
if (form.getStatus() == ProcessStatus.to_be_audit) {
|
// 提交时该次数量条目生效,撤回的时候 取消该状态
|
||||||
// 提交时该次数量条目生效,撤回的时候 取消该状态
|
purchaseAmount.setSubmit(form.getStatus() == ProcessStatus.to_be_audit);
|
||||||
purchaseAmount.setSubmit(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
entityManager.persist(purchaseAmount);
|
entityManager.persist(purchaseAmount);
|
||||||
|
|
||||||
|
@ -570,13 +568,7 @@ public class ProcessController {
|
||||||
purchaseAmount.setAmount(amountForm.amount);
|
purchaseAmount.setAmount(amountForm.amount);
|
||||||
purchaseAmount.setBudgetCostId(amountForm.budgetCostId);
|
purchaseAmount.setBudgetCostId(amountForm.budgetCostId);
|
||||||
purchaseAmount.setAmountCurrent(amountForm.amountCurrent);
|
purchaseAmount.setAmountCurrent(amountForm.amountCurrent);
|
||||||
|
purchaseAmount.setSubmit(form.getStatus() == ProcessStatus.to_be_audit);
|
||||||
// TODO 提交模式才计算 剩余
|
|
||||||
if (form.getStatus() == ProcessStatus.to_be_audit) {
|
|
||||||
// 当前的必须填写
|
|
||||||
Assert.notNull(amountForm.amountCurrent, "合同明细填写不完整");
|
|
||||||
purchaseAmount.setSubmit(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (amountForm.amountId != null) {
|
if (amountForm.amountId != null) {
|
||||||
// 更新了某个ID的数据就不删除了
|
// 更新了某个ID的数据就不删除了
|
||||||
|
|
|
@ -431,19 +431,24 @@
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
},
|
},
|
||||||
body: JSON.stringify(form),
|
body: JSON.stringify(form),
|
||||||
}).then(res => res.json())
|
}).then(checkStatus).then(parseJSON).then(data => {
|
||||||
.then(data => {
|
this.page = {
|
||||||
this.page = {
|
data: data.content,
|
||||||
data: data.content,
|
size: data.size,
|
||||||
size: data.size,
|
current: data.number + 1,
|
||||||
current: data.number + 1,
|
total: data.totalElements
|
||||||
total: data.totalElements
|
}
|
||||||
}
|
}).catch(({ response }) => {
|
||||||
})
|
if (response) {
|
||||||
.catch(err => {
|
parseJSON(response)
|
||||||
this.$message.error('查询失败');
|
.then(json => {
|
||||||
})
|
this.$message.error(json.message || "查询失败")
|
||||||
.finally(() => loading.close())
|
})
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
this.$message.error("查询失败")
|
||||||
|
}
|
||||||
|
}).finally(() => loading.close())
|
||||||
},
|
},
|
||||||
|
|
||||||
handlePageChange(val) {
|
handlePageChange(val) {
|
||||||
|
|
Loading…
Reference in New Issue