From 5019ed6016b47221321bf395cd102dc4b51b4724 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期一, 05 二月 2024 09:40:43 +0800
Subject: [PATCH] Mr.Shi
---
company/src/components/business/OperaTaxesWindow.vue | 122 +++++++++++++++++++++++++++++++++++-----
1 files changed, 107 insertions(+), 15 deletions(-)
diff --git a/company/src/components/business/OperaTaxesWindow.vue b/company/src/components/business/OperaTaxesWindow.vue
index 4f6ce95..271fc8e 100644
--- a/company/src/components/business/OperaTaxesWindow.vue
+++ b/company/src/components/business/OperaTaxesWindow.vue
@@ -166,13 +166,42 @@
</el-table-column>
</el-table>
</div>
+ <el-dialog
+ title="涓婁紶鍙戠エ"
+ :visible.sync="visible1"
+ width="500px"
+ style="margin-top: 150px"
+ :show-close="false"
+ append-to-body
+ :close-on-click-modal="false"
+ center>
+ <div class="form">
+ <div class="form_item">
+ <div class="form_item_val">
+ <el-form :model="form" ref="form" :rules="rules" style="width: 100%;">
+ <el-form-item label="濉啓閫�鍥炶鏄庯細":inline="true" prop="backInfo">
+ <el-input v-model="form.backInfo" type="textarea" placeholder="璇疯緭鍏�" />
+ </el-form-item>
+ </el-form>
+ </div>
+ </div>
+ </div>
+ <span slot="footer" class="dialog-footer">
+ <el-button @click="visible1 = false">鍙� 娑�</el-button>
+ <el-button type="primary" @click="backDo()">鎻� 浜�</el-button>
+ </span>
+ </el-dialog>
+ <template v-slot:footer>
+ <el-button v-if="model.status ==0 && !visible1" type="danger" @click="visible1=true">閫�鍥炵敵璇�</el-button>
+ <el-button @click="visible=false">鍙栨秷</el-button>
+ </template>
</GlobalWindow>
</template>
<script>
import BaseOpera from '@/components/base/BaseOpera'
import GlobalWindow from '@/components/common/GlobalWindow'
-import { getDetail } from '@/api/business/taxes'
+import { getDetail,backApply } from '@/api/business/taxes'
export default {
name: 'OperaCompanyWindow',
extends: BaseOpera,
@@ -181,11 +210,16 @@
return {
// 琛ㄥ崟鏁版嵁
model: {},
+ visible1:false,
form: {
- id: null
+ id: null,
+ backInfo:''
},
- // 楠岃瘉瑙勫垯
- rules: {},
+ rules: {
+ backInfo: [
+ { required: true, message: '璇疯緭鍏ラ��鍥炶鏄�' }
+ ],
+ },
tableData: [],
tableData1: [],
tableData2: []
@@ -201,12 +235,33 @@
open (title, target) {
this.title = title
this.visible = true
+ this.visible1 = false
+ this.form.backInfo=''
this.model = {}
this.tableData = []
this.tableData1 = []
this.tableData2 = []
this.model = target
+ this.form.id = target.id
this.getDetails()
+ },
+ backDo(){
+ this.$refs.form.validate((valid) => {
+ if (!valid) {
+ return
+ }
+ this.isWorking = true
+ backApply(this.form)
+ .then(response => {
+ this.visible1 = false
+ this.getDetails()
+ this.$emit('success')
+ }).catch(err => {
+ this.$tip.apiFailed(err)
+ }).finally(() => {
+ this.isWorking = false
+ })
+ })
},
getDetails () {
getDetail(this.model.id).then(res => {
@@ -257,17 +312,17 @@
color:rgba(249, 86, 1, 0.996078431372549);
}
}
- ::v-deep .el-table__header-wrapper th:first-child .cell{
- color:rgba(249, 86, 1, 0.996078431372549) !important
- }
- ::v-deep table:first-of-type th:first-child .cell{
- //color:rgba(249, 86, 1, 0.996078431372549) !important
- }
- /* ::v-deep .el-table--border th:first-child .cell {
- &:nth-child(2) {
- color:rgba(249, 86, 1, 0.996078431372549);
- }
- }*/
+ /* ::v-deep .el-table__header-wrapper th:first-child .cell{
+ color:rgba(249, 86, 1, 0.996078431372549) !important
+ }
+ ::v-deep table:first-of-type th:first-child .cell{
+ //color:rgba(249, 86, 1, 0.996078431372549) !important
+ }
+ ::v-deep .el-table--border th:first-child .cell {
+ &:nth-child(2) {
+ color:rgba(249, 86, 1, 0.996078431372549);
+ }
+ }*/
.info {
@@ -318,4 +373,41 @@
}
}
}
+
+ .form {
+ width: 100%;
+ display: flex;
+ flex-direction: column;
+ .form_item {
+ width: 100%;
+ display: flex;
+ align-items: center;
+ margin-bottom: 20px;
+ &:last-child {
+ margin-bottom: 0 !important;
+ }
+ .form_item_label {
+ width: 100px;
+ flex-shrink: 0;
+ font-size: 14px;
+ color: black;
+ }
+ .form_item_val {
+ flex: 1;
+ min-height: 35px;
+ display: flex;
+ align-items: center;
+ input {
+ width: 100%;
+ height: 100%;
+ font-size: 14px;
+ color: black;
+ padding: 5px 10px;
+ outline: none;
+ box-sizing: border-box;
+ border: 1px solid #ececec;
+ }
+ }
+ }
+ }
</style>
--
Gitblit v1.9.3