|
|
@@ -398,7 +398,7 @@
|
|
|
<input
|
|
|
class="report-export-dropdown-search-input"
|
|
|
v-model="form.otherCustomerCode"
|
|
|
- placeholder="请填写信用代码(请依照其他客户填写顺序用半角逗号隔开)"
|
|
|
+ placeholder="请填写信用代码(依照其他客户填写顺序用半角逗号隔开)"
|
|
|
placeholder-class="report-export-dropdown-other-customer-input"
|
|
|
:disabled="modalType === 'read'"
|
|
|
:style="{ color: '#666', padding: 0, border: 'none' }"
|
|
|
@@ -1570,6 +1570,18 @@ export default {
|
|
|
onDateChange(val) {
|
|
|
const arr = Array.isArray(val) ? val : this.dateRange;
|
|
|
if (!Array.isArray(arr) || arr.length !== 2) return;
|
|
|
+ const startDate = new Date(arr[0].replace(/-/g, "/"));
|
|
|
+ const endDate = new Date(arr[1].replace(/-/g, "/"));
|
|
|
+ const diff = endDate.getTime() - startDate.getTime();
|
|
|
+ const limit = 183 * 24 * 3600 * 1000; // Approx 6 months
|
|
|
+ if (diff > limit) {
|
|
|
+ uni.showToast({
|
|
|
+ title: "时间范围不能超过半年",
|
|
|
+ icon: "none",
|
|
|
+ });
|
|
|
+ this.dateRange = [];
|
|
|
+ return;
|
|
|
+ }
|
|
|
this.dateRange = [
|
|
|
this.normalizeDateToYMD(arr[0]),
|
|
|
this.normalizeDateToYMD(arr[1]),
|