From 310ebbbc42e94e947484ec7f4014ddbe9a5612f2 Mon Sep 17 00:00:00 2001
From: 李林 <z1292839451@163.com>
Date: 星期一, 08 一月 2024 09:22:14 +0800
Subject: [PATCH] 修订版本1.0

---
 src/components/view/data-reporting.vue |   36 +++++++++++++++++++++++++++++++-----
 1 files changed, 31 insertions(+), 5 deletions(-)

diff --git a/src/components/view/data-reporting.vue b/src/components/view/data-reporting.vue
index 95beb34..5db24a8 100644
--- a/src/components/view/data-reporting.vue
+++ b/src/components/view/data-reporting.vue
@@ -71,7 +71,7 @@
 			<div class="search_thing">
 				<div class="search_label">绯荤粺鏃ユ湡锛�</div>
 				<div class="search_input">
-					<el-date-picker size="small" v-model="componentData.entity.updateTime" type="date" placeholder="閫夋嫨鏃ユ湡"
+					<el-date-picker size="small" v-model="componentData.entity.createTime" type="date" placeholder="閫夋嫨鏃ユ湡"
 						value-format="yyyy-MM-dd HH:mm:ss" clearable></el-date-picker>
 				</div>
 			</div>
@@ -133,6 +133,16 @@
 					</el-col>
 				</el-row>
 				<el-row style="line-height: 50px;">
+					<el-col :span="4" style="text-align: right;padding-right: 8px;">濮撳悕</el-col>
+					<el-col :span="7">
+						<el-input v-model="upData.name2" size="small" disabled></el-input>
+					</el-col>
+					<el-col :span="4" style="text-align: right;padding-right: 8px;">浠g悊</el-col>
+					<el-col :span="7">
+						<el-input v-model="upData.agent" size="small" disabled></el-input>
+					</el-col>
+				</el-row>
+				<el-row style="line-height: 50px;">
 					<el-col :span="4" style="text-align: right;padding-right: 8px;">灞曠幇閲�</el-col>
 					<el-col :span="7">
 						<el-input v-model="upData.showNum" size="small" disabled></el-input>
@@ -177,7 +187,7 @@
 					<el-col :span="7">
 						<el-input v-model="upData.profit" size="small" disabled></el-input>
 					</el-col>
-					<el-col :span="4" style="text-align: right;padding-right: 8px;">浠g悊杩旂偣</el-col>
+					<el-col :span="4" style="text-align: right;padding-right: 8px;">鍛樺伐浠g悊杩旂偣</el-col>
 					<el-col :span="7">
 						<el-input v-model="upData.agentRebate" size="small" disabled></el-input>
 					</el-col>
@@ -235,7 +245,7 @@
 			return {
 				componentData: {
 					entity: {
-						updateTime: null,
+						createTime: null,
 						registrant: null,
 						product: null,
 						orderBy: {
@@ -252,7 +262,7 @@
 						type: 'text',
 						method: 'upRole',
 						field: ['createUserName', 'updateUserName', 'registrant', 'department', 'consumption',
-							'rebateConsumption', 'discountedConsumption', 'profit', 'remark', 'actualCost'
+							'rebateConsumption', 'discountedConsumption', 'profit', 'remark', 'actualCost', 'fansAdd', 'agentRebate'
 						]
 					}, {
 						id: 'delete',
@@ -261,7 +271,8 @@
 						method: 'doDiy'
 					}],
 					tagField: {},
-					selectField: {}
+					selectField: {},
+					requiredAdd:['name2','agent','channel','product','showNum','click','accountConsumption'],
 				},
 				entityCopy: {},
 				upIndex: 0,
@@ -279,6 +290,21 @@
 				outPower: true
 			}
 		},
+		created() {
+			var today = new Date();
+			var yesterday = new Date(today);
+			yesterday.setDate(today.getDate() - 1);
+			var yyyy = yesterday.getFullYear();
+			var mm = yesterday.getMonth() + 1;
+			var dd = yesterday.getDate()
+			if (dd < 10) {
+				dd = "0" + dd;
+			}
+			if (mm < 10) {
+				mm = "0" + mm;
+			}
+			this.componentData.entity.createTime = this.HaveJson(`${yyyy}-${mm}-${dd} 00:00:00`)
+		},
 		mounted() {
 			this.entityCopy = this.HaveJson(this.componentData.entity)
 			this.selectProductEnumList()

--
Gitblit v1.9.3