From 2b0a139f88adbbb67bc6feed69dc1ee9ff158cb9 Mon Sep 17 00:00:00 2001 From: jiangping <jp@doumee.com> Date: 星期四, 29 五月 2025 13:34:17 +0800 Subject: [PATCH] 提交一把订单 --- company/src/components/business/acceptance.vue | 154 +++++++++++++++++++++++++------------------------- 1 files changed, 77 insertions(+), 77 deletions(-) diff --git a/company/src/components/business/acceptance.vue b/company/src/components/business/acceptance.vue index dac1c75..2dd40b4 100644 --- a/company/src/components/business/acceptance.vue +++ b/company/src/components/business/acceptance.vue @@ -2,7 +2,7 @@ <GlobalWindow :title="title" width="500px" - text="鍚屾剰鍙楃悊" + text="鎻愪氦" :visible.sync="visible" :confirm-working="isWorking" @confirm="confirm" @@ -33,83 +33,83 @@ </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> -- Gitblit v1.9.3