dev
张同海 2 years ago
parent 429fee87fc
commit a91fd698a4

@ -15,6 +15,21 @@
<a-input v-model="queryParam[item.dataIndex]" allow-clear :placeholder="`请输入${item.title}`" /> <a-input v-model="queryParam[item.dataIndex]" allow-clear :placeholder="`请输入${item.title}`" />
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :md="8" :sm="24">
<a-form-item label="主分单">
<a-select v-model="queryParam.WebMain" style="width: 120px">
<a-select-option value="全部">
全部
</a-select-option>
<a-select-option value="主单">
主单
</a-select-option>
<a-select-option value="分单">
分单
</a-select-option>
</a-select>
</a-form-item>
</a-col>
</a-row> </a-row>
</a-col> </a-col>
<a-col :md="4" :sm="24"> <a-col :md="4" :sm="24">
@ -72,6 +87,11 @@
<a @click="FnDFile(row)">{{ row.fileName }}</a> <a @click="FnDFile(row)">{{ row.fileName }}</a>
</template> </template>
</vxe-column> </vxe-column>
<vxe-column title="主分单" width="200" align="center">
<template #default="{ row }">
{{ RMain(row) }}
</template>
</vxe-column>
<vxe-column title="操作" fixed="right" width="200" align="center"> <vxe-column title="操作" fixed="right" width="200" align="center">
<template #default="{ row }"> <template #default="{ row }">
<vxe-button type="text" @click="$refs.editForm.edit(row)"></vxe-button> <vxe-button type="text" @click="$refs.editForm.edit(row)"></vxe-button>
@ -146,6 +166,7 @@ export default {
setVisible: false, setVisible: false,
setVisible1: false, setVisible1: false,
queryParam: { queryParam: {
WebMain: '',
currentPage: 1, currentPage: 1,
pageSize: 10, pageSize: 10,
totalResult: 1 totalResult: 1
@ -162,6 +183,19 @@ export default {
this.init() this.init()
}, },
methods: { methods: {
RMain(data) {
let Text = ''
if (data.isMain && data.isSub) {
Text = '主单,分单'
} else if (data.isSub) {
Text = '分单'
} else if (data.isMain) {
Text = '主单'
} else {
Text = '-'
}
return Text
},
FnDFile(Data) { FnDFile(Data) {
BookingPrintTemplateDownload({ id: Data.id }).then(res => { BookingPrintTemplateDownload({ id: Data.id }).then(res => {
const blob = res const blob = res
@ -288,7 +322,15 @@ export default {
}, },
FnGetData() { FnGetData() {
this.loading = true this.loading = true
BookingPrintTemplatePage(this.queryParam).then(res => { let Data = {}
if (this.queryParam.WebMain == '全部') {
Data = { isMain: true, isSub: true }
} else if (this.queryParam.WebMain == '主单') {
Data = { isMain: true, isSub: false }
} else if (this.queryParam.WebMain == '分单') {
Data = { isMain: false, isSub: true }
}
BookingPrintTemplatePage({ ...this.queryParam, ...Data }).then(res => {
this.loadData = res.data.rows this.loadData = res.data.rows
this.loading = false this.loading = false
this.queryParam.currentPage = res.data.pageNo this.queryParam.currentPage = res.data.pageNo

Loading…
Cancel
Save