bug
This commit is contained in:
@@ -22,16 +22,14 @@
|
||||
<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>
|
||||
</div>
|
||||
|
||||
<div class="btn" @click="submit">
|
||||
<div class="btn">
|
||||
<span v-if="this.number == 1">转交事件</span>
|
||||
<span v-if="this.number == 2">拒绝受理</span>
|
||||
<span v-if="this.number == 3">我来受理</span>
|
||||
<span v-if="this.number == 2" @click="submit2">拒绝受理</span>
|
||||
<span v-if="this.number == 3" @click="submit3">我来受理</span>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -72,7 +70,11 @@ export default {
|
||||
this.typeList()
|
||||
},
|
||||
methods: {
|
||||
submit() {
|
||||
// 拒绝 /app/appclapeventinfo/finishByGirdMember
|
||||
// 同意 /app/appclapeventinfo/finishByManager
|
||||
|
||||
// 拒绝
|
||||
submit2() {
|
||||
if (this.flag) return
|
||||
|
||||
this.$refs.uForm.validate((valid) => {
|
||||
@@ -96,17 +98,67 @@ export default {
|
||||
|
||||
this.flag = true
|
||||
this.$http
|
||||
.post(this.number == 2 ? '/app/appclapeventinfo/finishByGirdMember' : '/app/appclapeventinfo/finishByManager', {
|
||||
.post('/app/appclapeventinfo/finishByManager', {
|
||||
groupName: this.forms.groupName,
|
||||
groupId: this.forms.groupId,
|
||||
content: this.forms.content,
|
||||
fileIds: imgs || [],
|
||||
files: imgs || [],
|
||||
id: this.id,
|
||||
})
|
||||
.then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.$u.toast('受理成功')
|
||||
this.forms = {}
|
||||
this.flag = false
|
||||
uni.$emit('nextList')
|
||||
setTimeout(() => {
|
||||
uni.navigateBack()
|
||||
}, 600)
|
||||
}
|
||||
})
|
||||
} else {
|
||||
this.$u.toast('失败')
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
// 同意
|
||||
submit3() {
|
||||
if (this.flag) return
|
||||
|
||||
this.$refs.uForm.validate((valid) => {
|
||||
if (valid) {
|
||||
if (this.number == 2 || this.number == 3) {
|
||||
if (!this.forms.groupName) {
|
||||
return this.$u.toast('请选择事件分类')
|
||||
}
|
||||
|
||||
if (!this.forms.content) {
|
||||
return this.$u.toast(this.number == 2 ? '请输入拒绝受理意见' : '请输入你的办结意见')
|
||||
}
|
||||
}
|
||||
|
||||
const imgs = []
|
||||
if (this.forms.files) {
|
||||
this.forms.files.map((e) => {
|
||||
imgs.push({ url: e.url, id: e.id })
|
||||
})
|
||||
}
|
||||
|
||||
this.flag = true
|
||||
this.$http
|
||||
.post('/app/appclapeventinfo/finishByGirdMember', {
|
||||
groupName: this.forms.groupName,
|
||||
groupId: this.forms.groupId,
|
||||
content: this.forms.content,
|
||||
files: imgs || [],
|
||||
id: this.id,
|
||||
})
|
||||
.then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.$u.toast('受理成功')
|
||||
this.flag = false
|
||||
this.forms = {}
|
||||
uni.$emit('nextList')
|
||||
setTimeout(() => {
|
||||
uni.navigateBack()
|
||||
|
||||
Reference in New Issue
Block a user