xbot
This commit is contained in:
@@ -9,11 +9,11 @@
|
||||
<span v-else class="color-999">请选择</span>
|
||||
</AiPagePicker>
|
||||
</u-form-item>
|
||||
<u-form-item label="事件分类" prop="groupName" required :border-bottom="false" right-icon="arrow-right" v-if="status != 1">
|
||||
<u-form-item label="事件分类" prop="typeName" required :border-bottom="false" right-icon="arrow-right" v-if="status != 1">
|
||||
<!-- <u-input v-model="forms.groupName" placeholder="请选择事件分类" /> -->
|
||||
<span @click="show = true" class="right-span" :style="forms.groupName ? '' : 'color:#999;'">{{ forms.groupName || '请选择事件分类' }}</span>
|
||||
<span @click="show = true" class="right-span" :style="forms.typeName ? '' : 'color:#999;'">{{ forms.typeName || '请选择事件分类' }}</span>
|
||||
|
||||
<u-select v-model="show" :list="myList" value-name="id" label-name="groupName" @confirm="selectStatus"></u-select>
|
||||
<u-select v-model="show" :list="$dict.getDict('xbotReportEventType')" value-name="dictValue" label-name="dictName" @confirm="selectStatus"></u-select>
|
||||
</u-form-item>
|
||||
|
||||
<u-form-item :label="status == 3 ? '办结意见' : status == 2 ? '拒绝受理意见' : '办理意见'" prop="content" required :border-bottom="false" label-position="top"
|
||||
@@ -58,7 +58,9 @@ export default {
|
||||
files: [],
|
||||
name: '',
|
||||
handleUserId: '',
|
||||
handleUserName: ''
|
||||
handleUserName: '',
|
||||
type: '',
|
||||
typeName: ''
|
||||
},
|
||||
flag: false,
|
||||
show: false,
|
||||
@@ -70,6 +72,7 @@ export default {
|
||||
}
|
||||
},
|
||||
onLoad(option) {
|
||||
this.$dict.load('xbotReportEventType')
|
||||
this.status = option.status
|
||||
this.id = option.id
|
||||
this.forms.groupId = option.groupId
|
||||
@@ -113,7 +116,7 @@ export default {
|
||||
if (this.status == 1 && !this.forms.handleUserName) {
|
||||
return this.$u.toast('请选择转交对象')
|
||||
}
|
||||
if (this.status != 1 && !this.forms.groupName) {
|
||||
if (this.status != 1 && !this.forms.typeName) {
|
||||
return this.$u.toast('请选择分类')
|
||||
}
|
||||
if (this.status != 1 && !this.forms.content) {
|
||||
@@ -140,12 +143,12 @@ export default {
|
||||
if (this.status == 2) {
|
||||
url = `/app/appsessionarchivereportinfo/finish`
|
||||
successText = '拒绝成功'
|
||||
params = {...this.forms, eventStatus: 3}
|
||||
params = {...this.forms, eventStatus: 0}
|
||||
}
|
||||
if (this.status == 3) {
|
||||
url = `/app/appsessionarchivereportinfo/finish`
|
||||
successText = '办结成功'
|
||||
params = {...this.forms, eventStatus: 2}
|
||||
params = {...this.forms, eventStatus: 1}
|
||||
}
|
||||
params.id = this.id
|
||||
this.$http.post(url, params).then((res) => {
|
||||
@@ -164,8 +167,8 @@ export default {
|
||||
})
|
||||
},
|
||||
selectStatus(e) {
|
||||
this.forms.groupName = e[0].label
|
||||
this.forms.groupId = e[0].value
|
||||
this.forms.typeName = e[0].label
|
||||
this.forms.type = e[0].value
|
||||
},
|
||||
toSelectUser() {
|
||||
uni.navigateTo({url: './SelectUser'})
|
||||
@@ -223,10 +226,10 @@ export default {
|
||||
padding-bottom: 20px !important;
|
||||
|
||||
.u-form-item__body {
|
||||
.default {
|
||||
width: 160px;
|
||||
height: 160px;
|
||||
}
|
||||
// .default {
|
||||
// width: 160px;
|
||||
// height: 160px;
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -250,5 +253,13 @@ export default {
|
||||
width: 100%;
|
||||
text-align: right;
|
||||
}
|
||||
.select-user {
|
||||
width: 100%;
|
||||
span {
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -156,7 +156,7 @@ export default {
|
||||
watch: {},
|
||||
onLoad(o) {
|
||||
this.id = o.id
|
||||
this.$dict.load('realityStatus', 'clapDoStatus', 'xbotReportEventType').then(() => {
|
||||
this.$dict.load('realityStatus', 'clapDoStatus', 'xbotReportEventType', 'clapEventStatus').then(() => {
|
||||
this.getDetail()
|
||||
})
|
||||
|
||||
@@ -181,7 +181,7 @@ export default {
|
||||
},
|
||||
|
||||
doThings() {
|
||||
this.$http.post(`/app/appsessionarchivereportinfo/finish?id=${this.id}&eventStatus=1`).then((res) => {
|
||||
this.$http.post(`/app/appsessionarchivereportinfo/acceptance?id=${this.id}`).then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.getDetail()
|
||||
}
|
||||
|
||||
@@ -72,10 +72,6 @@ export default {
|
||||
},
|
||||
onShow() {
|
||||
document.title = '事件编辑'
|
||||
this.forms.name = this.user.name
|
||||
this.forms.phone = this.user.phone
|
||||
this.forms.girdId = this.user.girdId
|
||||
this.forms.girdName = this.user.girdName
|
||||
uni.$on('chooseLat', res => {
|
||||
this.forms.mapInfo = {...res}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user