From 3caebf79cfe8c6bd80c823312eae20b7902cb891 Mon Sep 17 00:00:00 2001
From: yxh <172933527@qq.com>
Date: 星期三, 27 十二月 2023 18:55:07 +0800
Subject: [PATCH] yxh
---
src/views/project/fundcheck/ethicalExpertFeeCheck/index.vue | 81 ++++++++++++++++++++++++++--------------
1 files changed, 52 insertions(+), 29 deletions(-)
diff --git a/src/views/project/fundcheck/ethicalExpertFeeCheck/index.vue b/src/views/project/fundcheck/ethicalExpertFeeCheck/index.vue
index 9b8a1ca..eba6a42 100644
--- a/src/views/project/fundcheck/ethicalExpertFeeCheck/index.vue
+++ b/src/views/project/fundcheck/ethicalExpertFeeCheck/index.vue
@@ -9,12 +9,12 @@
>
<el-row>
<el-col :span="8">
- <el-form-item label="鐢宠鏃ユ湡" prop="createTime">
+ <el-form-item label="鐢宠鏃ユ湡" prop="applyTime">
<el-date-picker
format="yyyy-MM-dd"
@change="selectapplication"
value-format="yyyy-MM-dd"
- v-model="createTime"
+ v-model="applyTime"
type="daterange"
range-separator="鑷�"
start-placeholder="鐢宠寮�濮嬫棩鏈�"
@@ -159,10 +159,10 @@
label="鐢宠鏃ユ湡"
width="120"
align="center"
- prop="createTime"
+ prop="applyTime"
>
<template slot-scope="scope">
- <span>{{ parseTime(scope.row.createTime, "{y}-{m}-{d}") }}</span>
+ <span>{{ parseTime(scope.row.applyTime, "{y}-{m}-{d}") }}</span>
</template>
</el-table-column>
<el-table-column
@@ -622,12 +622,12 @@
</el-row>
<el-row style="margin-top: 25px; margin-bottom: 5px">
<el-col :span="7">
- <el-form-item label="鐢宠鏃ユ湡" prop="createTime">
+ <el-form-item label="鐢宠鏃ユ湡" prop="applyTime">
<!-- <el-input v-model="form.donorno" placeholder="璇疯緭鍏ョ敵璇锋棩鏈�" /> -->
<el-date-picker
clearable
style="width: 100%"
- v-model="form.createTime"
+ v-model="form.applyTime"
type="date"
value-format="yyyy-MM-dd HH:mm:ss"
placeholder="鐢宠鏃ユ湡"
@@ -935,7 +935,7 @@
username: [
{ required: true, message: "璇疯緭鍏ョ敵璇蜂汉濮撳悕", trigger: "blur" }
],
- createTime: [
+ applyTime: [
{ required: true, message: "璇疯緭鍏ョ敵璇锋棩鏈�", trigger: "blur" }
],
amountrequested: [
@@ -1018,9 +1018,9 @@
},
methods: {
selectapplication() {
- console.log("鏃堕棿", this.createTime);
- this.queryParams.APPLICATIONBEGTIME = this.createTime[0];
- this.queryParams.APPLICATIONENDTIME = this.createTime[1];
+ console.log("鏃堕棿", this.applyTime);
+ this.queryParams.APPLICATIONBEGTIME = this.applyTime[0];
+ this.queryParams.APPLICATIONENDTIME = this.applyTime[1];
// this.getlistbypower()
},
getlistbypower() {
@@ -1305,9 +1305,20 @@
this.ids.forEach(item => {
if (xuanzlist.includes(item)) {
} else {
+ if (this.overallids.length == 1) {
+ this.overallids = [];
+ } else {
+ this.overallids.splice(this.overallids.indexOf(item), 1);
+ }
+ if (this.overallidsvalue.length == 1) {
+ this.overallidsvalue = [];
+ } else {
+ this.overallidsvalue.splice(
+ this.overallidsvalue.indexOf(item),
+ 1
+ );
+ }
this.ids.splice(this.ids.indexOf(item), 1);
- this.overallids.splice(this.overallids.indexOf(item), 1);
- this.overallidsvalue.splice(this.overallidsvalue.indexOf(item), 1);
}
});
}
@@ -1320,7 +1331,6 @@
const obj = selection.find(obj => obj.id === item);
console.log(obj);
this.overallidsvalue.push(obj);
-
}
});
console.log(this.overallids);
@@ -1354,26 +1364,39 @@
},
Totalcalculation(tot) {
console.log(tot);
- let bojite={
- fundids:this.overallids,
- isTaxAfter:tot,
- }
+ let bojite = {
+ fundids: this.overallids,
+ isTaxAfter: tot
+ };
if (tot == 0) {
- TotalcalculationFn(bojite).then(row => {
- console.log(row.msg);
- if (row.code=200) {
- this.$modal.msgSuccess(row.msg);
- }else{
- this.$modal.msgError(row.msg);
- }
- });
+ TotalcalculationFn(bojite)
+ .then(row => {
+ console.log(row.msg);
+ if (row.code == 200) {
+ this.$modal.msgSuccess(row.msg);
+ } else {
+ console.log(123);
+ this.$modal.msgError(row.msg);
+ }
+ })
+ .catch(error => {
+ this.$modal.msgError(error);
+ });
} else {
console.log(this.overallidsvalue);
const hasValue = this.overallidsvalue.every(obj => obj.istax == 1);
if (hasValue) {
- TotalcalculationFn(bojite).then(row => {
- console.log(row.msg);
- });
+ TotalcalculationFn(bojite)
+ .then(row => {
+ if (row.code == 200) {
+ this.$modal.msgSuccess(row.msg);
+ } else {
+ this.$modal.msgError(row.msg);
+ }
+ })
+ .catch(error => {
+ this.$modal.msgError(error);
+ });
} else {
this.$modal.msgError("璇烽�夋嫨绠楃◣鍚庣殑鏁版嵁杩涜鍚堝苟璁$畻");
}
@@ -1390,7 +1413,7 @@
this.form.donorno = this.curCase.donorno;
this.form.name = this.curCase.name;
this.form.infoid = this.curCase.id;
- // this.form.createTime = nowdate;
+ // this.form.applyTime = nowdate;
//this.open = true;
//this.initFundApplyForm();
this.fundDetailArr = [];
--
Gitblit v1.9.3