解决国内外时间格式不一致导致的bug

This commit is contained in:
wuteng 2025-11-26 09:52:43 +08:00
parent e803c63099
commit aa7c6e9045
2 changed files with 3 additions and 2 deletions

View File

@ -19,6 +19,7 @@
<script> <script>
import emitter from 'element-ui/src/mixins/emitter'; import emitter from 'element-ui/src/mixins/emitter';
import { getSalesmanSupportList} from "@/api/emis/emisSalesCommissionRatio"; import { getSalesmanSupportList} from "@/api/emis/emisSalesCommissionRatio";
import { parseTime } from "@/utils/custom";
export default { export default {
name: "SalesSupportPicker", name: "SalesSupportPicker",
@ -103,7 +104,7 @@
} }
if (!this.sendDate) { if (!this.sendDate) {
//获取系统当前时间 格式为yyyy-MM-dd HH:mm:ss //获取系统当前时间 格式为yyyy-MM-dd HH:mm:ss
this.queryParams.params.sendDate = new Date().toLocaleString().replace(/\//g, "-"); this.queryParams.params.sendDate = parseTime(new Date());
}else { }else {
this.queryParams.params.sendDate = this.sendDate; this.queryParams.params.sendDate = this.sendDate;
} }

View File

@ -535,7 +535,7 @@ export default {
salesSupport: orderData.salesSupport, salesSupport: orderData.salesSupport,
params: { params: {
userStatus: 1, userStatus: 1,
sendDate: new Date().toLocaleString().replace(/\//g, "-"), sendDate: parseTime(new Date()),
}, },
} }
getSalesmanSupportList(queryParams).then(response => { getSalesmanSupportList(queryParams).then(response => {