From a68bf12a2975405f57f9a9d51b91c13a93c026f0 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期三, 31 一月 2024 21:01:36 +0800
Subject: [PATCH] Mr.Shi
---
company/src/components/enterprise/supplementaryExplanation.vue | 76 ++++++++++++++++++++++++++++++++++++++
1 files changed, 76 insertions(+), 0 deletions(-)
diff --git a/company/src/components/enterprise/supplementaryExplanation.vue b/company/src/components/enterprise/supplementaryExplanation.vue
new file mode 100644
index 0000000..047e872
--- /dev/null
+++ b/company/src/components/enterprise/supplementaryExplanation.vue
@@ -0,0 +1,76 @@
+<template>
+ <GlobalWindow
+ :title="title"
+ width="40%"
+ :visible.sync="visible"
+ :confirm-working="isWorking"
+ @confirm="confirm"
+ >
+ <el-form :model="form" :rules="rules" ref="form" label-width="100px" class="demo-ruleForm">
+ <el-form-item label="琛ュ厖璇存槑" prop="supplement">
+ <el-input type="textarea" :rows="5" placeholder="璇疯緭鍏�" v-model="form.supplement"></el-input>
+ </el-form-item>
+ </el-form>
+ </GlobalWindow>
+</template>
+
+<script>
+ import BaseOpera from '@/components/base/BaseOpera'
+ import GlobalWindow from '@/components/common/GlobalWindow'
+ import { supplement } from '@/api/business/settleClaims'
+ export default {
+ name: 'supplementaryExplanation',
+ extends: BaseOpera,
+ components: { GlobalWindow },
+ data () {
+ return {
+ form: {
+ id: null,
+ supplement: ''
+ },
+ rules: {
+ supplement: [
+ { required: true, message: '璇疯緭鍏ヨˉ鍏呰鏄�' }
+ ]
+ }
+ }
+ },
+ methods: {
+ open (title, id) {
+ this.title = title
+ this.form.id = id
+ this.form.supplement = ''
+ this.visible = true
+ },
+ confirm() {
+ this.$refs.form.validate((valid) => {
+ if (!valid) {
+ return
+ }
+ // 璋冪敤鏂板缓鎺ュ彛
+ this.isWorking = true
+ supplement({
+ objType: 0,
+ supplement: this.form.supplement,
+ id: this.form.id,
+
+ }).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>
+
+</style>
--
Gitblit v1.9.3