From a91fd698a47a4aaf9d8afac78728ee73a7b9270b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=BC=A0=E5=90=8C=E6=B5=B7?= <963808678@qq.com>
Date: Thu, 29 Dec 2022 09:57:06 +0800
Subject: [PATCH] 12/29
---
src/views/main/Printing/index.vue | 44 ++++++++++++++++++++++++++++++-
1 file changed, 43 insertions(+), 1 deletion(-)
diff --git a/src/views/main/Printing/index.vue b/src/views/main/Printing/index.vue
index 6be91fc..7056803 100644
--- a/src/views/main/Printing/index.vue
+++ b/src/views/main/Printing/index.vue
@@ -15,6 +15,21 @@
+
+
+
+
+ 全部
+
+
+ 主单
+
+
+ 分单
+
+
+
+
@@ -72,6 +87,11 @@
{{ row.fileName }}
+
+
+ {{ RMain(row) }}
+
+
编辑
@@ -146,6 +166,7 @@ export default {
setVisible: false,
setVisible1: false,
queryParam: {
+ WebMain: '',
currentPage: 1,
pageSize: 10,
totalResult: 1
@@ -162,6 +183,19 @@ export default {
this.init()
},
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) {
BookingPrintTemplateDownload({ id: Data.id }).then(res => {
const blob = res
@@ -288,7 +322,15 @@ export default {
},
FnGetData() {
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.loading = false
this.queryParam.currentPage = res.data.pageNo