巡查上报
This commit is contained in:
@@ -59,7 +59,9 @@ export default {
|
|||||||
girdName: '',
|
girdName: '',
|
||||||
files: [],
|
files: [],
|
||||||
name: '',
|
name: '',
|
||||||
phone: ''
|
phone: '',
|
||||||
|
girdMemberId: '',
|
||||||
|
girdMemberName: ''
|
||||||
},
|
},
|
||||||
flag: false,
|
flag: false,
|
||||||
show: false,
|
show: false,
|
||||||
@@ -78,13 +80,15 @@ export default {
|
|||||||
this.forms.phone = this.user.phone
|
this.forms.phone = this.user.phone
|
||||||
this.forms.girdId = this.user.girdId
|
this.forms.girdId = this.user.girdId
|
||||||
this.forms.girdName = this.user.girdName
|
this.forms.girdName = this.user.girdName
|
||||||
|
this.forms.girdMemberId = this.user.girdMemberId
|
||||||
|
this.forms.girdMemberName = this.user.name
|
||||||
uni.$on('chooseLat', res => {
|
uni.$on('chooseLat', res => {
|
||||||
this.forms.mapInfo = {...res}
|
this.forms.mapInfo = {...res}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
typeList() {
|
typeList() {
|
||||||
this.$http.post(`/app/apppatrolreportgroup/list`, null, {
|
this.$http.post(`/app/apppatrolreportgroupv2/list`, null, {
|
||||||
params: {
|
params: {
|
||||||
size: 9999,
|
size: 9999,
|
||||||
},
|
},
|
||||||
@@ -128,7 +132,7 @@ export default {
|
|||||||
return this.$u.toast('请输入手机号')
|
return this.$u.toast('请输入手机号')
|
||||||
}
|
}
|
||||||
this.flag = true
|
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) {
|
if (res.code == 0) {
|
||||||
this.$u.toast('事件添加成功')
|
this.$u.toast('事件添加成功')
|
||||||
uni.$emit('getListInit')
|
uni.$emit('getListInit')
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
typeList() {
|
typeList() {
|
||||||
this.$http.post(`/app/apppatrolreportgroup/list`, null, {
|
this.$http.post(`/app/apppatrolreportgroupv2/list`, null, {
|
||||||
params: {
|
params: {
|
||||||
size: 9999,
|
size: 9999,
|
||||||
},
|
},
|
||||||
@@ -127,12 +127,12 @@ export default {
|
|||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
if (this.status == 2) {
|
if (this.status == 2) {
|
||||||
url = `/app/apppatrolreportinfo/finishByGirdMember`
|
url = `/app/apppatrolreportinfov2/finish`
|
||||||
successText = '拒绝成功'
|
successText = '拒绝成功'
|
||||||
params = {...this.forms, eventStatus: 0}
|
params = {...this.forms, eventStatus: 0}
|
||||||
}
|
}
|
||||||
if (this.status == 3) {
|
if (this.status == 3) {
|
||||||
url = `/app/apppatrolreportinfo/finishByGirdMember`
|
url = `/app/apppatrolreportinfov2/finish`
|
||||||
successText = '办结成功'
|
successText = '办结成功'
|
||||||
params = {...this.forms, eventStatus: 1}
|
params = {...this.forms, eventStatus: 1}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -95,29 +95,29 @@
|
|||||||
|
|
||||||
<div class="fixedBtn" v-if="isShowBtn">
|
<div class="fixedBtn" v-if="isShowBtn">
|
||||||
<div class="status00" v-if="data.eventStatus == 0">
|
<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="" />
|
<img src="./components/img/zhuanjiao.png" alt="" />
|
||||||
<span class="hint">转交事件</span>
|
<span class="hint">转交事件</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="columns" @click="toContent(2)">
|
<div class="columns" v-if="data.powerHandle" @click="toContent(2)">
|
||||||
<img src="./components/img/jujue.png" alt="" />
|
<img src="./components/img/jujue.png" alt="" />
|
||||||
<span class="hint">拒绝受理</span>
|
<span class="hint">拒绝受理</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="doIt" @click="toContent(3)">我来受理</div>
|
<div class="doIt" @click="toContent(3)">我来受理</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="status00" v-if="data.eventStatus == 1 && data.girdMemberId == user.girdMemberId">
|
<div class="status00" v-if="data.eventStatus == 1">
|
||||||
<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="" />
|
<img src="./components/img/zhuanjiao.png" alt="" />
|
||||||
<span class="hint">转交事件</span>
|
<span class="hint">转交事件</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="columns" @click="toContent(2)">
|
<div class="columns" v-if="data.powerHandle" @click="toContent(2)">
|
||||||
<img src="./components/img/jujue.png" alt="" />
|
<img src="./components/img/jujue.png" alt="" />
|
||||||
<span class="hint">拒绝受理</span>
|
<span class="hint">拒绝受理</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="doIt" @click="toContent(3)">前往办理</div>
|
<div class="doIt" v-if="data.powerHandle" @click="toContent(3)">前往办理</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- <div class="endDoIt" v-if="data.eventStatus == 1 && data.rightType == 0" @click="toContent(3)">前往办理</div> -->
|
<!-- <div class="endDoIt" v-if="data.eventStatus == 1 && data.rightType == 0" @click="toContent(3)">前往办理</div> -->
|
||||||
@@ -187,7 +187,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getDetail() {
|
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) {
|
if (res?.data) {
|
||||||
this.data = res.data
|
this.data = res.data
|
||||||
}
|
}
|
||||||
@@ -199,7 +199,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
doThings() {
|
doThings() {
|
||||||
this.$http.post(`/app/appresidentreportinfo/finishByGirdMember`, {
|
this.$http.post(`/app/appresidentreportinfov2/finivsh`, {
|
||||||
id: this.id,
|
id: this.id,
|
||||||
eventStatus: 1
|
eventStatus: 1
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ export default {
|
|||||||
},
|
},
|
||||||
getList() {
|
getList() {
|
||||||
let {current, eventStatus, searchGrid: {id: girdId}} = this
|
let {current, eventStatus, searchGrid: {id: girdId}} = this
|
||||||
this.$http.post(`/app/apppatrolreportinfo/listByGirdMember`, null, {
|
this.$http.post(`/app/apppatrolreportinfov2/listByGirdMember`, null, {
|
||||||
params: {
|
params: {
|
||||||
size: 10,
|
size: 10,
|
||||||
current,
|
current,
|
||||||
@@ -170,7 +170,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
getIsAdd() {
|
getIsAdd() {
|
||||||
this.$http.post(`/app/apppatrolreportinfo/checkGirdMemberUser`).then((res) => {
|
this.$http.post(`/app/apppatrolreportinfov2/checkGirdMemberUser`).then((res) => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.isAdd = res.data
|
this.isAdd = res.data
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
getTree() {
|
getTree() {
|
||||||
this.slectList = []
|
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) {
|
if (res?.data) {
|
||||||
this.allData = res.data
|
this.allData = res.data
|
||||||
this.treeInit()
|
this.treeInit()
|
||||||
|
|||||||
@@ -53,7 +53,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: 'SelectUser',
|
name: 'AppPatrolReport',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
selectUser: {},
|
selectUser: {},
|
||||||
|
|||||||
Reference in New Issue
Block a user