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
f8f3f8da
Commit
f8f3f8da
authored
Aug 20, 2025
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FQC修改
parent
2acaad05
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
69 deletions
+43
-69
index.vue
src/views/mes/pro/ItemTemplateMapping/index.vue
+5
-13
indexApply.vue
src/views/mes/pro/workorder/indexApply.vue
+31
-49
index.vue
src/views/mes/qc/qctemplate/index.vue
+1
-1
index.vue
src/views/mes/qc/templateProcess/index.vue
+6
-6
No files found.
src/views/mes/pro/ItemTemplateMapping/index.vue
View file @
f8f3f8da
...
@@ -71,7 +71,7 @@
...
@@ -71,7 +71,7 @@
</el-form>
</el-form>
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-col
:span=
"1.5"
>
<
!--
<
el-col
:span=
"1.5"
>
<el-button
<el-button
type=
"primary"
type=
"primary"
plain
plain
...
@@ -106,7 +106,7 @@
...
@@ -106,7 +106,7 @@
>
删除
</el-button
>
删除
</el-button
>
>
</el-col>
</el-col>
<!--
<el-col
:span=
"1.5"
>
<el-col
:span=
"1.5"
>
<el-button
<el-button
type=
"warning"
type=
"warning"
plain
plain
...
@@ -165,15 +165,7 @@
...
@@ -165,15 +165,7 @@
icon=
"el-icon-edit"
icon=
"el-icon-edit"
@
click=
"handleUpdate(scope.row)"
@
click=
"handleUpdate(scope.row)"
v-hasPermi=
"['pro:scheduleSetupRule:edit']"
v-hasPermi=
"['pro:scheduleSetupRule:edit']"
>
修改
</el-button
>
查看
</el-button
>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
v-hasPermi=
"['pro:scheduleSetupRule:remove']"
>
删除
</el-button
>
>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
@@ -266,7 +258,7 @@
...
@@ -266,7 +258,7 @@
</el-row>
</el-row>
</el-form>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
<
el-button
type=
"primary"
@
click=
"submitForm"
>
确 定
</el-button
>
<
!-- <el-button type="primary" @click="submitForm">确 定</el-button> --
>
<el-button
@
click=
"cancel"
>
取 消
</el-button>
<el-button
@
click=
"cancel"
>
取 消
</el-button>
</div>
</div>
</el-dialog>
</el-dialog>
...
@@ -472,7 +464,7 @@ export default {
...
@@ -472,7 +464,7 @@ export default {
this
.
templateChange
()
this
.
templateChange
()
})
})
this
.
open
=
true
this
.
open
=
true
this
.
title
=
'
修改
客户产品标签模板对照表'
this
.
title
=
'
查看
客户产品标签模板对照表'
},
},
/** 提交按钮 */
/** 提交按钮 */
submitForm
()
{
submitForm
()
{
...
...
src/views/mes/pro/workorder/indexApply.vue
View file @
f8f3f8da
...
@@ -236,6 +236,13 @@
...
@@ -236,6 +236,13 @@
<el-button
type=
"primary"
@
click=
"confirmCommand"
>
确 定
</el-button>
<el-button
type=
"primary"
@
click=
"confirmCommand"
>
确 定
</el-button>
</div>
</div>
</el-dialog>
</el-dialog>
<el-dialog
title=
"提示"
:visible
.
sync=
"textRulesVisible"
width=
"500px"
append-to-body
>
<div
style=
"max-height: 400px;overflow:auto;"
v-html=
"textRules"
></div>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"textRulesVisible = false"
>
否
</el-button>
<el-button
type=
"primary"
@
click=
"handleTipByYes"
>
是
</el-button>
</div>
</el-dialog>
<!-- 用户导入对话框 -->
<!-- 用户导入对话框 -->
<el-dialog
title=
"导入工单"
:visible
.
sync=
"upload.open"
width=
"400px"
>
<el-dialog
title=
"导入工单"
:visible
.
sync=
"upload.open"
width=
"400px"
>
...
@@ -795,7 +802,8 @@ export default {
...
@@ -795,7 +802,8 @@ export default {
// 生产工单树选项
// 生产工单树选项
workorderOptions
:
[],
workorderOptions
:
[],
selectedRows
:
[],
selectedRows
:
[],
textRulesVisible
:
false
,
textRules
:
''
,
daterangePurchaseDate
:
[],
daterangePurchaseDate
:
[],
beginRequestDate
:
[],
beginRequestDate
:
[],
// 弹出层标题
// 弹出层标题
...
@@ -1024,6 +1032,25 @@ export default {
...
@@ -1024,6 +1032,25 @@ export default {
}
}
)
)
}
,
}
,
handleTipByYes
()
{
let
params
=
[];
this
.
selectedRows
.
forEach
((
item
,
index
)
=>
{
params
.
push
({
arrangeSort
:
index
+
1
,
workorderId
:
item
.
workorderId
,
workorderCode
:
item
.
workorderCode
,
arrangeCode
:
null
}
)
}
);
batchAddArrange
(
params
).
then
(
response
=>
{
this
.
arrangeOpen2
=
true
;
this
.
groupCode
=
response
;
this
.
$modal
.
msgSuccess
(
"新增编排单成功"
);
this
.
getList
();
}
).
finally
(()
=>
{
this
.
textRulesVisible
=
false
}
);
}
,
async
handleArrange
(
type
)
{
async
handleArrange
(
type
)
{
if
(
type
===
'del'
)
{
if
(
type
===
'del'
)
{
if
(
this
.
ids
.
length
===
0
)
return
this
.
$message
.
warning
(
'请勾选要取消编排的工单'
)
if
(
this
.
ids
.
length
===
0
)
return
this
.
$message
.
warning
(
'请勾选要取消编排的工单'
)
...
@@ -1060,54 +1087,9 @@ export default {
...
@@ -1060,54 +1087,9 @@ export default {
}
)
}
)
}
);
}
);
checkArrangeRulesApi(cparams).then(res => {
checkArrangeRulesApi(cparams).then(res => {
if(res.data && typeof res.data == 'object') {
if(res.data && typeof res.data == 'object' && res.data.length > 0) {
const text = res.data.join('\n')
this.textRules = res.data.join('<br />')
this.$confirm(
this.textRulesVisible = true
text,
'提示',
{
distinguishCancelAndClose: true,
confirmButtonText: '是',
cancelButtonText: '否',
}
).then(() => {
let params = [];
this.selectedRows.forEach((item, index) => {
params.push({
arrangeSort: index + 1,
workorderId: item.workorderId,
workorderCode: item.workorderCode,
arrangeCode: null
}
)
}
);
batchAddArrange(params).then(response => {
this.arrangeOpen2 = true;
this.groupCode = response;
this.$modal.msgSuccess("新增编排单成功");
this.getList();
}
);
}
).catch((action) => {
// if (action === 'cancel') {
// let params = [];
// this.selectedRows.forEach((item, index) => {
// if(!list.includes(item.workorderCode)) {
// params.push({
// arrangeSort: index + 1,
// workorderId: item.workorderId,
// workorderCode: item.workorderCode,
// arrangeCode: null
//
}
)
//
}
//
}
);
// if(params.length > 0) {
// batchAddArrange(params).then(response => {
// this.arrangeOpen2 = true;
// this.groupCode = response;
// this.$modal.msgSuccess("新增编排单成功");
// this.getList();
//
}
);
//
}
//
}
}
)
}
else {
}
else {
let params = [];
let params = [];
this.selectedRows.forEach((item, index) => {
this.selectedRows.forEach((item, index) => {
...
...
src/views/mes/qc/qctemplate/index.vue
View file @
f8f3f8da
...
@@ -392,7 +392,7 @@ export default {
...
@@ -392,7 +392,7 @@ export default {
submitForm
()
{
submitForm
()
{
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
const
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
form
))
const
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
form
))
if
(
params
.
qcType
===
'IQC'
)
{
if
(
params
.
qcType
===
'IQC'
||
params
.
qcType
===
'FQC'
)
{
params
.
qcTypesParam
=
[]
params
.
qcTypesParam
=
[]
}
else
{
}
else
{
if
(
!
params
.
qcTypesParam
||
params
.
qcTypesParam
.
length
===
0
)
return
this
.
$message
.
warning
(
'检测种类必选'
)
if
(
!
params
.
qcTypesParam
||
params
.
qcTypesParam
.
length
===
0
)
return
this
.
$message
.
warning
(
'检测种类必选'
)
...
...
src/views/mes/qc/templateProcess/index.vue
View file @
f8f3f8da
...
@@ -186,20 +186,20 @@
...
@@ -186,20 +186,20 @@
@
select=
"onItemTypeSelected"
placeholder=
"请选择所属分类"
/>
@
select=
"onItemTypeSelected"
placeholder=
"请选择所属分类"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"工序名称"
prop=
"processName"
>
<el-form-item
label=
"工序名称"
prop=
"processName"
>
<el-input
v-model=
"form.processName"
placeholder=
"请输入工序名称"
:disabled=
"form.qcType === 'IQC'"
>
<el-input
v-model=
"form.processName"
placeholder=
"请输入工序名称"
:disabled=
"form.qcType === 'IQC'
|| form.qcType === 'FQC'
"
>
<el-button
slot=
"append"
@
click=
"visible = true"
icon=
"el-icon-search"
:disabled=
"form.qcType === 'IQC'"
></el-button>
<el-button
slot=
"append"
@
click=
"visible = true"
icon=
"el-icon-search"
:disabled=
"form.qcType === 'IQC'
|| form.qcType === 'FQC'
"
></el-button>
</el-input>
</el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"最大数量"
prop=
"maxNum"
>
<el-form-item
label=
"最大数量"
prop=
"maxNum"
>
<el-input
v-model=
"form.maxNum"
placeholder=
"请输入最大数量"
:disabled=
"form.qcType === 'IQC'"
/>
<el-input
v-model=
"form.maxNum"
placeholder=
"请输入最大数量"
:disabled=
"form.qcType === 'IQC'
|| form.qcType === 'FQC'
"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"是否质检确认"
prop=
"isConfirm"
>
<el-form-item
label=
"是否质检确认"
prop=
"isConfirm"
>
<el-select
style=
"width:100%;"
v-model=
"form.isConfirm"
placeholder=
"请选择是否质检确认"
:disabled=
"form.qcType === 'IQC'"
>
<el-select
style=
"width:100%;"
v-model=
"form.isConfirm"
placeholder=
"请选择是否质检确认"
:disabled=
"form.qcType === 'IQC'
|| form.qcType === 'FQC'
"
>
<el-option
:label=
"item.dictKey"
:value=
"item.dictValue"
v-for=
"item in boolOpt"
:key=
"item.dictValue"
/>
<el-option
:label=
"item.dictKey"
:value=
"item.dictValue"
v-for=
"item in boolOpt"
:key=
"item.dictValue"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"是否新品"
prop=
"isNewProduct"
>
<el-form-item
label=
"是否新品"
prop=
"isNewProduct"
>
<el-select
style=
"width:100%;"
v-model=
"form.isNewProduct"
placeholder=
"请选择是否新品"
:disabled=
"form.qcType === 'IQC'"
>
<el-select
style=
"width:100%;"
v-model=
"form.isNewProduct"
placeholder=
"请选择是否新品"
:disabled=
"form.qcType === 'IQC'
|| form.qcType === 'FQC'
"
>
<el-option
:label=
"item.dictKey"
:value=
"item.dictValue"
v-for=
"item in boolOpt"
:key=
"item.dictValue"
/>
<el-option
:label=
"item.dictKey"
:value=
"item.dictValue"
v-for=
"item in boolOpt"
:key=
"item.dictValue"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
...
@@ -359,7 +359,7 @@ export default {
...
@@ -359,7 +359,7 @@ export default {
templateId
:
[
templateId
:
[
{
required
:
true
,
message
:
"检测模板不能为空"
,
trigger
:
"blur"
}
{
required
:
true
,
message
:
"检测模板不能为空"
,
trigger
:
"blur"
}
],
processName
:
[
],
processName
:
[
{
required
:
this
.
form
.
qcType
!==
'IQC'
,
message
:
"工序名称不能为空"
,
trigger
:
"blur"
}
{
required
:
this
.
form
.
qcType
!==
'IQC'
&&
this
.
form
.
qcType
!==
'FQC'
,
message
:
"工序名称不能为空"
,
trigger
:
"blur"
}
],
],
}
}
}
}
...
...
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