浏览代码

增加预测天数

wukai 2 月之前
父节点
当前提交
96364cb18e
共有 1 个文件被更改,包括 8 次插入3 次删除
  1. 8 3
      src/views/calc/baipi/index.vue

+ 8 - 3
src/views/calc/baipi/index.vue

@@ -11,6 +11,9 @@
         </el-date-picker>
       </el-form-item>
       <el-form-item>
+          <el-input-number v-model="days" :min="1" :max="30" />
+      </el-form-item>
+      <el-form-item>
         <el-button type="'warning" icon="Download" @click="impdata">导出</el-button>
       </el-form-item>
     </el-form>
@@ -18,8 +21,10 @@
 </template>
 <script setup name="baipi">
 import {ref} from "vue";
-const { proxy } = getCurrentInstance();
+
+const {proxy} = getCurrentInstance();
 const dt = ref([]);
+const days = ref(10);
 const showSearch = ref(true);
 
 // 初始化日期
@@ -34,8 +39,8 @@ const initDate = () => {
 }
 
 function impdata() {
-  let uri = "api/export/order?start=" + dt.value[0] + "&end=" + dt.value[1];
-  proxy.download(uri, {}, `白坯布靶向预测${dt.value[0]}至${dt.value[1]}.zip`)
+  let uri = "api/export/order?start=" + dt.value[0] + "&end=" + dt.value[1] + "&days=" + days.value;
+  proxy.download(uri, {}, `白坯布靶向智能生产预测${dt.value[0]}至${dt.value[1]}.zip`)
 }
 
 // 初始化