公文流转结束功能

This commit is contained in:
liuye
2022-03-18 09:44:27 +08:00
parent 9a990f22ae
commit 40d572d466
2 changed files with 39 additions and 17 deletions

View File

@@ -50,6 +50,10 @@ export default {
},
onLoad() {
this.$dict.load("officialDocumentName")
uni.$on('updateList', () => {
this.current = 1
this.getList()
})
},
methods: {
tag(status) {

View File

@@ -84,7 +84,8 @@
</div>
<div class="footer" v-if="detail.flowRight==1 && detail.readType==0">
<div @click="handleClick(0)">批示</div>
<div @click="handleClick(1)">流转</div>
<div @click="handleClick(1)" style="background-color: #1365DD;color: #FFFFFF">流转</div>
<div @click="end()" style="background-color: #f46;color: #FFFFFF">结束</div>
</div>
<div class="footer" v-if="detail.readType==1 && detail.flowRight==1" @click="read"
style="background-color: #1365DD;color: #FFFFFF">我已阅完
@@ -182,6 +183,19 @@ export default {
} else {
this.userSelect = true
}
},
end() {
this.$confirm('确定结束该公文流转?').then(() => {
this.$http.post(`/app/appofficialdocumentinfo/finishById?id=${this.id}`).then(res => {
if (res.code == 0) {
this.$u.toast('操作成功')
uni.$emit('updateList')
setTimeout(() => {
uni.navigateBack()
})
}
})
})
}
},
onShow() {
@@ -403,25 +417,29 @@ export default {
& > div {
color: #333333;
flex: 1;
height: 112px;
text-align: center;
line-height: 112px;
}
& > div:first-child {
width: 50%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
// & > div:first-child {
// width: 50%;
// height: 100%;
// display: flex;
// align-items: center;
// justify-content: center;
// }
& > div:last-child {
width: 50%;
height: 100%;
color: #FFFFFF;
display: flex;
align-items: center;
justify-content: center;
background-color: #1365DD;
}
// & > div:last-child {
// width: 50%;
// height: 100%;
// color: #FFFFFF;
// display: flex;
// align-items: center;
// justify-content: center;
// background-color: #1365DD;
// }
& > label {
display: flex;