From e3edb24ee6b15cb7e67abf6c0ebfe731fbcb4a4c Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期六, 22 四月 2023 09:50:49 +0800
Subject: [PATCH] 1.采购收货单新增查看详情功能
---
src/components/ImportPicker/index.vue | 26 ++++++++++++++++----------
1 files changed, 16 insertions(+), 10 deletions(-)
diff --git a/src/components/ImportPicker/index.vue b/src/components/ImportPicker/index.vue
index 186af18..b25ef50 100644
--- a/src/components/ImportPicker/index.vue
+++ b/src/components/ImportPicker/index.vue
@@ -1,5 +1,6 @@
<template>
<el-dialog
+ v-el-drag-dialog
:visible.sync="visible"
:title="title"
:code="code"
@@ -14,13 +15,13 @@
<el-step title="瀹屾垚" />
</el-steps>
- <div v-if="div1" class="mb40">
+ <div v-if="div1" style="margin-left: 85px;margin-top: 35px" class="mb40">
<h3>瀵煎叆鎻愮ず</h3>
<p>1. 瀵煎叆鏂囦欢鏀寔绫诲瀷锛�.xlsx,鏈�澶т笉鑳借秴10M</p>
<p>2. 璇峰嬁璋冩暣瀵煎叆妯$増涓瓧娈电殑宸﹀彸椤哄簭鎴栨柊澧瀞heet椤�</p>
</div>
- <div v-if="div2 && div2_state === '301'">
+ <div v-if="div2 && div2_state === '301'" style="margin-left: 85px;margin-right: 85px">
<p><span class="gth_icon">!</span>鏂囦欢涓湁<span style="color:red">{{ error_list.length }}</span>鏉¢敊璇暟鎹紝璇蜂慨鏀瑰悗閲嶆柊瀵煎叆</p>
<el-table class="table" :data="error_list" :header-cell-style="{background:'#f5f5f5'}">
<el-table-column label="搴忓彿" prop="Seq" width="50" />
@@ -29,13 +30,13 @@
<el-table-column label="閿欒璇︽儏" prop="ErrorCont" min-width="300" />
</el-table>
</div>
- <div v-if="div2 && div2_state === '200'" style="position:relative;margin-top:100px;">
+ <div v-if="div2 && div2_state === '200'" style="position:relative;margin:100px 85px;">
<div class="progress_bar bar-color-a" />
<div :class="{'progress_bar':true, 'bar-color-b':true,'position_div':true,'cg':cg4,}" />
<div class="mt"><img src="@/assets/images/succ.png" class="img_position"> 鏍¢獙鏁版嵁 (鎴愬姛)</div>
<div class="mt">鍗冲皢瀵煎叆{{ total_num }}鏉℃暟鎹�</div>
</div>
- <div v-if="div1" class="mb40">
+ <div v-if="div1" style="margin-left:85px" class="mb40">
<h3>涓婁紶鏂囦欢</h3>
<el-upload
style="display: inline-block;"
@@ -45,14 +46,14 @@
:before-upload="beforeUpload"
:data="{FileCode:code}"
>
- <el-button class="but_style" icon="el-icon-upload2" size="small">{{ button_name }}</el-button>
+ <el-button v-waves class="but_style" icon="el-icon-upload2" size="small" :style="{color:$store.state.settings.theme}">{{ button_name }}</el-button>
</el-upload>
璇风偣鍑�
- <el-button type="text" style="font-size: 14px;cursor: pointer" icon="el-icon-download" @click="clickDown(code)">涓嬭浇鏁版嵁妯$増</el-button>
+ <el-button v-waves type="text" style="font-size: 14px;cursor: pointer" icon="el-icon-download" @click="clickDown(code)">涓嬭浇鏁版嵁妯$増</el-button>
, 骞舵寜鐓фā鐗堢紪杈戝鍏ユ暟鎹�
</div>
- <p v-if="div1">{{ file_name }}</p>
- <div v-show="div1 && getDataing" class="yz">
+ <p v-if="div1" style="margin:0 85px 5px">{{ file_name }}</p>
+ <div v-show="div1 && getDataing" style="margin: 0 85px" class="yz">
<ul>
<li>
<div class="progress_bar bar-color-a" />
@@ -116,8 +117,9 @@
</div>
</div>
<span slot="footer" class="dialog-footer" style="display: flex;">
- <el-button v-if="button_text !="瀹屾垚"" @click="colos()">鍙� 娑�</el-button>
+ <el-button v-if="button_text !="瀹屾垚"" v-waves @click="colos()">鍙� 娑�</el-button>
<el-button
+ v-waves
type="primary"
class="button_style"
:disabled="disState"
@@ -129,8 +131,11 @@
<script>
import { DownLoadExcel, ExcelCheckData, ExcelImportSubmit, ExcelModelCheck } from '@/api/Excel'
+import elDragDialog from '@/directive/el-drag-dialog'
+import waves from '@/directive/waves'
export default {
+ directives: { elDragDialog, waves },
props: {
code: {
type: String,
@@ -364,7 +369,8 @@
// console.log(process.env.VUE_APP_BASE_API, 8989899)
// console.log(process.env.VUE_APP_BASE_API_FILE)
// console.log(window.location.origin + res.data)
- window.location.href = process.env.VUE_APP_BASE_API_FILE + res.data
+ // window.location.href = process.env.VUE_APP_BASE_API_FILE + res.data
+ window.location.href = res.data
})
}
}
--
Gitblit v1.9.3