feat: 下载单据

yanshishuju
chenhc 7 months ago
parent f595b61e84
commit 7c37a6d49b

@ -1,16 +1,18 @@
<template>
<div>
<el-card>
<el-form v-if="queryList && queryList.length > 0 && showSearch" :model="filterQuery" class="query-form"
<el-form v-if="queryList && queryList.length > 0 " :model="filterQuery" class="query-form"
@submit.native.prevent
size="mini" label-width="100px">
<el-row style=" display:flex; flex-wrap: wrap; ">
<template v-for="(item, index) in queryList">
<div v-if="showSearch || item.isImport">
<el-form-item v-if="item.columnType == 'input' && executeEval(row,item.expression,true)"
class="query-form-item"
:label="item.columnDesc+`:`" :key="item.id">
<el-input
v-model="filterQuery[item.columnName]"
:placeholder="item.columnDesc"
:placeholder="item.columnDesc == '模糊查询' ? '单据号/单据日期/收货方/发货方' : item.columnDesc"
:disabled="executeEval(null,item.disabledFuc,false)"
@keyup.enter.native="executeFuc($event,'5',item.clickFuc)"
clearable
@ -77,12 +79,13 @@
:placeholder="item.columnDesc"
></el-date-picker>
</el-form-item>
</div>
</template>
</el-row>
</el-form>
<div class="top-right-btn">
<el-button-group>
<el-button icon="el-icon-view" type="primary" @click="hideSearch">/</el-button>
<el-button icon="el-icon-view" type="primary" @click="hideSearch"></el-button>
<el-button
type="primary"
icon="el-icon-refresh"
@ -279,7 +282,7 @@ export default {
queryList1: [],
tableObj1: [],
fromList1: [],
showSearch: true,
showSearch: false,
filterQuery: {
busType: null,
billNo: null,
@ -341,6 +344,9 @@ export default {
hideSearch() {
this.showSearch = !this.showSearch;
this.$nextTick(() => {
console.log('组件已刷新');
});
},
onReset() {
this.filterQuery = {

Loading…
Cancel
Save