+
+
+
+
+
+
+
+
+
+
+
搜索搜索
+
重置重置
+
@@ -109,7 +134,7 @@
icon="el-icon-plus"
size="mini"
@click="handleAdd"
- >录入
+ >录入
@@ -119,7 +144,7 @@
icon="el-icon-download"
size="mini"
@click="handleExport"
- >导出
+ >导出
@@ -129,7 +154,7 @@
icon="el-icon-download"
size="mini"
@click="handleBatchSettle('cn')"
- >批量结算
+ >批量结算
@@ -140,7 +165,7 @@
icon="el-icon-download"
size="mini"
@click="handleBatchSettle('kj')"
- >批量审核
+ >批量审核
@@ -154,9 +179,10 @@
-
+
{{ scope.row.carNum || scope.row.certificateNum || "----" }}
@@ -176,8 +202,8 @@
进行中
-
-
+
+
{{ scope.row.realPayMoney / 100 }}
-
+
-
+
-
+
-
+
-
-
+
+
+
+
+
+
打印
+ >打印
制证
+ >制证
详情
+ >详情
@@ -255,14 +301,14 @@
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
- >修改
+ >修改
删除
+ >删除
@@ -378,7 +424,7 @@
style="margin-left: 90%; margin-top: 20px"
v-print="'#printMe'"
size="small"
- >打印
+ >打印
@@ -460,7 +506,11 @@
-
+
取 消
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 筛选
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 筛选
+
+
-
-
-
- {{
- scope.row.carNum || scope.row.certificateNum || "----"
- }}
-
-
-
-
-
-
-
- {{
- scope.row.goodsPrice / 100
- }}
-
-
+
+
+
+ {{
+ scope.row.carNum || scope.row.certificateNum || "----"
+ }}
+
+
+
+
+
+
+
+
+ {{
+ scope.row.goodsPrice / 100
+ }}
+
+
+
+
+
+
+
+
+
+
+ 筛选
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{
+ scope.row.payMoney / 100
+ }}
+
+
+
+ {{
+ scope.row.reduceMoney / 100
+ }}
+
+
+
+
+
+
+
取消取消
+
+
+
+
+
@@ -856,9 +991,7 @@
@@ -886,6 +1019,7 @@ import {
getWeorkNodesById,
getCustomerSource,
batchSettlement,
+ getBatchList,
} from "./api/workOrder";
import print from "vue-print-nb";
import moment from "moment";
@@ -920,6 +1054,7 @@ export default {
settleDialogVisible: false,
batchSelectedOrders: [],
batchSelectedMoney: [],
+ selectBatchType: undefined,
batchQueryParams: {
pageNum: 1,
pageSize: 100,
@@ -928,12 +1063,12 @@ export default {
},
cashierConfirmOption: [
{
- value: '0',
- label: '未到账'
+ value: "0",
+ label: "未到账",
},
{
- value: '1',
- label: '已到账'
+ value: "1",
+ label: "已到账",
},
],
batchOrderList: [],
@@ -1020,6 +1155,12 @@ export default {
total: 0,
// 道路救援模块表格数据
infoList: [],
+ columns: [
+ {
+ prop: "carNum",
+ label: "车牌号",
+ },
+ ],
// 弹出层标题
title: "",
addOpen: false,
@@ -1056,13 +1197,13 @@ export default {
// 表单校验
rules: {
connectionName: [
- { required: true, message: "联系人名称不能为空", trigger: "blur" },
+ {required: true, message: "联系人名称不能为空", trigger: "blur"},
],
connectionPhone: [
- { required: true, message: "联系人手机号不能为空", trigger: "blur" },
+ {required: true, message: "联系人手机号不能为空", trigger: "blur"},
],
licenseNum: [
- { required: true, message: "车牌号不能为空", trigger: "blur" },
+ {required: true, message: "车牌号不能为空", trigger: "blur"},
],
isAppointment: [
{
@@ -1093,21 +1234,21 @@ export default {
},
],
feeType: [
- { required: true, message: "收费类型不能为空", trigger: "change" },
+ {required: true, message: "收费类型不能为空", trigger: "change"},
],
},
settleRules: {
payType: [
- { required: true, message: "请选择支付方式", trigger: "change" },
+ {required: true, message: "请选择支付方式", trigger: "change"},
],
realPayMoney: [
- { required: true, message: "请输入实付金额", trigger: "blur" },
+ {required: true, message: "请输入实付金额", trigger: "blur"},
],
},
};
},
created() {
- this.dict = { type: {} };
+ this.dict = {type: {}};
for (let i = 0; i < this.$options.dicts.length; i++) {
request({
url: "/rescue/dict/data/type/" + this.$options.dicts[i],
@@ -1125,14 +1266,14 @@ export default {
// 根据角色判断是否显示对应的列
showCashierColumn() {
// return this.$store.getters.roles.includes('cn')
- return ["cn", "jcnc","tenant_admin"].some((role) =>
+ return ["cn", "jcnc", "tenant_admin"].some((role) =>
this.$store.getters.roles.includes(role)
);
},
// 根据角色判断是否显示对应的列
showAccountingColumn() {
// return this.$store.getters.roles.includes('cn')
- return ["kj", "jckj","tenant_admin"].some((role) =>
+ return ["kj", "jckj", "tenant_admin"].some((role) =>
this.$store.getters.roles.includes(role)
);
},
@@ -1142,7 +1283,9 @@ export default {
},
methods: {
handleBatchSettle(type) {
- if(type == 'cn') {
+ this.selectBatchType = type;
+ this.batchOrderList = [];
+ if (type == "cn") {
this.batchQueryParams.payStatus = 0;
} else {
this.batchQueryParams.payStatus = 2;
@@ -1151,16 +1294,30 @@ export default {
this.batchSettleVisible = true;
this.handleBatchQuery();
},
+ formatDate(row, column, cellValue) {
+ if (!cellValue) return ''; // 处理空值
+ const date = new Date(cellValue);
+ return date.toISOString().split('T')[0]; // 2023-10-25
+ // 或使用更灵活的格式化方式(如 moment.js 或 day.js)
+ },
handleBatchQuery() {
const params = {
...this.batchQueryParams,
pageNum: this.batchQueryParams.pageNum || 1,
pageSize: this.batchQueryParams.pageSize || 100,
+ accountingConfirm: '1'
};
- listWorkOrder(params).then((response) => {
- this.batchOrderList = response.data.records;
- this.batchTotal = response.data.total;
- });
+ if (this.selectBatchType == "cn") {
+ listWorkOrder(params).then((response) => {
+ this.batchOrderList = response.data.records;
+ this.batchTotal = response.data.total;
+ });
+ } else {
+ getBatchList(params).then((response) => {
+ this.batchOrderList = response.data.records;
+ this.batchTotal = response.data.total;
+ });
+ }
},
handleBatchSelectionChange(selection) {
this.batchSelectedOrders = selection.map((item) => item.id);
@@ -1170,7 +1327,7 @@ export default {
// 判断是否选中 如果没有选中则提示
if (this.batchSelectedOrders.length === 0) {
- this.$message.warning("请选择结算工单");
+ this.$message.warning("请选择工单");
return;
}
this.settleDialogVisible = true;
@@ -1183,6 +1340,7 @@ export default {
},
0
);
+ this.settleForm.goodsPrice = this.settleForm.realPayMoney;
},
handleSettleSubmit() {
this.$refs.settleForm.validate((valid) => {
@@ -1192,6 +1350,7 @@ export default {
...this.settleForm,
realPayMoney: this.settleForm.realPayMoney * 100, // 将元转换为分
type: this.batchType,
+ reduceMoney: this.settleForm.reduceMoney * 100,
};
this.$modal.loading("正在提交结算信息...");
batchSettlement(params)
@@ -1223,7 +1382,7 @@ export default {
}
},
checkoutBatchSettlement(ids) {
- const data = { ids: ids };
+ const data = {ids: ids};
this.$modal
.confirm("确定要结算吗?")
.then(() => {
@@ -1299,6 +1458,13 @@ export default {
}
this.payMoney = this.goodsPrice / 100 - this.reduceMoney;
},
+ batchJisuan() {
+ if (this.settleForm.reduceMoney > this.settleForm.goodsPrice) {
+ this.settleForm.reduceMoney = this.settleForm.goodsPrice;
+ }
+ this.settleForm.realPayMoney =
+ this.settleForm.goodsPrice - this.settleForm.reduceMoney;
+ },
tijiao() {
console.log(this.fileUrls);
if (Array.isArray(this.fileUrls)) {
@@ -1423,7 +1589,7 @@ export default {
// this.workerList = res.rows
// })
getBankAccountList().then((res) => {
- this.BankAccountList = res.data
+ this.BankAccountList = res.data;
// res.data.forEach((it) => {
// let temp = {};
// temp.key = it.remark + it.label;
@@ -1638,7 +1804,8 @@ export default {
this.getList();
this.$modal.msgSuccess("删除成功");
})
- .catch(() => {});
+ .catch(() => {
+ });
},
/** 导出按钮操作 */
handleExport() {
@@ -1698,7 +1865,10 @@ export default {
font-weight: bold;
}
-* 对话框整体样式 * / .custom-dialog {
+* 对话框整体样式 *
+
+/
+.custom-dialog {
border-radius: 8px;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}
From 43f660aa0aff4c1e209747f8228ff94eacc87b5b Mon Sep 17 00:00:00 2001
From: xyc <3422692813@qq.com>
Date: Wed, 30 Jul 2025 09:42:13 +0800
Subject: [PATCH 2/2] =?UTF-8?q?=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/inspection/reminderConfig/index.vue | 86 +++++++++++--------
1 file changed, 52 insertions(+), 34 deletions(-)
diff --git a/src/views/inspection/reminderConfig/index.vue b/src/views/inspection/reminderConfig/index.vue
index 135429a..1415b32 100644
--- a/src/views/inspection/reminderConfig/index.vue
+++ b/src/views/inspection/reminderConfig/index.vue
@@ -83,10 +83,10 @@