Browse Source

按钮

java8
han\hanst 4 months ago
parent
commit
2b7c6d9fc8
  1. 50
      src/views/modules/ecss/del_upload_excel.vue

50
src/views/modules/ecss/del_upload_excel.vue

@ -151,6 +151,30 @@
<el-dialog :title="currentRow ? `为发票号 ${currentRow.cmcInvoice} 选择客户模板` : '客户模板'" <el-dialog :title="currentRow ? `为发票号 ${currentRow.cmcInvoice} 选择客户模板` : '客户模板'"
@close="templateFlag = false; currentRow = null" :visible.sync="templateFlag" width="1200px" v-drag> @close="templateFlag = false; currentRow = null" :visible.sync="templateFlag" width="1200px" v-drag>
<!-- 搜索表单 -->
<el-form :inline="true" :model="templateSearchData" label-width="100px" style="margin-bottom: 15px;">
<el-form-item label="模板名称:">
<el-input
v-model="templateSearchData.templateName"
placeholder="请输入模板名称"
style="width: 200px;"
clearable>
</el-input>
</el-form-item>
<el-form-item label="客户名称:">
<el-input
v-model="templateSearchData.customerName"
placeholder="请输入客户名称"
style="width: 200px;"
clearable>
</el-input>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="searchTemplateList">查询</el-button>
<el-button @click="resetTemplateSearch">重置</el-button>
</el-form-item>
</el-form>
<el-table <el-table
:height="400" :height="400"
:data="customerTemplateList" :data="customerTemplateList"
@ -391,6 +415,10 @@
overseasAddressFlag:false, overseasAddressFlag:false,
templateFlag:false, templateFlag:false,
customerTemplateList: [],// customerTemplateList: [],//
templateSearchData: {
templateName: '',
customerName: ''
},//
cacheKey: '', // cacheKey: '', //
cacheTimer: null, // cacheTimer: null, //
currentRow: null, // currentRow: null, //
@ -1105,9 +1133,9 @@
}, },
// //
async getCustomerTemplateList() {
async getCustomerTemplateList(searchParams = {}) {
try { try {
const { data } = await getCustomerTemplateList({})
const { data } = await getCustomerTemplateList(searchParams)
if (data && data.code === 0) { if (data && data.code === 0) {
this.customerTemplateList = data.rows || [] this.customerTemplateList = data.rows || []
} }
@ -1117,6 +1145,24 @@
} }
}, },
//
searchTemplateList() {
const searchParams = {
templateName: this.templateSearchData.templateName,
customerName: this.templateSearchData.customerName
}
this.getCustomerTemplateList(searchParams)
},
//
resetTemplateSearch() {
this.templateSearchData = {
templateName: '',
customerName: ''
}
this.getCustomerTemplateList()
},
// //
getCusPersonsForRow(customerName) { getCusPersonsForRow(customerName) {
let cusData = {ccusname: customerName} let cusData = {ccusname: customerName}

Loading…
Cancel
Save