diff --git a/src/views/modules/warehouse/countingReport.vue b/src/views/modules/warehouse/countingReport.vue
index 1513535..3f1b960 100644
--- a/src/views/modules/warehouse/countingReport.vue
+++ b/src/views/modules/warehouse/countingReport.vue
@@ -61,6 +61,7 @@
+
+
+
+
+
@@ -250,6 +260,7 @@ export default {
buNo: '',
reportId: '',
checkDimension: '',
+ planDate: '',
warehouseId: '',
warehouseName: '',
locationId: '',
@@ -357,6 +368,13 @@ export default {
this.modalFlag = true
this.modalTitle = '盘点任务生成'
this.modalDisableFlag = false
+ // 获取当天日期(格式:yyyy-MM-dd)
+ const today = new Date()
+ const year = today.getFullYear()
+ const month = String(today.getMonth() + 1).padStart(2, '0')
+ const day = String(today.getDate()).padStart(2, '0')
+ const todayStr = `${year}-${month}-${day}`
+
this.modalData = {
flag: 'add',
bu: this.userBuList.length > 0 ? this.userBuList[0].buNo : '',
@@ -364,6 +382,7 @@ export default {
buNo: '',
reportId: '',
checkDimension: '',
+ planDate: todayStr,
warehouseId: '',
warehouseName: '',
locationId: '',
@@ -391,6 +410,7 @@ export default {
buNo: row.buNo,
reportId: row.reportId,
checkDimension: row.checkDimension,
+ planDate: row.planDate,
warehouseId: row.warehouseId,
warehouseName: row.warehouseName,
locationId: row.locationId,