Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes-pad
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ximai
mes-pad
Commits
8443f5b0
Commit
8443f5b0
authored
Mar 20, 2024
by
张海景
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:修改打印的数据
parent
9f50868e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
index.vue
pages/mes/prodReport/index.vue
+9
-7
No files found.
pages/mes/prodReport/index.vue
View file @
8443f5b0
...
@@ -112,7 +112,7 @@
...
@@ -112,7 +112,7 @@
v-model="open"
v-model="open"
width="1800rpx"
width="1800rpx"
>
>
<view
class=
"feedback-card"
v-for=
"(feedback,i) in feedbackForms"
>
<view
class=
"feedback-card"
v-for=
"(feedback,i) in feedbackForms"
:key=
"i"
>
<u-form
label-width=
"100px"
:model=
"feedback"
:rules=
"rules"
>
<u-form
label-width=
"100px"
:model=
"feedback"
:rules=
"rules"
>
<u-row>
<u-row>
<u-col
span=
"6"
>
<u-col
span=
"6"
>
...
@@ -208,10 +208,11 @@
...
@@ -208,10 +208,11 @@
</u-col>
</u-col>
<u-col
span=
"6"
>
<u-col
span=
"6"
>
<u-form-item
label=
"打印模板"
prop=
"printTemplate"
>
<u-form-item
label=
"打印模板"
prop=
"printTemplate"
>
<u-input
v-model=
"feedback.printTemplate"
disabled
placeholder=
"请选择打印模板"
></u-input>
<u-input
v-model=
"feedback.printTemplate"
placeholder=
"请选择打印模板"
></u-input>
<u-button
<u-button
@
tap=
"getPrintTemplate(feedback)"
@
tap=
"getPrintTemplate(feedback)"
type=
"success"
type=
"success"
style=
"margin-left:20rpx;"
size=
"mini"
size=
"mini"
>
选择打印模板
</u-button>
>
选择打印模板
</u-button>
</u-form-item>
</u-form-item>
...
@@ -1622,6 +1623,7 @@ export default {
...
@@ -1622,6 +1623,7 @@ export default {
return
;
return
;
}
}
}
}
console
.
log
(
this
.
vuex_printConnect
,
'this.vuex_printConnect'
)
if
((
item
.
printTemplate
||
item
.
whether
==
'1'
)
&&
!
this
.
vuex_printConnect
)
{
if
((
item
.
printTemplate
||
item
.
whether
==
'1'
)
&&
!
this
.
vuex_printConnect
)
{
this
.
$u
.
toast
(
'打印机连接失败'
);
this
.
$u
.
toast
(
'打印机连接失败'
);
return
return
...
@@ -1664,16 +1666,16 @@ export default {
...
@@ -1664,16 +1666,16 @@ export default {
this
.
open
=
false
;
this
.
open
=
false
;
if
(
item
.
printTemplate
)
{
if
(
item
.
printTemplate
)
{
let
params
=
{}
let
params
=
{}
res
.
data
.
forEach
(
item
=>
{
res
.
data
.
forEach
(
datas
=>
{
params
=
{
params
=
{
reportName
:
'mysql:'
+
item
.
printTemplate
,
reportName
:
'mysql:'
+
item
.
printTemplate
,
values
:
{
values
:
{
proWorkorder
:
item
.
proWorkorder
,
proWorkorder
:
datas
.
proWorkorder
,
size
:
item
.
size
,
size
:
datas
.
size
,
directive
:
item
.
directive
directive
:
datas
.
directive
}
}
}
}
item
.
packagePrintList
.
forEach
(
v
=>
{
datas
.
packagePrintList
.
forEach
(
v
=>
{
params
.
values
.
packagePrint
=
v
params
.
values
.
packagePrint
=
v
this
.
printPdfSocket
(
params
)
this
.
printPdfSocket
(
params
)
})
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment