Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
pda-ui
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
pda
pda-ui
Commits
a252a812
Commit
a252a812
authored
Mar 28, 2024
by
张海景
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:修改包装标签逻辑
parent
85c7afad
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
10 deletions
+7
-10
packageLablePrint.js
src/api/mes/pro/packageLablePrint.js
+1
-4
ruoyi.js
src/utils/ruoyi.js
+2
-2
index.vue
src/views/mes/pro/packageLablePrint/index.vue
+4
-4
No files found.
src/api/mes/pro/packageLablePrint.js
View file @
a252a812
...
...
@@ -43,10 +43,7 @@ export function packagePrintRecordInfo(data) {
return
request
({
url
:
"/pro/packagePrintRecord/recordPackagePrintInfo"
,
method
:
"post"
,
data
,
headersheaders
:
{
"Content-Type"
:
"application/x-www-form-urlencoded"
,
},
data
});
}
src/utils/ruoyi.js
View file @
a252a812
...
...
@@ -284,7 +284,7 @@ function printPdf(res) {
* 接口请求加上responseType
*/
export
function
postPrintPdf
(
name
,
value
)
{
request
({
re
turn
re
quest
({
url
:
"/common/print"
,
method
:
"post"
,
responseType
:
"blob"
,
...
...
@@ -303,7 +303,7 @@ export function postPrintPdf(name, value) {
* 接口请求加上responseType
*/
export
function
postBatchPrintPdf
(
name
,
values
)
{
request
({
re
turn
re
quest
({
url
:
"/common/printBatch"
,
method
:
"post"
,
responseType
:
"blob"
,
...
...
src/views/mes/pro/packageLablePrint/index.vue
View file @
a252a812
...
...
@@ -275,6 +275,10 @@ export default {
methods
:
{
/** 查询工单列表 */
getList
()
{
if
(
!
this
.
queryParams
.
arrangeCode
&&!
this
.
queryParams
.
workorderCode
)
{
this
.
$message
.
error
(
'请输入查询条件'
)
return
}
this
.
loading
=
true
;
workorderList
(
this
.
queryParams
).
then
((
response
)
=>
{
console
.
log
(
response
,
'response'
)
...
...
@@ -343,10 +347,6 @@ export default {
this
.
$message
.
warning
(
'请选择打印模版'
)
return
}
const
params
=
{
workorderId
:
this
.
produceForm
.
workorderId
,
recordIds
:
this
.
selectPackageTable
}
const
forms
=
new
FormData
()
forms
.
append
(
'workorderId'
,
this
.
produceForm
.
workorderId
)
this
.
selectPackageTable
.
forEach
(
item
=>
{
...
...
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