|
|
|
@ -352,24 +352,32 @@ export default {
|
|
|
|
for (let i of selections) {
|
|
|
|
for (let i of selections) {
|
|
|
|
if(!i._inputMoney){
|
|
|
|
if(!i._inputMoney){
|
|
|
|
|
|
|
|
|
|
|
|
// 多选的时候 需要大于0
|
|
|
|
if (i._inputMoney < 0) {
|
|
|
|
if(this.isMuplite){
|
|
|
|
this.$message({
|
|
|
|
if (i._inputMoney <= 0) {
|
|
|
|
type: "warning",
|
|
|
|
this.$message({
|
|
|
|
message: `【${i.year}】${i.name} 使用金额需要大于0!`,
|
|
|
|
type: "warning",
|
|
|
|
});
|
|
|
|
message: `【${i.year}】${i.name} 使用金额需要大于0!`,
|
|
|
|
return;
|
|
|
|
});
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
if (i._inputMoney < 0) {
|
|
|
|
|
|
|
|
this.$message({
|
|
|
|
|
|
|
|
type: "warning",
|
|
|
|
|
|
|
|
message: `【${i.year}】${i.name} 使用金额需要大于0!`,
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 多选的时候 需要大于0
|
|
|
|
|
|
|
|
// if(this.isMuplite){
|
|
|
|
|
|
|
|
// if (i._inputMoney <= 0) {
|
|
|
|
|
|
|
|
// this.$message({
|
|
|
|
|
|
|
|
// type: "warning",
|
|
|
|
|
|
|
|
// message: `【${i.year}】${i.name} 使用金额需要大于0!`,
|
|
|
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
// return;
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// }else{
|
|
|
|
|
|
|
|
// if (i._inputMoney < 0) {
|
|
|
|
|
|
|
|
// this.$message({
|
|
|
|
|
|
|
|
// type: "warning",
|
|
|
|
|
|
|
|
// message: `【${i.year}】${i.name} 使用金额需要大于0!`,
|
|
|
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
// return;
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// }
|
|
|
|
if (i._inputMoney > ((Number(i.money) || Number(i.update_money)) - Number(i.has_money_total))) {
|
|
|
|
if (i._inputMoney > ((Number(i.money) || Number(i.update_money)) - Number(i.has_money_total))) {
|
|
|
|
this.$message({
|
|
|
|
this.$message({
|
|
|
|
type: "warning",
|
|
|
|
type: "warning",
|
|
|
|
|