detail
This commit is contained in:
@@ -2,81 +2,115 @@
|
||||
<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">
|
||||
<u-input v-model="forms.status" placeholder="请选择事件分类" @click="show = true" />
|
||||
<u-form-item label="事件分类" prop="groupName" required :border-bottom="false" right-icon="arrow-right">
|
||||
<u-input v-model="forms.groupName" placeholder="请选择事件分类" @click="show = true" />
|
||||
|
||||
<u-select v-model="show" :list="$dict.getDict('realityStatus')" value-name="dictValue" label-name="dictName" @confirm="selectStatus"></u-select>
|
||||
</u-form-item>
|
||||
<u-form-item label="转交给" prop="status" required :border-bottom="false" right-icon="arrow-right" class="first-form">
|
||||
<u-input v-model="forms.status" placeholder="请选择转交对象" @click="toSelectUser" disabled />
|
||||
<u-select v-model="show" :list="myList" value-name="id" label-name="groupName" @confirm="selectStatus"></u-select>
|
||||
</u-form-item>
|
||||
|
||||
<u-form-item label="办理意见" prop="content" :border-bottom="false" label-position="top" class="contents">
|
||||
<u-input v-model="forms.content" placeholder="请写下你的办理意见..." type="textarea" auto-height height="100" maxlength="500" />
|
||||
<!-- <u-form-item label="转交给" prop="status" required :border-bottom="false" right-icon="arrow-right" class="first-form">
|
||||
<u-input v-model="forms.status" placeholder="请选择转交对象" @click="toSelectUser" disabled />
|
||||
|
||||
<AiTreePicker :ops="treeList" v-model="forms.status" @select="handerSelect"> </AiTreePicker>
|
||||
|
||||
<div :style="{ color: form.postFunction ? '' : '#c0c4cc' }" v-text="form.postFunction || '请选择岗位'" />
|
||||
</u-form-item> -->
|
||||
|
||||
<u-form-item label="办结意见" prop="content" required :border-bottom="false" label-position="top" class="contents">
|
||||
<u-input v-model="forms.content" placeholder="请写下你的办结意见..." type="textarea" auto-height height="100" maxlength="500" />
|
||||
</u-form-item>
|
||||
|
||||
<div class="line"></div>
|
||||
|
||||
<u-form-item label="图片上传(最多9张)" prop="fileIds" :border-bottom="false" class="avatars" label-position="top">
|
||||
<AiUploader :def.sync="forms.fileIds" multiple placeholder="上传图片" :limit="9"></AiUploader>
|
||||
<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>
|
||||
</u-form-item>
|
||||
</u-form>
|
||||
</div>
|
||||
|
||||
<div class="btn" @click="submit">转交事件</div>
|
||||
<div class="btn" @click="submit">
|
||||
<span v-if="this.number == 1">转交事件</span>
|
||||
<span v-if="this.number == 2">拒绝受理</span>
|
||||
<span v-if="this.number == 3">我来受理</span>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'Transfer',
|
||||
name: 'Content',
|
||||
components: {},
|
||||
props: {},
|
||||
data() {
|
||||
return {
|
||||
forms: {
|
||||
status: '',
|
||||
groupName: '',
|
||||
groupId: '',
|
||||
content: '',
|
||||
fileIds: [],
|
||||
files: [],
|
||||
},
|
||||
flag: false,
|
||||
show: false
|
||||
show: false,
|
||||
number: '',
|
||||
treeList: [],
|
||||
myList: [],
|
||||
groupName: '',
|
||||
groupId: '',
|
||||
id: '',
|
||||
}
|
||||
},
|
||||
onLoad(o) {
|
||||
console.log(o)
|
||||
this.groupName = o.groupName
|
||||
this.groupId = o.groupId
|
||||
this.number = o.number
|
||||
this.id = o.id
|
||||
|
||||
this.forms.groupId = this.groupId
|
||||
this.forms.groupName = this.groupName
|
||||
// this.getTree()
|
||||
this.typeList()
|
||||
},
|
||||
methods: {
|
||||
submit() {
|
||||
if (this.flag) return
|
||||
|
||||
this.$refs.uForm.validate((valid) => {
|
||||
if (valid) {
|
||||
if (!this.forms.content) {
|
||||
return this.$u.toast('请选择转交人')
|
||||
if (this.number == 3) {
|
||||
if (!this.forms.groupName) {
|
||||
return this.$u.toast('请选择事件分类')
|
||||
}
|
||||
|
||||
if (!this.forms.content) {
|
||||
return this.$u.toast('请输入办结意见')
|
||||
}
|
||||
}
|
||||
|
||||
const imgs = []
|
||||
if (this.forms.fileIds) {
|
||||
this.forms.fileIds.map((e) => {
|
||||
if (this.forms.files) {
|
||||
this.forms.files.map((e) => {
|
||||
imgs.push({ url: e.url, id: e.id })
|
||||
})
|
||||
}
|
||||
|
||||
this.flag = true
|
||||
this.$http
|
||||
.post(`/app/appvisitvondolence/addOrUpdate`, {
|
||||
title: this.forms.title,
|
||||
.post(`/app/appclapeventinfo/finishByGirdMember`, {
|
||||
groupName: this.forms.groupName,
|
||||
groupId: this.forms.groupId,
|
||||
content: this.forms.content,
|
||||
// images: JSON.stringify(imgs) || [],
|
||||
images: imgs || [],
|
||||
|
||||
people: this.forms.people,
|
||||
phone: this.forms.phone,
|
||||
fileIds: imgs || [],
|
||||
id: this.id,
|
||||
})
|
||||
.then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.$u.toast('发布成功')
|
||||
this.flag = false
|
||||
uni.navigateTo({ url: `./AppHandSnapshot` })
|
||||
uni.$emit('nextList')
|
||||
setTimeout(() => {
|
||||
uni.navigateBack()
|
||||
}, 600)
|
||||
}
|
||||
})
|
||||
} else {
|
||||
@@ -85,10 +119,44 @@ export default {
|
||||
})
|
||||
},
|
||||
|
||||
typeList() {
|
||||
this.$http
|
||||
.post(`/app/appclapeventgroup/list`, null, {
|
||||
params: {
|
||||
size: 9999,
|
||||
},
|
||||
})
|
||||
.then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.myList = res.data.records
|
||||
this.$forceUpdate()
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
selectStatus(e) {
|
||||
console.log(e)
|
||||
if (this.show) {
|
||||
this.forms.groupName = e[0].label
|
||||
this.forms.groupId = e[0].value
|
||||
} else {
|
||||
}
|
||||
},
|
||||
|
||||
getTree() {
|
||||
this.$http.post('/app/wxcp/wxtag/tree').then((res) => {
|
||||
if (res?.data) {
|
||||
console.log(res.data)
|
||||
this.treeList = res.data
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
handerSelect() {},
|
||||
|
||||
toSelectUser() {
|
||||
console.log(123)
|
||||
uni.navigateTo({url: './SelectUser'})
|
||||
}
|
||||
uni.navigateTo({ url: './SelectUser' })
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user