|
@@ -105,7 +105,7 @@
|
|
|
@click="statusUpdate('3','撤销租金')">撤销租金
|
|
|
</el-button>
|
|
|
<el-button :disabled="option.disabled" type="success" size="small" icon="el-icon-bottom"
|
|
|
- @click="excelBox = true">导入
|
|
|
+ @click="importBox">导入
|
|
|
</el-button>
|
|
|
<el-button class="el-icon-download" type="info" size="small" :disabled="!form.id" @click="openReport">
|
|
|
报表打印
|
|
@@ -921,6 +921,16 @@ export default {
|
|
|
onClose(val) {
|
|
|
this.switchDialog = val;
|
|
|
},
|
|
|
+ importBox() {
|
|
|
+ if (!this.form.id) {
|
|
|
+ this.$message.error('请先保存数据')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.findObject(this.excelOption.column, "excelFile").data = {
|
|
|
+ pid:this.form.id
|
|
|
+ }
|
|
|
+ this.excelBox = true
|
|
|
+ },
|
|
|
derivation() {
|
|
|
window.open(`/api/blade-box-tube/tradingBoxRent/export-tradingBox-info?${this.website.tokenHeader}=${getToken()}`);
|
|
|
},
|