riku
2023-12-14 c37f0db24bcb9c08c11da9cd96e562a84cd66e6a
src/views/fysp/evaluation/components/CompPreCheck.vue
@@ -6,7 +6,7 @@
        :allOption="false"
        :level="3"
        :checkStrictly="false"
        v-model:value="formSearch._locations"
        v-model:value="formSearch.locations"
      ></FYOptionLocation>
      <!-- 场景类型 -->
      <FYOptionScene
@@ -15,7 +15,7 @@
        v-model:value="formSearch.scenetype"
      ></FYOptionScene>
      <!-- 时间 -->
      <FYOptionTime type="month" v-model:value="formSearch.time"></FYOptionTime>
      <FYOptionTime :initValue="false" type="month" v-model:value="formSearch.time"></FYOptionTime>
    </template>
  </FYSearchBar>
  <el-row>
@@ -27,6 +27,8 @@
</template>
<script>
import dayjs from 'dayjs'
/**
 * 自动评估条件合规性检查
 */
@@ -105,9 +107,9 @@
  data() {
    return {
      formSearch: {
        _locations: {},
        locations: {},
        scenetype: {},
        time: undefined
        time: dayjs().add(-1, 'M').date(1).toDate()
      }
    }
  },
@@ -117,17 +119,22 @@
     * 检查所选范围内各项评估数据源是否完整
     */
    preCheck() {
      this.$emit('preCheck', this.formSearch)
      const param = {
        locations: this.formSearch.locations,
        scenetype: this.formSearch.scenetype,
        time: dayjs(this.formSearch.time).format('YYYY-MM-DD')
      }
      this.$emit('preCheck', param)
    },
    /**
     * 快速设置条件
     */
    quickSet(set) {
      this.formSearch._locations = set.locations
      this.formSearch.locations = set.locations
      this.formSearch.scenetype = set.scenetype
      this.preCheck()
      // this.preCheck()
    }
  }
}