From 1800127eda307b0d63a8f93a53ee3c9f18bd98cd Mon Sep 17 00:00:00 2001
From: yunuo970428 <405378304@qq.com>
Date: Tue, 25 Jul 2023 16:08:13 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E6=AC=BE=E9=A1=B9=E7=BB=93?=
=?UTF-8?q?=E8=BD=AC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/views/moneycarriedforward/acceptedmoney.vue | 13 +++++++++++++
.../src/views/moneycarriedforward/simpledeposit.vue | 13 +++++++++++++
2 files changed, 26 insertions(+)
diff --git a/anrui-buscenter/anrui-finmanage-ui/src/views/moneycarriedforward/acceptedmoney.vue b/anrui-buscenter/anrui-finmanage-ui/src/views/moneycarriedforward/acceptedmoney.vue
index 6627894d05..c2df800aba 100644
--- a/anrui-buscenter/anrui-finmanage-ui/src/views/moneycarriedforward/acceptedmoney.vue
+++ b/anrui-buscenter/anrui-finmanage-ui/src/views/moneycarriedforward/acceptedmoney.vue
@@ -49,6 +49,11 @@
{{ scope.row.useOrgName }}
+
+
+ {{ scope.row.purchaseSystemName }}
+
+
{{ scope.row.staffDeptName }}
@@ -169,6 +174,7 @@ export default {
tableKey: 0,
list: [],
sids: [],
+ multipleSelection: [],
listLoading: false,
listQuery: {
current: 1,
@@ -232,6 +238,7 @@ export default {
// 获取数据sid
handleSelectionChange(row) {
const aa = []
+ this.multipleSelection = row
row.forEach(element => {
aa.push(element.sid)
})
@@ -283,6 +290,12 @@ export default {
},
toCarryDown() {
if (this.sids.length > 0) {
+ for (var i = 0; i < this.multipleSelection.length; i++) {
+ if (this.multipleSelection[i].staffSid !== this.multipleSelection[this.multipleSelection.length - 1].staffSid || this.multipleSelection[i].purchaseSystemSid !== this.multipleSelection[this.multipleSelection.length - 1].purchaseSystemSid) {
+ this.$message({ showClose: true, type: 'error', message: '请选择同一采购系统和销售专员的记录' })
+ return
+ }
+ }
this.viewState = 2
var title = '已认款'
this.$refs['divAdd'].showAdd(title, this.sids)
diff --git a/anrui-buscenter/anrui-finmanage-ui/src/views/moneycarriedforward/simpledeposit.vue b/anrui-buscenter/anrui-finmanage-ui/src/views/moneycarriedforward/simpledeposit.vue
index dccab80019..44a22db3dc 100644
--- a/anrui-buscenter/anrui-finmanage-ui/src/views/moneycarriedforward/simpledeposit.vue
+++ b/anrui-buscenter/anrui-finmanage-ui/src/views/moneycarriedforward/simpledeposit.vue
@@ -51,6 +51,11 @@
{{ scope.row.useOrgName }}
+
+
+ {{ scope.row.purchaseSystemName }}
+
+
{{ scope.row.staffDeptName }}
@@ -152,6 +157,7 @@ export default {
tableKey: 0,
list: [],
sids: [],
+ multipleSelection: [],
listLoading: false,
listQuery: {
current: 1,
@@ -216,6 +222,7 @@ export default {
// 获取数据sid
handleSelectionChange(row) {
const aa = []
+ this.multipleSelection = row
row.forEach(element => {
aa.push(element.sid)
})
@@ -268,6 +275,12 @@ export default {
},
toCarryDown() {
if (this.sids.length > 0) {
+ for (var i = 0; i < this.multipleSelection.length; i++) {
+ if (this.multipleSelection[i].staffSid !== this.multipleSelection[this.multipleSelection.length - 1].staffSid || this.multipleSelection[i].purchaseSystemSid !== this.multipleSelection[this.multipleSelection.length - 1].purchaseSystemSid) {
+ this.$message({ showClose: true, type: 'error', message: '请选择同一采购系统和销售专员的记录' })
+ return
+ }
+ }
this.viewState = 2
var title = '简易订单订金'
this.$refs['divAdd'].showAdd(title, this.sids)