Browse Source

箱动态新加弹窗

Qukatie 6 months ago
parent
commit
3bba5cc4fb

+ 12 - 4
src/views/boxManagement/boxPoolDynamics/components/importModule.vue

@@ -5,11 +5,11 @@
             <span>
                 <avue-crud v-if="excelBox" :data="data" :option="option" :table-loading="loading"
                     :cell-style="cellStyle" @selection-change="selectionChange">
-                    <template slot="menuLeft" slot-scope="{size}">
-                        <el-button type="primary" size="mini" icon="el-icon-download" @click="download()">
+                    <template v-if="!(type==5||type==6)"  slot="menuLeft" slot-scope="{size}">
+                        <el-button  type="primary" size="mini" icon="el-icon-download" @click="download()">
                             下载模板
                         </el-button>
-                        <el-upload :action="action" :headers="headers" :on-progress="onProgress" :show-file-list=false
+                        <el-upload  :action="action" :headers="headers" :on-progress="onProgress" :show-file-list=false
                             accept=".xls,.xlsx" multiple :on-success="onSuccess" :on-error="onError"
                             :on-change="onChange" style="float: right">
                             <el-button type="success" size="mini" icon="el-icon-upload">上传数据</el-button>
@@ -161,7 +161,7 @@ export default {
         // beforeUpload(file) {
 
         // },
-        openDialog(type) {
+        openDialog(type, list) {
             this.data = []
             this.selectionList = []
             this.excelBox = true
@@ -181,6 +181,14 @@ export default {
                 this.action = '/api/blade-los/boxPool/returnEmptyAnalysis'
                 this.url = '/blade-los/boxPool/returnEmpty'
             }
+            if (type == 5) {
+                this.data=list
+              this.url = '/blade-los/boxPool/emptyContainerEntry'
+            }
+            if (type == 6) {
+                this.data=list
+                this.url = '/blade-los/boxPool/emptyContainerAppearance'
+            }
             this.type = type
         },
         download() {

+ 3 - 3
src/views/boxManagement/boxPoolDynamics/index.vue

@@ -705,14 +705,14 @@ export default {
                     },
                     callback: (res) => {
                         res.done()
-                        console.log(res)
                         let obj = {
                             corpId: res.data.corpId,
                             type: 'IN'
                         }
                         emptyContainerEntryFtp(obj).then(res => {
                             this.$message.success("操作成功!");
-                            this.refreshChange()
+                            // this.refreshChange()
+                            this.$refs.importModule.openDialog(5,res.data.data)
                         })
                         res.close()
                     }
@@ -770,7 +770,7 @@ export default {
                         }
                         emptyContainerEntryFtp(obj).then(res => {
                             this.$message.success("操作成功!");
-                            this.refreshChange()
+                            this.$refs.importModule.openDialog(6,res.data.data)
                         })
                         res.close()
                     }