公文流转结束功能

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() { onLoad() {
this.$dict.load("officialDocumentName") this.$dict.load("officialDocumentName")
uni.$on('updateList', () => {
this.current = 1
this.getList()
})
}, },
methods: { methods: {
tag(status) { tag(status) {

View File

@@ -84,7 +84,8 @@
</div> </div>
<div class="footer" v-if="detail.flowRight==1 && detail.readType==0"> <div class="footer" v-if="detail.flowRight==1 && detail.readType==0">
<div @click="handleClick(0)">批示</div> <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>
<div class="footer" v-if="detail.readType==1 && detail.flowRight==1" @click="read" <div class="footer" v-if="detail.readType==1 && detail.flowRight==1" @click="read"
style="background-color: #1365DD;color: #FFFFFF">我已阅完 style="background-color: #1365DD;color: #FFFFFF">我已阅完
@@ -182,6 +183,19 @@ export default {
} else { } else {
this.userSelect = true 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() { onShow() {
@@ -403,25 +417,29 @@ export default {
& > div { & > div {
color: #333333; color: #333333;
flex: 1;
height: 112px;
text-align: center;
line-height: 112px;
} }
& > div:first-child { // & > div:first-child {
width: 50%; // width: 50%;
height: 100%; // height: 100%;
display: flex; // display: flex;
align-items: center; // align-items: center;
justify-content: center; // justify-content: center;
} // }
& > div:last-child { // & > div:last-child {
width: 50%; // width: 50%;
height: 100%; // height: 100%;
color: #FFFFFF; // color: #FFFFFF;
display: flex; // display: flex;
align-items: center; // align-items: center;
justify-content: center; // justify-content: center;
background-color: #1365DD; // background-color: #1365DD;
} // }
& > label { & > label {
display: flex; display: flex;