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
ximai
mes-ui
Commits
c9eedda9
Commit
c9eedda9
authored
Nov 14, 2024
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生产版本 不允许重新选择同一个工序,如果选择了则立马提示该工序已添加,请勿重复添加(工序编码和工序名称都要限制)
parent
2ae35adb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
5 deletions
+16
-5
th_TH.json
src/i18n/lang/th_TH.json
+2
-1
zh_CN.json
src/i18n/lang/zh_CN.json
+2
-1
ProogingProcess.vue
...mes/pro/productionSolution/components/ProogingProcess.vue
+8
-0
uploadTuzhi.vue
...ews/mes/pro/productionSolution/components/uploadTuzhi.vue
+4
-3
No files found.
src/i18n/lang/th_TH.json
View file @
c9eedda9
...
...
@@ -2990,5 +2990,6 @@
"该工单当前状态为"
:
"สถานะปัจจุบันของใบสั่งงานคือ"
,
", 不允许修改"
:
", ไม่อนุญาตให้แก้ไข"
,
"是否故障"
:
"ไม่ว่าจะเป็นความล้มเหลว"
,
"排程日期"
:
"วันที ่ กําหนดการ"
"排程日期"
:
"วันที ่ กําหนดการ"
,
"该工序已添加,请勿重复添加"
:
"มีการเพิ่มขั้นตอนห้ามเพิ่มซ้ำ"
}
src/i18n/lang/zh_CN.json
View file @
c9eedda9
...
...
@@ -2990,5 +2990,6 @@
"该工单当前状态为"
:
"该工单当前状态为"
,
", 不允许修改"
:
", 不允许修改"
,
"是否故障"
:
"是否故障"
,
"排程日期"
:
"排程日期"
"排程日期"
:
"排程日期"
,
"该工序已添加,请勿重复添加"
:
"该工序已添加,请勿重复添加"
}
src/views/mes/pro/productionSolution/components/ProogingProcess.vue
View file @
c9eedda9
...
...
@@ -828,6 +828,14 @@ export default {
};
},
chooseprocessName
(
e
,
row
,
index
)
{
const
finditem
=
this
.
tableData
.
find
(
v
=>
v
.
processId
===
e
)
if
(
finditem
&&
finditem
!==
row
)
{
this
.
$message
.
warning
(
this
.
$t
(
'该工序已添加,请勿重复添加'
))
row
.
processId
=
null
row
[
'processCode'
]
=
null
row
[
'processName'
]
=
null
return
}
const
item
=
this
.
processOptions
.
find
(
v
=>
v
.
processId
===
e
)
row
[
'processCode'
]
=
item
.
processCode
row
[
'processName'
]
=
item
.
processName
...
...
src/views/mes/pro/productionSolution/components/uploadTuzhi.vue
View file @
c9eedda9
...
...
@@ -99,13 +99,14 @@ export default {
},
methods
:
{
download
(
row
)
{
const
fileOriginalName
=
row
.
fileOriginalName
||
row
.
originalFilename
download
(
row
.
filePath
).
then
(
res
=>
{
if
([
'png'
,
'jpeg'
,
'jpg'
].
indexOf
(
row
.
fileOriginalName
.
substring
(
row
.
fileOriginalName
.
lastIndexOf
(
'.'
)
+
1
))
>
-
1
)
{
if
([
'png'
,
'jpeg'
,
'jpg'
].
indexOf
(
fileOriginalName
.
substring
(
fileOriginalName
.
lastIndexOf
(
'.'
)
+
1
))
>
-
1
)
{
const
imgUrl
=
`data: image/jpeg;base64,
${
btoa
(
new
Uint8Array
(
res
).
reduce
((
data
,
byte
)
=>
data
+
String
.
fromCharCode
(
byte
),
''
))}
`
// 将图片的src属性作为URL地址
const
a
=
document
.
createElement
(
'a'
)
const
event
=
new
MouseEvent
(
'click'
)
a
.
download
=
row
.
fileOriginalName
// '下载图片名称'
a
.
download
=
fileOriginalName
// '下载图片名称'
a
.
href
=
imgUrl
// base图片地址
a
.
dispatchEvent
(
event
)
}
else
{
...
...
@@ -129,7 +130,7 @@ export default {
let
downloadElement
=
document
.
createElement
(
"a"
);
let
href
=
window
.
URL
.
createObjectURL
(
blob
);
//创建下载的链接
downloadElement
.
href
=
href
;
downloadElement
.
download
=
row
.
fileOriginalName
;
//下载后文件名
downloadElement
.
download
=
fileOriginalName
;
//下载后文件名
document
.
body
.
appendChild
(
downloadElement
);
downloadElement
.
click
();
//点击下载
document
.
body
.
removeChild
(
downloadElement
);
//下载完成移除元素
...
...
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