巡查上报

This commit is contained in:
liuye
2023-11-07 18:01:29 +08:00
parent a9051a4c75
commit a28050ebbe
6 changed files with 22 additions and 18 deletions

View File

@@ -59,7 +59,9 @@ export default {
girdName: '',
files: [],
name: '',
phone: ''
phone: '',
girdMemberId: '',
girdMemberName: ''
},
flag: false,
show: false,
@@ -78,13 +80,15 @@ export default {
this.forms.phone = this.user.phone
this.forms.girdId = this.user.girdId
this.forms.girdName = this.user.girdName
this.forms.girdMemberId = this.user.girdMemberId
this.forms.girdMemberName = this.user.name
uni.$on('chooseLat', res => {
this.forms.mapInfo = {...res}
})
},
methods: {
typeList() {
this.$http.post(`/app/apppatrolreportgroup/list`, null, {
this.$http.post(`/app/apppatrolreportgroupv2/list`, null, {
params: {
size: 9999,
},
@@ -128,7 +132,7 @@ export default {
return this.$u.toast('请输入手机号')
}
this.flag = true
this.$http.post(`/app/apppatrolreportinfo/addByGirdMember`, {...this.forms, ...this.forms.mapInfo}).then((res) => {
this.$http.post(`/app/apppatrolreportinfov2/addByGirdMember`, {...this.forms, ...this.forms.mapInfo}).then((res) => {
if (res.code == 0) {
this.$u.toast('事件添加成功')
uni.$emit('getListInit')

View File

@@ -83,7 +83,7 @@ export default {
},
methods: {
typeList() {
this.$http.post(`/app/apppatrolreportgroup/list`, null, {
this.$http.post(`/app/apppatrolreportgroupv2/list`, null, {
params: {
size: 9999,
},
@@ -127,12 +127,12 @@ export default {
// }
}
if (this.status == 2) {
url = `/app/apppatrolreportinfo/finishByGirdMember`
url = `/app/apppatrolreportinfov2/finish`
successText = '拒绝成功'
params = {...this.forms, eventStatus: 0}
}
if (this.status == 3) {
url = `/app/apppatrolreportinfo/finishByGirdMember`
url = `/app/apppatrolreportinfov2/finish`
successText = '办结成功'
params = {...this.forms, eventStatus: 1}
}

View File

@@ -95,29 +95,29 @@
<div class="fixedBtn" v-if="isShowBtn">
<div class="status00" v-if="data.eventStatus == 0">
<div class="columns border-r" @click="toContent(1)">
<div class="columns border-r" v-if="data.powerTransmit" @click="toContent(1)">
<img src="./components/img/zhuanjiao.png" alt="" />
<span class="hint">转交事件</span>
</div>
<div class="columns" @click="toContent(2)">
<div class="columns" v-if="data.powerHandle" @click="toContent(2)">
<img src="./components/img/jujue.png" alt="" />
<span class="hint">拒绝受理</span>
</div>
<div class="doIt" @click="toContent(3)">我来受理</div>
</div>
<div class="status00" v-if="data.eventStatus == 1 && data.girdMemberId == user.girdMemberId">
<div class="columns border-r" @click="toContent(1)">
<div class="status00" v-if="data.eventStatus == 1">
<div class="columns border-r" v-if="data.powerTransmit" @click="toContent(1)">
<img src="./components/img/zhuanjiao.png" alt="" />
<span class="hint">转交事件</span>
</div>
<div class="columns" @click="toContent(2)">
<div class="columns" v-if="data.powerHandle" @click="toContent(2)">
<img src="./components/img/jujue.png" alt="" />
<span class="hint">拒绝受理</span>
</div>
<div class="doIt" @click="toContent(3)">前往办理</div>
<div class="doIt" v-if="data.powerHandle" @click="toContent(3)">前往办理</div>
</div>
<!-- <div class="endDoIt" v-if="data.eventStatus == 1 && data.rightType == 0" @click="toContent(3)">前往办理</div> -->
@@ -187,7 +187,7 @@ export default {
},
methods: {
getDetail() {
this.$http.post(`/app/apppatrolreportinfo/queryDetailById?id=${this.id}`).then((res) => {
this.$http.post(`/app/apppatrolreportinfov2/queryDetailById?id=${this.id}`).then((res) => {
if (res?.data) {
this.data = res.data
}
@@ -199,7 +199,7 @@ export default {
},
doThings() {
this.$http.post(`/app/appresidentreportinfo/finishByGirdMember`, {
this.$http.post(`/app/appresidentreportinfov2/finivsh`, {
id: this.id,
eventStatus: 1
}).then((res) => {

View File

@@ -113,7 +113,7 @@ export default {
},
getList() {
let {current, eventStatus, searchGrid: {id: girdId}} = this
this.$http.post(`/app/apppatrolreportinfo/listByGirdMember`, null, {
this.$http.post(`/app/apppatrolreportinfov2/listByGirdMember`, null, {
params: {
size: 10,
current,
@@ -170,7 +170,7 @@ export default {
},
getIsAdd() {
this.$http.post(`/app/apppatrolreportinfo/checkGirdMemberUser`).then((res) => {
this.$http.post(`/app/apppatrolreportinfov2/checkGirdMemberUser`).then((res) => {
if (res.code == 0) {
this.isAdd = res.data
}

View File

@@ -74,7 +74,7 @@ export default {
methods: {
getTree() {
this.slectList = []
this.$http.post(`/app/apppatrolreportinfo/listGirdInfoByTransfer?id=${this.detailId}`).then((res) => {
this.$http.post(`/app/apppatrolreportinfov2/listGirdInfoByTransfer?id=${this.detailId}`).then((res) => {
if (res?.data) {
this.allData = res.data
this.treeInit()