Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
Details
Activity
Releases
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-ui
Commits
3b409d56
Commit
3b409d56
authored
Apr 29, 2020
by
周远喜
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'product' of
http://git.mes123.com/zhouyx/mes-ui
into product
parents
19bafb12
54059f9d
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
1059 additions
and
704 deletions
+1059
-704
files.vue
components/page/files.vue
+123
-80
zh-CN.js
i18n/locale/zh-CN.js
+1
-27
package-lock.json
package-lock.json
+8
-21
index.vue
pages/aps/complete/index.vue
+20
-10
index.vue
pages/aps/plan/index.vue
+1
-1
index.vue
pages/aps/stream/index.vue
+7
-8
index.vue
pages/mesPlan/index.vue
+7
-5
add.vue
pages/technology/details/routingStep/add.vue
+214
-124
api.js
pages/technology/details/routingStep/api.js
+1
-1
edit.vue
pages/technology/details/routingStep/edit.vue
+190
-102
index.vue
pages/technology/details/routingStep/index.vue
+204
-116
add.vue
pages/technology/details/routingqccard/add.vue
+93
-52
detail.vue
pages/technology/details/routingqccard/detail.vue
+48
-51
edit.vue
pages/technology/details/routingqccard/edit.vue
+82
-57
index.vue
pages/technology/details/routingqccard/index.vue
+21
-10
add.vue
pages/technology/details/routingsupporting/add.vue
+15
-15
detail.vue
pages/technology/details/routingsupporting/detail.vue
+3
-3
edit.vue
pages/technology/details/routingsupporting/edit.vue
+19
-19
index.vue
pages/technology/index.vue
+1
-1
config.js
static/config.js
+1
-1
No files found.
components/page/files.vue
View file @
3b409d56
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
:show-upload-list=
"false"
:show-upload-list=
"false"
:on-exceeded-size=
"onExceededSize"
:on-exceeded-size=
"onExceededSize"
:on-format-error=
"onFormatError"
:on-format-error=
"onFormatError"
multiple
:multiple=
"multiple"
:style=
"style"
:style=
"style"
:on-progress=
"onProgress"
:on-progress=
"onProgress"
>
>
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
</div>
</div>
<Button
icon=
"ios-cloud-upload-outline"
v-if=
"!cloudIco"
>
上传文件
</Button>
<Button
icon=
"ios-cloud-upload-outline"
v-if=
"!cloudIco"
>
上传文件
</Button>
</Upload>
</Upload>
<Progress
:percent=
"per"
:stroke-width=
"5"
v-show=
"vshowPro"
/>
<Progress
:percent=
"per"
:stroke-width=
"5"
v-show=
"vshowPro"
/>
<Tag
<Tag
v-for=
"(item,index) in nameList"
v-for=
"(item,index) in nameList"
:key=
"index"
:key=
"index"
...
@@ -36,23 +36,24 @@
...
@@ -36,23 +36,24 @@
</
template
>
</
template
>
<
script
>
<
script
>
export
default
{
export
default
{
name
:
'files'
,
name
:
"files"
,
model
:
{
model
:
{
prop
:
'value'
prop
:
"value"
},
},
data
()
{
data
()
{
return
{
return
{
file
:
null
,
file
:
null
,
downUrl
:
fileUrlDown
,
downUrl
:
fileUrlDown
,
fileUrlPath
:
''
,
fileUrlPath
:
""
,
nameList
:
[],
nameList
:
[],
hbaseFileListNew
:
[],
hbaseFileListNew
:
[],
formatList
:
[
'png'
,
'jpg'
,
'gif'
],
formatList
:
[
"png"
,
"jpg"
,
"gif"
],
postUrl
:
''
,
multiple
:
true
,
style
:
''
,
postUrl
:
""
,
style
:
""
,
per
:
0
,
per
:
0
,
vshowPro
:
false
vshowPro
:
false
}
}
;
},
},
created
()
{},
created
()
{},
props
:
{
props
:
{
...
@@ -61,13 +62,17 @@ export default {
...
@@ -61,13 +62,17 @@ export default {
type
:
Boolean
,
type
:
Boolean
,
default
:
false
default
:
false
},
},
singleFile
:
{
//上传单文件
type
:
Boolean
,
default
:
false
},
maxSize
:
{
maxSize
:
{
type
:
Number
,
type
:
Number
,
default
:
10240
default
:
10240
},
},
parms
:
{
parms
:
{
type
:
[
String
,
Object
],
type
:
[
String
,
Object
],
default
:
''
default
:
""
},
},
unClosable
:
{
unClosable
:
{
type
:
Boolean
,
type
:
Boolean
,
...
@@ -80,140 +85,177 @@ export default {
...
@@ -80,140 +85,177 @@ export default {
},
},
methods
:
{
methods
:
{
onProgress
(
event
,
file
,
fileList
)
{
onProgress
(
event
,
file
,
fileList
)
{
this
.
per
=
0
this
.
per
=
0
;
this
.
vshowPro
=
true
this
.
vshowPro
=
true
;
},
},
// change(event) {
// change(event) {
// this.$emit('on-change', event)
// this.$emit('on-change', event)
// },
// },
//上传成功文件
//上传成功文件
uploadSuccess
(
response
,
file
,
fileList
)
{
uploadSuccess
(
response
,
file
,
fileList
)
{
this
.
per
=
60
this
.
per
=
60
;
this
.
vshowPro
=
true
this
.
vshowPro
=
true
;
const
hbaseFileList
=
[]
const
hbaseFileList
=
[];
const
filesList
=
[]
const
filesList
=
[];
if
(
this
.
singleFile
)
{
this
.
nameList
=
[];
}
if
(
file
.
response
.
status
==
0
)
{
if
(
file
.
response
.
status
==
0
)
{
let
objImag
=
{}
let
objImag
=
{}
;
objImag
.
fileName
=
file
.
response
.
data
.
fileName
objImag
.
fileName
=
file
.
response
.
data
.
fileName
;
objImag
.
filePath
=
file
.
response
.
data
.
downloadPath
objImag
.
filePath
=
file
.
response
.
data
.
downloadPath
;
objImag
.
id
=
file
.
response
.
data
.
id
objImag
.
id
=
file
.
response
.
data
.
id
;
filesList
.
push
(
objImag
)
filesList
.
push
(
objImag
)
;
this
.
nameList
=
this
.
nameList
.
concat
(
filesList
)
this
.
nameList
=
this
.
nameList
.
concat
(
filesList
)
;
this
.
per
=
100
this
.
per
=
100
;
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
per
=
0
this
.
per
=
0
;
this
.
vshowPro
=
false
this
.
vshowPro
=
false
;
},
2000
)
},
2000
)
;
}
else
{
}
else
{
this
.
$Message
.
error
(
'上传失败,请重新上传!'
)
this
.
$Message
.
error
(
"上传失败,请重新上传!"
);
}
}
},
},
//上传文件失败
//上传文件失败
uploadError
(
response
,
file
,
fileList
)
{
uploadError
(
response
,
file
,
fileList
)
{
this
.
$Message
.
error
(
'上传失败,请重新上传!'
)
this
.
$Message
.
error
(
"上传失败,请重新上传!"
);
},
},
//文件大小验证返回
//文件大小验证返回
onExceededSize
(
file
,
fileList
)
{
onExceededSize
(
file
,
fileList
)
{
if
(
Object
.
keys
(
file
).
length
==
0
)
{
if
(
Object
.
keys
(
file
).
length
==
0
)
{
this
.
$Message
.
error
(
this
.
$Message
.
error
(
'上传文件不能大于'
+
this
.
maxSize
+
'k,请重新上传!'
"上传文件不能大于"
+
this
.
maxSize
+
"k,请重新上传!"
)
)
;
}
}
},
},
//文件格式验证
//文件格式验证
onFormatError
(
file
,
fileList
)
{
onFormatError
(
file
,
fileList
)
{
if
(
Object
.
keys
(
file
).
length
==
0
)
{
if
(
Object
.
keys
(
file
).
length
==
0
)
{
this
.
$Message
.
error
(
'上传文件格式不正确,请重新上传!'
)
this
.
$Message
.
error
(
"上传文件格式不正确,请重新上传!"
);
}
}
},
},
//删除上传
//删除上传
removeFile
(
file
,
fileList
)
{},
removeFile
(
file
,
fileList
)
{},
handleClose2
(
event
,
name
)
{
handleClose2
(
event
,
name
)
{
//删除上传到文件服务器上的文件
//删除上传到文件服务器上的文件
this
.
$http
.
sysUser
.
deleteFile
(
name
).
then
(
(
res
)
=>
{
this
.
$http
.
sysUser
.
deleteFile
(
name
).
then
(
res
=>
{
if
(
res
.
status
==
0
)
{
if
(
res
.
status
==
0
)
{
const
index
=
this
.
nameList
.
findIndex
(
function
(
item
)
{
const
index
=
this
.
nameList
.
findIndex
(
function
(
item
)
{
return
item
.
id
===
name
return
item
.
id
===
name
;
})
})
;
this
.
nameList
.
splice
(
index
,
1
)
this
.
nameList
.
splice
(
index
,
1
)
;
}
else
{
}
else
{
this
.
$Message
.
error
(
'删除失败!'
)
this
.
$Message
.
error
(
"删除失败!"
);
}
}
})
})
;
},
},
downFile
(
path
)
{
downFile
(
path
)
{
this
.
fileUrlPath
=
this
.
downUrl
+
path
this
.
fileUrlPath
=
this
.
downUrl
+
path
;
},
},
formatL
()
{
formatL
()
{
if
(
this
.
files
)
{
if
(
this
.
files
)
{
this
.
formatList
=
[
this
.
formatList
=
[
'pdf'
,
"pdf"
,
'docx'
,
"docx"
,
'doc'
,
"doc"
,
'xls'
,
"xls"
,
'xlsx'
,
"xlsx"
,
'txt'
,
"txt"
,
'png'
,
"png"
,
'jpg'
,
"jpg"
,
'gif'
"gif"
]
];
}
}
return
this
.
formatList
return
this
.
formatList
;
},
mutipleStatu
()
{
if
(
this
.
singleFile
)
{
this
.
multiple
=
false
;
}
else
{
this
.
multiple
=
true
;
}
},
},
//修改时使用
//修改时使用
intFiles
()
{
intFiles
()
{
this
.
postUrl
=
this
.
postUrl
=
fileUrl
+
fileUrl
+
'/upload/?token=Bearer '
+
"/upload/?token=Bearer "
+
window
.
sessionStorage
.
getItem
(
'token'
)
+
window
.
sessionStorage
.
getItem
(
"token"
)
+
'&'
+
"&"
+
this
.
convertObj
(
this
.
parms
)
this
.
convertObj
(
this
.
parms
);
//是否显示上传按钮
if
(
this
.
unClosable
)
{
this
.
style
=
"display:none;"
;
}
else
{
this
.
style
=
""
;
}
this
.
nameList
=
[];
//查询上传到文件服务器上的文件
this
.
$http
.
sysUser
.
getFile
(
this
.
parms
).
then
(
res
=>
{
if
(
res
.
data
!=
[]
&&
res
.
data
.
length
>
0
)
{
res
.
data
.
forEach
(
data
=>
{
let
objImag
=
{};
objImag
.
fileName
=
data
.
fileName
;
objImag
.
filePath
=
data
.
downloadPath
;
objImag
.
id
=
data
.
id
;
this
.
nameList
.
push
(
objImag
);
});
}
});
},
//克隆后修改时使用
intFilesClone
()
{
this
.
postUrl
=
fileUrl
+
"/upload/?token=Bearer "
+
window
.
sessionStorage
.
getItem
(
"token"
)
+
"&"
+
this
.
convertObj
(
this
.
parms
);
//是否显示上传按钮
//是否显示上传按钮
if
(
this
.
unClosable
)
{
if
(
this
.
unClosable
)
{
this
.
style
=
'display:none;'
this
.
style
=
"display:none;"
;
}
else
{
}
else
{
this
.
style
=
''
this
.
style
=
""
;
}
}
this
.
nameList
=
[]
this
.
nameList
=
[]
;
//查询上传到文件服务器上的文件
//查询上传到文件服务器上的文件
this
.
$http
.
sysUser
.
getFile
(
this
.
parms
).
then
(
(
res
)
=>
{
this
.
$http
.
sysUser
.
getFile
(
this
.
parms
).
then
(
res
=>
{
if
(
res
.
data
!=
[]
&&
res
.
data
.
length
>
0
)
{
if
(
res
.
data
!=
[]
&&
res
.
data
.
length
>
0
)
{
res
.
data
.
forEach
(
(
data
)
=>
{
res
.
data
.
forEach
(
data
=>
{
let
objImag
=
{}
let
objImag
=
{}
;
objImag
.
fileName
=
data
.
fileName
objImag
.
fileName
=
data
.
fileName
;
objImag
.
filePath
=
data
.
downloadPath
objImag
.
filePath
=
data
.
downloadPath
;
objImag
.
id
=
data
.
id
objImag
.
id
=
data
.
id
;
this
.
nameList
.
push
(
objImag
)
this
.
nameList
.
push
(
objImag
)
;
})
})
;
}
}
})
})
;
},
},
//新增时重新定义posturl使用
//新增时重新定义posturl使用
intFiles1
()
{
intFiles1
()
{
this
.
postUrl
=
this
.
postUrl
=
fileUrl
+
fileUrl
+
'/upload/?token=Bearer '
+
"/upload/?token=Bearer "
+
window
.
sessionStorage
.
getItem
(
'token'
)
+
window
.
sessionStorage
.
getItem
(
"token"
)
+
'&'
+
"&"
+
this
.
convertObj
(
this
.
parms
)
this
.
convertObj
(
this
.
parms
)
;
},
},
//obj转为url
//obj转为url
convertObj
(
data
)
{
convertObj
(
data
)
{
if
(
data
.
eid
!=
null
)
{
if
(
data
.
eid
!=
null
)
{
var
_result
=
[]
var
_result
=
[]
;
for
(
var
key
in
data
)
{
for
(
var
key
in
data
)
{
var
value
=
data
[
key
]
var
value
=
data
[
key
]
;
if
(
value
.
constructor
==
Array
)
{
if
(
value
.
constructor
==
Array
)
{
value
.
forEach
(
function
(
_value
)
{
value
.
forEach
(
function
(
_value
)
{
_result
.
push
(
key
+
'='
+
_value
)
_result
.
push
(
key
+
"="
+
_value
);
})
})
;
}
else
{
}
else
{
_result
.
push
(
key
+
'='
+
value
)
_result
.
push
(
key
+
"="
+
value
);
}
}
}
}
return
_result
.
join
(
'&'
)
return
_result
.
join
(
"&"
);
}
else
return
''
}
else
return
""
;
}
}
},
},
computed
:
{},
computed
:
{},
...
@@ -224,10 +266,11 @@ export default {
...
@@ -224,10 +266,11 @@ export default {
// }
// }
},
},
mounted
()
{
mounted
()
{
this
.
formatL
()
this
.
formatL
();
this
.
mutipleStatu
();
// this.intFiles()
// this.intFiles()
}
}
}
}
;
</
script
>
</
script
>
<
style
lang=
"less"
>
<
style
lang=
"less"
>
</
style
>
</
style
>
\ No newline at end of file
i18n/locale/zh-CN.js
View file @
3b409d56
...
@@ -1289,32 +1289,6 @@ export default {
...
@@ -1289,32 +1289,6 @@ export default {
stepContent
:
'工步内容'
,
stepContent
:
'工步内容'
,
extend
:
'扩展字段'
,
extend
:
'扩展字段'
,
},
},
routing_qc_card
:
{
id
:
''
,
creationTime
:
'创建时间'
,
creatorUserId
:
'创建人'
,
lastModificationTime
:
'修改时间'
,
lastModifierUserId
:
'修改人'
,
isDeleted
:
'是否删除'
,
deleterUserId
:
'删除人'
,
deletionTime
:
'删除时间'
,
routingHeaderId
:
'工艺'
,
routingDetailId
:
'工序'
,
routingStepId
:
'工步'
,
checkContent
:
'检验内容'
,
checkType
:
'检验标记'
,
checkParams
:
'参数名称'
,
measurementUnit
:
'单位'
,
fillintype
:
'汇报类型'
,
qualityTemplate
:
'模板'
,
isphotograph
:
'是否拍照'
,
status
:
'状态'
,
extend
:
'扩展字段'
,
remark
:
'备注'
,
productionRequirement
:
'生产要求'
,
standard
:
'标准指标'
,
qualityTemplateName
:
'模板文件名称'
,
},
plan_resource
:
{
plan_resource
:
{
id
:
''
,
id
:
''
,
creationTime
:
'创建时间'
,
creationTime
:
'创建时间'
,
...
@@ -1356,7 +1330,6 @@ export default {
...
@@ -1356,7 +1330,6 @@ export default {
checkParams
:
'检测要求'
,
checkParams
:
'检测要求'
,
measurementUnit
:
'测量单位'
,
measurementUnit
:
'测量单位'
,
fillintype
:
'填报类型'
,
fillintype
:
'填报类型'
,
qualityTemplate
:
'模板'
,
isphotograph
:
'是否拍照'
,
isphotograph
:
'是否拍照'
,
status
:
'状态'
,
status
:
'状态'
,
extend
:
'扩展字段'
,
extend
:
'扩展字段'
,
...
@@ -1364,6 +1337,7 @@ export default {
...
@@ -1364,6 +1337,7 @@ export default {
productionRequirement
:
'生产要求'
,
productionRequirement
:
'生产要求'
,
standard
:
'标准指标'
,
standard
:
'标准指标'
,
qualityTemplateName
:
'模板名称'
,
qualityTemplateName
:
'模板名称'
,
qualityTemplate
:
'模板'
,
isImportant
:
'关键检验'
,
isImportant
:
'关键检验'
,
firstCheck
:
'首件检验'
,
firstCheck
:
'首件检验'
,
inspection
:
'巡检'
,
inspection
:
'巡检'
,
...
...
package-lock.json
View file @
3b409d56
...
@@ -15362,8 +15362,7 @@
...
@@ -15362,8 +15362,7 @@
"console-control-strings"
:
{
"console-control-strings"
:
{
"version"
:
"1.1.0"
,
"version"
:
"1.1.0"
,
"bundled"
:
true
,
"bundled"
:
true
,
"dev"
:
true
,
"dev"
:
true
"optional"
:
true
},
},
"core-util-is"
:
{
"core-util-is"
:
{
"version"
:
"1.0.2"
,
"version"
:
"1.0.2"
,
...
@@ -15523,7 +15522,6 @@
...
@@ -15523,7 +15522,6 @@
"version"
:
"2.9.0"
,
"version"
:
"2.9.0"
,
"bundled"
:
true
,
"bundled"
:
true
,
"dev"
:
true
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"requires"
:
{
"safe-buffer"
:
"^5.1.2"
,
"safe-buffer"
:
"^5.1.2"
,
"yallist"
:
"^3.0.0"
"yallist"
:
"^3.0.0"
...
@@ -15542,7 +15540,6 @@
...
@@ -15542,7 +15540,6 @@
"version"
:
"0.5.1"
,
"version"
:
"0.5.1"
,
"bundled"
:
true
,
"bundled"
:
true
,
"dev"
:
true
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"requires"
:
{
"minimist"
:
"0.0.8"
"minimist"
:
"0.0.8"
}
}
...
@@ -15645,7 +15642,6 @@
...
@@ -15645,7 +15642,6 @@
"version"
:
"1.4.0"
,
"version"
:
"1.4.0"
,
"bundled"
:
true
,
"bundled"
:
true
,
"dev"
:
true
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"requires"
:
{
"wrappy"
:
"1"
"wrappy"
:
"1"
}
}
...
@@ -15731,8 +15727,7 @@
...
@@ -15731,8 +15727,7 @@
"safe-buffer"
:
{
"safe-buffer"
:
{
"version"
:
"5.1.2"
,
"version"
:
"5.1.2"
,
"bundled"
:
true
,
"bundled"
:
true
,
"dev"
:
true
,
"dev"
:
true
"optional"
:
true
},
},
"safer-buffer"
:
{
"safer-buffer"
:
{
"version"
:
"2.1.2"
,
"version"
:
"2.1.2"
,
...
@@ -15768,7 +15763,6 @@
...
@@ -15768,7 +15763,6 @@
"version"
:
"1.0.2"
,
"version"
:
"1.0.2"
,
"bundled"
:
true
,
"bundled"
:
true
,
"dev"
:
true
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"requires"
:
{
"code-point-at"
:
"^1.0.0"
,
"code-point-at"
:
"^1.0.0"
,
"is-fullwidth-code-point"
:
"^1.0.0"
,
"is-fullwidth-code-point"
:
"^1.0.0"
,
...
@@ -15832,14 +15826,12 @@
...
@@ -15832,14 +15826,12 @@
"wrappy"
:
{
"wrappy"
:
{
"version"
:
"1.0.2"
,
"version"
:
"1.0.2"
,
"bundled"
:
true
,
"bundled"
:
true
,
"dev"
:
true
,
"dev"
:
true
"optional"
:
true
},
},
"yallist"
:
{
"yallist"
:
{
"version"
:
"3.1.1"
,
"version"
:
"3.1.1"
,
"bundled"
:
true
,
"bundled"
:
true
,
"dev"
:
true
,
"dev"
:
true
"optional"
:
true
}
}
}
}
},
},
...
@@ -18617,6 +18609,7 @@
...
@@ -18617,6 +18609,7 @@
"minimatch"
:
{
"minimatch"
:
{
"version"
:
"3.0.4"
,
"version"
:
"3.0.4"
,
"bundled"
:
true
,
"bundled"
:
true
,
"optional"
:
true
,
"requires"
:
{
"requires"
:
{
"brace-expansion"
:
"^1.1.7"
"brace-expansion"
:
"^1.1.7"
}
}
...
@@ -19485,7 +19478,6 @@
...
@@ -19485,7 +19478,6 @@
"version"
:
"2.9.0"
,
"version"
:
"2.9.0"
,
"bundled"
:
true
,
"bundled"
:
true
,
"dev"
:
true
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"requires"
:
{
"safe-buffer"
:
"^5.1.2"
,
"safe-buffer"
:
"^5.1.2"
,
"yallist"
:
"^3.0.0"
"yallist"
:
"^3.0.0"
...
@@ -19504,7 +19496,6 @@
...
@@ -19504,7 +19496,6 @@
"version"
:
"0.5.1"
,
"version"
:
"0.5.1"
,
"bundled"
:
true
,
"bundled"
:
true
,
"dev"
:
true
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"requires"
:
{
"minimist"
:
"0.0.8"
"minimist"
:
"0.0.8"
}
}
...
@@ -19607,7 +19598,6 @@
...
@@ -19607,7 +19598,6 @@
"version"
:
"1.4.0"
,
"version"
:
"1.4.0"
,
"bundled"
:
true
,
"bundled"
:
true
,
"dev"
:
true
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"requires"
:
{
"wrappy"
:
"1"
"wrappy"
:
"1"
}
}
...
@@ -19693,8 +19683,7 @@
...
@@ -19693,8 +19683,7 @@
"safe-buffer"
:
{
"safe-buffer"
:
{
"version"
:
"5.1.2"
,
"version"
:
"5.1.2"
,
"bundled"
:
true
,
"bundled"
:
true
,
"dev"
:
true
,
"dev"
:
true
"optional"
:
true
},
},
"safer-buffer"
:
{
"safer-buffer"
:
{
"version"
:
"2.1.2"
,
"version"
:
"2.1.2"
,
...
@@ -19794,14 +19783,12 @@
...
@@ -19794,14 +19783,12 @@
"wrappy"
:
{
"wrappy"
:
{
"version"
:
"1.0.2"
,
"version"
:
"1.0.2"
,
"bundled"
:
true
,
"bundled"
:
true
,
"dev"
:
true
,
"dev"
:
true
"optional"
:
true
},
},
"yallist"
:
{
"yallist"
:
{
"version"
:
"3.1.1"
,
"version"
:
"3.1.1"
,
"bundled"
:
true
,
"bundled"
:
true
,
"dev"
:
true
,
"dev"
:
true
"optional"
:
true
}
}
}
}
},
},
...
...
pages/aps/complete/index.vue
View file @
3b409d56
...
@@ -5,9 +5,9 @@
...
@@ -5,9 +5,9 @@
<Col
:span=
"6"
class=
"chan-chi"
>
排产池
</Col>
<Col
:span=
"6"
class=
"chan-chi"
>
排产池
</Col>
<Col
:span=
"18"
class=
"l-ringht"
>
<Col
:span=
"18"
class=
"l-ringht"
>
<RadioGroup
v-model=
"status"
type=
"button"
@
on-change=
"changeStatus"
size=
"small"
>
<RadioGroup
v-model=
"status"
type=
"button"
@
on-change=
"changeStatus"
size=
"small"
>
<Radio
label=
"-1"
>
全部
</Radio>
<Radio
label=
"0"
>
未排产
</Radio>
<Radio
label=
"0"
>
未排产
</Radio>
<Radio
label=
"2"
>
已排查
</Radio>
<Radio
label=
"2"
>
已排查
</Radio>
<!--
<Radio
label=
"-1"
>
全部
</Radio>
-->
</RadioGroup>
</RadioGroup>
</Col>
</Col>
</Row>
</Row>
...
@@ -20,7 +20,11 @@
...
@@ -20,7 +20,11 @@
>
>
<Row
class=
"title-i"
>
<Row
class=
"title-i"
>
<Col
:span=
"20"
class=
"order-code"
>
<Col
:span=
"20"
class=
"order-code"
>
<Checkbox
v-model=
"li.checked"
@
on-change=
"checkData(li)"
>
订单号:
{{
li
.
mesCode
}}
</Checkbox>
<Checkbox
v-model=
"li.checked"
@
on-change=
"checkData(li)"
:disabled=
"isdisabled"
>
订单号:
{{
li
.
mesCode
}}
</Checkbox>
</Col>
</Col>
<Col
:span=
"4"
class=
"order-ringht"
>
<Col
:span=
"4"
class=
"order-ringht"
>
<Icon
type=
"md-close"
@
click=
"close(li.id)"
/>
<Icon
type=
"md-close"
@
click=
"close(li.id)"
/>
...
@@ -130,19 +134,18 @@ export default {
...
@@ -130,19 +134,18 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
// activeindex: 1,
list
:
[],
list
:
[],
status
:
"-1"
,
//全部排产-1,0为未排产;2为已排查;
status
:
"0"
,
//全部排产-1,0为未排产;2为已排查;
isdisabled
:
false
,
formItem
:
{
formItem
:
{
// resourcesType: 0,
radio
:
"0"
,
radio
:
"0"
,
time
:
""
,
time
:
""
,
beginTime
:
""
,
beginTime
:
""
,
endTime
:
""
,
endTime
:
""
,
remark
:
""
,
remark
:
""
,
departmentTitle
:
""
,
departmentTitle
:
""
,
shopId
:
""
,
shopId
:
""
userName
:
""
//
userName: ""
},
},
// listGroup: [
// listGroup: [
// {
// {
...
@@ -182,13 +185,18 @@ export default {
...
@@ -182,13 +185,18 @@ export default {
};
};
},
},
created
()
{
created
()
{
this
.
orderlist
(
-
1
);
this
.
orderlist
(
0
);
},
},
methods
:
{
methods
:
{
// 过滤条件
// 过滤条件
changeStatus
(
name
)
{
changeStatus
(
name
)
{
this
.
status
=
name
;
this
.
status
=
name
;
this
.
orderlist
(
this
.
status
);
this
.
orderlist
(
this
.
status
);
if
(
this
.
status
==
1
)
{
this
.
isdisabled
=
true
;
}
else
{
this
.
isdisabled
=
false
;
}
},
},
//排产池列表
//排产池列表
orderlist
(
a
)
{
orderlist
(
a
)
{
...
@@ -233,13 +241,14 @@ export default {
...
@@ -233,13 +241,14 @@ export default {
userIds
:
this
.
formItem
.
userIds
,
userIds
:
this
.
formItem
.
userIds
,
beginTime
:
this
.
formItem
.
beginTime
,
beginTime
:
this
.
formItem
.
beginTime
,
endTime
:
this
.
formItem
.
endTime
,
endTime
:
this
.
formItem
.
endTime
,
remark
:
this
.
formItem
.
remark
,
remark
:
this
.
formItem
.
remark
userName
:
this
.
formItem
.
userName
//
userName: this.formItem.userName
};
};
Api
.
cmonestepschedule
(
params1
).
then
(
r
=>
{
Api
.
cmonestepschedule
(
params1
).
then
(
r
=>
{
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
"下发成功"
);
this
.
$Message
.
success
(
"下发成功"
);
this
.
orderlist
(
this
.
status
);
this
.
orderlist
(
this
.
status
);
this
.
orderIds
=
[];
}
else
{
}
else
{
this
.
$Message
.
success
(
"下发失败"
);
this
.
$Message
.
success
(
"下发失败"
);
this
.
formItem
=
{};
this
.
formItem
=
{};
...
@@ -259,6 +268,7 @@ export default {
...
@@ -259,6 +268,7 @@ export default {
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
"下发成功"
);
this
.
$Message
.
success
(
"下发成功"
);
this
.
orderlist
(
this
.
status
);
this
.
orderlist
(
this
.
status
);
this
.
orderIds
=
[];
this
.
formItem
=
{};
this
.
formItem
=
{};
this
.
formItem
.
radio
=
0
;
this
.
formItem
.
radio
=
0
;
}
else
{
}
else
{
...
...
pages/aps/plan/index.vue
View file @
3b409d56
...
@@ -648,7 +648,7 @@ export default {
...
@@ -648,7 +648,7 @@ export default {
.
then
(
res
=>
{
.
then
(
res
=>
{
if
(
res
.
success
&&
res
.
result
.
length
>
1
)
{
if
(
res
.
success
&&
res
.
result
.
length
>
1
)
{
res
.
result
.
forEach
(
data
=>
{
res
.
result
.
forEach
(
data
=>
{
this
.
changeCountOut
(
data
.
poolType
+
""
,
data
.
count
);
this
.
changeCountOut
(
data
.
poolType
,
data
.
count
);
});
});
}
}
})
})
...
...
pages/aps/stream/index.vue
View file @
3b409d56
...
@@ -5,9 +5,9 @@
...
@@ -5,9 +5,9 @@
<Col
:span=
"6"
class=
"chan-chi"
>
排产池
</Col>
<Col
:span=
"6"
class=
"chan-chi"
>
排产池
</Col>
<Col
:span=
"18"
class=
"l-ringht"
>
<Col
:span=
"18"
class=
"l-ringht"
>
<RadioGroup
v-model=
"status"
type=
"button"
@
on-change=
"changeStatus"
size=
"small"
>
<RadioGroup
v-model=
"status"
type=
"button"
@
on-change=
"changeStatus"
size=
"small"
>
<Radio
label=
"-1"
>
全部
</Radio>
<Radio
label=
"0"
>
未排产
</Radio>
<Radio
label=
"0"
>
未排产
</Radio>
<Radio
label=
"2"
>
已排查
</Radio>
<Radio
label=
"2"
>
已排查
</Radio>
<Radio
label=
"-1"
>
全部
</Radio>
</RadioGroup>
</RadioGroup>
</Col>
</Col>
</Row>
</Row>
...
@@ -152,7 +152,7 @@ export default {
...
@@ -152,7 +152,7 @@ export default {
active
:
null
,
active
:
null
,
activeindex
:
1
,
activeindex
:
1
,
list
:
[],
list
:
[],
status
:
"
-1
"
,
//全部排产-1,0为未排产;2为已排查;
status
:
"
0
"
,
//全部排产-1,0为未排产;2为已排查;
result
:
[],
result
:
[],
isactive
:
null
,
isactive
:
null
,
resourcesType
:
null
,
resourcesType
:
null
,
...
@@ -161,13 +161,13 @@ export default {
...
@@ -161,13 +161,13 @@ export default {
maxnum
:
1
,
maxnum
:
1
,
chaiModal
:
false
,
chaiModal
:
false
,
orderId
:
0
,
orderId
:
0
,
quantity
:
0
,
routingHeaderId
:
0
,
routingHeaderId
:
0
,
detailId
:
0
detailId
:
0
};
};
},
},
created
()
{
created
()
{
this
.
orderlist
(
-
1
);
this
.
orderlist
(
0
);
},
},
methods
:
{
methods
:
{
// 排产池过滤条件
// 排产池过滤条件
...
@@ -217,7 +217,6 @@ export default {
...
@@ -217,7 +217,6 @@ export default {
u
.
chai
=
false
;
u
.
chai
=
false
;
});
});
this
.
result
=
r
.
result
;
this
.
result
=
r
.
result
;
this
.
quantity
=
r
.
result
.
quantity
;
}
}
});
});
},
},
...
@@ -303,7 +302,7 @@ export default {
...
@@ -303,7 +302,7 @@ export default {
},
},
//下发
//下发
lowerHair
()
{
lowerHair
()
{
if
(
this
.
orderId
||
this
.
quantity
)
{
if
(
this
.
orderId
)
{
var
items
=
[];
var
items
=
[];
var
obj
=
{};
var
obj
=
{};
if
(
this
.
mode
==
1
)
{
if
(
this
.
mode
==
1
)
{
...
@@ -324,7 +323,7 @@ export default {
...
@@ -324,7 +323,7 @@ export default {
items
:
items
items
:
items
};
};
Api
.
flonestepschedule
(
data
).
then
(
r
=>
{
Api
.
flonestepschedule
(
data
).
then
(
r
=>
{
if
(
r
.
success
)
{
if
(
r
.
result
)
{
this
.
$Message
.
success
(
"下发成功"
);
this
.
$Message
.
success
(
"下发成功"
);
this
.
orderlist
(
this
.
status
);
this
.
orderlist
(
this
.
status
);
}
else
{
}
else
{
...
@@ -349,7 +348,7 @@ export default {
...
@@ -349,7 +348,7 @@ export default {
items
:
items
items
:
items
};
};
Api
.
fltwostepschedule
(
data
).
then
(
r
=>
{
Api
.
fltwostepschedule
(
data
).
then
(
r
=>
{
if
(
r
.
success
)
{
if
(
r
.
result
)
{
this
.
$Message
.
success
(
"下发成功"
);
this
.
$Message
.
success
(
"下发成功"
);
this
.
orderlist
(
this
.
status
);
this
.
orderlist
(
this
.
status
);
}
else
{
}
else
{
...
...
pages/mesPlan/index.vue
View file @
3b409d56
...
@@ -297,7 +297,7 @@ export default {
...
@@ -297,7 +297,7 @@ export default {
h
(
h
(
"op"
,
"op"
,
{
{
attrs
:
{
oprate
:
"detail"
,
title
:
"查看"
},
attrs
:
{
oprate
:
"detail"
,
title
:
"查看"
},
on
:
{
click
:
()
=>
this
.
detail
(
params
.
row
)
}
on
:
{
click
:
()
=>
this
.
detail
(
params
.
row
)
}
},
},
"查看"
"查看"
...
@@ -305,7 +305,7 @@ export default {
...
@@ -305,7 +305,7 @@ export default {
h
(
h
(
"op"
,
"op"
,
{
{
attrs
:
{
oprate
:
"edit"
,
title
:
"编辑"
},
attrs
:
{
oprate
:
"edit"
,
title
:
"编辑"
},
on
:
{
click
:
()
=>
this
.
edit
(
params
.
row
)
},
on
:
{
click
:
()
=>
this
.
edit
(
params
.
row
)
},
style
:
style
:
(
params
.
row
.
status
==
1
&&
(
params
.
row
.
status
==
1
&&
...
@@ -321,7 +321,7 @@ export default {
...
@@ -321,7 +321,7 @@ export default {
h
(
h
(
"op"
,
"op"
,
{
{
attrs
:
{
oprate
:
"remove"
,
title
:
"删除"
},
attrs
:
{
oprate
:
"remove"
,
title
:
"删除"
},
on
:
{
click
:
()
=>
this
.
remove
(
params
.
row
)
},
on
:
{
click
:
()
=>
this
.
remove
(
params
.
row
)
},
style
:
style
:
(
params
.
row
.
status
==
1
&&
(
params
.
row
.
status
==
1
&&
...
@@ -336,7 +336,7 @@ export default {
...
@@ -336,7 +336,7 @@ export default {
h
(
h
(
"op"
,
"op"
,
{
{
attrs
:
{
oprate
:
"detail"
,
title
:
"分解"
},
attrs
:
{
oprate
:
"detail"
,
title
:
"分解"
},
on
:
{
click
:
()
=>
this
.
split
(
params
.
row
)
},
on
:
{
click
:
()
=>
this
.
split
(
params
.
row
)
},
style
:
style
:
(
params
.
row
.
divideMark
!=
0
&&
(
params
.
row
.
divideMark
!=
0
&&
...
@@ -864,10 +864,12 @@ export default {
...
@@ -864,10 +864,12 @@ export default {
sendOk
()
{
sendOk
()
{
this
.
$refs
.
orderSend
.
$refs
[
"formValidate"
].
validate
(
valid
=>
{
this
.
$refs
.
orderSend
.
$refs
[
"formValidate"
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
let
objInfo
=
this
.
$refs
.
orderSend
.
returnData
();
let
ids
=
this
.
arrayIds
;
let
ids
=
this
.
arrayIds
;
let
objInfoTem
=
this
.
$refs
.
orderSend
.
returnData
();
let
parms
=
[];
let
parms
=
[];
ids
.
forEach
(
e
=>
{
ids
.
forEach
(
e
=>
{
let
objInfo
=
this
.
$u
.
clone
(
objInfoTem
);
objInfo
.
id
=
e
;
objInfo
.
id
=
e
;
parms
.
push
(
objInfo
);
parms
.
push
(
objInfo
);
});
});
...
...
pages/technology/details/routingStep/add.vue
View file @
3b409d56
This diff is collapsed.
Click to expand it.
pages/technology/details/routingStep/api.js
View file @
3b409d56
...
@@ -11,7 +11,7 @@ export default {
...
@@ -11,7 +11,7 @@ export default {
return
Api
.
post
(
`
${
technologyUrl
}
routingstep/create`
,
params
);
return
Api
.
post
(
`
${
technologyUrl
}
routingstep/create`
,
params
);
},
},
update
(
params
){
update
(
params
){
return
Api
.
p
os
t
(
`
${
technologyUrl
}
routingstep/update`
,
params
);
return
Api
.
p
u
t
(
`
${
technologyUrl
}
routingstep/update`
,
params
);
},
},
delete
(
id
)
{
delete
(
id
)
{
return
Api
.
delete
(
`
${
technologyUrl
}
routingstep/delete`
,{
params
:{
id
:
id
}});
return
Api
.
delete
(
`
${
technologyUrl
}
routingstep/delete`
,{
params
:{
id
:
id
}});
...
...
pages/technology/details/routingStep/edit.vue
View file @
3b409d56
<
template
>
<
template
>
<Form
ref=
"form"
:model=
"entity"
:rules=
"rules"
:label-width=
"90"
>
<Form
ref=
"form"
:model=
"entity"
:rules=
"rules"
:label-width=
"90"
>
<Row>
<Row>
<Col
:span=
"12"
><FormItem
:label=
"l('creationTime')"
prop=
"creationTime"
>
<DatePicker
type=
"date"
v-model=
"entity.creationTime"
></DatePicker>
<Col
:span=
"12"
>
</FormItem></Col>
<FormItem
:label=
"l('stepSeq')"
prop=
"stepSeq"
>
<Col
:span=
"12"
><FormItem
:label=
"l('creatorUserId')"
prop=
"creatorUserId"
>
<InputNumber
v-model=
"entity.creatorUserId"
></InputNumber>
<!--
<InputNumber
v-model=
"entity.stepSeq"
></InputNumber>
-->
</FormItem></Col>
<Input
style=
"width:300px"
v-model=
"entity.stepSeq"
></Input>
<Col
:span=
"12"
><FormItem
:label=
"l('lastModificationTime')"
prop=
"lastModificationTime"
>
<DatePicker
type=
"date"
v-model=
"entity.lastModificationTime"
></DatePicker>
</FormItem>
</FormItem></Col>
</Col>
<Col
:span=
"12"
><FormItem
:label=
"l('lastModifierUserId')"
prop=
"lastModifierUserId"
>
<InputNumber
v-model=
"entity.lastModifierUserId"
></InputNumber>
<Col
:span=
"12"
>
</FormItem></Col>
<FormItem
:label=
"l('name')"
prop=
"name"
>
<Col
:span=
"12"
><FormItem
:label=
"l('isDeleted')"
prop=
"isDeleted"
>
<Input
v-model=
"entity.isDeleted"
>
</Input>
<Input
style=
"width:350px"
v-model=
"entity.name"
></Input>
</FormItem></Col>
</FormItem>
<Col
:span=
"12"
><FormItem
:label=
"l('deleterUserId')"
prop=
"deleterUserId"
>
<InputNumber
v-model=
"entity.deleterUserId"
></InputNumber>
</Col>
</FormItem></Col>
<Col
:span=
"24"
>
<Col
:span=
"12"
><FormItem
:label=
"l('deletionTime')"
prop=
"deletionTime"
>
<DatePicker
type=
"date"
v-model=
"entity.deletionTime"
></DatePicker>
<FormItem
:label=
"l('stepContent')"
prop=
"stepContent"
>
</FormItem></Col>
<i-quill
<Col
:span=
"12"
><FormItem
:label=
"l('routingHeaderId')"
prop=
"routingHeaderId"
>
<InputNumber
v-model=
"entity.routingHeaderId"
></InputNumber>
v-model=
"entity.stepContent"
</FormItem></Col>
:height=
"260"
<Col
:span=
"12"
><FormItem
:label=
"l('routingDetailId')"
prop=
"routingDetailId"
>
<InputNumber
v-model=
"entity.routingDetailId"
></InputNumber>
v-paste=
"handleImg"
</FormItem></Col>
/>
<Col
:span=
"12"
><FormItem
:label=
"l('classId')"
prop=
"classId"
>
<InputNumber
v-model=
"entity.classId"
></InputNumber>
<!--
<Input
v-model=
"entity.stepContent"
type=
"textarea"
:rows=
"5"
></Input>
-->
</FormItem></Col>
<!--
<Input
v-model=
"entity.stepContent"
type=
"textarea"
:minRows=
"3"
,
:maxRows=
"7"
></Input>
-->
<Col
:span=
"12"
><FormItem
:label=
"l('stepSeq')"
prop=
"stepSeq"
>
<InputNumber
v-model=
"entity.stepSeq"
></InputNumber>
</FormItem>
</FormItem></Col>
</Col>
<Col
:span=
"12"
><FormItem
:label=
"l('name')"
prop=
"name"
>
<Input
v-model=
"entity.name"
>
</Input>
<Col
:span=
"12"
>
</FormItem></Col>
<FormItem
:label=
"l('status')"
prop=
"status"
>
<Col
:span=
"24"
><FormItem
:label=
"l('description')"
prop=
"description"
>
<Input
v-model=
"entity.description"
type=
"textarea"
:rows=
"5"
></Input>
<RadioGroup
v-model=
"entity.status"
>
</FormItem></Col>
<Radio
:label=
"1"
>
是
</Radio>
<Col
:span=
"12"
><FormItem
:label=
"l('status')"
prop=
"status"
>
<Dictionary
code=
"Process.Status"
v-model=
"entity.status"
></Dictionary>
<Radio
:label=
"0"
>
否
</Radio>
</FormItem></Col>
</RadioGroup>
<Col
:span=
"24"
><FormItem
:label=
"l('remark')"
prop=
"remark"
>
<Input
v-model=
"entity.remark"
type=
"textarea"
:rows=
"5"
></Input>
<!--
<Dictionary
style=
"width:100px"
code=
"Process.Status"
v-model=
"entity.status"
></Dictionary>
-->
</FormItem></Col>
</FormItem>
<Col
:span=
"24"
><FormItem
:label=
"l('stepContent')"
prop=
"stepContent"
>
<Input
v-model=
"entity.stepContent"
type=
"textarea"
:rows=
"5"
></Input>
</Col>
</FormItem></Col>
<!--
<Col
:span=
"24"
>
<Col
:span=
"12"
><FormItem
:label=
"l('extend')"
prop=
"extend"
>
<Input
v-model=
"entity.extend"
>
</Input>
<FormItem
:label=
"l('description')"
prop=
"description"
>
</FormItem></Col>
<Input
v-model=
"entity.description"
type=
"textarea"
:rows=
"5"
></Input>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('creationTime')"
prop=
"creationTime"
>
<DatePicker
type=
"date"
v-model=
"entity.creationTime"
></DatePicker>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('routingHeaderId')"
prop=
"routingHeaderId"
>
<InputNumber
v-model=
"entity.routingHeaderId"
></InputNumber>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('routingDetailId')"
prop=
"routingDetailId"
>
<InputNumber
v-model=
"entity.routingDetailId"
></InputNumber>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('creatorUserId')"
prop=
"creatorUserId"
>
<InputNumber
v-model=
"entity.creatorUserId"
></InputNumber>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('lastModificationTime')"
prop=
"lastModificationTime"
>
<DatePicker
type=
"date"
v-model=
"entity.lastModificationTime"
></DatePicker>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('lastModifierUserId')"
prop=
"lastModifierUserId"
>
<InputNumber
v-model=
"entity.lastModifierUserId"
></InputNumber>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('isDeleted')"
prop=
"isDeleted"
>
<Input
v-model=
"entity.isDeleted"
></Input>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('deleterUserId')"
prop=
"deleterUserId"
>
<InputNumber
v-model=
"entity.deleterUserId"
></InputNumber>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('deletionTime')"
prop=
"deletionTime"
>
<DatePicker
type=
"date"
v-model=
"entity.deletionTime"
></DatePicker>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('classId')"
prop=
"classId"
>
<InputNumber
v-model=
"entity.classId"
></InputNumber>
</FormItem>
</Col>
<Col
:span=
"24"
>
<FormItem
:label=
"l('remark')"
prop=
"remark"
>
<Input
v-model=
"entity.remark"
type=
"textarea"
:rows=
"5"
></Input>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('extend')"
prop=
"extend"
>
<Input
v-model=
"entity.extend"
></Input>
</FormItem>
</Col>
-->
</Row>
</Row>
<FormItem>
<FormItem>
<Button
type=
"primary"
@
click=
"handleSubmit"
:disabled=
"disabled"
>
保存
</Button>
<Button
type=
"primary"
@
click=
"handleSubmit"
:disabled=
"disabled"
>
保存
</Button>
...
@@ -43,18 +105,19 @@
...
@@ -43,18 +105,19 @@
</Form>
</Form>
</
template
>
</
template
>
<
script
>
<
script
>
import
Api
from
'./api'
import
Api
from
"./api"
;
export
default
{
import
iQuill
from
'@/components/quill'
name
:
'Edit'
,
export
default
{
name
:
"Edit"
,
components
:
{
iQuill
},
data
()
{
data
()
{
return
{
return
{
disabled
:
false
,
disabled
:
false
,
entity
:
{
entity
:
{},
},
rules
:
{
rules
:
{
name
:
[{
required
:
true
,
message
:
'必填'
,
trigger
:
'blur'
}]
name
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}]
}
}
}
};
},
},
props
:
{
props
:
{
eid
:
Number
eid
:
Number
...
@@ -67,35 +130,60 @@
...
@@ -67,35 +130,60 @@
methods
:
{
methods
:
{
load
(
v
)
{
load
(
v
)
{
Api
.
get
({
id
:
v
}).
then
(
r
=>
{
Api
.
get
({
id
:
v
}).
then
(
r
=>
{
console
.
log
(
r
)
this
.
entity
=
r
.
result
;
this
.
entity
=
r
.
result
;
})
// this.entity.status.toString
});
},
},
handleSubmit
()
{
handleSubmit
()
{
this
.
$refs
.
form
.
validate
((
v
)
=>
{
this
.
$refs
.
form
.
validate
(
v
=>
{
if
(
v
)
{
if
(
v
)
{
this
.
disabled
=
true
;
this
.
disabled
=
true
;
Api
.
update
(
this
.
entity
).
then
((
r
)
=>
{
Api
.
update
(
this
.
entity
)
.
then
(
r
=>
{
this
.
disabled
=
false
;
this
.
disabled
=
false
;
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
'保存成功'
)
this
.
$Message
.
success
(
"保存成功"
);
this
.
$emit
(
'on-ok'
)
this
.
$emit
(
"on-ok"
);
}
else
{
}
else
{
this
.
$Message
.
error
(
'保存失败'
)
this
.
$Message
.
error
(
"保存失败"
);
}
}
}).
catch
(
err
=>
{
this
.
disabled
=
false
;
this
.
$Message
.
error
(
'保存失败'
)
console
.
warn
(
err
)
})
})
.
catch
(
err
=>
{
this
.
disabled
=
false
;
this
.
$Message
.
error
(
"保存失败"
);
console
.
warn
(
err
);
});
}
}
})
});
},
handleImg
(
e
)
{
console
.
warn
(
e
)
// let file = null
// if (
// e.clipboardData &&
// e.clipboardData.items[0] &&
// e.clipboardData.items[0].type &&
// e.clipboardData.items[0].type.indexOf('image') > -1
// ) {
// //这里就是判断是否有粘贴进来的文件且文件为图片格式
// file = e.clipboardData.items[0].getAsFile()
// let reader = new FileReader()
// reader.readAsDataURL(file)
// setTimeout(() => {
// var img = '
<
img
src
=
"' + reader.result + '"
alt
=
""
/>
'
// this.bugForm.content += img
// }, 1000)
// // new R
// }
},
},
handleClose() {
handleClose() {
this
.
$emit
(
'on-close'
)
this.$emit("on-close");
},
},
l(key) {
l(key) {
key = "routing_step" + "." + key;
key = "routing_step" + "." + key;
return
this
.
$t
(
key
)
return this.$t(key);
}
}
},
},
watch: {
watch: {
...
@@ -105,5 +193,5 @@
...
@@ -105,5 +193,5 @@
}
}
}
}
}
}
}
};
</
script
>
</
script
>
\ No newline at end of file
pages/technology/details/routingStep/index.vue
View file @
3b409d56
<
template
>
<
template
>
<div>
<div>
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
><template
slot=
"easySearch"
><Form
ref=
"formInline"
:model=
"easySearch"
inline
><FormItem
prop=
"keys"
><Input
placeholder=
"请输入关键字工步名称/描述/备注/工步内容"
v-model=
"easySearch.keys.value"
/>
</FormItem>
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
>
<FormItem><Button
type=
"primary"
@
click=
"search"
>
查询
</Button></FormItem>
<template
slot=
"easySearch"
>
</Form></
template
>
<Form
ref=
"formInline"
:model=
"easySearch"
inline
>
<!--
<Poptip
trigger=
"focus"
title=
"Title"
content=
"请输入关键字工步名称/描述/备注/工步内容"
>
-->
<FormItem
prop=
"keys"
>
<Input
placeholder=
"请输入关键字工步名称/描述/备注/工步内容"
v-model=
"easySearch.keys.value"
/>
</FormItem>
<!--
<Poptip/>
-->
<FormItem>
<Button
type=
"primary"
@
click=
"search"
>
查询
</Button>
</FormItem>
</Form>
</
template
>
<
template
slot=
"searchForm"
>
<
template
slot=
"searchForm"
>
<Search
/>
<Search
/>
</
template
>
</
template
>
...
@@ -16,108 +26,186 @@
...
@@ -16,108 +26,186 @@
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
Api
from
'./api'
import
Api
from
"./api"
;
import
Search
from
'./search'
import
Search
from
"./search"
;
export
default
{
export
default
{
name
:
'list'
,
name
:
"list"
,
components
:{
components
:
{
Search
Search
},
},
head
:
{
head
:
{
title
:
"工步"
,
title
:
"工步"
,
author
:
"henq"
,
author
:
"henq"
,
description
:
"routing_step 4/28/2020 4:23:17 PM"
,
description
:
"routing_step 4/28/2020 4:23:17 PM"
},
},
data
()
{
data
()
{
return
{
return
{
action
:
Api
.
index
,
action
:
Api
.
index
,
easySearch
:
{
easySearch
:
{
keys
:{
op
:
"name,description,remark,stepContent"
,
value
:
null
}
keys
:
{
op
:
"name,description,remark,stepContent"
,
value
:
null
}
},
},
modal
:
false
,
modal
:
false
,
title
:
"新增"
,
title
:
"新增"
,
detail
:
null
,
detail
:
null
,
curId
:
0
,
curId
:
0
,
columns
:
[
columns
:
[
{
key
:
"id"
,
title
:
this
.
l
(
"id"
)
,
hide
:
true
,
align
:
"left"
},
{
key
:
"id"
,
title
:
this
.
l
(
"id"
),
hide
:
true
,
align
:
"left"
},
{
key
:
"creationTime"
,
title
:
this
.
l
(
"creationTime"
)
,
hide
:
true
,
align
:
"left"
,
high
:
true
},
{
{
key
:
"creatorUserId"
,
title
:
this
.
l
(
"creatorUserId"
)
,
hide
:
true
,
align
:
"left"
,
high
:
true
},
key
:
"creationTime"
,
{
key
:
"lastModificationTime"
,
title
:
this
.
l
(
"lastModificationTime"
)
,
hide
:
true
,
align
:
"left"
,
high
:
true
},
title
:
this
.
l
(
"creationTime"
),
{
key
:
"lastModifierUserId"
,
title
:
this
.
l
(
"lastModifierUserId"
)
,
hide
:
true
,
align
:
"left"
,
high
:
true
},
hide
:
true
,
{
key
:
"routingHeaderId"
,
title
:
this
.
l
(
"routingHeaderId"
)
,
hide
:
true
,
align
:
"left"
},
align
:
"left"
,
{
key
:
"routingDetailId"
,
title
:
this
.
l
(
"routingDetailId"
)
,
hide
:
true
,
align
:
"left"
},
high
:
true
{
key
:
"classId"
,
title
:
this
.
l
(
"classId"
)
,
hide
:
true
,
align
:
"left"
},
},
{
key
:
"stepSeq"
,
title
:
this
.
l
(
"stepSeq"
)
,
align
:
"left"
,
high
:
true
},
{
{
key
:
"name"
,
title
:
this
.
l
(
"name"
)
,
align
:
"left"
,
easy
:
true
,
high
:
true
},
key
:
"creatorUserId"
,
{
key
:
"description"
,
title
:
this
.
l
(
"description"
)
,
align
:
"left"
,
easy
:
true
,
high
:
true
},
title
:
this
.
l
(
"creatorUserId"
),
{
key
:
"status"
,
title
:
this
.
l
(
"status"
)
,
align
:
"left"
,
high
:
true
,
code
:
'Process.Status'
},
hide
:
true
,
align
:
"left"
,
high
:
true
},
{
key
:
"lastModificationTime"
,
title
:
this
.
l
(
"lastModificationTime"
),
hide
:
true
,
align
:
"left"
,
high
:
true
},
{
key
:
"lastModifierUserId"
,
title
:
this
.
l
(
"lastModifierUserId"
),
hide
:
true
,
align
:
"left"
,
high
:
true
},
{
key
:
"routingHeaderId"
,
title
:
this
.
l
(
"routingHeaderId"
),
high
:
true
,
align
:
"left"
},
{
key
:
"routingDetailId"
,
title
:
this
.
l
(
"routingDetailId"
),
high
:
true
,
align
:
"left"
},
{
key
:
"classId"
,
title
:
this
.
l
(
"classId"
),
hide
:
true
,
align
:
"left"
},
{
key
:
"stepSeq"
,
title
:
this
.
l
(
"stepSeq"
),
align
:
"left"
,
high
:
true
},
{
key
:
"name"
,
title
:
this
.
l
(
"name"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
{
title
:
'操作'
,
key
:
"description"
,
key
:
'action'
,
title
:
this
.
l
(
"description"
),
align
:
"left"
,
hide
:
true
},
{
key
:
"stepContent"
,
title
:
this
.
l
(
"stepContent"
),
align
:
"left"
,
hide
:
true
},
{
key
:
"status"
,
title
:
this
.
l
(
"status"
),
align
:
"left"
,
high
:
true
,
code
:
"Process.Status"
},
{
title
:
"操作"
,
key
:
"action"
,
width
:
140
,
width
:
140
,
align
:
'center'
,
align
:
"center"
,
render
:
(
h
,
params
)
=>
{
render
:
(
h
,
params
)
=>
{
return
h
(
'div'
,
{
class
:
"action"
},
[
return
h
(
"div"
,
{
class
:
"action"
},
[
h
(
'op'
,
{
attrs
:
{
oprate
:
'detail'
},
on
:
{
click
:
()
=>
this
.
view
(
params
.
row
.
id
)
}
},
'查看'
),
h
(
"op"
,
{
attrs
:
{
oprate
:
"detail"
},
on
:
{
click
:
()
=>
this
.
view
(
params
.
row
.
id
)
}
},
"查看"
),
//h('op', { attrs: { oprate: 'copy' }, on: { click: () => this.copy(params.row.id) } }, '克隆'),
//h('op', { attrs: { oprate: 'copy' }, on: { click: () => this.copy(params.row.id) } }, '克隆'),
h
(
'op'
,
{
attrs
:
{
oprate
:
'edit'
},
on
:
{
click
:
()
=>
this
.
edit
(
params
.
row
.
id
)
}
},
'编辑'
),
h
(
h
(
'op'
,
{
attrs
:
{
oprate
:
'delete'
},
on
:
{
click
:
()
=>
this
.
remove
(
params
.
row
.
id
)
}
},
'删除'
)
"op"
,
])
{
}
attrs
:
{
oprate
:
"edit"
},
on
:
{
click
:
()
=>
this
.
edit
(
params
.
row
.
id
)
}
},
},
]
"编辑"
),
h
(
"op"
,
{
attrs
:
{
oprate
:
"delete"
},
on
:
{
click
:
()
=>
this
.
remove
(
params
.
row
.
id
)
}
},
"删除"
)
]);
}
}
}
]
};
},
},
mounted
(){
mounted
()
{
console
.
log
(
this
);
console
.
log
(
this
);
},
},
async
fetch
({
store
,
params
})
{
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
'loadDictionary'
)
// 加载数据字典
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
},
},
methods
:{
methods
:
{
ok
()
{
ok
()
{
this
.
$refs
.
grid
.
load
()
this
.
$refs
.
grid
.
load
();
this
.
modal
=
false
this
.
modal
=
false
;
this
.
curId
=
0
;
this
.
curId
=
0
;
},
},
search
()
{
search
()
{
this
.
$refs
.
grid
.
reload
(
this
.
easySearch
)
this
.
$refs
.
grid
.
reload
(
this
.
easySearch
);
},
},
add
()
{
add
()
{
this
.
curId
=
0
;
this
.
curId
=
0
;
this
.
title
=
"新增"
;
this
.
title
=
"新增"
;
this
.
detail
=
()
=>
import
(
'./add'
)
this
.
detail
=
()
=>
import
(
"./add"
);
this
.
modal
=
true
;
this
.
modal
=
true
;
},
},
copy
(
id
)
{
copy
(
id
)
{
this
.
curId
=
id
;
this
.
curId
=
id
;
this
.
title
=
"克隆"
;
this
.
title
=
"克隆"
;
this
.
detail
=
()
=>
import
(
'./add'
)
this
.
detail
=
()
=>
import
(
"./add"
);
this
.
modal
=
true
;
this
.
modal
=
true
;
},
},
view
(
id
)
{
view
(
id
)
{
this
.
curId
=
id
;
this
.
curId
=
id
;
this
.
title
=
"详情"
;
this
.
title
=
"详情"
;
this
.
detail
=
()
=>
import
(
'./detail'
)
this
.
detail
=
()
=>
import
(
"./detail"
);
this
.
modal
=
true
;
this
.
modal
=
true
;
},
},
edit
(
id
)
{
edit
(
id
)
{
this
.
curId
=
id
;
this
.
curId
=
id
;
this
.
title
=
"编辑"
;
this
.
title
=
"编辑"
;
this
.
detail
=
()
=>
import
(
'./edit'
)
this
.
detail
=
()
=>
import
(
"./edit"
);
this
.
modal
=
true
;
this
.
modal
=
true
;
},
},
remove
(
id
)
{
remove
(
id
)
{
Api
.
delete
(
id
).
then
((
r
)
=>
{
Api
.
delete
(
id
).
then
(
r
=>
{
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
$refs
.
grid
.
load
();
this
.
$refs
.
grid
.
load
();
this
.
$Message
.
success
(
'删除成功'
)
this
.
$Message
.
success
(
"删除成功"
);
}
}
})
});
},
},
cancel
()
{
cancel
()
{
this
.
curId
=
0
;
this
.
curId
=
0
;
this
.
modal
=
false
this
.
modal
=
false
;
},
},
l
(
key
)
{
l
(
key
)
{
/*
/*
...
@@ -143,10 +231,10 @@ keys:{op:"name,description,remark,stepContent",value:null}
...
@@ -143,10 +231,10 @@ keys:{op:"name,description,remark,stepContent",value:null}
}
}
*/
*/
let
vkey
=
"routing_step"
+
"."
+
key
;
let
vkey
=
"routing_step"
+
"."
+
key
;
return
this
.
$t
(
vkey
)
||
key
return
this
.
$t
(
vkey
)
||
key
;
}
}
}
}
}
}
;
</
script
>
</
script
>
<
style
lang=
"less"
>
<
style
lang=
"less"
>
</
style
>
</
style
>
\ No newline at end of file
pages/technology/details/routingqccard/add.vue
View file @
3b409d56
...
@@ -47,14 +47,19 @@
...
@@ -47,14 +47,19 @@
<InputNumber
v-model=
"entity.routingStepId"
></InputNumber>
<InputNumber
v-model=
"entity.routingStepId"
></InputNumber>
</FormItem>
</FormItem>
</Col>
</Col>
-->
<Col
:span=
"12"
>
<Col
:span=
"12"
>
<FormItem
:label=
"l('routingHeaderName')"
prop=
"routingHeaderId"
>
<FormItem
:label=
"l('routingHeaderName')"
prop=
"routingHeaderId"
>
<!--
<InputNumber
v-model=
"entity.routingHeaderId"
></InputNumber>
-->
<InputNumber
v-model=
"entity.routingHeaderId"
></InputNumber>
181
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"12"
>
<Col
:span=
"12"
>
<FormItem
:label=
"l('qualityTemplate')"
prop=
"qualityTemplate"
>
<Input
v-model=
"entity.qualityTemplate"
type=
"textarea"
:rows=
"2"
></Input>
</FormItem>
</Col>
-->
<Col
:span=
"8"
>
<FormItem
:label=
"l('routingDetailName')"
prop=
"routingDetailId"
>
<FormItem
:label=
"l('routingDetailName')"
prop=
"routingDetailId"
>
<Select
v-model=
"entity.routingDetailId"
>
<Select
v-model=
"entity.routingDetailId"
>
<Option
<Option
...
@@ -65,64 +70,29 @@
...
@@ -65,64 +70,29 @@
</Select>
</Select>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"12"
>
<Col
:span=
"8"
>
<FormItem
:label=
"l('checkContent')"
prop=
"checkContent"
>
<FormItem
:label=
"l('standard')"
prop=
"standard"
>
<Input
v-model=
"entity.checkContent"
></Input>
<Input
v-model=
"entity.standard"
></Input>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('measurementUnit')"
prop=
"measurementUnit"
>
<Input
v-model=
"entity.measurementUnit"
></Input>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('checkType')"
prop=
"checkType"
>
<Dictionary
code=
"QC.checktype"
v-model=
"entity.checkType"
></Dictionary>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"
12
"
>
<Col
:span=
"
8
"
>
<FormItem
:label=
"l('fillintype')"
prop=
"fillintype"
>
<FormItem
:label=
"l('fillintype')"
prop=
"fillintype"
>
<Dictionary
code=
"QC.fillintype"
v-model=
"entity.fillintype"
></Dictionary>
<Dictionary
code=
"QC.fillintype"
v-model=
"entity.fillintype"
></Dictionary>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('checkParams')"
prop=
"checkParams"
>
<Input
v-model=
"entity.checkParams"
type=
"textarea"
:rows=
"2"
></Input>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('qualityTemplate')"
prop=
"qualityTemplate"
>
<Input
v-model=
"entity.qualityTemplate"
type=
"textarea"
:rows=
"2"
></Input>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('isphotograph')"
prop=
"isphotograph"
>
<Dictionary
code=
"Process.state"
v-model=
"entity.isphotograph"
type=
"radio"
></Dictionary>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('status')"
prop=
"status"
>
<Dictionary
code=
"Process.Status"
v-model=
"entity.status"
type=
"radio"
></Dictionary>
</FormItem>
</Col>
<Col
:span=
"24"
>
<FormItem
:label=
"l('remark')"
prop=
"remark"
>
<Input
v-model=
"entity.remark"
type=
"textarea"
:rows=
"2"
></Input>
</FormItem>
</Col>
<Col
:span=
"12"
>
<Col
:span=
"12"
>
<FormItem
:label=
"l('productionRequirement')"
prop=
"productionRequirement"
>
<FormItem
:label=
"l('productionRequirement')"
prop=
"productionRequirement"
>
<Input
v-model=
"entity.productionRequirement"
type=
"textarea"
:rows=
"2"
></Input>
<Input
v-model=
"entity.productionRequirement"
type=
"textarea"
:rows=
"2"
></Input>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"12"
>
<Col
:span=
"12"
>
<FormItem
:label=
"l('
standard')"
prop=
"standard
"
>
<FormItem
:label=
"l('
checkContent')"
prop=
"checkContent
"
>
<Input
v-model=
"entity.
standard
"
type=
"textarea"
:rows=
"2"
></Input>
<Input
v-model=
"entity.
checkContent
"
type=
"textarea"
:rows=
"2"
></Input>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"
12
"
>
<Col
:span=
"
24
"
>
<FormItem
:label=
"l('qualityTemplateName')"
prop=
"qualityTemplateName"
>
<FormItem
:label=
"l('qualityTemplateName')"
prop=
"qualityTemplateName"
>
<
Input
v-model=
"entity.qualityTemplateName"
></Input
>
<
files
ref=
"refFile"
:parms=
"parms"
files
singleFile
/
>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"12"
>
<Col
:span=
"12"
>
...
@@ -135,26 +105,58 @@
...
@@ -135,26 +105,58 @@
<Dictionary
code=
"Process.state"
v-model=
"entity.firstCheck"
type=
"radio"
></Dictionary>
<Dictionary
code=
"Process.state"
v-model=
"entity.firstCheck"
type=
"radio"
></Dictionary>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"
12
"
>
<Col
:span=
"
6
"
>
<FormItem
:label=
"l('inspection')"
prop=
"inspection"
>
<FormItem
:label=
"l('inspection')"
prop=
"inspection"
>
<Dictionary
code=
"Process.state"
v-model=
"entity.inspection"
type=
"radio"
></Dictionary>
<Dictionary
code=
"Process.state"
v-model=
"entity.inspection"
type=
"radio"
></Dictionary>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"
12
"
>
<Col
:span=
"
6
"
>
<FormItem
:label=
"l('inspectionTime')"
prop=
"inspectionTime"
>
<FormItem
:label=
"l('inspectionTime')"
prop=
"inspectionTime"
>
<InputNumber
v-model=
"entity.inspectionTime"
></InputNumber>
<InputNumber
v-model=
"entity.inspectionTime"
></InputNumber>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"
12
"
>
<Col
:span=
"
6
"
>
<FormItem
:label=
"l('sampling')"
prop=
"sampling"
>
<FormItem
:label=
"l('sampling')"
prop=
"sampling"
>
<Dictionary
code=
"Process.state"
v-model=
"entity.sampling"
type=
"radio"
></Dictionary>
<Dictionary
code=
"Process.state"
v-model=
"entity.sampling"
type=
"radio"
></Dictionary>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"
12
"
>
<Col
:span=
"
6
"
>
<FormItem
:label=
"l('samplingBatch')"
prop=
"samplingBatch"
>
<FormItem
:label=
"l('samplingBatch')"
prop=
"samplingBatch"
>
<Input
v-model=
"entity.samplingBatch"
></Input>
<Input
v-model=
"entity.samplingBatch"
></Input>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"24"
>
<FormItem
:label=
"l('measurementUnit')"
prop=
"measurementUnit"
>
<Input
v-model=
"entity.measurementUnit"
></Input>
</FormItem>
</Col>
<Col
:span=
"8"
>
<FormItem
:label=
"l('checkType')"
prop=
"checkType"
>
<Dictionary
code=
"QC.checktype"
v-model=
"entity.checkType"
></Dictionary>
</FormItem>
</Col>
<Col
:span=
"8"
>
<FormItem
:label=
"l('isphotograph')"
prop=
"isphotograph"
>
<Dictionary
code=
"Process.state"
v-model=
"entity.isphotograph"
type=
"radio"
></Dictionary>
</FormItem>
</Col>
<Col
:span=
"8"
>
<FormItem
:label=
"l('status')"
prop=
"status"
>
<Dictionary
code=
"Process.Status"
v-model=
"entity.status"
type=
"radio"
></Dictionary>
</FormItem>
</Col>
<Col
:span=
"24"
>
<FormItem
:label=
"l('checkParams')"
prop=
"checkParams"
>
<Input
v-model=
"entity.checkParams"
type=
"textarea"
:rows=
"2"
></Input>
</FormItem>
</Col>
<Col
:span=
"24"
>
<FormItem
:label=
"l('remark')"
prop=
"remark"
>
<Input
v-model=
"entity.remark"
type=
"textarea"
:rows=
"2"
></Input>
</FormItem>
</Col>
</Row>
</Row>
<FormItem>
<FormItem>
<Button
type=
"primary"
@
click=
"handleSubmit"
:disabled=
"disabled"
>
保存
</Button>
<Button
type=
"primary"
@
click=
"handleSubmit"
:disabled=
"disabled"
>
保存
</Button>
...
@@ -196,7 +198,13 @@ export default {
...
@@ -196,7 +198,13 @@ export default {
rules
:
{
rules
:
{
name
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}]
name
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}]
},
},
routingDetailList
:
[]
routingDetailList
:
[],
parms
:
{
app
:
'qccard'
,
eid
:
null
,
name
:
''
,
field
:
''
}
};
};
},
},
props
:
{
props
:
{
...
@@ -205,6 +213,8 @@ export default {
...
@@ -205,6 +213,8 @@ export default {
},
},
mounted
()
{
mounted
()
{
this
.
loadDetails
();
this
.
loadDetails
();
this
.
parms
.
eid
=
this
.
$u
.
guid
()
this
.
$refs
.
refFile
.
intFiles
()
if
(
this
.
eid
>
0
)
{
if
(
this
.
eid
>
0
)
{
this
.
load
(
this
.
eid
);
this
.
load
(
this
.
eid
);
}
}
...
@@ -214,12 +224,29 @@ export default {
...
@@ -214,12 +224,29 @@ export default {
this
.
$refs
.
form
.
validate
(
v
=>
{
this
.
$refs
.
form
.
validate
(
v
=>
{
if
(
v
)
{
if
(
v
)
{
this
.
disabled
=
true
;
this
.
disabled
=
true
;
this
.
entity
.
qualityTemplateName
=
''
this
.
entity
.
qualityTemplate
=
''
if
(
this
.
$refs
.
refFile
.
nameList
.
length
>
0
)
{
let
nameList
=
this
.
$refs
.
refFile
.
nameList
let
names
=
[]
let
url
=
[]
nameList
.
forEach
(
e
=>
{
names
.
push
(
e
.
fileName
)
url
.
push
(
e
.
filePath
)
});
this
.
entity
.
qualityTemplateName
=
JSON
.
stringify
(
names
).
replace
(
'['
,
''
).
replace
(
']'
,
''
).
replace
(
/
\"
/g
,
''
)
//附件本地库暂存文件名称
this
.
entity
.
qualityTemplate
=
JSON
.
stringify
(
url
).
replace
(
'['
,
''
).
replace
(
']'
,
''
).
replace
(
/
\"
/g
,
''
)
}
Api
.
create
(
this
.
entity
)
Api
.
create
(
this
.
entity
)
.
then
(
r
=>
{
.
then
(
r
=>
{
this
.
disabled
=
false
;
this
.
disabled
=
false
;
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
"保存成功"
);
this
.
$Message
.
success
(
"保存成功"
);
this
.
$emit
(
"on-ok"
);
this
.
$emit
(
"on-ok"
);
//let newId = r.result
//this.updateEid(newId) //更新服务器上的id
}
else
{
}
else
{
this
.
$Message
.
error
(
"保存失败"
);
this
.
$Message
.
error
(
"保存失败"
);
}
}
...
@@ -257,6 +284,20 @@ export default {
...
@@ -257,6 +284,20 @@ export default {
});
});
this
.
routingDetailList
=
tempD
;
this
.
routingDetailList
=
tempD
;
});
});
},
//新增时将uid转为eid
updateEid
(
newId
)
{
let
parms
=
{
eid
:
this
.
parms
.
eid
,
id
:
newId
+
''
}
this
.
$http
.
sysUser
.
updateEid
(
parms
).
then
((
res
)
=>
{
if
(
res
.
status
)
{
// this.$Message.success('修改成功!')
}
else
{
//this.$Message.error('修改失败!')
}
})
},
},
l
(
key
)
{
l
(
key
)
{
key
=
"routing_qc_card"
+
"."
+
key
;
key
=
"routing_qc_card"
+
"."
+
key
;
...
...
pages/technology/details/routingqccard/detail.vue
View file @
3b409d56
<
template
>
<
template
>
<div
class=
"detail"
>
<div
class=
"detail"
>
<Row>
<Row>
<Filed
:span=
"12"
:name=
"l('routingHeaderName')"
>
{{
entity
.
routingHeaderId
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('routingHeaderName')"
v-if=
"false"
>
{{
entity
.
routingHeaderId
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('routingDetailName')"
>
{{
entity
.
routingDetailId
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('routingDetailName')"
>
{{
entity
.
routingDetailId
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('routingStepId')"
v-if=
"false"
>
{{
entity
.
routingStepId
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('standard')"
>
{{
entity
.
standard
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('fillintype')"
>
<state
code=
"QC.fillintype"
:value=
"entity.fillintype+''"
type=
"text"
></state>
</Filed>
<Filed
:span=
"12"
:name=
"l('productionRequirement')"
>
{{
entity
.
productionRequirement
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('checkContent')"
>
{{
entity
.
checkContent
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('checkContent')"
>
{{
entity
.
checkContent
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('qualityTemplateName')"
><a
:href=
"downUrl+entity.qualityTemplate"
target=
"_blank"
>
{{
entity
.
qualityTemplateName
}}
</a></Filed>
<Filed
:span=
"12"
:name=
"l('isImportant')"
>
<state
code=
"Process.state"
:value=
"entity.isImportant+''"
type=
"text"
></state>
</Filed>
<Filed
:span=
"12"
:name=
"l('firstCheck')"
>
<state
code=
"Process.state"
:value=
"entity.firstCheck+''"
type=
"text"
></state>
</Filed>
<Filed
:span=
"12"
:name=
"l('inspection')"
>
<state
code=
"Process.state"
:value=
"entity.inspection+''"
type=
"text"
></state>
</Filed>
<Filed
:span=
"12"
:name=
"l('inspectionTime')"
>
{{
entity
.
inspectionTime
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('sampling')"
>
<state
code=
"Process.state"
:value=
"entity.sampling+''"
type=
"text"
></state>
</Filed>
<Filed
:span=
"12"
:name=
"l('samplingBatch')"
>
{{
entity
.
samplingBatch
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('checkType')"
>
<Filed
:span=
"12"
:name=
"l('checkType')"
>
<state
<state
code=
"QC.checktype"
v-modev=
"entity.checkType+''"
></state>
code=
"QC.checktype"
:value=
"entity.checkType+''"
type=
"text"
></state>
</Filed>
</Filed>
<Filed
:span=
"24"
:name=
"l('checkParams')"
>
{{
entity
.
checkParams
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('routingStepId')"
v-if=
"false"
>
{{
entity
.
routingStepId
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('checkParams')"
>
{{
entity
.
checkParams
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('measurementUnit')"
>
{{
entity
.
measurementUnit
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('measurementUnit')"
>
{{
entity
.
measurementUnit
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('fillintype')"
>
<state
code=
"QC.fillintype"
:value=
"entity.fillintype+''"
type=
"text"
></state>
</Filed>
<Filed
:span=
"24"
:name=
"l('qualityTemplate')"
>
{{
entity
.
qualityTemplate
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('isphotograph')"
>
{{
entity
.
isphotograph
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('isphotograph')"
>
{{
entity
.
isphotograph
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('status')"
><state
<Filed
:span=
"12"
:name=
"l('status')"
>
code=
"Process.state"
<state
code=
"Process.state"
:value=
"entity.status+''"
type=
"text"
></state>
:value=
"entity.status+''"
</Filed>
type=
"text"
></state></Filed>
<Filed
:span=
"12"
:name=
"l('extend')"
v-if=
"false"
>
{{
entity
.
extend
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('extend')"
v-if=
"false"
>
{{
entity
.
extend
}}
</Filed>
<Filed
:span=
"24"
:name=
"l('remark')"
>
{{
entity
.
remark
}}
</Filed>
<Filed
:span=
"24"
:name=
"l('remark')"
>
{{
entity
.
remark
}}
</Filed>
<Filed
:span=
"24"
:name=
"l('productionRequirement')"
>
{{
entity
.
productionRequirement
}}
</Filed>
<Filed
:span=
"24"
:name=
"l('standard')"
>
{{
entity
.
standard
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('qualityTemplateName')"
>
{{
entity
.
qualityTemplateName
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('isImportant')"
><state
code=
"Process.state"
:value=
"entity.isImportant+''"
type=
"text"
></state></Filed>
<Filed
:span=
"12"
:name=
"l('firstCheck')"
><state
code=
"Process.state"
:value=
"entity.firstCheck+''"
type=
"text"
></state></Filed>
<Filed
:span=
"12"
:name=
"l('inspection')"
><state
code=
"Process.state"
:value=
"entity.inspection+''"
type=
"text"
></state></Filed>
<Filed
:span=
"12"
:name=
"l('inspectionTime')"
>
{{
entity
.
inspectionTime
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('sampling')"
>
<state
code=
"Process.state"
:value=
"entity.sampling+''"
type=
"text"
></state></Filed>
<Filed
:span=
"12"
:name=
"l('samplingBatch')"
>
{{
entity
.
samplingBatch
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('creationTime')"
>
{{
entity
.
creationTime
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('creationTime')"
>
{{
entity
.
creationTime
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('creatorUserId')"
><User
:value=
"entity.creatorUserId"
></User></Filed>
<Filed
:span=
"12"
:name=
"l('creatorUserId')"
>
<User
:value=
"entity.creatorUserId"
></User>
</Filed>
<Filed
:span=
"12"
:name=
"l('lastModificationTime')"
>
{{
entity
.
lastModificationTime
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('lastModificationTime')"
>
{{
entity
.
lastModificationTime
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('lastModifierUserId')"
><User
v-model=
"entity.lastModifierUserId"
></User></Filed>
<Filed
:span=
"12"
:name=
"l('lastModifierUserId')"
>
<User
v-model=
"entity.lastModifierUserId"
></User>
</Filed>
<!--
<Filed
:span=
"12"
:name=
"l('isDeleted')"
>
{{
entity
.
isDeleted
}}
</Filed>
<!--
<Filed
:span=
"12"
:name=
"l('isDeleted')"
>
{{
entity
.
isDeleted
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('deleterUserId')"
>
{{
entity
.
deleterUserId
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('deleterUserId')"
>
{{
entity
.
deleterUserId
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('deletionTime')"
>
{{
entity
.
deletionTime
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('deletionTime')"
>
{{
entity
.
deletionTime
}}
</Filed>
...
@@ -77,7 +64,15 @@ export default {
...
@@ -77,7 +64,15 @@ export default {
rules
:
{
rules
:
{
name
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}],
name
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}],
code
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}]
code
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}]
}
},
parms
:
{
app
:
'contract'
,
eid
:
null
,
name
:
''
,
field
:
''
},
downUrl
:
fileUrlDown
,
fileUrlPath
:
""
,
};
};
},
},
props
:
{
props
:
{
...
@@ -92,6 +87,8 @@ export default {
...
@@ -92,6 +87,8 @@ export default {
load
(
v
)
{
load
(
v
)
{
Api
.
get
({
id
:
v
}).
then
(
r
=>
{
Api
.
get
({
id
:
v
}).
then
(
r
=>
{
this
.
entity
=
r
.
result
;
this
.
entity
=
r
.
result
;
this
.
parms
.
eid
=
r
.
result
.
id
this
.
$refs
.
refFile
.
intFiles
()
this
.
$emit
(
"on-load"
);
this
.
$emit
(
"on-load"
);
});
});
},
},
...
...
pages/technology/details/routingqccard/edit.vue
View file @
3b409d56
...
@@ -48,75 +48,41 @@
...
@@ -48,75 +48,41 @@
</FormItem>
</FormItem>
</Col>
</Col>
-->
-->
<Col
:span=
"12"
>
<Col
:span=
"8"
>
<FormItem
:label=
"l('routingHeaderId')"
prop=
"routingHeaderId"
>
<FormItem
:label=
"l('routingDetailName')"
prop=
"routingDetailId"
>
<InputNumber
v-model=
"entity.routingHeaderId"
></InputNumber>
<Select
v-model=
"entity.routingDetailId"
>
</FormItem>
<Option
</Col>
v-for=
"(item,index) in routingDetailList"
<Col
:span=
"12"
>
:value=
"item.value"
<FormItem
:label=
"l('routingDetailId')"
prop=
"routingDetailId"
>
:key=
"index"
<InputNumber
v-model=
"entity.routingDetailId"
></InputNumber>
>
{{
item
.
label
}}
</Option>
</FormItem>
</Select>
</Col>
</FormItem>
<Col
:span=
"12"
>
</Col>
<FormItem
:label=
"l('checkContent')"
prop=
"checkContent"
>
<Col
:span=
"8"
>
<Input
v-model=
"entity.checkContent"
></Input>
<FormItem
:label=
"l('standard')"
prop=
"standard"
>
</FormItem>
<Input
v-model=
"entity.standard"
></Input>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('measurementUnit')"
prop=
"measurementUnit"
>
<Input
v-model=
"entity.measurementUnit"
></Input>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('checkType')"
prop=
"checkType"
>
<Dictionary
code=
"QC.checktype"
v-model=
"entity.checkType"
></Dictionary>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"
12
"
>
<Col
:span=
"
8
"
>
<FormItem
:label=
"l('fillintype')"
prop=
"fillintype"
>
<FormItem
:label=
"l('fillintype')"
prop=
"fillintype"
>
<Dictionary
code=
"QC.fillintype"
v-model=
"entity.fillintype"
></Dictionary>
<Dictionary
code=
"QC.fillintype"
v-model=
"entity.fillintype"
></Dictionary>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('checkParams')"
prop=
"checkParams"
>
<Input
v-model=
"entity.checkParams"
type=
"textarea"
:rows=
"2"
></Input>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('qualityTemplate')"
prop=
"qualityTemplate"
>
<Input
v-model=
"entity.qualityTemplate"
type=
"textarea"
:rows=
"2"
></Input>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('isphotograph')"
prop=
"isphotograph"
>
<Dictionary
code=
"Process.state"
v-model=
"entity.isphotograph"
type=
"radio"
></Dictionary>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('status')"
prop=
"status"
>
<Dictionary
code=
"Process.Status"
v-model=
"entity.status"
type=
"radio"
></Dictionary>
</FormItem>
</Col>
<Col
:span=
"24"
>
<FormItem
:label=
"l('remark')"
prop=
"remark"
>
<Input
v-model=
"entity.remark"
type=
"textarea"
:rows=
"2"
></Input>
</FormItem>
</Col>
<Col
:span=
"12"
>
<Col
:span=
"12"
>
<FormItem
:label=
"l('productionRequirement')"
prop=
"productionRequirement"
>
<FormItem
:label=
"l('productionRequirement')"
prop=
"productionRequirement"
>
<Input
v-model=
"entity.productionRequirement"
type=
"textarea"
:rows=
"2"
></Input>
<Input
v-model=
"entity.productionRequirement"
type=
"textarea"
:rows=
"2"
></Input>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"12"
>
<Col
:span=
"12"
>
<FormItem
:label=
"l('
standard')"
prop=
"standard
"
>
<FormItem
:label=
"l('
checkContent')"
prop=
"checkContent
"
>
<Input
v-model=
"entity.
standard
"
type=
"textarea"
:rows=
"2"
></Input>
<Input
v-model=
"entity.
checkContent
"
type=
"textarea"
:rows=
"2"
></Input>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"
12
"
>
<Col
:span=
"
24
"
>
<FormItem
:label=
"l('qualityTemplateName')"
prop=
"qualityTemplateName"
>
<FormItem
:label=
"l('qualityTemplateName')"
prop=
"qualityTemplateName"
>
<Input
v-model=
"entity.qualityTemplateName"
></Input>
<Input
v-model=
"entity.qualityTemplateName"
></Input>
<files
ref=
"refFile"
:parms=
"parms"
files
singleFile
/>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"12"
>
<Col
:span=
"12"
>
...
@@ -129,26 +95,58 @@
...
@@ -129,26 +95,58 @@
<Dictionary
code=
"Process.state"
v-model=
"entity.firstCheck"
type=
"radio"
></Dictionary>
<Dictionary
code=
"Process.state"
v-model=
"entity.firstCheck"
type=
"radio"
></Dictionary>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"
12
"
>
<Col
:span=
"
6
"
>
<FormItem
:label=
"l('inspection')"
prop=
"inspection"
>
<FormItem
:label=
"l('inspection')"
prop=
"inspection"
>
<Dictionary
code=
"Process.state"
v-model=
"entity.inspection"
type=
"radio"
></Dictionary>
<Dictionary
code=
"Process.state"
v-model=
"entity.inspection"
type=
"radio"
></Dictionary>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"
12
"
>
<Col
:span=
"
6
"
>
<FormItem
:label=
"l('inspectionTime')"
prop=
"inspectionTime"
>
<FormItem
:label=
"l('inspectionTime')"
prop=
"inspectionTime"
>
<InputNumber
v-model=
"entity.inspectionTime"
></InputNumber>
<InputNumber
v-model=
"entity.inspectionTime"
></InputNumber>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"
12
"
>
<Col
:span=
"
6
"
>
<FormItem
:label=
"l('sampling')"
prop=
"sampling"
>
<FormItem
:label=
"l('sampling')"
prop=
"sampling"
>
<Dictionary
code=
"Process.state"
v-model=
"entity.sampling"
type=
"radio"
></Dictionary>
<Dictionary
code=
"Process.state"
v-model=
"entity.sampling"
type=
"radio"
></Dictionary>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"
12
"
>
<Col
:span=
"
6
"
>
<FormItem
:label=
"l('samplingBatch')"
prop=
"samplingBatch"
>
<FormItem
:label=
"l('samplingBatch')"
prop=
"samplingBatch"
>
<Input
v-model=
"entity.samplingBatch"
></Input>
<Input
v-model=
"entity.samplingBatch"
></Input>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"24"
>
<FormItem
:label=
"l('measurementUnit')"
prop=
"measurementUnit"
>
<Input
v-model=
"entity.measurementUnit"
></Input>
</FormItem>
</Col>
<Col
:span=
"8"
>
<FormItem
:label=
"l('checkType')"
prop=
"checkType"
>
<Dictionary
code=
"QC.checktype"
v-model=
"entity.checkType"
></Dictionary>
</FormItem>
</Col>
<Col
:span=
"8"
>
<FormItem
:label=
"l('isphotograph')"
prop=
"isphotograph"
>
<Dictionary
code=
"Process.state"
v-model=
"entity.isphotograph"
type=
"radio"
></Dictionary>
</FormItem>
</Col>
<Col
:span=
"8"
>
<FormItem
:label=
"l('status')"
prop=
"status"
>
<Dictionary
code=
"Process.Status"
v-model=
"entity.status"
type=
"radio"
></Dictionary>
</FormItem>
</Col>
<Col
:span=
"24"
>
<FormItem
:label=
"l('checkParams')"
prop=
"checkParams"
>
<Input
v-model=
"entity.checkParams"
type=
"textarea"
:rows=
"2"
></Input>
</FormItem>
</Col>
<Col
:span=
"24"
>
<FormItem
:label=
"l('remark')"
prop=
"remark"
>
<Input
v-model=
"entity.remark"
type=
"textarea"
:rows=
"2"
></Input>
</FormItem>
</Col>
</Row>
</Row>
<FormItem>
<FormItem>
<Button
type=
"primary"
@
click=
"handleSubmit"
:disabled=
"disabled"
>
保存
</Button>
<Button
type=
"primary"
@
click=
"handleSubmit"
:disabled=
"disabled"
>
保存
</Button>
...
@@ -166,6 +164,13 @@ export default {
...
@@ -166,6 +164,13 @@ export default {
entity
:
{},
entity
:
{},
rules
:
{
rules
:
{
name
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}]
name
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}]
},
routingDetailList
:
[],
parms
:
{
app
:
'qccard'
,
eid
:
null
,
name
:
''
,
field
:
''
}
}
};
};
},
},
...
@@ -173,6 +178,7 @@ export default {
...
@@ -173,6 +178,7 @@ export default {
eid
:
Number
eid
:
Number
},
},
mounted
()
{
mounted
()
{
this
.
loadDetails
();
if
(
this
.
eid
>
0
)
{
if
(
this
.
eid
>
0
)
{
this
.
load
(
this
.
eid
);
this
.
load
(
this
.
eid
);
}
}
...
@@ -180,6 +186,7 @@ export default {
...
@@ -180,6 +186,7 @@ export default {
methods
:
{
methods
:
{
load
(
v
)
{
load
(
v
)
{
Api
.
get
({
id
:
v
}).
then
(
r
=>
{
Api
.
get
({
id
:
v
}).
then
(
r
=>
{
this
.
$refs
.
refFile
.
intFilesClone
()
this
.
entity
=
r
.
result
;
this
.
entity
=
r
.
result
;
});
});
},
},
...
@@ -208,6 +215,24 @@ export default {
...
@@ -208,6 +215,24 @@ export default {
handleClose
()
{
handleClose
()
{
this
.
$emit
(
"on-close"
);
this
.
$emit
(
"on-close"
);
},
},
loadDetails
()
{
//获取工序列表
let
parms
=
{
headerID
:
181
};
Api
.
pagedDetails
(
parms
).
then
(
r
=>
{
let
tempDetails
=
r
.
result
;
let
tempD
=
[];
tempDetails
.
forEach
(
data
=>
{
let
tempObj
=
{};
tempObj
.
value
=
data
.
id
;
tempObj
.
label
=
data
.
name
;
tempD
.
push
(
tempObj
);
})
this
.
routingDetailList
=
tempD
});
},
l
(
key
)
{
l
(
key
)
{
key
=
"routing_qc_card"
+
"."
+
key
;
key
=
"routing_qc_card"
+
"."
+
key
;
return
this
.
$t
(
key
);
return
this
.
$t
(
key
);
...
...
pages/technology/details/routingqccard/index.vue
View file @
3b409d56
...
@@ -129,13 +129,6 @@ export default {
...
@@ -129,13 +129,6 @@ export default {
high
:
true
,
high
:
true
,
code
:
"QC.fillintype"
code
:
"QC.fillintype"
},
},
{
key
:
"qualityTemplate"
,
title
:
this
.
l
(
"qualityTemplate"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
{
key
:
"isphotograph"
,
key
:
"isphotograph"
,
title
:
this
.
l
(
"isphotograph"
),
title
:
this
.
l
(
"isphotograph"
),
...
@@ -169,7 +162,19 @@ export default {
...
@@ -169,7 +162,19 @@ export default {
title
:
this
.
l
(
"qualityTemplateName"
),
title
:
this
.
l
(
"qualityTemplateName"
),
align
:
"left"
,
align
:
"left"
,
easy
:
true
,
easy
:
true
,
high
:
true
high
:
true
,
render
:
(
h
,
params
)
=>
{
return
h
(
"div"
,
{
class
:
"action"
},
[
h
(
"op"
,
{
attrs
:
{
oprate
:
"detail"
},
on
:
{
click
:
()
=>
this
.
view
(
params
.
row
.
id
)
}
},
params
.
row
.
qualityTemplateName
)
]);
}
},
},
{
{
key
:
"isImportant"
,
key
:
"isImportant"
,
...
@@ -247,7 +252,9 @@ export default {
...
@@ -247,7 +252,9 @@ export default {
]);
]);
}
}
}
}
]
],
downUrl
:
fileUrlDown
,
fileUrlPath
:
""
};
};
},
},
mounted
()
{
mounted
()
{
...
@@ -301,6 +308,10 @@ export default {
...
@@ -301,6 +308,10 @@ export default {
this
.
curId
=
0
;
this
.
curId
=
0
;
this
.
modal
=
false
;
this
.
modal
=
false
;
},
},
openTemplate
(
url
)
{
this
.
fileUrlPath
=
this
.
downUrl
+
path
;
alert
(
this
.
fileUrlPath
)
},
l
(
key
)
{
l
(
key
)
{
let
vkey
=
"routing_qc_card"
+
"."
+
key
;
let
vkey
=
"routing_qc_card"
+
"."
+
key
;
return
this
.
$t
(
vkey
)
||
key
;
return
this
.
$t
(
vkey
)
||
key
;
...
...
pages/technology/details/routingsupporting/add.vue
View file @
3b409d56
...
@@ -18,17 +18,17 @@
...
@@ -18,17 +18,17 @@
</FormItem>
</FormItem>
</Col>
</Col>
-->
-->
<Col
:span=
"
12
"
>
<Col
:span=
"
8
"
>
<FormItem
:label=
"l('routingHeaderId')"
prop=
"routingHeaderId"
>
<FormItem
:label=
"l('routingHeaderId')"
prop=
"routingHeaderId"
>
<InputNumber
v-model=
"entity.routingHeaderId"
></InputNumber>
<InputNumber
v-model=
"entity.routingHeaderId"
></InputNumber>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"
12
"
>
<Col
:span=
"
8
"
>
<FormItem
:label=
"l('routingDetailId')"
prop=
"routingDetailId"
>
<FormItem
:label=
"l('routingDetailId')"
prop=
"routingDetailId"
>
<InputNumber
v-model=
"entity.routingDetailId"
></InputNumber>
<InputNumber
v-model=
"entity.routingDetailId"
></InputNumber>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"
12
"
>
<Col
:span=
"
8
"
>
<FormItem
:label=
"l('materialType')"
prop=
"materialType"
>
<FormItem
:label=
"l('materialType')"
prop=
"materialType"
>
<Dictionary
<Dictionary
code=
"mes_xingchi_resource.material.materialReType"
code=
"mes_xingchi_resource.material.materialReType"
...
@@ -36,64 +36,64 @@
...
@@ -36,64 +36,64 @@
></Dictionary>
></Dictionary>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"
12
"
>
<Col
:span=
"
8
"
>
<FormItem
:label=
"l('materialNumber')"
prop=
"materialNumber"
>
<FormItem
:label=
"l('materialNumber')"
prop=
"materialNumber"
>
<Input
v-model=
"entity.materialNumber"
></Input>
<Input
v-model=
"entity.materialNumber"
></Input>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"
12
"
>
<Col
:span=
"
8
"
>
<FormItem
:label=
"l('nameMaterial')"
prop=
"nameMaterial"
>
<FormItem
:label=
"l('nameMaterial')"
prop=
"nameMaterial"
>
<Input
v-model=
"entity.nameMaterial"
></Input>
<Input
v-model=
"entity.nameMaterial"
></Input>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"
12
"
>
<Col
:span=
"
8
"
>
<FormItem
:label=
"l('quantity')"
prop=
"quantity"
>
<FormItem
:label=
"l('quantity')"
prop=
"quantity"
>
<InputNumber
v-model=
"entity.quantity"
></InputNumber>
<InputNumber
v-model=
"entity.quantity"
></InputNumber>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"
12
"
>
<Col
:span=
"
8
"
>
<FormItem
:label=
"l('brand')"
prop=
"brand"
>
<FormItem
:label=
"l('brand')"
prop=
"brand"
>
<Input
v-model=
"entity.brand"
></Input>
<Input
v-model=
"entity.brand"
></Input>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"
12
"
>
<Col
:span=
"
8
"
>
<FormItem
:label=
"l('specifications')"
prop=
"specifications"
>
<FormItem
:label=
"l('specifications')"
prop=
"specifications"
>
<Input
v-model=
"entity.specifications"
></Input>
<Input
v-model=
"entity.specifications"
></Input>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"
12
"
>
<Col
:span=
"
8
"
>
<FormItem
:label=
"l('xhgg')"
prop=
"xhgg"
>
<FormItem
:label=
"l('xhgg')"
prop=
"xhgg"
>
<Input
v-model=
"entity.xhgg"
></Input>
<Input
v-model=
"entity.xhgg"
></Input>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"
12
"
>
<Col
:span=
"
8
"
>
<FormItem
:label=
"l('texture')"
prop=
"texture"
>
<FormItem
:label=
"l('texture')"
prop=
"texture"
>
<Input
v-model=
"entity.texture"
></Input>
<Input
v-model=
"entity.texture"
></Input>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"
12
"
>
<Col
:span=
"
8
"
>
<FormItem
:label=
"l('procurementStandards')"
prop=
"procurementStandards"
>
<FormItem
:label=
"l('procurementStandards')"
prop=
"procurementStandards"
>
<Input
v-model=
"entity.procurementStandards"
></Input>
<Input
v-model=
"entity.procurementStandards"
></Input>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"
12
"
>
<Col
:span=
"
8
"
>
<FormItem
:label=
"l('qualityGrade')"
prop=
"qualityGrade"
>
<FormItem
:label=
"l('qualityGrade')"
prop=
"qualityGrade"
>
<Input
v-model=
"entity.qualityGrade"
></Input>
<Input
v-model=
"entity.qualityGrade"
></Input>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"
12
"
>
<Col
:span=
"
8
"
>
<FormItem
:label=
"l('drawNum')"
prop=
"drawNum"
>
<FormItem
:label=
"l('drawNum')"
prop=
"drawNum"
>
<Input
v-model=
"entity.drawNum"
></Input>
<Input
v-model=
"entity.drawNum"
></Input>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"
12
"
>
<Col
:span=
"
8
"
>
<FormItem
:label=
"l('state')"
prop=
"state"
>
<FormItem
:label=
"l('state')"
prop=
"state"
>
<Dictionary
code=
"Process.state"
v-model=
"entity.state"
type=
"radio"
></Dictionary>
<Dictionary
code=
"Process.state"
v-model=
"entity.state"
type=
"radio"
></Dictionary>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"24"
>
<Col
:span=
"24"
>
<FormItem
:label=
"l('remark')"
prop=
"remark"
>
<FormItem
:label=
"l('remark')"
prop=
"remark"
>
<Input
v-model=
"entity.remark"
></Input>
<Input
v-model=
"entity.remark"
type=
"textarea"
:rows=
"2"
></Input>
</FormItem>
</FormItem>
</Col>
</Col>
</Row>
</Row>
...
...
pages/technology/details/routingsupporting/detail.vue
View file @
3b409d56
<
template
>
<
template
>
<div
class=
"detail"
>
<div
class=
"detail"
>
<Row>
<Row>
<Filed
:span=
"12"
:name=
"l('routingHeaderId')"
>
{{
entity
.
routingHeaderId
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('routingHeaderId')"
v-if=
"false"
>
{{
entity
.
routingHeaderId
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('routingDetailId')"
>
{{
entity
.
routingDetailId
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('routingDetailId')"
>
{{
entity
.
routingDetailId
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('routingStepId')"
>
{{
entity
.
routingStepId
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('routingStepId')"
v-if=
"false"
>
{{
entity
.
routingStepId
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('quantity')"
>
{{
entity
.
quantity
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('quantity')"
>
{{
entity
.
quantity
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('materialId')"
>
{{
entity
.
materialId
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('materialId')"
>
{{
entity
.
materialId
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('materialType')"
><state
<Filed
:span=
"12"
:name=
"l('materialType')"
><state
...
@@ -27,8 +27,8 @@
...
@@ -27,8 +27,8 @@
></state>
></state>
</Filed>
</Filed>
<Filed
:span=
"12"
:name=
"l('extend')"
v-if=
"false"
>
{{
entity
.
extend
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('extend')"
v-if=
"false"
>
{{
entity
.
extend
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('remark')"
>
{{
entity
.
remark
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('drawNum')"
>
{{
entity
.
drawNum
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('drawNum')"
>
{{
entity
.
drawNum
}}
</Filed>
<Filed
:span=
"24"
:name=
"l('remark')"
>
{{
entity
.
remark
}}
</Filed>
</Row>
</Row>
</div>
</div>
</
template
>
</
template
>
...
...
pages/technology/details/routingsupporting/edit.vue
View file @
3b409d56
...
@@ -18,17 +18,17 @@
...
@@ -18,17 +18,17 @@
</FormItem>
</FormItem>
</Col>
</Col>
-->
-->
<Col
:span=
"
12
"
>
<Col
:span=
"
8
"
>
<FormItem
:label=
"l('routingHeaderId')"
prop=
"routingHeaderId"
>
<FormItem
:label=
"l('routingHeaderId')"
prop=
"routingHeaderId"
>
<InputNumber
v-model=
"entity.routingHeaderId"
></InputNumber>
<InputNumber
v-model=
"entity.routingHeaderId"
></InputNumber>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"
12
"
>
<Col
:span=
"
8
"
>
<FormItem
:label=
"l('routingDetailId')"
prop=
"routingDetailId"
>
<FormItem
:label=
"l('routingDetailId')"
prop=
"routingDetailId"
>
<InputNumber
v-model=
"entity.routingDetailId"
></InputNumber>
<InputNumber
v-model=
"entity.routingDetailId"
></InputNumber>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"
12
"
>
<Col
:span=
"
8
"
>
<FormItem
:label=
"l('materialType')"
prop=
"materialType"
>
<FormItem
:label=
"l('materialType')"
prop=
"materialType"
>
<Dictionary
<Dictionary
code=
"mes_xingchi_resource.material.materialReType"
code=
"mes_xingchi_resource.material.materialReType"
...
@@ -36,64 +36,64 @@
...
@@ -36,64 +36,64 @@
></Dictionary>
></Dictionary>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"
12
"
>
<Col
:span=
"
8
"
>
<FormItem
:label=
"l('materialNumber')"
prop=
"materialNumber"
>
<FormItem
:label=
"l('materialNumber')"
prop=
"materialNumber"
>
<Input
v-model=
"entity.materialNumber"
></Input>
<Input
v-model=
"entity.materialNumber"
></Input>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"
12
"
>
<Col
:span=
"
8
"
>
<FormItem
:label=
"l('nameMaterial')"
prop=
"nameMaterial"
>
<FormItem
:label=
"l('nameMaterial')"
prop=
"nameMaterial"
>
<Input
v-model=
"entity.nameMaterial"
></Input>
<Input
v-model=
"entity.nameMaterial"
></Input>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"12
"
>
<Col
:span=
"8
"
>
<FormItem
:label=
"l('quantity')"
prop=
"quantity"
>
<FormItem
:label=
"l('quantity')"
prop=
"quantity"
>
<InputNumber
v-model=
"entity.quantity"
></InputNumber>
<InputNumber
v-model=
"entity.quantity"
></InputNumber>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"
12
"
>
<Col
:span=
"
8
"
>
<FormItem
:label=
"l('brand')"
prop=
"brand"
>
<FormItem
:label=
"l('brand')"
prop=
"brand"
>
<Input
v-model=
"entity.brand"
></Input>
<Input
v-model=
"entity.brand"
></Input>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"
12
"
>
<Col
:span=
"
8
"
>
<FormItem
:label=
"l('specifications')"
prop=
"specifications"
>
<FormItem
:label=
"l('specifications')"
prop=
"specifications"
>
<Input
v-model=
"entity.specifications"
></Input>
<Input
v-model=
"entity.specifications"
></Input>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"
12
"
>
<Col
:span=
"
8
"
>
<FormItem
:label=
"l('xhgg')"
prop=
"xhgg"
>
<FormItem
:label=
"l('xhgg')"
prop=
"xhgg"
>
<Input
v-model=
"entity.xhgg"
></Input>
<Input
v-model=
"entity.xhgg"
></Input>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"
12
"
>
<Col
:span=
"
8
"
>
<FormItem
:label=
"l('texture')"
prop=
"texture"
>
<FormItem
:label=
"l('texture')"
prop=
"texture"
>
<Input
v-model=
"entity.texture"
></Input>
<Input
v-model=
"entity.texture"
></Input>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"
12
"
>
<Col
:span=
"
8
"
>
<FormItem
:label=
"l('procurementStandards')"
prop=
"procurementStandards"
>
<FormItem
:label=
"l('procurementStandards')"
prop=
"procurementStandards"
>
<Input
v-model=
"entity.procurementStandards"
></Input>
<Input
v-model=
"entity.procurementStandards"
></Input>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"
12
"
>
<Col
:span=
"
8
"
>
<FormItem
:label=
"l('qualityGrade')"
prop=
"qualityGrade"
>
<FormItem
:label=
"l('qualityGrade')"
prop=
"qualityGrade"
>
<Input
v-model=
"entity.qualityGrade"
></Input>
<Input
v-model=
"entity.qualityGrade"
></Input>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"12"
>
<Col
:span=
"8"
>
<FormItem
:label=
"l('state')"
prop=
"state"
>
<Dictionary
code=
"Process.state"
v-model=
"entity.state"
type=
"radio"
></Dictionary>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('drawNum')"
prop=
"drawNum"
>
<FormItem
:label=
"l('drawNum')"
prop=
"drawNum"
>
<Input
v-model=
"entity.drawNum"
></Input>
<Input
v-model=
"entity.drawNum"
></Input>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"8"
>
<FormItem
:label=
"l('state')"
prop=
"state"
>
<Dictionary
code=
"Process.state"
v-model=
"entity.state"
type=
"radio"
></Dictionary>
</FormItem>
</Col>
<Col
:span=
"24"
>
<Col
:span=
"24"
>
<FormItem
:label=
"l('remark')"
prop=
"remark"
>
<FormItem
:label=
"l('remark')"
prop=
"remark"
>
<Input
v-model=
"entity.remark"
></Input>
<Input
v-model=
"entity.remark"
type=
"textarea"
:rows=
"2"
></Input>
</FormItem>
</FormItem>
</Col>
</Col>
</Row>
</Row>
...
...
pages/technology/index.vue
View file @
3b409d56
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
right: 0;
right: 0;
// bottom:100%;
// bottom:100%;
// right: 100%;
// right: 100%;
z-index:
990
;
z-index:
898
;
background-color: white;
background-color: white;
// background: red;
// background: red;
.top {
.top {
...
...
static/config.js
View file @
3b409d56
...
@@ -46,7 +46,7 @@ const systemApi = {
...
@@ -46,7 +46,7 @@ const systemApi = {
window
.
workflowUrl
=
`http://
${
address
}
:10060/api/services/app`
;
// 工作流地址
window
.
workflowUrl
=
`http://
${
address
}
:10060/api/services/app`
;
// 工作流地址
window
.
certificateUrl
=
`http://
${
address
}
:10090/api/services/app`
;
//Process-api
window
.
certificateUrl
=
`http://
${
address
}
:10090/api/services/app`
;
//Process-api
window
.
crmUrl
=
`http://
${
address
}
:10100/api/services/app`
;
//crm客户、合同、项目管理
window
.
crmUrl
=
`http://
${
address
}
:10100/api/services/app`
;
//crm客户、合同、项目管理
window
.
iconImg
=
`http://
${
hostA
ddress
}
:3006/imgicon/`
;
//待办任务图标路径
window
.
iconImg
=
`http://
${
a
ddress
}
:3006/imgicon/`
;
//待办任务图标路径
window
.
apsManualUrl
=
`http://
${
apsAdress
}
:10091/api/services/app`
;
//aps手工排产
window
.
apsManualUrl
=
`http://
${
apsAdress
}
:10091/api/services/app`
;
//aps手工排产
window
.
apsUrl
=
`http://
${
apsAdress
}
:10110/api/services/app`
;
//aps排产
window
.
apsUrl
=
`http://
${
apsAdress
}
:10110/api/services/app`
;
//aps排产
window
.
technologyUrl
=
`http://
${
address
}
:10031/api/services/app/`
;
window
.
technologyUrl
=
`http://
${
address
}
:10031/api/services/app/`
;
...
...
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