kongdeqiang
昨天 c7c17bae7c9106ee064724c16b9e63d177817376
src/components/page/outPark/index.vue
@@ -19,6 +19,11 @@
            </el-date-picker>
          </div>
        </el-form-item>
        <el-form-item label="缴费状态">
          <el-select v-model="searchForm.status" clearable>
            <el-option v-for="item in statusList" :key="item.value" :label="item.label" :value="item.value" ></el-option>
          </el-select>
        </el-form-item>
        <el-form-item>
          <el-button type="primary" size="small" @click="getDataList" icon="el-icon-search">查询</el-button>
        </el-form-item>
@@ -97,6 +102,7 @@
              <template slot-scope="scope">
                <p v-if="scope.row.status==0">未缴费</p>
                <p v-if="scope.row.status==1">已缴费</p>
                <p v-if="scope.row.status==2">月租车</p>
              </template>
            </el-table-column>
            <el-table-column
@@ -133,8 +139,9 @@
          carNo:'',
          parkId:'',
          payCode:'',
          date: new Date(),
          date: this.getDateStr(new Date()),
        },
        statusList:[{label:'未缴费',value:0},{label:'已缴费',value:1},{label:'月票车',value:2}],
        dataList: [],
        pageIndex: 1,
        pageSize: 100,
@@ -153,6 +160,12 @@
    computed: {
    },
    methods: {
      getDateStr(date){
        const y = date.getFullYear()
        const m = String(date.getMonth()+1).padStart(2,'0')
        const d = String(date.getDate()).padStart(2,'0')
        return `${y}-${m}-${d}`
      },
      // 获取数据列表
      getDataList () {
        this.dataListLoading = true