Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes-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
mes
mes-ui
Commits
ba772f8a
Commit
ba772f8a
authored
Dec 13, 2024
by
tanjunxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 追加组合单接口修改
parent
c827d6c2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
combination.js
src/api/mes/pro/combination.js
+1
-1
chooseWorkorderForComb.vue
src/views/mes/pro/combination/chooseWorkorderForComb.vue
+7
-6
No files found.
src/api/mes/pro/combination.js
View file @
ba772f8a
...
...
@@ -39,7 +39,7 @@ export function addCombination(data) {
// 新增生产组合单
export
function
batchAddCombination
(
data
)
{
return
request
({
url
:
'/pro/combination/
batchAdd
'
,
url
:
'/pro/combination/
insert
'
,
method
:
'post'
,
data
:
data
})
...
...
src/views/mes/pro/combination/chooseWorkorderForComb.vue
View file @
ba772f8a
...
...
@@ -278,19 +278,20 @@ export default {
}
,
methods
:
{
async
handleCombination
()
{
let
params
=
[]
let
params
=
{
combinationCode
:
this
.
combinationCode
,
workorderList
:
[]
}
let
shouldExit
=
false
;
this
.
selectedRows
.
forEach
((
item
,
index
)
=>
{
console
.
log
(
item
);
if
(
item
.
combinationCode
!=
''
&&
item
.
combinationCode
!=
null
)
{
this
.
$modal
.
msgWarning
(
`${item.workorderCode
}
生产单已绑定组合单,不能再绑定!`
);
shouldExit
=
true
}
params
.
push
({
combinationSort
:
index
,
params
[
"workorderList"
].
push
({
workorderId
:
item
.
workorderId
,
workorderCode
:
item
.
workorderCode
,
salesOrderId
:
0
,
combinationCode
:
this
.
combinationCode
workorderCode
:
item
.
workorderCode
}
)
}
);
if
(
!
shouldExit
)
{
...
...
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