Commit 0b8408480cc7593a475984b16eff940d7aee66ee
1 parent
8d265634
feat: 发货单-延期:现申请发货日期控制大于 原订单计划发货日期
Showing
1 changed file
with
11 additions
and
1 deletions
| @@ -62,7 +62,8 @@ | @@ -62,7 +62,8 @@ | ||
| 62 | </uni-list-item> | 62 | </uni-list-item> |
| 63 | <uni-list-item title="现申请发货日期"> | 63 | <uni-list-item title="现申请发货日期"> |
| 64 | <template v-slot:footer> | 64 | <template v-slot:footer> |
| 65 | - <uni-datetime-picker type="date" v-model="applyDelayForm.applyShipmentDate" /> | 65 | + <uni-datetime-picker type="date" :start="getStartDate(applyDelayForm.shipmentsDate)" |
| 66 | + v-model="applyDelayForm.applyShipmentDate" /> | ||
| 66 | </template> | 67 | </template> |
| 67 | </uni-list-item> | 68 | </uni-list-item> |
| 68 | <uni-list-item title="延期原因"> | 69 | <uni-list-item title="延期原因"> |
| @@ -298,6 +299,15 @@ export default { | @@ -298,6 +299,15 @@ export default { | ||
| 298 | closeSplit() { | 299 | closeSplit() { |
| 299 | this.$refs.splitPopup && this.$refs.splitPopup.close(); | 300 | this.$refs.splitPopup && this.$refs.splitPopup.close(); |
| 300 | }, | 301 | }, |
| 302 | + getStartDate(dateStr) { | ||
| 303 | + if (!dateStr) return '' | ||
| 304 | + const date = new Date(dateStr.replace(/-/g, '/')) | ||
| 305 | + date.setDate(date.getDate() + 1) | ||
| 306 | + const y = date.getFullYear() | ||
| 307 | + const m = String(date.getMonth() + 1).padStart(2, '0') | ||
| 308 | + const d = String(date.getDate()).padStart(2, '0') | ||
| 309 | + return `${y}-${m}-${d}` | ||
| 310 | + }, | ||
| 301 | onSplitChange(data) { | 311 | onSplitChange(data) { |
| 302 | console.log('onSplitChange__data', data) | 312 | console.log('onSplitChange__data', data) |
| 303 | const list = Array.isArray(data) ? data : [] | 313 | const list = Array.isArray(data) ? data : [] |