|
|
@@ -34,6 +34,9 @@ |
|
|
|
<van-col> |
|
|
|
<van-button square text="修改" type="info" v-if="item.auditStatus=='草稿'" class="delete-button" :to="{name:'circulationModify', query: {id:item.id}}" /> |
|
|
|
</van-col> |
|
|
|
<van-col> |
|
|
|
<van-button square text="提交" type="primary" v-if="item.auditStatus=='草稿'" class="delete-button" @click="submit(item)" /> |
|
|
|
</van-col> |
|
|
|
<van-col> |
|
|
|
<van-button square text="删除" type="danger" v-if="item.auditStatus=='草稿'" @click="deleteList(item.id,index)" class="delete-button" /> |
|
|
|
</van-col> |
|
|
@@ -45,7 +48,7 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import { getList , removeList } from "@/api/onlineHome/homestead/circulation"; |
|
|
|
import { getList , removeList, goApply } from "@/api/onlineHome/homestead/circulation"; |
|
|
|
export default { |
|
|
|
name: "circulationList", |
|
|
|
data() { |
|
|
@@ -107,13 +110,37 @@ export default { |
|
|
|
removeList(id).then(res => { |
|
|
|
if(res.code = 200){ |
|
|
|
this.$toast.success('删除成功'); |
|
|
|
//this.refresh(); |
|
|
|
} |
|
|
|
}); |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
// on cancel |
|
|
|
}); |
|
|
|
}, |
|
|
|
submit(item) { |
|
|
|
this.$dialog.confirm({ |
|
|
|
message: '确认提交该草稿?', |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|
// on confirm |
|
|
|
goApply(item.id).then(res => { |
|
|
|
if(res.code = 200){ |
|
|
|
this.$toast.success('提交成功'); |
|
|
|
this.refresh(); |
|
|
|
} |
|
|
|
}); |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
// on cancel |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
refresh() { |
|
|
|
this.finished = false; |
|
|
|
this.queryParams.pageNum = 1; |
|
|
|
this.applicationList = []; |
|
|
|
this.getList(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
} |
|
|
|
</script> |
|
|
|