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
7638654b
Commit
7638654b
authored
Oct 09, 2024
by
chenzj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工单组合的逻辑修改
parent
8187ccd6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
5 deletions
+47
-5
combination.js
src/api/mes/pro/combination.js
+11
-0
indexApply.vue
src/views/mes/pro/workorder/indexApply.vue
+36
-5
No files found.
src/api/mes/pro/combination.js
View file @
7638654b
...
@@ -45,6 +45,17 @@ export function batchAddCombination(data) {
...
@@ -45,6 +45,17 @@ export function batchAddCombination(data) {
})
})
}
}
// 新增生产组合单
export
function
batchAddCombinations
(
data
)
{
return
request
({
url
:
'/pro/combination/batchAdd2'
,
method
:
'post'
,
data
:
data
})
}
// 修改生产组合单
// 修改生产组合单
export
function
updateCombination
(
data
)
{
export
function
updateCombination
(
data
)
{
...
...
src/views/mes/pro/workorder/indexApply.vue
View file @
7638654b
...
@@ -592,7 +592,7 @@ import { genCode } from "@/api/system/autocode/rule";
...
@@ -592,7 +592,7 @@ import { genCode } from "@/api/system/autocode/rule";
import
Treeselect
from
"@riophae/vue-treeselect"
;
import
Treeselect
from
"@riophae/vue-treeselect"
;
import
"@riophae/vue-treeselect/dist/vue-treeselect.css"
;
import
"@riophae/vue-treeselect/dist/vue-treeselect.css"
;
import
{
getToken
}
from
"@/utils/auth"
;
import
{
getToken
}
from
"@/utils/auth"
;
import
{
addCombination
,
batchAddCombination
}
from
"@/api/mes/pro/combination"
;
import
{
addCombination
,
batchAddCombination
,
batchAddCombinations
}
from
"@/api/mes/pro/combination"
;
import
CombinationInfos
from
"@/views/mes/pro/combination/infos.vue"
;
import
CombinationInfos
from
"@/views/mes/pro/combination/infos.vue"
;
import
{
batchAddArrange
,
delArrange
}
from
"@/api/mes/pro/arrange"
;
import
{
batchAddArrange
,
delArrange
}
from
"@/api/mes/pro/arrange"
;
import
ArrangeInfo
from
"@/views/mes/pro/arrange/info.vue"
;
import
ArrangeInfo
from
"@/views/mes/pro/arrange/info.vue"
;
...
@@ -915,12 +915,43 @@ export default {
...
@@ -915,12 +915,43 @@ export default {
}
);
}
);
batchAddCombination(params).then(response => {
batchAddCombination(params).then(response => {
if (response && response.length > 0) {
if (response && response.length > 0) {
if(response[0]=='0'){
this.$modal
.confirm(
'生产规格书的印张长度或者模数是空的,是否继续组合?'
)
.then(function () {
return batchAddCombinations(params);
}
)
.then(responses => {
this.combOpen = true
this.combinationCodes = responses
this.$modal.msgSuccess("新增组合单成功1");
}
)
.catch(() => {
}
);
}
else{
this.combOpen = true
this.combOpen = true
this.combinationCodes = response
this.combinationCodes = response
this.$modal.msgSuccess("新增组合单成功");
this.$modal.msgSuccess("新增组合单成功2");
}
else {
}
this.$modal.msgError("新增组合单失败,组合规则不同,不允许组合!");
}
else{
this.$modal
.confirm(
'的最大米数、最大印张数没有设置,是否继续组合?'
)
.then(function () {
return batchAddCombinations(params);
}
)
.then(responses => {
this.combOpen = true
this.combinationCodes = responses
this.$modal.msgSuccess("新增组合单成功12");
}
)
.catch(() => {
}
);
}
}
this.getList();
this.getList();
}
);
}
);
...
...
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