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
bffec7da
Commit
bffec7da
authored
Jun 15, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'product' of git.mes123.com:zhouyx/mes-ui into product-rjt
parents
c4381697
2162b618
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
75 additions
and
62 deletions
+75
-62
detail.vue
pages/handle/examine7/detail.vue
+18
-3
add.vue
pages/materiel/classification/add.vue
+53
-57
index.vue
pages/materiel/classification/index.vue
+2
-1
index.vue
pages/produce/execute/judgment/index.vue
+2
-1
No files found.
pages/handle/examine7/detail.vue
View file @
bffec7da
<
template
>
<div
class=
"detail"
style=
"width:90%;margin:0 auto"
>
<Row>
<Filed
:span=
"8"
:name=
"l('unqualifiedCode')"
>
{{
entity
.
unqualified_order_code
}}
</Filed>
<
!--
<
Filed
:span=
"8"
:name=
"l('unqualifiedCode')"
>
{{
entity
.
unqualified_order_code
}}
</Filed>
<Filed
:span=
"8"
:name=
"l('department')"
>
{{
entity
.
department_name
}}
</Filed>
<Filed
:span=
"8"
:name=
"l('customer')"
>
{{
entity
.
customer_name
}}
</Filed>
<Filed
:span=
"8"
:name=
"l('outsourcing')"
>
{{
entity
.
outsourcing_name
}}
</Filed>
...
...
@@ -11,7 +11,21 @@
<Filed
:span=
"8"
:name=
"l('code')"
>
{{
entity
.
code
}}
</Filed>
<Filed
:span=
"8"
:name=
"l('problemDesc')"
>
{{
entity
.
problem_desc
}}
</Filed>
<Filed
:span=
"8"
:name=
"l('inspectionPerson')"
>
{{
entity
.
inspection_person_name
}}
</Filed>
<Filed
:span=
"8"
:name=
"l('inspectionDate')"
>
{{
entity
.
inspection_date
}}
</Filed>
<Filed
:span=
"8"
:name=
"l('inspectionDate')"
>
{{
entity
.
inspection_date
}}
</Filed>
-->
<Filed
:span=
"12"
:name=
"l('productName')"
>
{{
entity
.
productName
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('drawnNumber')"
>
{{
entity
.
drawnNumber
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('status')"
>
<state
code=
"plan.order.status"
ref=
"state"
:value=
"entity.status"
type=
"text"
></state>
</Filed>
<Filed
:span=
"12"
:name=
"l('mesCode')"
>
{{
entity
.
mesCode
}}
</Filed>
<Filed
:span=
"12"
name=
"批次号"
>
{{
entity
.
batchNumber
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('quantity')"
>
{{
entity
.
quantity
}}
</Filed>
<Filed
:span=
"12"
name=
"节点日期"
>
{{
entity
.
demandFinishDate
}}
</Filed>
<Filed
:span=
"12"
name=
"工序名称"
>
{{
entity
.
seqName
}}
</Filed>
<Filed
:span=
"12"
name=
"问题原因"
>
{{
entity
.
reason
}}
</Filed>
<Filed
:span=
"12"
name=
"责任归属"
>
{{
entity
.
personLiableId
}}
</Filed>
<Filed
:span=
"24"
name=
"不合格产品"
>
{{
entity
.
strOder
}}
</Filed>
<Filed
:span=
"24"
name=
"审理单号"
>
{{
entity
.
code
}}
</Filed>
</Row>
</div>
</
template
>
...
...
@@ -44,6 +58,7 @@ export default {
Api
.
get
({
Id
:
this
.
idVal
}).
then
((
r
)
=>
{
if
(
r
.
success
)
{
console
.
log
(
r
)
let
formStr
=
r
.
result
.
formData
.
replace
(
/
\"
/g
,
'"'
)
let
formStr01
=
JSON
.
parse
(
formStr
)
// console.log(formStr01)
...
...
@@ -58,7 +73,7 @@ export default {
methods
:
{
load
(
v
)
{},
l
(
key
)
{
key
=
'
Unqualified
'
+
'.'
+
key
key
=
'
order_list
'
+
'.'
+
key
return
this
.
$t
(
key
)
}
},
...
...
pages/materiel/classification/add.vue
View file @
bffec7da
<
template
>
<div>
<div
class=
"p10"
>
<Form
ref=
"form"
:model=
"entity"
:rules=
"rules"
:label-width=
"90"
>
<Row>
<!--
<Col
:span=
"12"
>
...
...
@@ -29,62 +29,58 @@
</FormItem>
</Col>
<Col
:span=
"24"
>
<h4>
属性配置
</h4>
</Col>
<Col
:span=
"24"
style=
"padding:20px 0 0px 10px;margin-bottom:10px;"
class=
"table-solt"
>
<Table
border
:columns=
"columns"
:data=
"checkList"
class=
"tableCommon"
height=
"300"
>
<template
slot-scope=
"
{ row, index }" slot="title">
<div
v-if=
"row.fieldType==1||row.fieldType==2"
>
{{
row
.
title
}}
</div>
<Input
v-if=
"row.fieldType==3"
v-model=
"row.title"
placeholder=
"请输入"
@
on-blur=
"setRow(row,index)"
/>
</
template
>
<
template
slot-scope=
"{ row, index }"
slot=
"note"
>
<div
v-if=
"row.fieldType==1"
>
{{
row
.
note
}}
</div>
<Input
v-model=
"row.note"
placeholder=
"请输入"
@
on-blur=
"setRow(row,index)"
v-else
/>
</
template
>
<
template
slot-scope=
"{ row, index }"
slot=
"dataType"
>
<state
v-if=
"row.fieldType==1"
code=
"materail.category.dataType"
:value=
"row.dataType"
type=
"text"
></state>
<Dictionary
v-else
@
on-change=
"setRow(row,index)"
v-model=
"row.dataType"
code=
"materail.category.dataType"
type=
"select"
:value=
"row.dataType"
:key=
"row.dataType"
></Dictionary>
</
template
>
<!-- <template slot-scope="{ row, index }" slot="result">
<h4>
扩展属性
</h4>
<Table
border
:columns=
"columns"
:data=
"checkList"
height=
"300"
>
<template
slot-scope=
"
{ row, index }" slot="title">
<div
v-if=
"row.fieldType==1||row.fieldType==2"
>
{{
row
.
title
}}
</div>
<Input
v-if=
"row.fieldType==3"
v-model=
"row.title"
placeholder=
"请输入"
@
on-blur=
"setRow(row,index)"
/>
</
template
>
<
template
slot-scope=
"{ row, index }"
slot=
"note"
>
<div
v-if=
"row.fieldType==1"
>
{{
row
.
note
}}
</div>
<Input
v-model=
"row.note"
placeholder=
"请输入"
@
on-blur=
"setRow(row,index)"
v-else
/>
</
template
>
<
template
slot-scope=
"{ row, index }"
slot=
"dataType"
>
<state
v-if=
"row.fieldType==1"
code=
"materail.category.dataType"
:value=
"row.dataType"
type=
"text"
></state>
<Dictionary
v-else
@
on-change=
"setRow(row,index)"
v-model=
"row.dataType"
code=
"materail.category.dataType"
type=
"select"
:value=
"row.dataType"
:key=
"row.dataType"
></Dictionary>
</
template
>
<!-- <template slot-scope="{ row, index }" slot="result">
<Input v-model="row.result" placeholder="请输入" @on-blur="setRow(row,index)" />
</template>-->
<
template
slot-scope=
"{ row, index }"
slot=
"required"
>
<Checkbox
v-model=
"row.required"
@
on-change=
"setRow(row,index)"
></Checkbox>
</
template
>
<
template
slot-scope=
"{ row, index }"
slot=
"isUnique"
>
<Checkbox
v-model=
"row.isUnique"
@
on-change=
"setRow(row,index)"
></Checkbox>
</
template
>
<
template
slot-scope=
"{ row, index }"
slot=
"action"
v-if=
"row.fieldType==2||row.fieldType==3"
>
<a
@
click=
"remove(index,row)"
style=
"color:#FF7A8B"
>
删除
</a>
</
template
>
</Table>
</Col>
<Col
:span=
"24"
style=
"margin-bottom:20px;"
>
<Button
type=
"primary"
long
@
click=
"addNew"
class=
"mt10"
>
添加
</Button>
</template>-->
<
template
slot-scope=
"{ row, index }"
slot=
"required"
>
<Checkbox
v-model=
"row.required"
@
on-change=
"setRow(row,index)"
></Checkbox>
</
template
>
<
template
slot-scope=
"{ row, index }"
slot=
"isUnique"
>
<Checkbox
v-model=
"row.isUnique"
@
on-change=
"setRow(row,index)"
></Checkbox>
</
template
>
<
template
slot-scope=
"{ row, index }"
slot=
"action"
v-if=
"row.fieldType==2||row.fieldType==3"
>
<a
@
click=
"remove(index,row)"
style=
"color:#FF7A8B"
>
删除
</a>
</
template
>
</Table>
<Button
type=
"dashed"
long
@
click=
"addNew"
class=
"mt10"
>
新增属性
</Button>
</Col>
<Col
:span=
"24"
style=
"text-align: right;
"
>
<Col
:span=
"24"
class=
"tr mt10
"
>
<FormItem>
<Button
type=
"primary"
@
click=
"handleSubmit"
:disabled=
"disabled"
>
保存
</Button>
<Button
@
click=
"handleClose"
class=
"ml20"
>
取消
</Button>
...
...
@@ -103,7 +99,7 @@ export default {
entity
:
{
upId
:
0
,
code
:
0
,
status
:
0
,
status
:
0
},
disabled
:
false
,
columns
:
[
...
...
@@ -183,7 +179,7 @@ export default {
}
];
Api
.
listTable
({
conditions
:
conditions
}).
then
(
r
=>
{
Api
.
listTable
({
conditions
:
conditions
,
sortBy
:
'id'
,
isDesc
:
false
}).
then
(
r
=>
{
if
(
r
.
result
)
{
var
arr
=
r
.
result
;
this
.
checkList
=
arr
.
filter
(
function
(
item
)
{
...
...
pages/materiel/classification/index.vue
View file @
bffec7da
...
...
@@ -90,6 +90,7 @@ export default {
id
:
0
,
ids
:
[]
},
model8
:
""
,
cityList
:
[],
keys
:
""
,
expand
:
false
,
...
...
@@ -143,7 +144,7 @@ export default {
this
.
title
=
"新增"
;
this
.
detail
=
()
=>
import
(
"./add"
);
this
.
modal
=
true
;
this
.
$refs
.
chlidren
.
arr
=
[];
//
this.$refs.chlidren.arr = [];
},
add
()
{
this
.
curId
=
0
;
...
...
pages/produce/execute/judgment/index.vue
View file @
bffec7da
...
...
@@ -626,7 +626,8 @@ export default {
let
orderIds
=
[]
this
.
feilist
.
map
(
item
=>
{
orderse
.
push
(
item
.
prefix
+
'.'
+
item
.
code
)
orderIds
.
push
(
item
.
id
)
// orderIds.push(item.id)
orderIds
.
push
(
item
.
code
)
//工作流获取数据,暂时传code数组
})
let
strOder
=
orderse
.
join
(
","
)
this
.
entity
.
cause
=
this
.
orderForm
.
question
;
...
...
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