BUG 27457
This commit is contained in:
@@ -2,41 +2,49 @@
|
||||
<div class="Transfer">
|
||||
<div class="contents">
|
||||
<u-form :model="forms" ref="uForm" label-width="auto" :border-bottom="false">
|
||||
<u-form-item label="转交给" prop="status" required :border-bottom="false" right-icon="arrow-right" class="first-form" v-if="status == 4">
|
||||
<u-form-item label="转交给" prop="status" required :border-bottom="false" right-icon="arrow-right"
|
||||
class="first-form" v-if="status == 4">
|
||||
<!-- <u-input v-model="forms.name" placeholder="请选择转交对象" @click="toSelectUser" disabled /> -->
|
||||
<div @click="toSelectUser" style="width: 100%; text-align: right;">
|
||||
<span v-if="!forms.name" style="color:#999;">请选择</span>
|
||||
<AiOpenData v-if="forms.name" type="userName" :openid="forms.name" style="display:inline-block;"/>
|
||||
<AiOpenData v-else-if="selectUser.name" type="userName" :openid="forms.name" style="display:inline-block;"/>
|
||||
<span v-else v-text="forms.name"/>
|
||||
</div>
|
||||
|
||||
|
||||
</u-form-item>
|
||||
<u-form-item label="事件分类" prop="groupName" required :border-bottom="false" right-icon="arrow-right" v-if="status== 2">
|
||||
<u-form-item label="事件分类" prop="groupName" required :border-bottom="false" right-icon="arrow-right"
|
||||
v-if="status== 2">
|
||||
|
||||
<span @click="show = true" class="right-span" :style="forms.groupName ? '' : 'color:#999;'">{{forms.groupName || '请选择事件分类'}}</span>
|
||||
<span @click="show = true" class="right-span"
|
||||
:style="forms.groupName ? '' : 'color:#999;'">{{ forms.groupName || '请选择事件分类' }}</span>
|
||||
|
||||
<u-select v-model="show" :list="myList" value-name="id" label-name="groupName" @confirm="selectStatus"></u-select>
|
||||
<u-select v-model="show" :list="myList" value-name="id" label-name="groupName"
|
||||
@confirm="selectStatus"></u-select>
|
||||
</u-form-item>
|
||||
|
||||
<u-form-item :label="status == 2 ? '办结意见':'办理意见'" prop="content" required :border-bottom="false" label-position="top" class="contents">
|
||||
<u-input v-model="forms.content" :placeholder="status == 2 ? '请写下你的办结意见…' : '请写下你的办理意见...'" type="textarea" auto-height height="100" maxlength="200" />
|
||||
<u-form-item :label="status == 2 ? '办结意见':'办理意见'" prop="content" required :border-bottom="false"
|
||||
label-position="top" class="contents">
|
||||
<u-input v-model="forms.content" :placeholder="status == 2 ? '请写下你的办结意见…' : '请写下你的办理意见...'" type="textarea"
|
||||
auto-height height="100" maxlength="200"/>
|
||||
</u-form-item>
|
||||
|
||||
<div class="limit">{{ forms.content.length }}/200</div>
|
||||
|
||||
|
||||
<div class="line"></div>
|
||||
|
||||
<u-form-item label="图片上传(最多9张)" prop="files" :border-bottom="false" class="avatars" label-position="top">
|
||||
<AiUploader :def.sync="forms.files" multiple placeholder="上传图片" :limit="9" action="/admin/file/add2"></AiUploader>
|
||||
<AiUploader :def.sync="forms.files" multiple placeholder="上传图片" :limit="9"
|
||||
action="/admin/file/add2"></AiUploader>
|
||||
</u-form-item>
|
||||
|
||||
</u-form>
|
||||
</div>
|
||||
|
||||
<div class="btn" v-if="this.status == 4" @click="confirm">
|
||||
<div class="btn" v-if="status == 4" @click="confirm">
|
||||
<span>转交事件</span>
|
||||
</div>
|
||||
|
||||
<div class="btn" v-if="this.status == 2" @click="confirm">
|
||||
<div class="btn" v-if="status == 2" @click="confirm">
|
||||
<span>确定</span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -58,12 +66,11 @@ export default {
|
||||
},
|
||||
flag: false,
|
||||
show: false,
|
||||
status: '', //4转交 2我已办结
|
||||
status: '', //4转交 2我已办结
|
||||
myList: [],
|
||||
id: '',
|
||||
selectUser: {},
|
||||
titleList: ['', '', '事件处理', '', '事件转交'],
|
||||
|
||||
}
|
||||
},
|
||||
onLoad(option) {
|
||||
@@ -74,9 +81,9 @@ export default {
|
||||
this.typeList()
|
||||
uni.$on('goback', (res) => {
|
||||
this.selectUser = res
|
||||
if(res.name) {
|
||||
if (res.name) {
|
||||
this.forms.name = res.name
|
||||
}else{
|
||||
} else {
|
||||
this.forms.name = res.girdName
|
||||
}
|
||||
})
|
||||
@@ -101,20 +108,20 @@ export default {
|
||||
},
|
||||
|
||||
confirm() {
|
||||
if(this.status == 4 && !this.forms.name) {
|
||||
if (this.status == 4 && !this.forms.name) {
|
||||
return this.$u.toast('请选择转交对象')
|
||||
}
|
||||
if(this.status != 4 && !this.forms.groupName) {
|
||||
if (this.status != 4 && !this.forms.groupName) {
|
||||
return this.$u.toast('请选择分类')
|
||||
}
|
||||
if(this.status != 4 && !this.forms.content) {
|
||||
if (this.status != 4 && !this.forms.content) {
|
||||
return this.$u.toast('请输入意见')
|
||||
}
|
||||
this.submit()
|
||||
},
|
||||
submit() { //status 4转交 2我已办结
|
||||
var url = '', successText= '', params= ''
|
||||
if(this.status == 4) {
|
||||
var url = '', successText = '', params = ''
|
||||
if (this.status == 4) {
|
||||
url = `/app/appclapeventinfo/transfer`
|
||||
successText = '转交成功'
|
||||
params = {
|
||||
@@ -122,13 +129,13 @@ export default {
|
||||
girdId: this.selectUser.id,
|
||||
girdName: this.selectUser.girdName,
|
||||
}
|
||||
if(this.selectUser.name) { //选择的网格员
|
||||
if (this.selectUser.name) { //选择的网格员
|
||||
params.girdId = this.selectUser.girdId
|
||||
params.girdMemberId = this.selectUser.wxUserId
|
||||
params.girdMemberName = this.selectUser.name
|
||||
}
|
||||
}
|
||||
if(this.status == 2) {
|
||||
if (this.status == 2) {
|
||||
url = `/app/appclapeventinfo/finishByGirdMember`
|
||||
successText = '办结成功'
|
||||
params = {...this.forms}
|
||||
@@ -140,12 +147,12 @@ export default {
|
||||
uni.$emit('updateDeatil')
|
||||
uni.$emit('getListInit')
|
||||
setTimeout(() => {
|
||||
if(this.status == 4) {
|
||||
if (this.status == 4) {
|
||||
uni.navigateBack({delta: 2})
|
||||
}else {
|
||||
} else {
|
||||
uni.navigateBack()
|
||||
}
|
||||
},600)
|
||||
}, 600)
|
||||
}
|
||||
})
|
||||
},
|
||||
@@ -154,7 +161,7 @@ export default {
|
||||
this.forms.groupId = e[0].value
|
||||
},
|
||||
toSelectUser() {
|
||||
uni.navigateTo({ url: './SelectUser' })
|
||||
uni.navigateTo({url: './SelectUser'})
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -163,14 +170,18 @@ export default {
|
||||
<style scoped lang="scss">
|
||||
.Transfer {
|
||||
height: 100%;
|
||||
|
||||
.contents {
|
||||
padding-bottom: 140px;
|
||||
|
||||
::v-deep .u-form {
|
||||
.u-form-item {
|
||||
padding: 0 45px !important;
|
||||
|
||||
.u-form-item__body {
|
||||
.u-form-item--right__content__slot {
|
||||
padding-bottom: 0;
|
||||
|
||||
.u-input {
|
||||
text-align: right !important;
|
||||
}
|
||||
@@ -191,6 +202,7 @@ export default {
|
||||
|
||||
.contents {
|
||||
padding-bottom: 20px !important;
|
||||
|
||||
.u-form-item__body {
|
||||
.u-form-item--right__content__slot {
|
||||
.u-input {
|
||||
@@ -202,6 +214,7 @@ export default {
|
||||
|
||||
.avatars {
|
||||
padding-bottom: 20px !important;
|
||||
|
||||
.u-form-item__body {
|
||||
.default {
|
||||
width: 160px;
|
||||
@@ -213,14 +226,14 @@ export default {
|
||||
}
|
||||
|
||||
.limit {
|
||||
text-align: right !important;
|
||||
font-size: 28px;
|
||||
background: #FFFFFF;
|
||||
padding-right: 44px;
|
||||
height: 60px;
|
||||
line-height: 60px;
|
||||
color: #999;
|
||||
}
|
||||
text-align: right !important;
|
||||
font-size: 28px;
|
||||
background: #FFFFFF;
|
||||
padding-right: 44px;
|
||||
height: 60px;
|
||||
line-height: 60px;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
// ::v-deep u-input {
|
||||
// border-bottom: none;
|
||||
@@ -238,7 +251,8 @@ export default {
|
||||
font-weight: 500;
|
||||
color: #ffffff;
|
||||
}
|
||||
.right-span{
|
||||
|
||||
.right-span {
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
text-align: right;
|
||||
|
||||
Reference in New Issue
Block a user