李林
2024-01-08 310ebbbc42e94e947484ec7f4014ddbe9a5612f2
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;">代理</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;">代理返点</el-col>
               <el-col :span="4" style="text-align: right;padding-right: 8px;">员工代理返点</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()