|
@@ -28,7 +28,6 @@
|
|
|
<el-button
|
|
<el-button
|
|
|
type="success"
|
|
type="success"
|
|
|
plain
|
|
plain
|
|
|
- :disabled="single"
|
|
|
|
|
@click="handleAssignCard"
|
|
@click="handleAssignCard"
|
|
|
v-hasPermi="['dz:cards:add']"
|
|
v-hasPermi="['dz:cards:add']"
|
|
|
style="border-color: #67c23a; color: #67c23a; font-weight: 500"
|
|
style="border-color: #67c23a; color: #67c23a; font-weight: 500"
|
|
@@ -131,11 +130,11 @@
|
|
|
type="danger"
|
|
type="danger"
|
|
|
plain
|
|
plain
|
|
|
:disabled="multiple"
|
|
:disabled="multiple"
|
|
|
|
|
+ icon="Delete"
|
|
|
@click="handleDelete"
|
|
@click="handleDelete"
|
|
|
v-hasPermi="['dz:cards:remove']"
|
|
v-hasPermi="['dz:cards:remove']"
|
|
|
style="border-color: #ff4d4f; color: #ff4d4f; font-weight: 500"
|
|
style="border-color: #ff4d4f; color: #ff4d4f; font-weight: 500"
|
|
|
>
|
|
>
|
|
|
- <svg-icon icon-class="delete" class="mr-1" style="font-size: 16px" />
|
|
|
|
|
删除
|
|
删除
|
|
|
</el-button>
|
|
</el-button>
|
|
|
</el-col>
|
|
</el-col>
|
|
@@ -189,7 +188,6 @@
|
|
|
|
|
|
|
|
<AssignCardDialog
|
|
<AssignCardDialog
|
|
|
v-model="assignCardOpen"
|
|
v-model="assignCardOpen"
|
|
|
- :agent-list="agentList"
|
|
|
|
|
:school-list="schoolList"
|
|
:school-list="schoolList"
|
|
|
:card-type-options="card_type"
|
|
:card-type-options="card_type"
|
|
|
@success="handleDialogSuccess"
|
|
@success="handleDialogSuccess"
|
|
@@ -205,19 +203,23 @@
|
|
|
<PaymentDialog
|
|
<PaymentDialog
|
|
|
v-model="paymentOpen"
|
|
v-model="paymentOpen"
|
|
|
:card-no="currentCardNo"
|
|
:card-no="currentCardNo"
|
|
|
- @confirm="handlePaymentConfirm"
|
|
|
|
|
|
|
+ :card-ids="selectedCardIds"
|
|
|
|
|
+ :selected-cards="selectedRows"
|
|
|
|
|
+ @success="handlePaymentSuccess"
|
|
|
/>
|
|
/>
|
|
|
|
|
|
|
|
<CloseCardDialog
|
|
<CloseCardDialog
|
|
|
v-model="closeCardOpen"
|
|
v-model="closeCardOpen"
|
|
|
:card-no="currentCloseCardNo"
|
|
:card-no="currentCloseCardNo"
|
|
|
- @confirm="handleCloseCardConfirm"
|
|
|
|
|
|
|
+ :card-ids="selectedCardIds"
|
|
|
|
|
+ @success="handleCloseCardSuccess"
|
|
|
/>
|
|
/>
|
|
|
|
|
|
|
|
<ReopenCardDialog
|
|
<ReopenCardDialog
|
|
|
v-model="reopenCardOpen"
|
|
v-model="reopenCardOpen"
|
|
|
:card-no="currentReopenCardNo"
|
|
:card-no="currentReopenCardNo"
|
|
|
- @confirm="handleReopenCardConfirm"
|
|
|
|
|
|
|
+ :card-ids="selectedCardIds"
|
|
|
|
|
+ @success="handleReopenCardSuccess"
|
|
|
/>
|
|
/>
|
|
|
|
|
|
|
|
<RefundDialog
|
|
<RefundDialog
|
|
@@ -313,14 +315,17 @@ const reopenCardOpen = ref(false); // 重开对话框
|
|
|
const refundOpen = ref(false); // 退费对话框
|
|
const refundOpen = ref(false); // 退费对话框
|
|
|
const associateCampusOpen = ref(false); // 关联校区对话框
|
|
const associateCampusOpen = ref(false); // 关联校区对话框
|
|
|
const applyCardOpen = ref(false); // 申请开卡对话框
|
|
const applyCardOpen = ref(false); // 申请开卡对话框
|
|
|
-const currentCardNo = ref(""); // 当前缴费的卡号
|
|
|
|
|
-const currentCloseCardNo = ref(""); // 当前关卡的卡号
|
|
|
|
|
-const currentReopenCardNo = ref(""); // 当前重开的卡号
|
|
|
|
|
|
|
+const currentCardNo = ref([]); // 当前缴费的卡号(支持数组)
|
|
|
|
|
+const currentCloseCardNo = ref([]); // 当前关卡的卡号(支持数组)
|
|
|
|
|
+const currentReopenCardNo = ref([]); // 当前重开的卡号(支持数组)
|
|
|
const currentRefundCardNo = ref(""); // 当前退费的卡号
|
|
const currentRefundCardNo = ref(""); // 当前退费的卡号
|
|
|
const campusList = ref([]); // 校区列表
|
|
const campusList = ref([]); // 校区列表
|
|
|
const agentList = ref([]); // 代理商列表
|
|
const agentList = ref([]); // 代理商列表
|
|
|
const institutionList = ref([]); // 机构列表
|
|
const institutionList = ref([]); // 机构列表
|
|
|
const selectedRows = ref([]); // 选中的行
|
|
const selectedRows = ref([]); // 选中的行
|
|
|
|
|
+const selectedCardIds = computed(() =>
|
|
|
|
|
+ selectedRows.value.map((row) => row.cardId)
|
|
|
|
|
+); // 选中的卡ID列表
|
|
|
const currentCardId = ref(null); // 当前编辑的卡片ID
|
|
const currentCardId = ref(null); // 当前编辑的卡片ID
|
|
|
const loading = ref(true);
|
|
const loading = ref(true);
|
|
|
const showSearch = ref(true);
|
|
const showSearch = ref(true);
|
|
@@ -424,6 +429,8 @@ const data = reactive({
|
|
|
cardNo: null,
|
|
cardNo: null,
|
|
|
password: null,
|
|
password: null,
|
|
|
cardNoRange: null,
|
|
cardNoRange: null,
|
|
|
|
|
+ begin: null,
|
|
|
|
|
+ end: null,
|
|
|
type: null,
|
|
type: null,
|
|
|
studentCategory: null, // 分配考生类型
|
|
studentCategory: null, // 分配考生类型
|
|
|
studentName: null, // 学生姓名
|
|
studentName: null, // 学生姓名
|
|
@@ -703,13 +710,21 @@ function handlePayment() {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- // 获取第一个选中卡片的卡号
|
|
|
|
|
- const firstCard = selectedRows.value[0];
|
|
|
|
|
- currentCardNo.value = firstCard.cardNo || firstCard.id || "未知";
|
|
|
|
|
|
|
+ // 获取所有选中卡片的卡号数组
|
|
|
|
|
+ const cardNos = selectedRows.value.map(
|
|
|
|
|
+ (card) => card.cardNo || card.id || "未知"
|
|
|
|
|
+ );
|
|
|
|
|
+ currentCardNo.value = cardNos;
|
|
|
paymentOpen.value = true;
|
|
paymentOpen.value = true;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// 处理缴费确认
|
|
|
|
|
|
|
+// 处理缴费成功
|
|
|
|
|
+function handlePaymentSuccess(message) {
|
|
|
|
|
+ proxy.$modal.msgSuccess(message);
|
|
|
|
|
+ getList(); // 刷新列表
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+// 处理缴费确认(保留兼容性)
|
|
|
function handlePaymentConfirm(cardNo) {
|
|
function handlePaymentConfirm(cardNo) {
|
|
|
proxy.$modal.msgSuccess(`缴费成功!卡号:${cardNo}`);
|
|
proxy.$modal.msgSuccess(`缴费成功!卡号:${cardNo}`);
|
|
|
getList(); // 刷新列表
|
|
getList(); // 刷新列表
|
|
@@ -722,13 +737,21 @@ function handleCloseCard() {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- // 获取第一个选中卡片的卡号
|
|
|
|
|
- const firstCard = selectedRows.value[0];
|
|
|
|
|
- currentCloseCardNo.value = firstCard.cardNo || firstCard.id || "未知";
|
|
|
|
|
|
|
+ // 获取所有选中卡片的卡号数组
|
|
|
|
|
+ const cardNos = selectedRows.value.map(
|
|
|
|
|
+ (card) => card.cardNo || card.id || "未知"
|
|
|
|
|
+ );
|
|
|
|
|
+ currentCloseCardNo.value = cardNos;
|
|
|
closeCardOpen.value = true;
|
|
closeCardOpen.value = true;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// 处理关卡确认
|
|
|
|
|
|
|
+// 处理关卡成功
|
|
|
|
|
+function handleCloseCardSuccess(message) {
|
|
|
|
|
+ proxy.$modal.msgSuccess(message);
|
|
|
|
|
+ getList(); // 刷新列表
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+// 处理关卡确认(保留兼容性)
|
|
|
function handleCloseCardConfirm(cardNo) {
|
|
function handleCloseCardConfirm(cardNo) {
|
|
|
proxy.$modal.msgSuccess(`关卡成功!卡号:${cardNo}`);
|
|
proxy.$modal.msgSuccess(`关卡成功!卡号:${cardNo}`);
|
|
|
getList(); // 刷新列表
|
|
getList(); // 刷新列表
|
|
@@ -741,13 +764,21 @@ function handleReopenCard() {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- // 获取第一个选中卡片的卡号
|
|
|
|
|
- const firstCard = selectedRows.value[0];
|
|
|
|
|
- currentReopenCardNo.value = firstCard.cardNo || firstCard.id || "未知";
|
|
|
|
|
|
|
+ // 获取所有选中卡片的卡号数组
|
|
|
|
|
+ const cardNos = selectedRows.value.map(
|
|
|
|
|
+ (card) => card.cardNo || card.id || "未知"
|
|
|
|
|
+ );
|
|
|
|
|
+ currentReopenCardNo.value = cardNos;
|
|
|
reopenCardOpen.value = true;
|
|
reopenCardOpen.value = true;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// 处理重开确认
|
|
|
|
|
|
|
+// 处理重开成功
|
|
|
|
|
+function handleReopenCardSuccess(message) {
|
|
|
|
|
+ proxy.$modal.msgSuccess(message);
|
|
|
|
|
+ getList(); // 刷新列表
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+// 处理重开确认(保留兼容性)
|
|
|
function handleReopenCardConfirm(cardNo) {
|
|
function handleReopenCardConfirm(cardNo) {
|
|
|
proxy.$modal.msgSuccess(`重开成功!卡号:${cardNo}`);
|
|
proxy.$modal.msgSuccess(`重开成功!卡号:${cardNo}`);
|
|
|
getList(); // 刷新列表
|
|
getList(); // 刷新列表
|