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
0a0188d2
Commit
0a0188d2
authored
Apr 21, 2025
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、生产工单,增加查询条件,2、生产排版界面增加取消组合按钮
parent
ee4accd3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
1 deletion
+38
-1
dta.js
src/api/mes/pro/dta.js
+8
-0
index.vue
src/views/mes/pro/dta/index.vue
+17
-1
indexApply.vue
src/views/mes/pro/workorder/indexApply.vue
+13
-0
No files found.
src/api/mes/pro/dta.js
View file @
0a0188d2
...
...
@@ -18,6 +18,14 @@ export function finishApi(data) {
});
}
// 修改dta信息
export
function
cancelApi
(
data
)
{
return
request
({
url
:
`/md/dta/record/cancel/
${
data
}
`
,
method
:
"put"
});
}
// 查询唯一码号段
export
function
getLPNrecordList
(
query
)
{
return
request
({
...
...
src/views/mes/pro/dta/index.vue
View file @
0a0188d2
...
...
@@ -97,6 +97,13 @@
<el-table-column
label=
"完成时间"
align=
"center"
prop=
"endTime"
/>
<el-table-column
label=
"操作"
width=
"200"
align=
"center"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
<el-button
v-if=
"!scope.row.endTime"
size=
"mini"
type=
"text"
@
click=
"handleCancel(scope.row)"
v-hasPermi=
"['pro:dta:cancel']"
>
取消
</el-button>
<el-button
v-if=
"!scope.row.endTime"
size=
"mini"
...
...
@@ -247,7 +254,7 @@
</template>
<
script
>
import
{
getDtaList
,
finishApi
}
from
"@/api/mes/pro/dta"
;
import
{
getDtaList
,
finishApi
,
cancelApi
}
from
"@/api/mes/pro/dta"
;
import
BrandSelect
from
"@/components/itemType/single.vue"
;
import
ProcessSelect
from
"@/components/process/taskSelectSingle.vue"
;
import
LPNList
from
"./components/LPN-list.vue"
;
...
...
@@ -430,6 +437,15 @@ export default {
}).
catch
(()
=>
{});
},
/** 完成按钮操作 */
handleCancel
(
row
)
{
this
.
$modal
.
confirm
(
`是否确认取消组合单
${
row
.
combinationCode
}
的排版任务?`
).
then
(
function
()
{
return
cancelApi
(
row
.
id
);
}).
then
(()
=>
{
this
.
getList
();
this
.
$modal
.
msgSuccess
(
"取消成功"
);
}).
catch
(()
=>
{});
},
/** 完成按钮操作 */
handleFinish
(
row
)
{
this
.
$modal
.
confirm
(
`是否确认组合单
${
row
.
combinationCode
}
的排版任务已经完成?`
).
then
(
function
()
{
return
finishApi
(
row
.
id
);
...
...
src/views/mes/pro/workorder/indexApply.vue
View file @
0a0188d2
...
...
@@ -86,6 +86,12 @@
<el-date-picker
v-model=
"daterangePurchaseDate"
value-format=
"yyyy-MM-dd"
type=
"daterange"
range-separator=
"-"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
></el-date-picker>
</el-form-item>
<el-form-item
label=
"排版状态"
prop=
"dtaType"
>
<el-select
v-model=
"queryParams.dtaType"
placeholder=
"请选择排版状态"
clearable
>
<el-option
v-for=
"dict in dict.type.dta"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"需求日期"
>
<el-date-picker
v-model=
"beginRequestDate"
value-format=
"yyyy-MM-dd"
type=
"daterange"
range-separator=
"-"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
></el-date-picker>
...
...
@@ -251,6 +257,11 @@
<dict-tag
:options=
"dict.type.rush_order"
:value=
"scope.row.rushOrder"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"排版状态"
align=
"center"
prop=
"dtaType"
>
<
template
slot-scope=
"scope"
>
<dict-tag
:options=
"dict.type.dta"
:value=
"scope.row.dtaType"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"单据状态"
align=
"center"
prop=
"status"
>
<
template
slot-scope=
"scope"
>
<dict-tag
:options=
"dict.type.mes_workorder_status"
:value=
"scope.row.status"
/>
...
...
@@ -677,6 +688,7 @@ export default {
name
:
"Workorder"
,
dicts
:
[
"mes_workorder_status"
,
"dta"
,
"rush_order"
,
"mes_workorder_sourcetype"
,
"mes_workorder_type"
,
...
...
@@ -785,6 +797,7 @@ export default {
pageSize
:
50
,
workorderCodes
:
null
,
arrangeCodes
:
null
,
dtaType
:
null
,
workorderName
:
null
,
orderSource
:
null
,
sapItemCode
:
null
,
...
...
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