| | |
| | | <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> |
| | |
| | | |
| | | ZERO(0, "待审核","","","待审核","待处理","待审核","待签署","待签署"), |
| | | ONE(1, "企业待签署","","","工种待审核","","已退回","",""), |
| | | TWO(2, "待出单","待审核","待审核","","","已立案","",""), |
| | | TWO(2, "待出单","待审核","待审核","","","待受理","",""), |
| | | THREE(3, "申请退回","申请退回","申请退回","","","已受理,需要补充材料","",""), |
| | | FOUR(4, "已退回","已退回","已退回","","","已拒绝","",""), |
| | | FIVE(5, "申请驳回","申请驳回","申请驳回","","","商议待领导审批","",""), |
| | |
| | | Constants.SettleClaimsLogType.PLATFORM_WAIT_DISCUSS, |
| | | dto.getDescribe(),Constants.SettleClaimsStatus.WAIT_DISCUSS_AUDIT); |
| | | } |
| | | |
| | | if( Constants.equalsInteger(settleClaims.getStatus(),Constants.SettleClaimsStatus.ACCEPTANCE.getKey()) || |
| | | Constants.equalsInteger(settleClaims.getStatus(),Constants.SettleClaimsStatus.WAIT_DISCUSS_AUDIT.getKey())){ |
| | | //-如果是待立案或者已立案待审核,发待办通知------------- |
| | | Constants.NoticeObjectType noticeObjectType = Constants.NoticeObjectType.SETTLE_CLAIMS; |
| | | noticesMapper.delete(new QueryWrapper<Notices>().lambda().eq(Notices::getObjType,noticeObjectType.getKey()).eq(Notices::getObjId,settleClaims.getId())); |
| | | Notices notices = new Notices(noticeObjectType,Constants.ZERO,settleClaims.getId(),getNoticeConttent(settleClaims), |
| | | settleClaims.getCompanyId(), |
| | | Constants.equalsInteger(settleClaims.getStatus(),Constants.SettleClaimsStatus.RETURN_ACCEPTANCE.getKey())?Constants.NoticeType.ZERO:Constants.NoticeType.TWO); |
| | | noticesMapper.insert(notices); |
| | | } |
| | | } |
| | | |
| | | |