Commit 562a87e7 authored by 黄奎's avatar 黄奎

投诉单新增金额验证

parent 66acd22b
...@@ -323,7 +323,7 @@ ...@@ -323,7 +323,7 @@
<tr v-if="isShowMoney"> <tr v-if="isShowMoney">
<td>赔偿金额:</td> <td>赔偿金额:</td>
<td> <td>
<el-input type="text" v-model="EditMsg.CompensateMoney" class="w160"></el-input> <el-input type="text" v-model="EditMsg.CompensateMoney" class="w160" @keyup.native="checkPrice(EditMsg,'CompensateMoney')"></el-input>
</td> </td>
</tr> </tr>
<tr v-if="isShowNextPersion"> <tr v-if="isShowNextPersion">
...@@ -363,7 +363,7 @@ ...@@ -363,7 +363,7 @@
<tr> <tr>
<td>赔偿金额:</td> <td>赔偿金额:</td>
<td> <td>
<el-input type="text" v-model="CompensateMoney" class="w160"></el-input> <el-input type="text" v-model="ZuiMsg.CompensateMoney" class="w160" @keyup.native="checkPrice(ZuiMsg,'CompensateMoney')"></el-input>
</td> </td>
</tr> </tr>
</table> </table>
...@@ -452,7 +452,9 @@ ...@@ -452,7 +452,9 @@
DealEmpName: '', DealEmpName: '',
ishowBtn: true, ishowBtn: true,
showAppendMoney: false, showAppendMoney: false,
CompensateMoney: 0,//赔偿金额 ZuiMsg:{
CompensateMoney: 0,//赔偿金额
},
ComplainCompensation: [],//赔款列表 ComplainCompensation: [],//赔款列表
authority: [], authority: [],
} }
...@@ -691,16 +693,16 @@ ...@@ -691,16 +693,16 @@
}, },
//追加赔偿金额 //追加赔偿金额
appendCompensateMoney () { appendCompensateMoney () {
if (!(this.CompensateMoney > 0)) { if (!(this.ZuiMsg.CompensateMoney > 0)) {
this.Error('赔偿金额必须大于0') this.Error('赔偿金额必须大于0')
return false return false
} }
let msg = {ID: this.queryMsg.ID, CompensateMoney: this.CompensateMoney} let msg = {ID: this.queryMsg.ID, CompensateMoney: this.ZuiMsg.CompensateMoney}
this.apipost('conplain_post_AppendCompensateMoney', msg, res => { this.apipost('conplain_post_AppendCompensateMoney', msg, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.Success('追加赔偿成功') this.Success('追加赔偿成功')
this.showAppendMoney = false this.showAppendMoney = false
this.CompensateMoney = 0 this.ZuiMsg.CompensateMoney = 0
this.getDetial() this.getDetial()
} else { } else {
this.Error(res.data.message) this.Error(res.data.message)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment