| | |
| | | <GlobalWindow |
| | | :title="title" |
| | | width="500px" |
| | | text="同意受理" |
| | | text="提交" |
| | | :visible.sync="visible" |
| | | :confirm-working="isWorking" |
| | | @confirm="confirm" |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import BaseOpera from '@/components/base/BaseOpera' |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | | import { acceptance, getDiscussProblemType } from '@/api/business/settleRisk' |
| | | export default { |
| | | name: 'acceptance', |
| | | extends: BaseOpera, |
| | | components: { GlobalWindow }, |
| | | data () { |
| | | return { |
| | | form: { |
| | | id: null, |
| | | status: 0, |
| | | describe: '', |
| | | syProblemOpts: '', |
| | | problem: [] |
| | | }, |
| | | problemList: [], |
| | | rules: { |
| | | problem: [ |
| | | { required: true, message: '不能为空', trigger: 'blur' } |
| | | ] |
| | | }, |
| | | rules1: { |
| | | problem: [ |
| | | { required: true, message: '不能为空', trigger: 'blur' } |
| | | ], |
| | | describe: [ |
| | | { required: true, message: '不能为空', trigger: 'blur' } |
| | | ] |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | open(title, id) { |
| | | this.title = title |
| | | this.form.id = id |
| | | getDiscussProblemType() |
| | | .then(res => { |
| | | console.log(res) |
| | | this.problemList = res |
| | | }) |
| | | this.visible = true |
| | | }, |
| | | changeStatus() { |
| | | this.$nextTick(() => { |
| | | this.$refs.form.clearValidate(); |
| | | }) |
| | | }, |
| | | changeProblem(e) { |
| | | if (!e || e.length === 0) { |
| | | this.form.syProblemOpts = '' |
| | | } else { |
| | | this.form.syProblemOpts = e.join(',') |
| | | } |
| | | }, |
| | | confirm() { |
| | | this.$refs.form.validate((valid) => { |
| | | if (!valid) { |
| | | return |
| | | } |
| | | this.isWorking = true |
| | | acceptance(this.form) |
| | | .then(() => { |
| | | this.visible = false |
| | | this.$tip.apiSuccess('受理成功') |
| | | this.$emit('success') |
| | | }) |
| | | .catch(e => { |
| | | this.$tip.apiFailed(e) |
| | | }) |
| | | .finally(() => { |
| | | this.isWorking = false |
| | | }) |
| | | }) |
| | | } |
| | | } |
| | | import BaseOpera from '@/components/base/BaseOpera' |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | | import { acceptance, getDiscussProblemType } from '@/api/business/settleRisk' |
| | | export default { |
| | | name: 'acceptance', |
| | | extends: BaseOpera, |
| | | components: { GlobalWindow }, |
| | | data () { |
| | | return { |
| | | form: { |
| | | id: null, |
| | | status: 0, |
| | | describe: '', |
| | | syProblemOpts: '', |
| | | problem: [] |
| | | }, |
| | | problemList: [], |
| | | rules: { |
| | | problem: [ |
| | | { required: true, message: '不能为空', trigger: 'blur' } |
| | | ] |
| | | }, |
| | | rules1: { |
| | | problem: [ |
| | | { required: true, message: '不能为空', trigger: 'blur' } |
| | | ], |
| | | describe: [ |
| | | { required: true, message: '不能为空', trigger: 'blur' } |
| | | ] |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | open (title, id) { |
| | | this.title = title |
| | | this.form.id = id |
| | | getDiscussProblemType() |
| | | .then(res => { |
| | | console.log(res) |
| | | this.problemList = res |
| | | }) |
| | | this.visible = true |
| | | }, |
| | | changeStatus () { |
| | | this.$nextTick(() => { |
| | | this.$refs.form.clearValidate() |
| | | }) |
| | | }, |
| | | changeProblem (e) { |
| | | if (!e || e.length === 0) { |
| | | this.form.syProblemOpts = '' |
| | | } else { |
| | | this.form.syProblemOpts = e.join(',') |
| | | } |
| | | }, |
| | | confirm () { |
| | | this.$refs.form.validate((valid) => { |
| | | if (!valid) { |
| | | return |
| | | } |
| | | this.isWorking = true |
| | | acceptance(this.form) |
| | | .then(() => { |
| | | this.visible = false |
| | | this.$tip.apiSuccess('操作成功') |
| | | this.$emit('success') |
| | | }) |
| | | .catch(e => { |
| | | this.$tip.apiFailed(e) |
| | | }) |
| | | .finally(() => { |
| | | this.isWorking = false |
| | | }) |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |