liyg 2 jaren geleden
bovenliggende
commit
b6673e290d
1 gewijzigde bestanden met toevoegingen van 31 en 1 verwijderingen
  1. 31 1
      src/views/inward/components/inwardFactory/timeTaskResult.vue

+ 31 - 1
src/views/inward/components/inwardFactory/timeTaskResult.vue

@@ -2,7 +2,12 @@
 <template>
   <div class="sale">
     <div class="top">
-      <!-- 框计算 -->
+       <el-input
+        v-model="con"
+        clearable
+        placeholder="查询内容"
+      >
+      </el-input>
       <span class="text">计时时间:</span>
       <el-date-picker
         v-model="startTime"
@@ -119,6 +124,7 @@ export default {
       stepList: [],
       tableTitle: "计时统计",
       exportAllList:[],
+      con:null,
       noSettleDetailsColumn:[]
     };
   },
@@ -330,6 +336,8 @@ export default {
               startTime +
               "&endTime=" +
               endTime +
+              "&con="+
+              this.con+
               "&i=" +
               new Date();
           } else {
@@ -340,6 +348,8 @@ export default {
               startTime +
               "&endTime=" +
               endTime +
+              "&con="+
+              this.con+
               "&i=" +
               new Date();
           }
@@ -349,6 +359,26 @@ export default {
           this.$message.warning("开始时间要比结束时间早");
         }
       } else {
+       if (
+            getCookie("orgCode") == "dagangadmin" ||
+            getCookie("orgCode") == "zidonghuabu" ||
+            getCookie("orgCode") == "wuliuchuyunzhongxin"
+          ) {
+            this.option.requestUrl =
+              "/api/v1/tms/getAllTimeTaskResult?apiId=458&orderType=21" +
+              "&con="+
+              this.con+
+              "&i=" +
+              new Date();
+          } else {
+            this.option.requestUrl =
+              "/api/v1/tms/getAllTimeTaskResult?apiId=458&orderType=21&userId=" +
+              getCookie("orgCode") +
+              "&con="+
+              this.con+
+              "&i=" +
+              new Date();
+          }
       }
     },
     getMaterial(orderId) {