cz 1 年之前
父节点
当前提交
7a7cd3943d

+ 22 - 2
src/components/WDLY/process/SendSubscribeWDLY.vue

@@ -91,11 +91,18 @@
     <el-dialog v-model="openExcel" title="excel导入" width="30%" append-to-body>
       <div v-loading="excelLoading">
         <div style="margin: 15px 0">
-          <a
+          <!-- <a
             href="/static/申购明细导入模板.xlsx"
             download="申购明细导入模板.xlsx"
             class="download"
             >Excel模板下载</a
+          > -->
+          <!-- <el-button @click="aaa" type="primary">下载</el-button> -->
+          <a
+            href="https://winfaster.obs.cn-south-1.myhuaweicloud.com/byteSailing/templates/wdly/%E7%94%B3%E8%B4%AD%E6%98%8E%E7%BB%86%E5%AF%BC%E5%85%A5%E6%A8%A1%E6%9D%BF.xlsx"
+            download="申购明细导入模板.xlsx"
+            class="download"
+            >Excel模板下载</a
           >
         </div>
         <el-upload
@@ -325,7 +332,20 @@ onMounted(() => {
     formData.data.subcribeName = userInfo.nickName;
   }
 });
-
+const aaa = () => {
+  fetch("/static/申购明细导入模板.xlsx")
+    .then((res) => res.blob())
+    .then((res) => {
+      const url = window.URL.createObjectURL(res);
+      var filename = "申购明细导入模板.xlsx";
+      const link = document.createElement("a");
+      link.style.display = "none";
+      link.href = url;
+      link.setAttribute("download", filename);
+      document.body.appendChild(link);
+      link.click();
+    });
+};
 const handleProgress = () => {
   excelLoading.value = true;
 };

+ 2 - 2
src/views/WDLY/purchaseManage/alreadyPurchase/index.vue

@@ -808,11 +808,11 @@ const paymentStatus = ref([
 ]);
 const inRransitData = ref([
   {
-    label: "有",
+    label: "有在途",
     value: "1",
   },
   {
-    label: "无",
+    label: "无在途",
     value: "0",
   },
 ]);