Commit bac454a6 authored by dcy's avatar dcy

费用申请界面下,存在两条费用记录,第一行费用记录修改不成功,无论怎么改,提交审核的总是下一行

parent c7c928e4
...@@ -114,7 +114,7 @@ export default { ...@@ -114,7 +114,7 @@ export default {
computed:{ computed:{
forbidden(){ forbidden(){
return (row)=>{ return (row)=>{
return this.list.findIndex(e => e.id = row.id) return this.list.findIndex(e => e.id === row.id)
} }
}, },
IsExamine(){ IsExamine(){
...@@ -173,8 +173,9 @@ export default { ...@@ -173,8 +173,9 @@ export default {
}) })
}, },
modify(row){ modify(row){
if(this.list.some(i => i.status === 0 || i.status === 1))return this.$message.warning('当前有未提交的数据或审核中的数据不能修改')
this.isModifyIf = true; this.isModifyIf = true;
this.$set(this.isModify, this.list.findIndex(e => e.id = row.id), false ) this.$set(this.isModify, this.list.findIndex(e => e.id === row.id), false )
}, },
examineFn(){ examineFn(){
let item = this.list.find(e => e.status === 1); let item = this.list.find(e => e.status === 1);
...@@ -200,6 +201,7 @@ export default { ...@@ -200,6 +201,7 @@ export default {
watch:{ watch:{
dialogVisible(val){ dialogVisible(val){
if(val){ if(val){
this.isModify = []
this.getOrderList() this.getOrderList()
getOrder(this.orderId).then(r =>{ getOrder(this.orderId).then(r =>{
if(r.code === 0){ if(r.code === 0){
......
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