|
|
@@ -122,6 +122,7 @@
|
|
|
<script>
|
|
|
import addTemplate from '@/template/addTemplate'
|
|
|
import exportFile from '@/components/export_file/index5'
|
|
|
+import {Message} from "element-ui";
|
|
|
export default {
|
|
|
name: "expenseDetail",
|
|
|
props:['data'],
|
|
|
@@ -278,7 +279,18 @@ export default {
|
|
|
]
|
|
|
}
|
|
|
})
|
|
|
- this.listData()
|
|
|
+ if (res.code == 0){
|
|
|
+ Message({
|
|
|
+ message: res.msg,
|
|
|
+ type: 'error',
|
|
|
+ duration:3000,
|
|
|
+ showClose:true
|
|
|
+ });
|
|
|
+ this.listData()
|
|
|
+ }else {
|
|
|
+ this.listData()
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
async amountChange(data){
|
|
|
console.log(data,'data金额调整')
|
|
|
@@ -298,8 +310,17 @@ export default {
|
|
|
]
|
|
|
}
|
|
|
})
|
|
|
- this.listData()
|
|
|
- this.$emit('onSuccess')
|
|
|
+ if (res.code == 0){
|
|
|
+ Message({
|
|
|
+ message: res.msg,
|
|
|
+ type: 'error',
|
|
|
+ duration:3000,
|
|
|
+ showClose:true
|
|
|
+ });
|
|
|
+ }else {
|
|
|
+ this.listData()
|
|
|
+ this.$emit('onSuccess')
|
|
|
+ }
|
|
|
},
|
|
|
selectionChange(val){
|
|
|
console.log(val)
|