|
@@ -48,6 +48,8 @@
|
|
|
type="info"
|
|
|
icon="el-icon-printer"
|
|
|
size="small"
|
|
|
+ :loading="exportLoading"
|
|
|
+ @click.stop="statement"
|
|
|
>报 表
|
|
|
</el-button>
|
|
|
</template>
|
|
@@ -59,6 +61,12 @@
|
|
|
<avue-form :option="excelOption" v-model="excelForm" :upload-after="uploadAfter"/>
|
|
|
</el-dialog>
|
|
|
</basic-container>
|
|
|
+ <report-dialog
|
|
|
+ :switchDialog="switchDialog"
|
|
|
+ :searchValue="statementData"
|
|
|
+ :reportName="'国内贸易-库存账'"
|
|
|
+ @onClose="onClose()"
|
|
|
+ ></report-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
@@ -66,13 +74,20 @@ import option from "./configuration/mainList.json"
|
|
|
import {deleteTemplate,customerList,typeSave} from "@/api/basicData/inventoryAccount"
|
|
|
import {getToken} from "@/util/auth";
|
|
|
import { defaultDate } from "@/util/date";
|
|
|
+import reportDialog from "@/components/report-dialog/main";
|
|
|
|
|
|
export default {
|
|
|
+ components:{
|
|
|
+ reportDialog
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
data: [],
|
|
|
search:{},
|
|
|
loading: false,
|
|
|
+ exportLoading:false,
|
|
|
+ switchDialog:false,
|
|
|
+ statementData: {},
|
|
|
excelForm: {},
|
|
|
excelOption: {
|
|
|
submitBtn: false,
|
|
@@ -110,7 +125,6 @@ export default {
|
|
|
},
|
|
|
created() {
|
|
|
this.search.createTime = defaultDate(1)
|
|
|
- console.log(this.search)
|
|
|
let i = 0;
|
|
|
this.option.column.forEach(item => {
|
|
|
if (item.search) i++
|
|
@@ -232,6 +246,16 @@ export default {
|
|
|
}
|
|
|
// this.show = false;
|
|
|
},
|
|
|
+ statement() {
|
|
|
+ this.statementData = {...this.search}
|
|
|
+ this.statementData.createStartTime = this.statementData.createTime[0]+ " " + "00:00:00"
|
|
|
+ this.statementData.createEndTime = this.statementData.createTime[1]+ " " + "23:59:59"
|
|
|
+ delete this.statementData.createTime
|
|
|
+ this.switchDialog = !this.switchDialog;
|
|
|
+ },
|
|
|
+ onClose(val) {
|
|
|
+ this.switchDialog = val;
|
|
|
+ },
|
|
|
}
|
|
|
}
|
|
|
</script>
|