Просмотр исходного кода

订单管理新增提交审核日期查询

qymljy 2 лет назад
Родитель
Сommit
b6c1e30ffb
1 измененных файлов с 31 добавлено и 4 удалено
  1. 31 4
      src/HDrpManagement/orderManage/index.vue

+ 31 - 4
src/HDrpManagement/orderManage/index.vue

@@ -64,7 +64,12 @@
           </el-select>
         </div>
         <div class="mt-10">
-          <label class="search__label" >单据日期:</label>
+<!--          <label class="search__label" >单据日期:</label>-->
+          <el-select v-model="optionDate" placeholder="请选择" size="small" style="width: 100px;margin-right: 10px" @change="selectChange">
+            <el-option label="单据日期" value="1"></el-option>
+            <el-option label="提交日期" value="2"></el-option>
+            <el-option label="审核日期" value="3"></el-option>
+          </el-select>
           <el-date-picker
               style="margin-right: 16px !important;"
               size="small"
@@ -149,7 +154,8 @@ export default {
         "createby":''
       },
       dateSelect:[],
-      more:false
+      more:false,
+      optionDate:'1'
     }
   },
   methods:{
@@ -184,8 +190,29 @@ export default {
     selectChange(){
       if (this.dateSelect !== '' && this.dateSelect !== null){
         this.$refs.basicLayout.param.content.pageNumber = 1
-        this.$refs.basicLayout.param.content.where.begindate = this.dateSelect[0]
-        this.$refs.basicLayout.param.content.where.enddate = this.dateSelect[1]
+        if (this.optionDate === '1'){
+          this.$refs.basicLayout.param.content.where.begindate = this.dateSelect[0]
+          this.$refs.basicLayout.param.content.where.enddate = this.dateSelect[1]
+          this.$refs.basicLayout.param.content.where.begindate1 = ''
+          this.$refs.basicLayout.param.content.where.enddate1 = ''
+          this.$refs.basicLayout.param.content.where.begindate2 = ''
+          this.$refs.basicLayout.param.content.where.enddate2 = ''
+        } else if (this.optionDate === '2'){
+          this.$refs.basicLayout.param.content.where.begindate1 = this.dateSelect[0]
+          this.$refs.basicLayout.param.content.where.enddate1 = this.dateSelect[1]
+          this.$refs.basicLayout.param.content.where.begindate2 = ''
+          this.$refs.basicLayout.param.content.where.enddate2 = ''
+          this.$refs.basicLayout.param.content.where.begindate = ''
+          this.$refs.basicLayout.param.content.where.enddate = ''
+        }else if (this.optionDate === '3'){
+          this.$refs.basicLayout.param.content.where.begindate2 = this.dateSelect[0]
+          this.$refs.basicLayout.param.content.where.enddate2 = this.dateSelect[1]
+          this.$refs.basicLayout.param.content.where.begindate1 = ''
+          this.$refs.basicLayout.param.content.where.enddate1 = ''
+          this.$refs.basicLayout.param.content.where.begindate = ''
+          this.$refs.basicLayout.param.content.where.enddate = ''
+        }
+
       }else {
         this.$refs.basicLayout.param.content.where.begindate = ''
         this.$refs.basicLayout.param.content.where.enddate = ''