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
f01440b8
Commit
f01440b8
authored
Jun 05, 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
5d5bcee3
b1bc1b04
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
809 additions
and
143 deletions
+809
-143
add.vue
pages/materiel/classification/add.vue
+4
-3
edit.vue
pages/materiel/classification/edit.vue
+200
-2
index.vue
pages/materiel/classification/index.vue
+23
-17
add.vue
pages/materiel/classification/masterData/add.vue
+0
-0
index.vue
pages/materiel/classification/masterData/index.vue
+111
-0
sonAdd.vue
pages/materiel/classification/sonAdd.vue
+92
-0
sonEdit.vue
pages/materiel/classification/sonEdit.vue
+101
-0
index.vue
pages/materiel/classification/spareParts/index.vue
+0
-41
index.vue
pages/processDesign/ChangeSingle/index.vue
+0
-1
execute.less
pages/produce/execute/execute.less
+1
-1
index.vue
pages/produce/execute/judgment/index.vue
+105
-78
orderInfos.vue
pages/produce/execute/judgment/orderInfos.vue
+57
-0
orderSendReview.vue
pages/produce/execute/judgment/orderSendReview.vue
+109
-0
search.vue
pages/technology/search.vue
+6
-0
No files found.
pages/materiel/classification/add.vue
View file @
f01440b8
...
...
@@ -2,11 +2,11 @@
<div>
<Form
ref=
"form"
:model=
"entity"
:rules=
"rules"
:label-width=
"90"
>
<Row>
<Col
:span=
"12"
>
<
!--
<
Col
:span=
"12"
>
<FormItem
label=
"编码"
prop=
"code"
>
<Input
v-model=
"entity.code"
placeholder=
"请输入"
disabled
></Input>
</FormItem>
</Col>
</Col>
-->
<Col
:span=
"12"
>
<FormItem
label=
"名称"
prop=
"name"
>
<Input
v-model=
"entity.name"
placeholder=
"请输入"
></Input>
...
...
@@ -179,8 +179,9 @@ export default {
let
pro
=
this
.
checkList
;
Api
.
create
({
categoryDto
:
categoryDto
,
pro
:
pro
})
.
then
(
r
=>
{
if
(
r
.
result
)
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
"保存成功"
);
this
.
$emit
(
"on-ok"
);
}
else
{
this
.
$Message
.
error
(
"保存失败"
);
}
...
...
pages/materiel/classification/edit.vue
View file @
f01440b8
<
template
>
<div>
55555555
</div>
<div>
<Form
ref=
"form"
:model=
"entity"
:rules=
"rules"
:label-width=
"90"
>
<Row>
<!--
<Col
:span=
"12"
>
<FormItem
label=
"编码"
prop=
"code"
>
<Input
v-model=
"entity.code"
placeholder=
"请输入"
disabled
></Input>
</FormItem>
</Col>
-->
<Col
:span=
"12"
>
<FormItem
label=
"名称"
prop=
"name"
>
<Input
v-model=
"entity.name"
placeholder=
"请输入"
></Input>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
label=
"状态"
prop=
"status"
placeholder=
"请选择"
>
<Dictionary
code=
"materail.category.status"
v-model=
"entity.status"
type=
"select"
:value=
"entity.status"
:key=
"entity.status"
></Dictionary>
</FormItem>
</Col>
<Col
:span=
"24"
>
<FormItem
label=
"描述"
prop=
"description"
>
<Input
v-model=
"entity.description"
type=
"textarea"
placeholder=
"请输入..."
></Input>
</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="note">
<Input
v-model=
"row.note"
placeholder=
"请输入"
@
on-blur=
"setRow(row,index)"
/>
</
template
>
<
template
slot-scope=
"{ row, index }"
slot=
"datatype"
>
<!--
<Input
v-model=
"row.datatype"
placeholder=
"请输入"
@
on-blur=
"setRow(row,index)"
/>
-->
<Select
v-model=
"row.datatype"
style=
"width:200px"
@
on-change=
"setRow(row,index)"
>
<Option
v-for=
"item in cityList"
:value=
"item.value"
:key=
"item.value"
>
{{
item
.
label
}}
</Option>
</Select>
</
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
>
</Table>
</Col>
<Col
:span=
"24"
style=
"margin-bottom:20px;"
>
<Button
type=
"primary"
long
@
click=
"addNew"
class=
"mt10"
>
添加
</Button>
</Col>
<Col
:span=
"24"
style=
"text-align: right;"
>
<FormItem>
<Button
type=
"primary"
@
click=
"handleSubmit"
:disabled=
"disabled"
>
保存
</Button>
<Button
@
click=
"handleClose"
class=
"ml20"
>
取消
</Button>
</FormItem>
</Col>
</Row>
</Form>
</div>
</template>
<
script
>
import
Api
from
"./api"
;
export
default
{
data
()
{
return
{
entity
:
{
upId
:
0
,
code
:
0
},
cityList
:
[
{
value
:
"0"
,
label
:
"Number"
},
{
value
:
"1"
,
label
:
"string"
},
{
value
:
"2"
,
label
:
"Null"
},
{
value
:
"3"
,
label
:
"Boolean"
},
{
value
:
"4"
,
label
:
"Undefined"
}
],
disabled
:
false
,
columns
:
[
{
title
:
"序号"
,
type
:
"index"
,
width
:
80
,
align
:
"center"
},
{
title
:
"属性名称"
,
key
:
"title"
,
align
:
"center"
},
{
title
:
"备注"
,
key
:
"note"
,
align
:
"center"
,
slot
:
"note"
},
{
title
:
"属性类型"
,
key
:
"datatype"
,
align
:
"center"
,
slot
:
"datatype"
},
// {
// title: "是否显示",
// key: "result",
// align: "center",
// slot: "result"
// },
{
title
:
"是否必填"
,
key
:
"required"
,
align
:
"center"
,
slot
:
"required"
},
{
title
:
"是否唯一属性"
,
key
:
"isunique"
,
align
:
"center"
,
slot
:
"isunique"
}
],
checkList
:
[],
rules
:
{
name
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}]
}
};
},
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
},
mounted
()
{
this
.
tableData
();
},
methods
:
{
tableData
()
{
let
conditions
=
[];
Api
.
listTable
({
conditions
:
conditions
}).
then
(
r
=>
{
if
(
r
.
result
)
{
console
.
log
(
r
);
this
.
checkList
=
r
.
result
;
}
});
},
setRow
()
{
this
.
$set
(
this
.
checkList
,
index
,
row
);
},
addNew
()
{},
handleSubmit
()
{
this
.
$refs
.
form
.
validate
(
v
=>
{
if
(
v
)
{
let
categoryDto
=
this
.
entity
;
let
pro
=
this
.
checkList
;
Api
.
create
({
categoryDto
:
categoryDto
,
pro
:
pro
})
.
then
(
r
=>
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
"保存成功"
);
this
.
$emit
(
"on-ok"
);
}
else
{
this
.
$Message
.
error
(
"保存失败"
);
}
})
.
catch
(
err
=>
{
this
.
disabled
=
false
;
this
.
$Message
.
error
(
"保存失败"
);
});
}
});
},
handleClose
()
{
this
.
$emit
(
"on-close"
);
}
}
};
</
script
>
pages/materiel/classification/index.vue
View file @
f01440b8
...
...
@@ -85,8 +85,8 @@ export default {
}
};
},
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
'loadDictionary'
)
// 加载数据字典
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
},
created
()
{
this
.
loadTree
();
...
...
@@ -104,19 +104,26 @@ async fetch({ store, params }) {
addNew
()
{
// this.nodeInfo.id = 0;
// let conditions = [];
// debugger
this
.
add
();
this
.
curId
=
0
;
this
.
title
=
"新增"
;
this
.
detail
=
()
=>
import
(
"./add"
);
this
.
modal
=
true
;
},
add
()
{
//
this.curId = 0;
this
.
curId
=
0
;
this
.
title
=
"新增"
;
this
.
detail
=
()
=>
import
(
"./
a
dd"
);
this
.
detail
=
()
=>
import
(
"./
sonA
dd"
);
this
.
modal
=
true
;
},
edit
()
{
if
(
this
.
nodeInfo
.
upId
==
0
)
{
this
.
detail
=
()
=>
import
(
"./edit"
);
}
else
{
this
.
detail
=
()
=>
import
(
"./sonEdit"
);
}
this
.
curId
=
this
.
nodeInfo
.
id
;
this
.
title
=
"编辑"
;
this
.
detail
=
()
=>
import
(
"./edit"
);
this
.
modal
=
true
;
},
remove
()
{
...
...
@@ -172,17 +179,16 @@ async fetch({ store, params }) {
loadTree
()
{
let
conditions
=
[];
Api
.
list
({
conditions
:
conditions
}).
then
(
r
=>
{
setTree
(
r
.
result
);
function
setTree
(
data
)
{
data
.
map
(
u
=>
{
u
.
title
=
u
.
name
;
var
data
=
this
.
$u
.
toTree
(
r
.
result
,
0
,
u
=>
{
u
.
title
=
u
.
code
+
u
.
name
;
u
.
value
=
u
.
id
;
if
(
u
.
children
)
{
setTree
(
u
.
children
);
}
});
}
var
data
=
r
.
result
;
u
.
expand
=
true
;
},
"upId"
);
this
.
list
=
this
.
$u
.
clone
(
data
);
});
},
...
...
pages/materiel/classification/
spareParts
/add.vue
→
pages/materiel/classification/
masterData
/add.vue
View file @
f01440b8
File moved
pages/materiel/classification/masterData/index.vue
0 → 100644
View file @
f01440b8
<
template
>
<div
class=
"master-data"
>
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
>
<template
slot=
"easySearch"
>
<Form
ref=
"formInline"
:model=
"easySearch"
inline
>
<FormItem
prop=
"keys"
>
<Input
placeholder=
"请输入编码/名称"
v-width=
"200"
v-model=
"easySearch.keys.value"
clearable
/>
</FormItem>
<FormItem>
<Button
type=
"primary"
@
click=
"search"
>
查询
</Button>
</FormItem>
</Form>
</
template
>
<
template
slot=
"buttons"
>
<Button
type=
"primary"
@
click=
"add"
>
新增
</Button>
</
template
>
</DataGrid>
<Modal
v-model=
"modal"
:title=
"title"
width=
"1120"
footer-hide
>
<component
:is=
"detail"
:eid=
"curId"
@
on-close=
"cancel"
@
on-ok=
"ok"
/>
</Modal>
</div>
</template>
<
script
>
export
default
{
data
()
{
return
{
action
:
""
,
detail
:
null
,
modal
:
false
,
curId
:
0
,
easySearch
:
{
keys
:
{
op
:
"name,code"
,
value
:
null
}
},
title
:
""
,
columns
:
[
{
key
:
"code"
,
title
:
"编码"
,
align
:
"left"
,
width
:
200
,
easy
:
true
,
high
:
true
},
{
key
:
"name"
,
title
:
"名称"
,
align
:
"left"
,
easy
:
true
,
high
:
true
,
tooltip
:
true
},
{
title
:
"操作"
,
key
:
"action"
,
width
:
260
,
align
:
"left"
,
render
:
(
h
,
params
)
=>
{
return
h
(
"div"
,
{
class
:
"action"
},
[
h
(
"op"
,
{
attrs
:
{
oprate
:
"edit"
},
on
:
{
click
:
()
=>
this
.
edit
(
params
.
row
)
}
},
"编辑"
),
h
(
"op"
,
{
attrs
:
{
oprate
:
"delete"
},
on
:
{
click
:
()
=>
this
.
remove
(
params
.
row
.
id
)
}
},
"删除"
)
]);
}
}
]
};
},
methods
:
{
edit
()
{
this
.
modal
=
true
;
this
.
detail
=
()
=>
import
(
"./add"
);
},
remove
()
{},
add
()
{
this
.
modal
=
true
;
this
.
detail
=
()
=>
import
(
"./add"
);
},
search
()
{
this
.
$refs
.
grid
.
reload
(
this
.
easySearch
);
},
ok
()
{
// this.$refs.grid.load();
this
.
modal
=
false
;
this
.
curId
=
0
;
},
cancel
()
{
this
.
curId
=
0
;
this
.
modal
=
false
;
}
}
};
</
script
>
<
style
lang=
"less"
scoped
>
.spare-parts {
width: 100%;
height: 100%;
}
</
style
>
\ No newline at end of file
pages/materiel/classification/sonAdd.vue
0 → 100644
View file @
f01440b8
<
template
>
<div>
<Form
ref=
"form"
:model=
"entity"
:rules=
"rules"
:label-width=
"90"
>
<Row>
<Col
:span=
"12"
>
<FormItem
label=
"上级名称"
prop=
"upName"
>
<Input
v-model=
"upName"
placeholder=
"请输入"
disabled
></Input>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
label=
"编码"
prop=
"code"
>
<Input
v-model=
"entity.code"
placeholder=
"请输入"
disabled
></Input>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
label=
"名称"
prop=
"name"
>
<Input
v-model=
"entity.name"
placeholder=
"请输入"
></Input>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
label=
"状态"
prop=
"status"
placeholder=
"请选择"
>
<Dictionary
code=
"materail.category.status"
v-model=
"entity.status"
type=
"select"
:value=
"entity.status"
:key=
"entity.status"
></Dictionary>
</FormItem>
</Col>
<Col
:span=
"24"
>
<FormItem
label=
"描述"
prop=
"description"
>
<Input
v-model=
"entity.description"
type=
"textarea"
placeholder=
"请输入..."
></Input>
</FormItem>
</Col>
<Col
:span=
"24"
style=
"text-align: right;"
>
<FormItem>
<Button
type=
"primary"
@
click=
"handleSubmit"
:disabled=
"disabled"
>
保存
</Button>
<Button
@
click=
"handleClose"
class=
"ml20"
>
取消
</Button>
</FormItem>
</Col>
</Row>
</Form>
</div>
</
template
>
<
script
>
import
Api
from
"./api"
;
export
default
{
data
()
{
return
{
entity
:
{
upId
:
this
.
nodeInfo
.
id
,
code
:
0
},
upName
:
this
.
nodeInfo
.
title
,
disabled
:
false
,
rules
:
{
name
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}]
}
};
},
props
:
[
"nodeInfo"
],
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
},
mounted
()
{},
methods
:
{
handleSubmit
()
{
this
.
$refs
.
form
.
validate
(
v
=>
{
if
(
v
)
{
Api
.
create
({
categoryDto
:
this
.
entity
,
pro
:
[]
})
.
then
(
r
=>
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
"保存成功"
);
this
.
$emit
(
"on-ok"
);
}
else
{
this
.
$Message
.
error
(
"保存失败"
);
}
})
.
catch
(
err
=>
{
this
.
disabled
=
false
;
this
.
$Message
.
error
(
"保存失败"
);
});
}
});
},
handleClose
()
{
this
.
$emit
(
"on-close"
);
}
}
};
</
script
>
pages/materiel/classification/sonEdit.vue
0 → 100644
View file @
f01440b8
<
template
>
<div>
<Form
ref=
"form"
:model=
"entity"
:rules=
"rules"
:label-width=
"90"
>
<Row>
<Col
:span=
"12"
>
<FormItem
label=
"上级名称"
prop=
"upName"
>
<Input
v-model=
"upName"
placeholder=
"请输入"
disabled
></Input>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
label=
"编码"
prop=
"code"
>
<Input
v-model=
"entity.code"
placeholder=
"请输入"
disabled
></Input>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
label=
"名称"
prop=
"name"
>
<Input
v-model=
"entity.name"
placeholder=
"请输入"
></Input>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
label=
"状态"
prop=
"status"
placeholder=
"请选择"
>
<Dictionary
code=
"materail.category.status"
v-model=
"entity.status"
type=
"select"
:value=
"entity.status"
:key=
"entity.status"
></Dictionary>
</FormItem>
</Col>
<Col
:span=
"24"
>
<FormItem
label=
"描述"
prop=
"description"
>
<Input
v-model=
"entity.description"
type=
"textarea"
placeholder=
"请输入..."
></Input>
</FormItem>
</Col>
<Col
:span=
"24"
style=
"text-align: right;"
>
<FormItem>
<Button
type=
"primary"
@
click=
"handleSubmit"
:disabled=
"disabled"
>
保存
</Button>
<Button
@
click=
"handleClose"
class=
"ml20"
>
取消
</Button>
</FormItem>
</Col>
</Row>
</Form>
</div>
</
template
>
<
script
>
import
Api
from
"./api"
;
export
default
{
data
()
{
return
{
entity
:
{
upId
:
0
,
code
:
0
},
upName
:
this
.
nodeInfo
.
title
,
disabled
:
false
,
rules
:
{
name
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}]
}
};
},
props
:
[
"nodeInfo"
],
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
},
mounted
()
{
this
.
get
();
},
methods
:
{
get
()
{
Api
.
get
({
id
:
this
.
nodeInfo
.
id
}).
then
(
r
=>
{
if
(
r
.
result
)
{
this
.
entity
=
r
.
result
;
}
});
},
handleSubmit
()
{
this
.
$refs
.
form
.
validate
(
v
=>
{
if
(
v
)
{
Api
.
update
({
categoryDto
:
this
.
entity
,
pro
:
[]
})
.
then
(
r
=>
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
"保存成功"
);
this
.
$emit
(
"on-ok"
);
}
else
{
this
.
$Message
.
error
(
"保存失败"
);
}
})
.
catch
(
err
=>
{
this
.
disabled
=
false
;
this
.
$Message
.
error
(
"保存失败"
);
});
}
});
},
handleClose
()
{
this
.
$emit
(
"on-close"
);
}
}
};
</
script
>
pages/materiel/classification/spareParts/index.vue
deleted
100644 → 0
View file @
5d5bcee3
<
template
>
<div
class=
"spare-parts"
>
<Button
type=
"dashed"
@
click=
"add"
>
新增
</Button>
<Modal
v-model=
"addModal"
title=
"新增"
footer-hide
width=
'1000'
>
<Add
@
on-close=
"cancel"
@
on-ok=
"addOk"
ref=
"add"
/>
</Modal>
</div>
</
template
>
<
script
>
import
Add
from
"./add"
;
export
default
{
components
:
{
Add
},
data
()
{
return
{
addModal
:
false
};
},
methods
:
{
add
()
{
this
.
addModal
=
true
;
},
remove
(){
},
addOk
()
{
this
.
addModal
=
false
;
},
cancel
()
{
this
.
addModal
=
false
;
}
}
};
</
script
>
<
style
lang=
"less"
scoped
>
.spare-parts {
width: 100%;
height: 100%;
}
</
style
>
\ No newline at end of file
pages/processDesign/ChangeSingle/index.vue
View file @
f01440b8
...
...
@@ -6,7 +6,6 @@
<Changesingle
/>
</TabPane>
<TabPane
label=
"不合格审理单"
name=
"unqualifiedorder"
>
<unqualifiedorder
ref=
"unqualifiedorder"
></unqualifiedorder>
</TabPane>
<TabPane
label=
"生产协调单"
name=
"technicalcoordination"
>
...
...
pages/produce/execute/execute.less
View file @
f01440b8
...
...
@@ -155,7 +155,7 @@
}
.ivu-drawer-body {
padding: 0;
height: calc(100% -
210
px);
height: calc(100% -
115
px);
.order_list{
.select_t {
padding: 15px 20px;
...
...
pages/produce/execute/judgment/index.vue
View file @
f01440b8
...
...
@@ -9,18 +9,12 @@
<Button
class=
"button"
type=
"primary"
@
click=
"rechecked"
>
反选
</Button>
</p>
<div
class=
"list01"
>
<!-- -->
<Tag
type=
"dot"
:checkable=
"true"
class=
"tag_card"
size=
"large"
type=
"dot"
:checkable=
"true"
class=
"tag_card"
size=
"large"
v-for=
"(item,index) in cardlist"
:name=
"item.id"
:key=
"index"
:checked=
"item.checked"
color=
"primary"
@
on-change=
"changeCards"
:name=
"item.id"
:key=
"index"
:checked=
"item.checked"
color=
"primary"
@
on-change=
"changeCards"
>
{{
item
.
prefix
}}
.
{{
item
.
code
}}
</Tag>
</div>
</div>
...
...
@@ -47,7 +41,7 @@
:checkable=
"false"
closable
@
on-close=
"hegeClose"
>
{{
item
.
code
}}
</Tag>
>
{{
item
.
prefix
}}
.
{{
item
.
code
}}
</Tag>
</div>
</div>
<div
class=
"mass_list rangbu"
v-if=
"ranglist.length>0"
>
...
...
@@ -60,15 +54,11 @@
</h2>
<div
class=
"list02"
>
<Tag
type=
"dot"
class=
"tag_card02"
v-for=
"(item,index) in ranglist"
:key=
"index"
:name=
"item.id"
:checkable=
"false"
closable
@
on-close=
"handleClose"
>
{{
item
.
code
}}
</Tag>
type=
"dot"
class=
"tag_card02"
v-for=
"(item,index) in ranglist"
:key=
"index"
:name=
"item.id"
:checkable=
"false"
closable
@
on-close=
"handleClose"
>
{{
item
.
prefix
}}
.
{{
item
.
code
}}
</Tag>
</div>
</div>
<div
class=
"mass_list fanxiu_box"
v-if=
"fanlist.length>0"
>
...
...
@@ -80,15 +70,11 @@
</h2>
<div
class=
"list02"
>
<Tag
type=
"dot"
class=
"tag_card02"
v-for=
"(item,index) in fanlist"
:key=
"index"
:name=
"item.id"
:checkable=
"false"
closable
@
on-close=
"fanClose"
>
{{
item
.
code
}}
</Tag>
type=
"dot"
class=
"tag_card02"
v-for=
"(item,index) in fanlist"
:key=
"index"
:name=
"item.id"
:checkable=
"false"
closable
@
on-close=
"fanClose"
>
{{
item
.
prefix
}}
.
{{
item
.
code
}}
</Tag>
</div>
</div>
<div
class=
"mass_list fei_box"
v-if=
"feilist.length>0"
>
...
...
@@ -100,15 +86,11 @@
</h2>
<div
class=
"list02"
>
<Tag
type=
"dot"
class=
"tag_card02"
v-for=
"(item,index) in feilist"
:key=
"index"
:name=
"item.id"
:checkable=
"false"
closable
@
on-close=
"feiClose"
>
{{
item
.
code
}}
</Tag>
type=
"dot"
class=
"tag_card02"
v-for=
"(item,index) in feilist"
:key=
"index"
:name=
"item.id"
:checkable=
"false"
closable
@
on-close=
"feiClose"
>
{{
item
.
prefix
}}
.
{{
item
.
code
}}
</Tag>
</div>
</div>
<div
class=
"fei_right"
v-if=
"feilist.length>0"
>
...
...
@@ -134,14 +116,9 @@
</div>
</div>
<div
class=
"futer flex fc-ev"
v-if=
"ranglist.length>0||fanlist.length>0||feilist.length>0"
>
<Button
class=
"button"
size=
"large"
type=
"primary"
@
click=
"sendOrder"
v-if=
"feilist.length>0"
>
送审
</Button>
<Button
class=
"button"
size=
"large"
type=
"primary"
@
click=
"sendOrder"
v-if=
"feilist.length>0"
>
送审
</Button>
<Button
class=
"button"
size=
"large"
type=
"primary"
@
click=
"submit"
v-else
>
提交
</Button>
<!-- :disabled="hegelist.length!=0&&fanlist.length!=0&&ranglist.length!=0" -->
<Button
class=
"button"
size=
"large"
@
click=
"toOrder"
>
取消
</Button>
</div>
<!-- 订单送审 -->
...
...
@@ -160,7 +137,7 @@
</
template
>
<
script
>
import
Api
from
"../api"
;
import
OrderSendReview
from
"
@/components/orderOperator
/orderSendReview"
;
import
OrderSendReview
from
"
.
/orderSendReview"
;
export
default
{
name
:
"starOrder"
,
components
:
{
OrderSendReview
},
...
...
@@ -172,6 +149,7 @@ export default {
mTitle
:
"确认弹框"
,
num
:
""
,
surMasg
:
""
,
entity
:
{},
//获取展示数据
rules
:
{
question
:
[
{
...
...
@@ -225,18 +203,37 @@ export default {
},
methods
:
{
loadFun
()
{
let
pid
=
this
.
$route
.
query
.
id
;
// JSON.stringify()
let
pid
=
Number
(
this
.
$route
.
query
.
id
)
;
// JSON.stringify()
Api
.
getpaged
({
id
:
pid
}).
then
(
res
=>
{
if
(
res
.
success
)
{
let
resoult
=
res
.
result
;
resoult
.
filter
(
u
=>
{
u
.
checked
=
false
;
if
(
u
.
productStatus
==
1
){
this
.
hegelist
.
push
(
u
)
}
if
(
u
.
productStatus
==
2
){
this
.
feilist
.
push
(
u
)
}
if
(
u
.
productStatus
==
3
){
this
.
ranglist
.
push
(
u
)
}
if
(
u
.
productStatus
==
4
){
this
.
fanlist
.
push
(
u
)
}
if
(
u
.
productStatus
==
0
){
this
.
cardlist
.
push
(
u
)
}
});
this
.
cardlist
=
resoult
;
}
else
{
console
.
log
(
res
.
error
);
}
})
.
catch
(
e
=>
{
this
.
$Message
.
error
(
"连接错误"
);
});
Api
.
orderanddispatchinfos
({
id
:
pid
}).
then
(
res
=>
{
if
(
res
.
success
&&
res
.
result
)
{
this
.
entity
=
res
.
result
;
}
})
},
// 全选
allcheck
()
{
...
...
@@ -345,7 +342,8 @@ export default {
if
(
unmb
==
3
)
{
this
.
cansolfei
();
this
.
suModal
=
false
;
}
else
{
}
if
(
unmb
==
0
)
{
this
.
cansolhege
();
this
.
suModal
=
false
;
}
...
...
@@ -356,21 +354,21 @@ export default {
v
.
productStatus
=
0
this
.
cardlist
.
unshift
(
v
);
});
this
.
hege
p
list
=
[];
this
.
hegelist
=
[];
},
hegeClose
(
event
,
name
)
{
let
hegeold
=
this
.
hegelist
;
let
ind
e
=
this
.
hegelist
.
findIndex
(
item
=>
{
return
item
.
id
===
name
;
let
ind
=
this
.
hegelist
.
findIndex
(
hg
item
=>
{
return
hg
item
.
id
===
name
;
});
let
utemlist
=
hegeold
.
filter
(
u
tem
=>
{
if
(
u
tem
.
id
==
name
)
{
u
tem
.
productStatus
=
0
return
u
tem
;
let
hgtemlist
=
hegeold
.
filter
(
hg
tem
=>
{
if
(
hg
tem
.
id
==
name
)
{
hg
tem
.
productStatus
=
0
return
hg
tem
;
}
});
this
.
hegelist
.
splice
(
ind
e
,
1
);
this
.
cardlist
.
splice
(
0
,
0
,
u
temlist
[
0
]);
this
.
hegelist
.
splice
(
ind
,
1
);
this
.
cardlist
.
splice
(
0
,
0
,
hg
temlist
[
0
]);
},
cansolRang
()
{
let
rangblist
=
this
.
ranglist
;
...
...
@@ -426,26 +424,54 @@ export default {
},
// 提交
submit
()
{
this
.
$Message
.
success
(
"提交中..."
);
console
.
log
(
this
.
ranglist
)
// this.feilist.cause = this.orderForm.question;
// this.feilist.reporter = this.orderForm.useroption;
let
hegeops
=
{
prodcutIds
:
[],
productStatus
:
this
.
hegelist
[
0
].
productStatus
||
''
};
let
rangops
=
{
prodcutIds
:
[],
productStatus
:
this
.
ranglist
[
0
].
productStatus
||
''
};
let
fanxops
=
{
prodcutIds
:
[],
productStatus
:
this
.
fanlist
[
0
].
productStatus
||
''
};
// let prodcutIds = [],productStatus=this.hegelist[0].productStatus;
this
.
hegelist
.
map
(
uh
=>
{
hegeops
.
prodcutIds
.
push
(
uh
.
id
)})
this
.
ranglist
.
map
(
ur
=>
{
rangops
.
prodcutIds
.
push
(
ur
.
id
)})
this
.
fanlist
.
map
(
uf
=>
{
fanxops
.
prodcutIds
.
push
(
uf
.
id
)})
let
lists
=
[
hegeops
,
rangops
,
fanxops
];
let
parmes
=
{
dispatchId
:
this
.
$route
.
query
.
id
,
list
:
[
{
"productStatus"
:
0
,
"prodcutIds"
:
[
0
],
"cause"
:
"string"
,
"reporter"
:
"string"
}
]
orderId
:
this
.
$route
.
query
.
orderId
,
list
:
lists
// [
// this.feilist,
// this.hegelist,
// this.ranglist,
// this.fanlist,
// {
// "productStatus": 0,
// "prodcutIds": [
// 0
// ],
// "cause": "string",
// "reporter": "string"
// }
// ]
};
let
orderId
=
this
.
$route
.
query
.
orderId
;
let
executeId
=
this
.
$route
.
query
.
executeId
;
console
.
log
()
// Api.submitData().then(res=>{
// })
// let executeId = this.$route.query.executeId;
console
.
log
(
parmes
)
Api
.
submitData
(
parmes
).
then
(
res
=>
{
if
(
res
.
success
){
this
.
$Message
.
success
(
"提交成功!"
);
}
else
{
this
.
$Message
.
success
(
"提交失败~"
);
}
})
},
// 送审
sendOrder
()
{
...
...
@@ -453,6 +479,7 @@ export default {
if
(
valid
)
{
// this.$Message.success("送审...")
this
.
ModalOrder
=
true
;
this
.
$refs
.
orderSendReview
.
intData
(
this
.
entity
);
}
});
},
...
...
pages/produce/execute/judgment/orderInfos.vue
0 → 100644
View file @
f01440b8
<
template
>
<div
class=
"detail"
>
<Row>
<Filed
:span=
"12"
:name=
"l('productName')"
>
{{
info
.
orderInfo
.
productName
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('drawnNumber')"
>
{{
info
.
orderInfo
.
drawnNumber
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('status')"
>
{{
info
.
orderInfo
.
projectNumber
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('mesCode')"
>
{{
info
.
orderInfo
.
mesCode
}}
</Filed>
<Filed
:span=
"12"
name=
"批次号"
>
{{
info
.
orderInfo
.
batchNumber
}}
</Filed>
<!--
<Filed
:span=
"8"
:name=
"l('batchNumber')"
>
{{
info
.
orderInfo
.
batchNumber
}}
</Filed>
-->
<Filed
:span=
"12"
:name=
"l('quantity')"
>
{{
info
.
orderInfo
.
quantity
}}
</Filed>
<Filed
:span=
"12"
name=
"节点日期"
>
{{
info
.
orderInfo
.
demandFinishDate
}}
</Filed>
<Filed
:span=
"12"
name=
"不合格产品数量"
>
{{
info
.
orderInfo
.
demandFinishDate
}}
</Filed>
<Filed
:span=
"12"
name=
"问题原因"
>
{{
info
.
orderInfo
.
demandFinishDate
}}
</Filed>
<Filed
:span=
"12"
name=
"责任归属"
>
{{
info
.
orderInfo
.
demandFinishDate
}}
</Filed>
<Filed
:span=
"24"
name=
"不合格产品号"
>
{{
info
.
orderInfo
.
demandFinishDate
}}
</Filed>
<!--
<Filed
:span=
"8"
:name=
"l('stage')"
>
<state
code=
"plan.order.stage"
:value=
"info.orderInfo.stage+''"
type=
"text"
></state>
</Filed>
<Filed
:span=
"8"
:name=
"l('taskType')"
>
<state
code=
"plan.order.taskType"
:value=
"info.orderInfo.taskType+''"
type=
"text"
></state>
</Filed>
<Filed
:span=
"8"
:name=
"l('materialId')"
>
<state
code=
"plan.order.material"
:value=
"info.orderInfo.materialId+''"
type=
"text"
></state>
</Filed>
-->
</Row>
</div>
</
template
>
<
script
>
export
default
{
name
:
'orderInfos'
,
props
:
[
'info'
],
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
'loadDictionary'
)
// 加载数据字典
},
data
()
{
return
{}
},
methods
:
{
arry2Name
(
arryList
,
values
)
{
//预警类别转换
var
codes
=
arryList
var
name
=
''
for
(
let
i
in
codes
)
{
if
(
values
==
codes
[
i
].
value
)
{
name
=
codes
[
i
].
name
}
}
return
name
},
l
(
key
)
{
key
=
'order_list'
+
'.'
+
key
return
this
.
$t
(
key
)
}
}
}
</
script
>
\ No newline at end of file
pages/produce/execute/judgment/orderSendReview.vue
0 → 100644
View file @
f01440b8
<
template
>
<div
style=
"width:80%;margin:0 auto"
:style=
"
{ height: divHeight }">
<OrderInfos
v-if=
"info.status"
:info=
"info"
></OrderInfos>
<!-- 批量送审展示列表 -->
<!--
<Table
:info1=
"info1"
:loading=
"loading"
border
:columns=
"columns1"
:data=
"dataList"
class=
"tableCommon"
v-if=
"osrMoreList"
></Table>
-->
<Process
ref=
"userProcess"
schemaIdVal=
"c2e09c9b-02a9-4188-97a6-cdb68d50a64a"
/>
</div>
</
template
>
<
script
>
import
OrderInfos
from
'./orderInfos'
import
Process
from
'@/components/orderOperator/process'
export
default
{
name
:
'orderSendReview'
,
components
:
{
OrderInfos
,
Process
},
data
()
{
return
{
loading
:
false
,
divHeight
:
'300px'
,
osrOneList
:
false
,
//一条数据显示详细
osrMoreList
:
false
,
//多条数据只显示列表
info
:
{
status
:
true
,
orderInfo
:
[],
},
orderSearchForm
:
{
reviewUser
:
''
//订单名称
},
columns1
:
[
{
title
:
'订单编码'
,
key
:
'mesCode'
,
width
:
180
,
tooltip
:
true
},
{
title
:
'任务类型'
,
key
:
'taskType'
,
align
:
'center'
,
width
:
100
,
tooltip
:
true
},
{
title
:
'产品名称'
,
key
:
'productName'
,
tooltip
:
true
},
{
title
:
'阶段'
,
key
:
'stage'
,
width
:
80
},
{
title
:
'材料'
,
key
:
'materialId'
,
width
:
100
,
tooltip
:
true
},
{
title
:
'数量'
,
key
:
'quantity'
,
align
:
'right'
,
width
:
70
}
],
dataList
:
[],
dataListRetrun
:
[],
//确定后返回数据
operatorIdList
:
[],
//操作员id
// } //确定后返回数据
}
},
created
()
{
var
theight
=
window
.
innerHeight
-
630
+
'px'
this
.
divHeight
=
theight
},
mounted
()
{
window
.
onresize
=
()
=>
{
///浏览器窗口大小变化
return
(()
=>
{
window
.
screenHeight
=
window
.
innerHeight
this
.
divHeight
=
window
.
screenHeight
-
630
+
'px'
})()
}
},
methods
:
{
intData
(
data
)
{
//打开modal层时给订单list赋值
if
(
data
){
this
.
info
.
Unqualified
=
data
}
},
returnDataList
()
{
let
ues
=
this
.
$refs
.
userProcess
this
.
operatorIdList
=
ues
.
immutData
return
this
.
operatorIdList
}
}
}
</
script
>
pages/technology/search.vue
View file @
f01440b8
<
template
>
<Form
ref=
"form"
:model=
"condition"
:label-width=
"100"
>
<Row>
<Col
:span=
"12"
v-if=
"condition.id.show"
>
<FormItem
:label=
"编号"
prop=
"id"
>
<Input
v-model=
"condition.id.value"
></Input>
</FormItem>
</Col>
<Col
:span=
"12"
v-if=
"condition.classId.show"
>
<FormItem
:label=
"l('classId')"
prop=
"classId"
>
<Input
v-model=
"condition.classId.value"
></Input>
...
...
@@ -151,6 +156,7 @@ export default {
condition
:
{
creationTime
:
{
op
:
"Range"
,
value
:
null
,
show
:
true
},
creatorUserId
:
{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
id
:
{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
lastModificationTime
:
{
op
:
"Range"
,
value
:
null
,
show
:
true
},
lastModifierUserId
:
{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
classId
:
{
op
:
"Equal"
,
value
:
null
,
show
:
false
},
...
...
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