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
71689157
Commit
71689157
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
a7030a13
06b2c711
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
149 additions
and
107 deletions
+149
-107
files.vue
components/page/files.vue
+2
-2
productNumberSelect.vue
components/page/productNumberSelect.vue
+1
-1
add.vue
pages/materiel/classification/add.vue
+121
-37
api.js
pages/materiel/classification/api.js
+3
-4
edit.vue
pages/materiel/classification/edit.vue
+3
-0
index.vue
pages/materiel/classification/index.vue
+11
-7
index.vue
pages/produce/execute/ProcessCase/index.vue
+0
-16
index.vue
pages/produce/execute/index.vue
+0
-36
orderlist.vue
pages/produce/orderlist.vue
+2
-0
add.vue
pages/technology/productMix/product/add.vue
+3
-2
edit.vue
pages/technology/productMix/product/edit.vue
+2
-2
config.js
static/config.js
+1
-0
No files found.
components/page/files.vue
View file @
71689157
...
...
@@ -128,7 +128,7 @@ export default {
},
methods
:
{
listData
(
li
,
index
)
{
this
.
$emit
(
"clickItem"
,
this
.
downUrl
+
li
.
filePath
);
this
.
$emit
(
"clickItem"
,
this
.
downUrl
+
li
.
filePath
,
li
.
filePath
);
this
.
isactive
=
index
;
},
...
...
@@ -136,7 +136,7 @@ export default {
this
.
per
=
0
;
this
.
vshowPro
=
true
;
},
//上传成功文件
uploadSuccess
(
response
,
file
,
fileList
)
{
if
(
this
.
Photos
)
{
...
...
components/page/productNumberSelect.vue
View file @
71689157
...
...
@@ -30,7 +30,7 @@ export default {
this
.
getCodes
();
},
props
:
{
eid
:
Number
,
eid
:
[
Number
,
String
]
,
value
:
[
String
,
Number
,
Array
],
placeholder
:
{
type
:
String
,
...
...
pages/materiel/classification/add.vue
View file @
71689157
...
...
@@ -3,48 +3,57 @@
<Form
ref=
"form"
:model=
"entity"
:rules=
"rules"
:label-width=
"90"
>
<Row>
<Col
:span=
"12"
>
<FormItem
label=
"编码"
prop=
"
userUnit
"
>
<Input
v-model=
"entity.
userUnit"
placeholder=
"请输入"
></Input>
<FormItem
label=
"编码"
prop=
"
code
"
>
<Input
v-model=
"entity.
code"
placeholder=
"请输入"
disabled
></Input>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
label=
"名称"
prop=
"
taskBased
"
>
<Input
v-model=
"entity.
taskBased
"
placeholder=
"请输入"
></Input>
<FormItem
label=
"名称"
prop=
"
name
"
>
<Input
v-model=
"entity.
name
"
placeholder=
"请输入"
></Input>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
label=
"状态"
prop=
"productName"
placeholder=
"请选择"
>
<Select
v-model=
"entity.productName"
>
<Option
value=
"0"
>
New York
</Option>
<Option
value=
"1"
disabled
>
London
</Option>
<Option
value=
"2"
>
Sydney
</Option>
</Select>
<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=
"
productName
"
>
<Input
v-model=
"entity.
productName
"
type=
"textarea"
placeholder=
"请输入..."
></Input>
<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"
>
<template
slot-scope=
"
{ row, index }" slot="n
am
e">
<Input
v-model=
"row.n
am
e"
placeholder=
"请输入"
@
on-blur=
"setRow(row,index)"
/>
<Table
border
:columns=
"columns"
:data=
"checkList"
class=
"tableCommon"
height=
"300"
>
<template
slot-scope=
"
{ row, index }" slot="n
ot
e">
<Input
v-model=
"row.n
ot
e"
placeholder=
"请输入"
@
on-blur=
"setRow(row,index)"
/>
</
template
>
<
template
slot-scope=
"{ row, index }"
slot=
"require"
>
<Input
v-model=
"row.require"
placeholder=
"请输入"
@
on-blur=
"setRow(row,index)"
/>
<
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"
>
<
!-- <
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=
"pash"
>
<inputFile
v-model=
"row.file"
:files=
"true"
:parms=
"getParams(row.fileId)"
/>
</
template
>
<
template
slot-scope=
"{ row, index }"
slot=
"remark"
>
<Input
v-model=
"row.remark"
placeholder=
"请输入"
@
on-blur=
"setRow(row,index)"
/>
<
template
slot-scope=
"{ row, index }"
slot=
"isunique"
>
<Checkbox
v-model=
"row.isunique"
@
on-change=
"setRow(row,index)"
></Checkbox>
</
template
>
</Table>
</Col>
...
...
@@ -62,10 +71,36 @@
</div>
</template>
<
script
>
import
Api
from
"./api"
;
export
default
{
data
()
{
return
{
entity
:
{},
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
:
[
{
...
...
@@ -75,38 +110,87 @@ export default {
align
:
"center"
},
{
title
:
"检验项目"
,
key
:
"name"
,
title
:
"属性名称"
,
key
:
"title"
,
align
:
"center"
},
{
title
:
"备注"
,
key
:
"note"
,
align
:
"center"
,
slot
:
"note"
},
{
title
:
"属性类型"
,
key
:
"datatype"
,
align
:
"center"
,
slot
:
"
nam
e"
slot
:
"
datatyp
e"
},
// {
// title: "是否显示",
// key: "result",
// align: "center",
// slot: "result"
// },
{
title
:
"
要求
"
,
key
:
"require"
,
title
:
"
是否必填
"
,
key
:
"require
d
"
,
align
:
"center"
,
slot
:
"require"
slot
:
"require
d
"
},
{
title
:
"
预测结果
"
,
key
:
"
result
"
,
title
:
"
是否唯一属性
"
,
key
:
"
isunique
"
,
align
:
"center"
,
slot
:
"
result
"
slot
:
"
isunique
"
}
],
checkList
:
[],
rules
:
{
businessName
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}],
businessCode
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}]
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
.
checkList
=
r
.
result
;
this
.
$set
(
this
.
checkList
,
index
,
row
)
;
},
addNew
()
{},
handleSubmit
()
{
this
.
$refs
.
form
.
validate
(
v
=>
{});
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
.
result
)
{
this
.
$Message
.
success
(
"保存成功"
);
}
else
{
this
.
$Message
.
error
(
"保存失败"
);
}
})
.
catch
(
err
=>
{
this
.
disabled
=
false
;
this
.
$Message
.
error
(
"保存失败"
);
});
}
});
},
handleClose
()
{
this
.
$emit
(
"on-close"
);
...
...
pages/materiel/classification/api.js
View file @
71689157
import
Api
from
'@/plugins/request'
export
default
{
// index:`${systemUrl}/category/paged`,
// getleveltree(params){
// return Api.post(`${systemUrl}/category/paged`,params);
// },
listTable
(
params
){
return
Api
.
post
(
`
${
systemUrl
}
/custompropertydefinition/list`
,
params
);
},
list
(
params
){
return
Api
.
post
(
`
${
systemUrl
}
/category/list`
,
params
);
},
...
...
pages/materiel/classification/edit.vue
0 → 100644
View file @
71689157
<
template
>
<div>
55555555
</div>
</
template
>
\ No newline at end of file
pages/materiel/classification/index.vue
View file @
71689157
...
...
@@ -85,7 +85,9 @@ export default {
}
};
},
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
'loadDictionary'
)
// 加载数据字典
},
created
()
{
this
.
loadTree
();
},
...
...
@@ -100,20 +102,22 @@ export default {
this
.
curId
=
0
;
},
addNew
()
{
this
.
nodeInfo
.
id
=
0
;
// this.nodeInfo.id = 0;
// let conditions = [];
// debugger
this
.
add
();
},
add
()
{
this
.
curId
=
0
;
//
this.curId = 0;
this
.
title
=
"新增"
;
this
.
detail
=
()
=>
import
(
"./add"
);
this
.
modal
=
true
;
},
edit
()
{
//
this.curId = this.nodeInfo.id;
//
this.title = "编辑";
//
this.detail = () => import("./edit");
//
this.modal = true;
this
.
curId
=
this
.
nodeInfo
.
id
;
this
.
title
=
"编辑"
;
this
.
detail
=
()
=>
import
(
"./edit"
);
this
.
modal
=
true
;
},
remove
()
{
// console.log(this.nodeInfo);
...
...
pages/produce/execute/ProcessCase/index.vue
View file @
71689157
...
...
@@ -44,22 +44,6 @@
</Col>
</Row>
</div>
<!--
<Tag
type=
"dot"
slot-scope=
"
{row}" :checkable="true" class="tag_card" size="large" :name="row.id" :key="row.index" :checked="row.checked"
color="primary" @on-change="changeCards" >
<Row
:gutter=
"16"
>
<Col
span=
"6"
>
<div
class=
"file"
>
<Icon
type=
"ios-paper"
v-if=
"row.id%2==0"
/>
<Icon
type=
"md-film"
v-else
/>
</div>
</Col>
<Col
span=
"18"
>
<p><b>
{{
row
.
title
}}
</b></p>
<p>
{{
row
.
creationTime
}}
</p>
<p>
{{
row
.
id
}}{{
row
.
creator
}}
</p>
</Col>
</Row>
</Tag>
-->
</
template
>
</DataGrid>
<Modal
v-model=
"modal"
:title=
"title"
width=
"1200"
footer-hide
>
...
...
pages/produce/execute/index.vue
View file @
71689157
...
...
@@ -69,42 +69,6 @@ export default {
odermodel
:
-
9
,
orderId
:
null
,
row
:{},
oderList
:
[
{
value
:
-
9
,
label
:
"全部"
},
{
value
:
12
,
label
:
"未开工"
},
{
value
:
14
,
label
:
"执行中"
},
{
value
:
0
,
label
:
"已完成"
},
{
value
:
5
,
label
:
"暂停中"
},
{
value
:
7
,
label
:
"已终止"
},
{
value
:
-
1
,
label
:
"待派工"
}
// value: '交检中',
// label: '交检中'
// },{
// value: '交接中',
// label: '交接中'
// },{
],
condition
:
[]
};
},
...
...
pages/produce/orderlist.vue
View file @
71689157
...
...
@@ -53,6 +53,7 @@
:src=
"getUrl(row.productUrl)"
width=
"120"
height=
"120"
:title=
"row.productUrl"
style=
"border:#cacbd0 dashed 1px"
/>
</Col>
...
...
@@ -297,6 +298,7 @@ export default {
// height: 100%;
// overflow: auto;
// padding: 15px 0 15px 15px;
height: calc(100vh - 110px);
.body {
background: white;
border-radius: 4px;
...
...
pages/technology/productMix/product/add.vue
View file @
71689157
...
...
@@ -132,8 +132,9 @@ export default {
// this.$refs.refFile.intFiles();
},
methods
:
{
clickData
(
data
)
{
clickData
(
data
,
liUrl
)
{
this
.
img
=
data
;
this
.
entity
.
productUrl
=
liUrl
;
},
handleSelect1
(
data
)
{
if
(
data
.
length
>
0
)
{
...
...
@@ -151,8 +152,8 @@ export default {
this
.
disabled
=
true
;
if
(
this
.
$refs
.
refFile
.
nameList
.
length
>
0
)
{
this
.
entity
.
productUrlList
=
this
.
parms
.
eid
;
this
.
entity
.
productUrl
=
this
.
img
;
}
else
{
this
.
entity
.
productUrl
=
""
;
this
.
entity
.
productUrlList
=
""
;
}
...
...
pages/technology/productMix/product/edit.vue
View file @
71689157
...
...
@@ -115,9 +115,9 @@ export default {
},
methods
:
{
clickData
(
data
)
{
clickData
(
data
,
liUrl
)
{
this
.
img
=
data
;
this
.
entity
.
productUrl
=
data
;
this
.
entity
.
productUrl
=
liUrl
;
},
handleSelect1
(
data
)
{
if
(
data
.
length
>
0
)
{
...
...
static/config.js
View file @
71689157
...
...
@@ -13,6 +13,7 @@ window.systemUrl = `http://${address}:10000/system`; //System-api 系统管理
window
.
authUrl
=
`http://
${
address
}
:10010`
;
//Authentication-api //统一登陆认证
window
.
designUrl
=
`http://
${
address
}
:10000/process`
;
// 工艺规程
window
.
PlanUrl
=
`http://
${
address
}
:10000/plan`
;
//订单
// window.PlanUrl = `http://localhost:10050/api/services/app`; //Process-api
window
.
bugUrl
=
`http://
${
address
}
:10000/bug`
;
//bug
window
.
fileUrl
=
`http://
${
address
}
:10080/fileServer`
;
//文件上传url
window
.
fileUrlDown
=
`http://
${
address
}
`
;
//文件下载url
...
...
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