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
8b9f31e8
Commit
8b9f31e8
authored
Oct 20, 2020
by
周远喜
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'product' of
http://git.mes123.com/zhouyx/mes-ui
into product
parents
ef666dba
669c07ff
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
964 additions
and
623 deletions
+964
-623
editDuration.vue
pages/aps/ai/editDuration.vue
+1
-1
options.vue
pages/aps/ai/options.vue
+1
-1
editDuration.vue
pages/aps/aps/editDuration.vue
+1
-1
options.vue
pages/aps/aps/options.vue
+1
-1
index.vue
pages/aps/complete/index.vue
+1
-1
index.vue
pages/aps/dispatch/index.vue
+1
-1
addAccessory.vue
pages/aps/plan/addAccessory.vue
+0
-1
detailAccessory.vue
pages/aps/plan/detailAccessory.vue
+1
-1
dispatch.vue
pages/aps/plan/dispatch.vue
+46
-41
split.vue
pages/mesPlan/split.vue
+1
-1
index.vue
pages/mordent/Sluggish/powder/index.vue
+1
-1
add.vue
pages/project/plan/add.vue
+2
-8
edit.vue
pages/project/plan/edit.vue
+165
-104
add.vue
pages/project/project/add.vue
+25
-8
detail.vue
pages/project/project/detail.vue
+95
-65
edit.vue
pages/project/project/edit.vue
+174
-104
index.vue
pages/project/project/index.vue
+225
-41
add.vue
pages/technology/details/routingsupporting/add.vue
+220
-241
add.vue
pages/word/classification/add.vue
+1
-1
word.vue
pages/word/document/word.vue
+2
-0
No files found.
pages/aps/ai/editDuration.vue
View file @
8b9f31e8
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
</Form>
</Form>
<Row>
<Row>
<Col
span=
"24"
style=
"text-align:right;height:60px;line-height:60px"
>
<Col
span=
"24"
style=
"text-align:right;height:60px;line-height:60px"
>
<Button
type=
"primary"
@
click=
"handleSubmit"
>
确定
</Button>
<Button
type=
"primary"
@
click=
"handleSubmit"
v-noClick
>
确定
</Button>
<Button
@
click=
"handleClose"
class=
"ml20"
>
取消
</Button>
<Button
@
click=
"handleClose"
class=
"ml20"
>
取消
</Button>
</Col>
</Col>
</Row>
</Row>
...
...
pages/aps/ai/options.vue
View file @
8b9f31e8
...
@@ -138,7 +138,7 @@
...
@@ -138,7 +138,7 @@
</Col>
</Col>
</Row>
</Row>
<FormItem
class=
"click-btn"
>
<FormItem
class=
"click-btn"
>
<Button
type=
"primary"
@
click=
"handleSubmit"
>
确定
</Button>
<Button
type=
"primary"
@
click=
"handleSubmit"
v-noClick
>
确定
</Button>
<Button
@
click=
"handleClose"
class=
"ml20"
>
取消
</Button>
<Button
@
click=
"handleClose"
class=
"ml20"
>
取消
</Button>
</FormItem>
</FormItem>
</Form>
</Form>
...
...
pages/aps/aps/editDuration.vue
View file @
8b9f31e8
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
</Form>
</Form>
<Row>
<Row>
<Col
span=
"24"
style=
"text-align:right;height:60px;line-height:60px"
>
<Col
span=
"24"
style=
"text-align:right;height:60px;line-height:60px"
>
<Button
type=
"primary"
@
click=
"handleSubmit"
>
确定
</Button>
<Button
type=
"primary"
@
click=
"handleSubmit"
v-noClick
>
确定
</Button>
<Button
@
click=
"handleClose"
class=
"ml20"
>
取消
</Button>
<Button
@
click=
"handleClose"
class=
"ml20"
>
取消
</Button>
</Col>
</Col>
</Row>
</Row>
...
...
pages/aps/aps/options.vue
View file @
8b9f31e8
...
@@ -138,7 +138,7 @@
...
@@ -138,7 +138,7 @@
</Col>
</Col>
</Row>
</Row>
<FormItem
class=
"click-btn"
>
<FormItem
class=
"click-btn"
>
<Button
type=
"primary"
@
click=
"handleSubmit"
>
确定
</Button>
<Button
type=
"primary"
@
click=
"handleSubmit"
v-noClick
>
确定
</Button>
<Button
@
click=
"handleClose"
class=
"ml20"
>
取消
</Button>
<Button
@
click=
"handleClose"
class=
"ml20"
>
取消
</Button>
</FormItem>
</FormItem>
</Form>
</Form>
...
...
pages/aps/complete/index.vue
View file @
8b9f31e8
...
@@ -96,7 +96,7 @@
...
@@ -96,7 +96,7 @@
</FormItem>
</FormItem>
<FormItem>
<FormItem>
<Button
style=
"margin-left: 8px"
@
click=
"closeOk"
>
取消
</Button>
<Button
style=
"margin-left: 8px"
@
click=
"closeOk"
>
取消
</Button>
<Button
type=
"primary"
@
click=
"lowerHair"
>
下发
</Button>
<Button
type=
"primary"
@
click=
"lowerHair"
v-noClick
>
下发
</Button>
</FormItem>
</FormItem>
</Form>
</Form>
</div>
</div>
...
...
pages/aps/dispatch/index.vue
View file @
8b9f31e8
...
@@ -254,7 +254,7 @@
...
@@ -254,7 +254,7 @@
</Row>
</Row>
<FormItem>
<FormItem>
<Button
style=
"margin-right: 8px"
@
click=
"cancle"
>
取消
</Button>
<Button
style=
"margin-right: 8px"
@
click=
"cancle"
>
取消
</Button>
<Button
type=
"primary"
@
click=
"sendSheBei"
>
派工
</Button>
<Button
type=
"primary"
@
click=
"sendSheBei"
v-noClick
>
派工
</Button>
</FormItem>
</FormItem>
</Form>
</Form>
</Drawer>
</Drawer>
...
...
pages/aps/plan/addAccessory.vue
View file @
8b9f31e8
...
@@ -42,7 +42,6 @@ export default {
...
@@ -42,7 +42,6 @@ export default {
name
:
"addAccessory"
,
name
:
"addAccessory"
,
data
()
{
data
()
{
return
{
return
{
disabled
:
false
,
deletelModal
:
false
,
deletelModal
:
false
,
curId
:
0
,
curId
:
0
,
editIndex
:
-
1
,
editIndex
:
-
1
,
...
...
pages/aps/plan/detailAccessory.vue
View file @
8b9f31e8
...
@@ -43,7 +43,7 @@ export default {
...
@@ -43,7 +43,7 @@ export default {
name
:
"detailAccessory"
,
name
:
"detailAccessory"
,
data
()
{
data
()
{
return
{
return
{
disabled
:
false
,
deletelModal
:
false
,
deletelModal
:
false
,
statuList
:
this
.
$store
.
getters
.
dictionaryByKey
(
"accessory.status"
)
||
[],
statuList
:
this
.
$store
.
getters
.
dictionaryByKey
(
"accessory.status"
)
||
[],
statuList1
:
this
.
$store
.
getters
.
dictionaryByKey
(
"outstore.status"
)
||
[],
statuList1
:
this
.
$store
.
getters
.
dictionaryByKey
(
"outstore.status"
)
||
[],
...
...
pages/aps/plan/dispatch.vue
View file @
8b9f31e8
...
@@ -2,99 +2,104 @@
...
@@ -2,99 +2,104 @@
<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"
>
<Col
span=
"12"
>
<FormItem
:label=
"l('DistributeMainRouting')"
prop=
"DistributeMainRouting"
>
<FormItem
<UserSelect
ref=
"userSelected"
v-model=
"entity.DistributeMainRouting"
/>
:label=
"l('DistributeMainRouting')"
prop=
"DistributeMainRouting"
>
<UserSelect
ref=
"userSelected"
v-model=
"entity.DistributeMainRouting"
/>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
span=
"12"
>
<Col
span=
"12"
>
<FormItem
label=
"完成时间"
style=
"width:100%"
prop=
"MainRoutingFinishDate"
>
<FormItem
label=
"完成时间"
style=
"width: 100%"
prop=
"MainRoutingFinishDate"
>
<DatePicker
<DatePicker
v-model=
"entity.MainRoutingFinishDate"
v-model=
"entity.MainRoutingFinishDate"
type=
"datetime"
type=
"datetime"
placeholder=
"请选择日期"
placeholder=
"请选择日期"
style=
"width:240px"
style=
"width:
240px"
@
on-change=
"getTimeMainRFD"
@
on-change=
"getTimeMainRFD"
></DatePicker>
></DatePicker>
</FormItem>
</FormItem>
</Col>
</Col>
</Row>
</Row>
<Row
>
<Row>
</Row>
<Row>
</Row>
</Row>
<Row
>
</Row>
<FormItem>
<FormItem>
<Button
type=
"primary"
@
click=
"handleSubmit"
:disabled=
"disabled"
>
保存
</Button>
<Button
type=
"primary"
@
click=
"handleSubmit"
v-noClick
>
保存
</Button>
<Button
@
click=
"handleClose"
class=
"ml20"
>
取消
</Button>
<Button
@
click=
"handleClose"
class=
"ml20"
>
取消
</Button>
</FormItem>
</FormItem>
</Form>
</Form>
</
template
>
</
template
>
<
script
>
<
script
>
import
Api
from
'./api'
import
Api
from
"./api"
;
export
default
{
export
default
{
name
:
'Dispatch'
,
name
:
"Dispatch"
,
props
:
{
props
:
{
ids
:
Array
ids
:
Array
,
},
},
data
()
{
data
()
{
return
{
return
{
disabled
:
false
,
entity
:
{
entity
:
{
DistributeMainRouting
:
null
,
DistributeMainRouting
:
null
,
MainRoutingFinishDate
:
''
MainRoutingFinishDate
:
""
,
},
},
rules
:
{
rules
:
{
DistributeMainRouting
:
[
DistributeMainRouting
:
[
{
{
required
:
true
,
required
:
true
,
message
:
'请选择人员'
,
message
:
"请选择人员"
,
trigger
:
'change'
,
trigger
:
"change"
,
type
:
'number'
type
:
"number"
,
}
}
,
],
],
MainRoutingFinishDate
:
[
MainRoutingFinishDate
:
[
{
{
required
:
true
,
required
:
true
,
message
:
'请选择时间'
,
message
:
"请选择时间"
,
trigger
:
'change'
trigger
:
"change"
,
}
}
,
]
]
,
}
}
,
}
}
;
},
},
methods
:
{
methods
:
{
handleSubmit
()
{
handleSubmit
()
{
this
.
$refs
.
form
.
validate
((
v
)
=>
{
this
.
$refs
.
form
.
validate
((
v
)
=>
{
if
(
v
)
{
if
(
v
)
{
this
.
entity
.
ids
=
this
.
ids
this
.
entity
.
ids
=
this
.
ids
;
Api
.
routingdistribute
(
this
.
entity
)
Api
.
routingdistribute
(
this
.
entity
)
.
then
((
r
)
=>
{
.
then
((
r
)
=>
{
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
(
"工艺派发失败"
);
}
}
this
.
$emit
(
'on-ok'
)
this
.
$emit
(
"on-ok"
);
})
})
.
catch
((
err
)
=>
{
.
catch
((
err
)
=>
{
this
.
$Message
.
error
(
'工艺派发失败'
)
this
.
$Message
.
error
(
"工艺派发失败"
);
})
})
;
}
}
})
})
;
},
},
handleClose
()
{
handleClose
()
{
this
.
$emit
(
'on-close'
)
this
.
$emit
(
"on-close"
);
},
},
l
(
key
)
{
l
(
key
)
{
key
=
'mes_order'
+
'.'
+
key
key
=
"mes_order"
+
"."
+
key
;
return
this
.
$t
(
key
)
return
this
.
$t
(
key
)
;
},
},
getTimeMainRFD
(
value
)
{
getTimeMainRFD
(
value
)
{
this
.
entity
.
MainRoutingFinishDate
=
value
this
.
entity
.
MainRoutingFinishDate
=
value
;
}
}
,
},
},
watch
:
{}
watch
:
{}
,
}
}
;
</
script
>
</
script
>
pages/mesPlan/split.vue
View file @
8b9f31e8
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
<Col
span=
"12"
>
<Col
span=
"12"
>
<FormItem
label=
"分解数量"
style=
"width:100%"
prop=
"splitQuantity"
>
<FormItem
label=
"分解数量"
style=
"width:100%"
prop=
"splitQuantity"
>
<InputNumber
:min=
"0"
v-model=
"orderForm.splitQuantity"
style=
"width:180px"
></InputNumber>
<InputNumber
:min=
"0"
v-model=
"orderForm.splitQuantity"
style=
"width:180px"
></InputNumber>
<Button
type=
"primary"
@
click=
"addSplitOrder"
>
确定
</Button>
<Button
type=
"primary"
@
click=
"addSplitOrder"
v-noClick
>
确定
</Button>
</FormItem>
</FormItem>
</Col>
</Col>
</Row>
</Row>
...
...
pages/mordent/Sluggish/powder/index.vue
View file @
8b9f31e8
...
@@ -68,7 +68,7 @@
...
@@ -68,7 +68,7 @@
<Col
span=
"16"
>
</Col>
<Col
span=
"16"
>
</Col>
<Col
span=
"8"
>
<Col
span=
"8"
>
<Button
@
click=
"cancel"
class=
"ml20"
>
取消
</Button>
<Button
@
click=
"cancel"
class=
"ml20"
>
取消
</Button>
<Button
type=
"primary"
@
click=
"setNumOk"
>
设置
</Button>
<Button
type=
"primary"
@
click=
"setNumOk"
v-noClick
>
设置
</Button>
</Col>
</Col>
</Row>
</Row>
</Form>
</Form>
...
...
pages/project/plan/add.vue
View file @
8b9f31e8
...
@@ -101,9 +101,7 @@
...
@@ -101,9 +101,7 @@
></Col>
></Col>
</Row>
</Row>
<FormItem>
<FormItem>
<Button
type=
"primary"
@
click=
"handleSubmit"
:disabled=
"disabled"
<Button
type=
"primary"
@
click=
"handleSubmit"
v-noClick
>
保存
</Button>
>
保存
</Button
>
<Button
@
click=
"handleClose"
class=
"ml20"
>
取消
</Button>
<Button
@
click=
"handleClose"
class=
"ml20"
>
取消
</Button>
</FormItem>
</FormItem>
</Form>
</Form>
...
@@ -114,7 +112,6 @@ export default {
...
@@ -114,7 +112,6 @@ export default {
name
:
"Add"
,
name
:
"Add"
,
data
()
{
data
()
{
return
{
return
{
disabled
:
false
,
entity
:
{
entity
:
{
// creationTime: null,
// creationTime: null,
// creatorUserId: null,
// creatorUserId: null,
...
@@ -152,10 +149,8 @@ export default {
...
@@ -152,10 +149,8 @@ export default {
handleSubmit
()
{
handleSubmit
()
{
this
.
$refs
.
form
.
validate
((
v
)
=>
{
this
.
$refs
.
form
.
validate
((
v
)
=>
{
if
(
v
)
{
if
(
v
)
{
this
.
disabled
=
true
;
Api
.
create
(
this
.
entity
)
Api
.
create
(
this
.
entity
)
.
then
((
r
)
=>
{
.
then
((
r
)
=>
{
this
.
disabled
=
false
;
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
"保存成功"
);
this
.
$Message
.
success
(
"保存成功"
);
this
.
$emit
(
"on-ok"
);
this
.
$emit
(
"on-ok"
);
...
@@ -164,7 +159,6 @@ export default {
...
@@ -164,7 +159,6 @@ export default {
}
}
})
})
.
catch
((
err
)
=>
{
.
catch
((
err
)
=>
{
this
.
disabled
=
false
;
this
.
$Message
.
error
(
"保存失败"
);
this
.
$Message
.
error
(
"保存失败"
);
console
.
warn
(
err
);
console
.
warn
(
err
);
});
});
...
...
pages/project/plan/edit.vue
View file @
8b9f31e8
<
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('creationTime')"
prop=
"creationTime"
>
<Col
:span=
"12"
><FormItem
:label=
"l('creatorUserId')"
prop=
"creatorUserId"
>
<InputNumber
v-model=
"entity.creatorUserId"
></InputNumber>
<DatePicker
</FormItem></Col>
type=
"date"
<Col
:span=
"12"
><FormItem
:label=
"l('lastModificationTime')"
prop=
"lastModificationTime"
>
<DatePicker
type=
"date"
v-model=
"entity.lastModificationTime"
></DatePicker>
v-model=
"entity.creationTime"
</FormItem></Col>
></DatePicker>
</FormItem
<Col
:span=
"12"
><FormItem
:label=
"l('lastModifierUserId')"
prop=
"lastModifierUserId"
>
<InputNumber
v-model=
"entity.lastModifierUserId"
></InputNumber>
></Col>
</FormItem></Col>
<Col
:span=
"12"
<Col
:span=
"12"
><FormItem
:label=
"l('isDeleted')"
prop=
"isDeleted"
>
<InputNumber
v-model=
"entity.isDeleted"
></InputNumber>
><FormItem
:label=
"l('creatorUserId')"
prop=
"creatorUserId"
>
</FormItem></Col>
<InputNumber
v-model=
"entity.creatorUserId"
></InputNumber>
</FormItem
<Col
:span=
"12"
><FormItem
:label=
"l('deletionTime')"
prop=
"deletionTime"
>
<DatePicker
type=
"date"
v-model=
"entity.deletionTime"
></DatePicker>
></Col>
</FormItem></Col>
<Col
:span=
"12"
<Col
:span=
"12"
><FormItem
:label=
"l('deleterUserId')"
prop=
"deleterUserId"
>
<InputNumber
v-model=
"entity.deleterUserId"
></InputNumber>
><FormItem
</FormItem></Col>
:label=
"l('lastModificationTime')"
<Col
:span=
"12"
><FormItem
:label=
"l('projectId')"
prop=
"projectId"
>
<InputNumber
v-model=
"entity.projectId"
></InputNumber>
prop=
"lastModificationTime"
</FormItem></Col>
>
<Col
:span=
"12"
><FormItem
:label=
"l('upId')"
prop=
"upId"
>
<InputNumber
v-model=
"entity.upId"
></InputNumber>
<DatePicker
</FormItem></Col>
type=
"date"
<Col
:span=
"12"
><FormItem
:label=
"l('title')"
prop=
"title"
>
<Input
v-model=
"entity.title"
>
</Input>
v-model=
"entity.lastModificationTime"
</FormItem></Col>
></DatePicker>
</FormItem
<Col
:span=
"12"
><FormItem
:label=
"l('status')"
prop=
"status"
>
<Dictionary
code=
"mes.project_plan.Status"
v-model=
"entity.status"
></Dictionary>
></Col>
</FormItem></Col>
<Col
:span=
"12"
<Col
:span=
"24"
><FormItem
:label=
"l('note')"
prop=
"note"
>
<Input
v-model=
"entity.note"
type=
"textarea"
:rows=
"5"
></Input>
><FormItem
:label=
"l('lastModifierUserId')"
prop=
"lastModifierUserId"
>
</FormItem></Col>
<InputNumber
<Col
:span=
"12"
><FormItem
:label=
"l('startDate')"
prop=
"startDate"
>
<DatePicker
type=
"date"
v-model=
"entity.startDate"
></DatePicker>
v-model=
"entity.lastModifierUserId"
</FormItem></Col>
></InputNumber>
</FormItem
<Col
:span=
"12"
><FormItem
:label=
"l('endDate')"
prop=
"endDate"
>
<DatePicker
type=
"date"
v-model=
"entity.endDate"
></DatePicker>
></Col>
</FormItem></Col>
<Col
:span=
"12"
<Col
:span=
"12"
><FormItem
:label=
"l('type')"
prop=
"type"
>
<Dictionary
code=
"mes.project_plan.Type"
v-model=
"entity.type"
></Dictionary>
><FormItem
:label=
"l('isDeleted')"
prop=
"isDeleted"
>
</FormItem></Col>
<InputNumber
v-model=
"entity.isDeleted"
></InputNumber>
</FormItem
<Col
:span=
"12"
><FormItem
:label=
"l('attachment')"
prop=
"attachment"
>
<Input
v-model=
"entity.attachment"
>
</Input>
></Col>
</FormItem></Col>
<Col
:span=
"12"
<Col
:span=
"12"
><FormItem
:label=
"l('executor')"
prop=
"executor"
>
<Input
v-model=
"entity.executor"
>
</Input>
><FormItem
:label=
"l('deletionTime')"
prop=
"deletionTime"
>
</FormItem></Col>
<DatePicker
type=
"date"
v-model=
"entity.deletionTime"
></DatePicker>
</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('projectId')"
prop=
"projectId"
>
<InputNumber
v-model=
"entity.projectId"
></InputNumber>
</FormItem
></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('upId')"
prop=
"upId"
>
<InputNumber
v-model=
"entity.upId"
></InputNumber>
</FormItem
></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('title')"
prop=
"title"
>
<Input
v-model=
"entity.title"
>
</Input>
</FormItem
></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('status')"
prop=
"status"
>
<Dictionary
code=
"mes.project_plan.Status"
v-model=
"entity.status"
></Dictionary>
</FormItem
></Col>
<Col
:span=
"24"
><FormItem
:label=
"l('note')"
prop=
"note"
>
<Input
v-model=
"entity.note"
type=
"textarea"
:rows=
"5"
></Input>
</FormItem
></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('startDate')"
prop=
"startDate"
>
<DatePicker
type=
"date"
v-model=
"entity.startDate"
></DatePicker>
</FormItem
></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('endDate')"
prop=
"endDate"
>
<DatePicker
type=
"date"
v-model=
"entity.endDate"
></DatePicker>
</FormItem
></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('type')"
prop=
"type"
>
<Dictionary
code=
"mes.project_plan.Type"
v-model=
"entity.type"
></Dictionary>
</FormItem
></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('attachment')"
prop=
"attachment"
>
<Input
v-model=
"entity.attachment"
>
</Input>
</FormItem
></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('executor')"
prop=
"executor"
>
<Input
v-model=
"entity.executor"
>
</Input>
</FormItem
></Col>
</Row>
</Row>
<FormItem>
<FormItem>
<Button
type=
"primary"
@
click=
"handleSubmit"
:disabled=
"disabled"
>
保存
</Button>
<Button
type=
"primary"
@
click=
"handleSubmit"
v-noClick
>
保存
</Button>
<Button
@
click=
"handleClose"
class=
"ml20"
>
取消
</Button>
<Button
@
click=
"handleClose"
class=
"ml20"
>
取消
</Button>
</FormItem>
</FormItem>
</Form>
</Form>
</
template
>
</
template
>
<
script
>
<
script
>
import
Api
from
'./api'
import
Api
from
"./api"
;
export
default
{
export
default
{
name
:
'Edit'
,
name
:
"Edit"
,
data
()
{
data
()
{
return
{
return
{
disabled
:
false
,
entity
:
{},
entity
:
{
},
rules
:
{
rules
:
{
name
:
[{
required
:
true
,
message
:
'必填'
,
trigger
:
'blur'
}]
name
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}],
}
},
}
};
},
},
props
:
{
props
:
{
eid
:
Number
eid
:
Number
,
},
},
mounted
()
{
mounted
()
{
if
(
this
.
eid
>
0
)
{
if
(
this
.
eid
>
0
)
{
...
@@ -66,44 +128,43 @@
...
@@ -66,44 +128,43 @@
},
},
methods
:
{
methods
:
{
load
(
v
)
{
load
(
v
)
{
Api
.
get
({
id
:
v
}).
then
(
r
=>
{
Api
.
get
({
id
:
v
}).
then
((
r
)
=>
{
this
.
entity
=
r
.
result
;
this
.
entity
=
r
.
result
;
})
});
},
},
handleSubmit
()
{
handleSubmit
()
{
this
.
$refs
.
form
.
validate
((
v
)
=>
{
this
.
$refs
.
form
.
validate
((
v
)
=>
{
if
(
v
)
{
if
(
v
)
{
this
.
disabled
=
true
;
Api
.
update
(
this
.
entity
)
Api
.
update
(
this
.
entity
).
then
((
r
)
=>
{
.
then
((
r
)
=>
{
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
.
$Message
.
error
(
"保存失败"
);
console
.
warn
(
err
);
});
}
}
})
});
},
},
handleClose
()
{
handleClose
()
{
this
.
$emit
(
'on-close'
)
this
.
$emit
(
"on-close"
);
},
},
l
(
key
)
{
l
(
key
)
{
key
=
"project_plan"
+
"."
+
key
;
key
=
"project_plan"
+
"."
+
key
;
return
this
.
$t
(
key
)
return
this
.
$t
(
key
);
}
},
},
},
watch
:
{
watch
:
{
eid
(
v
)
{
eid
(
v
)
{
if
(
v
!=
0
)
{
if
(
v
!=
0
)
{
this
.
load
(
v
);
this
.
load
(
v
);
}
}
}
},
}
},
}
};
</
script
>
</
script
>
\ No newline at end of file
pages/project/project/add.vue
View file @
8b9f31e8
<
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=
"8"
>
<Col
span=
"8"
class=
"projct-img"
>
<FormItem
:label=
"l('picture')"
prop=
"picture"
>
<FormItem
:label=
"l('picture')"
prop=
"picture"
>
<inputFile
<inputFile
class=
"tphoto"
class=
"tphoto"
...
@@ -137,7 +137,7 @@ export default {
...
@@ -137,7 +137,7 @@ export default {
name
:
"Add"
,
name
:
"Add"
,
data
()
{
data
()
{
return
{
return
{
disabled
:
false
,
imgName
:
""
,
imgName
:
""
,
avatorPath
:
""
,
avatorPath
:
""
,
entity
:
{
entity
:
{
...
@@ -155,12 +155,12 @@ export default {
...
@@ -155,12 +155,12 @@ export default {
picture
:
""
,
picture
:
""
,
attachment
:
""
,
attachment
:
""
,
phase
:
null
,
phase
:
null
,
startDate
:
null
,
startDate
:
""
,
endDate
:
null
,
endDate
:
""
,
businessUnits
:
""
,
businessUnits
:
""
,
},
},
rules
:
{
rules
:
{
nam
e
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}],
titl
e
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}],
},
},
parmsName
:
"app=material&eid=1&name=ProjectMain"
,
parmsName
:
"app=material&eid=1&name=ProjectMain"
,
parms
:
{
parms
:
{
...
@@ -196,7 +196,7 @@ export default {
...
@@ -196,7 +196,7 @@ export default {
}
}
Api
.
create
(
this
.
entity
)
Api
.
create
(
this
.
entity
)
.
then
((
r
)
=>
{
.
then
((
r
)
=>
{
this
.
disabled
=
false
;
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
"保存成功"
);
this
.
$Message
.
success
(
"保存成功"
);
this
.
$emit
(
"on-ok"
);
this
.
$emit
(
"on-ok"
);
...
@@ -205,7 +205,7 @@ export default {
...
@@ -205,7 +205,7 @@ export default {
}
}
})
})
.
catch
((
err
)
=>
{
.
catch
((
err
)
=>
{
this
.
disabled
=
false
;
this
.
$Message
.
error
(
"保存失败"
);
this
.
$Message
.
error
(
"保存失败"
);
console
.
warn
(
err
);
console
.
warn
(
err
);
});
});
...
@@ -221,6 +221,8 @@ export default {
...
@@ -221,6 +221,8 @@ export default {
this
.
entity
.
id
=
0
;
this
.
entity
.
id
=
0
;
});
});
},
},
//时间相关end
l
(
key
)
{
l
(
key
)
{
key
=
"project_main"
+
"."
+
key
;
key
=
"project_main"
+
"."
+
key
;
return
this
.
$t
(
key
);
return
this
.
$t
(
key
);
...
@@ -244,3 +246,18 @@ export default {
...
@@ -244,3 +246,18 @@ export default {
},
},
};
};
</
script
>
</
script
>
<
style
lang=
"less"
>
.projct-img {
.img-touxiang {
width: 300px;
height: 300px;
margin: 0px 10px 15px 20px;
overflow: hidden;
border-radius: 5px;
.img1 {
width: 100%;
height: 100%;
}
}
}
</
style
>
\ No newline at end of file
pages/project/project/detail.vue
View file @
8b9f31e8
<
template
>
<
template
>
<div
class=
"detail"
>
<div
class=
"detail"
>
<Row>
<Row>
<Filed
:span=
"12"
:name=
"l('creationTime')"
>
{{
entity
.
creationTime
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('creationTime')"
>
{{
<Filed
:span=
"12"
:name=
"l('creatorUserId')"
>
{{
entity
.
creatorUserId
}}
</Filed>
entity
.
creationTime
<Filed
:span=
"12"
:name=
"l('lastModificationTime')"
>
{{
entity
.
lastModificationTime
}}
</Filed>
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('lastModifierUserId')"
>
{{
entity
.
lastModifierUserId
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('creatorUserId')"
>
<Filed
:span=
"12"
:name=
"l('isDeleted')"
>
{{
entity
.
isDeleted
}}
</Filed>
<User
:value=
"entity.creatorUserId"
/>
<Filed
:span=
"12"
:name=
"l('deletionTime')"
>
{{
entity
.
deletionTime
}}
</Filed>
</Filed>
<Filed
:span=
"12"
:name=
"l('deleterUserId')"
>
{{
entity
.
deleterUserId
}}
</Filed>
<!--
<Filed
:span=
"12"
:name=
"l('lastModificationTime')"
>
{{
<Filed
:span=
"12"
:name=
"l('title')"
>
{{
entity
.
title
}}
</Filed>
entity
.
lastModificationTime
<Filed
:span=
"24"
:name=
"l('note')"
>
{{
entity
.
note
}}
</Filed>
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('state')"
>
{{
entity
.
state
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('lastModifierUserId')"
>
{{
<Filed
:span=
"12"
:name=
"l('type')"
>
{{
entity
.
type
}}
</Filed>
entity
.
lastModifierUserId
<Filed
:span=
"12"
:name=
"l('picture')"
>
{{
entity
.
picture
}}
</Filed>
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('attachment')"
>
{{
entity
.
attachment
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('isDeleted')"
>
{{
entity
.
isDeleted
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('phase')"
>
{{
entity
.
phase
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('deletionTime')"
>
{{
<Filed
:span=
"12"
:name=
"l('startDate')"
>
{{
entity
.
startDate
}}
</Filed>
entity
.
deletionTime
<Filed
:span=
"12"
:name=
"l('endDate')"
>
{{
entity
.
endDate
}}
</Filed>
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('businessUnits')"
>
{{
entity
.
businessUnits
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('deleterUserId')"
>
{{
entity
.
deleterUserId
}}
</Filed>
-->
<Filed
:span=
"12"
:name=
"l('title')"
>
{{
entity
.
title
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('state')"
>
<state
code=
"project.main.state"
:value=
"entity.state"
/></Filed>
<!--
<Filed
:span=
"12"
:name=
"l('phase')"
>
{{
entity
.
phase
}}
</Filed>
-->
<Filed
:span=
"12"
:name=
"l('startDate')"
>
{{
entity
.
startDate
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('endDate')"
>
{{
entity
.
endDate
}}
</Filed>
<!--
<Filed
:span=
"12"
:name=
"l('businessUnits')"
>
{{
entity
.
businessUnits
}}
</Filed>
-->
<Filed
:span=
"12"
:name=
"l('type')"
>
<state
code=
"project.main.type"
:value=
"entity.type"
/>
</Filed>
<Filed
:span=
"12"
:name=
"l('picture')"
><a
@
click=
"imgClick(entity.picture)"
>
查看图片
</a></Filed
>
<Filed
:span=
"12"
:name=
"l('attachment')"
>
<files
ref=
"refFile"
:parms=
"parms"
fileFormat
:showList=
"false"
/>
</Filed>
<Filed
:span=
"24"
:name=
"l('note')"
>
{{
entity
.
note
}}
</Filed>
</Row>
</Row>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
Api
from
'./api'
import
Api
from
"./api"
;
export
default
{
export
default
{
name
:
'Add'
,
name
:
"Add"
,
data
()
{
data
()
{
return
{
return
{
entity
:
{},
entity
:
{},
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"
}],
}
}
},
},
props
:
{
parms
:
{
eid
:
Number
app
:
"material"
,
eid
:
null
,
name
:
""
,
field
:
""
,
},
},
};
},
props
:
[
"eid"
],
mounted
()
{
mounted
()
{
if
(
this
.
eid
>
0
)
{
this
.
load
(
this
.
eid
);
this
.
load
(
this
.
eid
);
}
},
},
methods
:
{
methods
:
{
imgClick
(
img
)
{
window
.
open
(
fileUrlDown
+
img
,
"_blank"
);
},
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
.
$emit
(
'on-load'
)
this
.
entity
.
type
=
r
.
result
.
type
+
""
;
})
this
.
entity
.
state
=
r
.
result
.
state
+
""
;
this
.
parms
.
eid
=
r
.
result
.
attachment
;
this
.
$emit
(
"on-load"
);
});
},
},
handleClose
()
{
handleClose
()
{
this
.
$emit
(
'on-close'
)
this
.
$emit
(
"on-close"
);
},
},
l
(
key
)
{
l
(
key
)
{
key
=
"project_main"
+
"."
+
key
;
key
=
"project_main"
+
"."
+
key
;
return
this
.
$t
(
key
)
return
this
.
$t
(
key
);
}
},
},
},
watch
:
{
watch
:
{
eid
(
v
)
{
eid
(
v
)
{
if
(
v
>
0
)
{
if
(
v
)
{
this
.
load
(
v
);
this
.
load
(
v
);
}
}
}
},
}
},
}
};
</
script
>
</
script
>
\ No newline at end of file
pages/project/project/edit.vue
View file @
8b9f31e8
<
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=
"8"
class=
"projct-img"
>
</FormItem></Col>
<FormItem
:label=
"l('picture')"
prop=
"picture"
>
<Col
:span=
"12"
><FormItem
:label=
"l('creatorUserId')"
prop=
"creatorUserId"
>
<InputNumber
v-model=
"entity.creatorUserId"
></InputNumber>
<inputFile
</FormItem></Col>
class=
"tphoto"
<Col
:span=
"12"
><FormItem
:label=
"l('lastModificationTime')"
prop=
"lastModificationTime"
>
<DatePicker
type=
"date"
v-model=
"entity.lastModificationTime"
></DatePicker>
ref=
"refmovieFile1"
</FormItem></Col>
v-model=
"imgName"
<Col
:span=
"12"
><FormItem
:label=
"l('lastModifierUserId')"
prop=
"lastModifierUserId"
>
<InputNumber
v-model=
"entity.lastModifierUserId"
></InputNumber>
:parms=
"parmsName"
</FormItem></Col>
/>
<Col
:span=
"12"
><FormItem
:label=
"l('isDeleted')"
prop=
"isDeleted"
>
<InputNumber
v-model=
"entity.isDeleted"
></InputNumber>
</FormItem>
</FormItem></Col>
<div
class=
"img-touxiang"
>
<Col
:span=
"12"
><FormItem
:label=
"l('deletionTime')"
prop=
"deletionTime"
>
<DatePicker
type=
"date"
v-model=
"entity.deletionTime"
></DatePicker>
<img
:src=
"avatorPath"
v-if=
"imgName"
@
click=
"imgUrl"
class=
"img1"
/>
</FormItem></Col>
<img
<Col
:span=
"12"
><FormItem
:label=
"l('deleterUserId')"
prop=
"deleterUserId"
>
<InputNumber
v-model=
"entity.deleterUserId"
></InputNumber>
src=
"@/assets/images/files_header.png"
</FormItem></Col>
v-else
<Col
:span=
"12"
><FormItem
:label=
"l('title')"
prop=
"title"
>
<Input
v-model=
"entity.title"
>
</Input>
width=
"100%"
</FormItem></Col>
height=
"100%"
<Col
:span=
"24"
><FormItem
:label=
"l('note')"
prop=
"note"
>
<Input
v-model=
"entity.note"
type=
"textarea"
:rows=
"5"
></Input>
/>
</FormItem></Col>
</div>
<Col
:span=
"12"
><FormItem
:label=
"l('state')"
prop=
"state"
>
<Dictionary
code=
"mes.project_main.State"
v-model=
"entity.state"
></Dictionary>
</Col>
</FormItem></Col>
<Col
span=
"16"
>
<Col
:span=
"12"
><FormItem
:label=
"l('type')"
prop=
"type"
>
<Dictionary
code=
"mes.project_main.Type"
v-model=
"entity.type"
></Dictionary>
<Col
:span=
"12"
</FormItem></Col>
><FormItem
:label=
"l('title')"
prop=
"title"
>
<Col
:span=
"12"
><FormItem
:label=
"l('picture')"
prop=
"picture"
>
<Input
v-model=
"entity.picture"
>
</Input>
<Input
v-model=
"entity.title"
>
</Input>
</FormItem
</FormItem></Col>
></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('attachment')"
prop=
"attachment"
>
<Input
v-model=
"entity.attachment"
>
</Input>
<Col
:span=
"12"
</FormItem></Col>
><FormItem
:label=
"l('state')"
prop=
"state"
>
<Col
:span=
"12"
><FormItem
:label=
"l('phase')"
prop=
"phase"
>
<Dictionary
code=
"mes.project_main.Phase"
v-model=
"entity.phase"
></Dictionary>
<Dictionary
</FormItem></Col>
code=
"project.main.state"
<Col
:span=
"12"
><FormItem
:label=
"l('startDate')"
prop=
"startDate"
>
<DatePicker
type=
"date"
v-model=
"entity.startDate"
></DatePicker>
v-model=
"entity.state"
</FormItem></Col>
></Dictionary>
</FormItem
<Col
:span=
"12"
><FormItem
:label=
"l('endDate')"
prop=
"endDate"
>
<DatePicker
type=
"date"
v-model=
"entity.endDate"
></DatePicker>
></Col>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('businessUnits')"
prop=
"businessUnits"
>
<Input
v-model=
"entity.businessUnits"
>
</Input>
<Col
:span=
"12"
</FormItem></Col>
><FormItem
:label=
"l('startDate')"
prop=
"startDate"
>
<DatePicker
type=
"date"
v-model=
"entity.startDate"
></DatePicker>
</FormItem
></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('endDate')"
prop=
"endDate"
>
<DatePicker
type=
"date"
v-model=
"entity.endDate"
></DatePicker>
</FormItem
></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('type')"
prop=
"type"
>
<Dictionary
code=
"project.main.type"
v-model=
"entity.type"
></Dictionary>
</FormItem
></Col>
<Col
:span=
"24"
>
<FormItem
:label=
"l('attachment')"
prop=
"attachment"
>
<!--
<Input
v-model=
"entity.template"
type=
"textarea"
:rows=
"5"
></Input>
-->
<files
ref=
"refFile"
:parms=
"parms"
files
/>
</FormItem>
</Col>
<!--
<Col
:span=
"12"
><FormItem
:label=
"l('phase')"
prop=
"phase"
>
<Dictionary
code=
"mes.project_main.Phase"
v-model=
"entity.phase"
></Dictionary>
</FormItem
></Col>
-->
<!--
<Col
:span=
"12"
><FormItem
:label=
"l('businessUnits')"
prop=
"businessUnits"
>
<Input
v-model=
"entity.businessUnits"
>
</Input>
</FormItem
></Col>
-->
<Col
:span=
"24"
><FormItem
:label=
"l('note')"
prop=
"note"
>
<Input
v-model=
"entity.note"
type=
"textarea"
:rows=
"5"
></Input>
</FormItem
></Col>
</Col>
</Row>
</Row>
<FormItem>
<FormItem>
<Button
type=
"primary"
@
click=
"handleSubmit"
:disabled=
"disabled"
>
保存
</Button>
<Button
type=
"primary"
@
click=
"handleSubmit"
v-noClick
>
保存
</Button>
<Button
@
click=
"handleClose"
class=
"ml20"
>
取消
</Button>
<Button
@
click=
"handleClose"
class=
"ml20"
>
取消
</Button>
</FormItem>
</FormItem>
</Form>
</Form>
</
template
>
</
template
>
<
script
>
<
script
>
import
Api
from
'./api'
import
Api
from
"./api"
;
export
default
{
export
default
{
name
:
'Edit'
,
name
:
"Edit"
,
data
()
{
data
()
{
return
{
return
{
disabled
:
false
,
imgName
:
""
,
entity
:
{
avatorPath
:
""
,
},
entity
:
{
},
rules
:
{
rules
:
{
name
:
[{
required
:
true
,
message
:
'必填'
,
trigger
:
'blur'
}]
title
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}],
}
},
}
parmsName
:
"app=material&eid=1&name=ProjectMain"
,
parms
:
{
app
:
"material"
,
eid
:
null
,
name
:
""
,
field
:
""
,
},
},
props
:
{
};
eid
:
Number
},
},
props
:
[
"eid"
],
mounted
()
{
mounted
()
{
if
(
this
.
eid
>
0
)
{
this
.
load
(
this
.
eid
);
this
.
load
(
this
.
eid
);
}
this
.
parms
.
eid
=
this
.
$u
.
guid
();
this
.
$refs
.
refmovieFile1
.
inputShow
=
false
;
},
},
methods
:
{
methods
:
{
imgUrl
()
{
window
.
open
(
this
.
avatorPath
,
"_blank"
);
},
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
.
avatorPath
=
fileUrlDown
+
r
.
result
.
picture
;
this
.
imgName
=
r
.
result
.
picture
;
if
(
r
.
result
.
attachment
&&
r
.
result
.
attachment
!=
""
)
{
this
.
parms
.
eid
=
r
.
result
.
attachment
;
}
else
{
this
.
parms
.
eid
=
this
.
$u
.
guid
();
}
this
.
entity
.
attachment
=
this
.
parms
.
eid
;
// this.entity.creatorUserId = r.result.creatorUserId;
});
},
},
handleSubmit
()
{
handleSubmit
()
{
this
.
$refs
.
form
.
validate
((
v
)
=>
{
this
.
$refs
.
form
.
validate
((
v
)
=>
{
if
(
v
)
{
if
(
v
)
{
this
.
disabled
=
true
;
if
(
this
.
$refs
.
refFile
.
nameList
.
length
>
0
)
{
Api
.
update
(
this
.
entity
).
then
((
r
)
=>
{
this
.
entity
.
attachment
=
this
.
parms
.
eid
;
this
.
disabled
=
false
;
}
else
{
this
.
entity
.
attachment
=
""
;
}
Api
.
update
(
this
.
entity
)
.
then
((
r
)
=>
{
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
.
$Message
.
error
(
"保存失败"
);
console
.
warn
(
err
);
});
}
}
})
});
},
},
handleClose
()
{
handleClose
()
{
this
.
$emit
(
'on-close'
)
this
.
$emit
(
"on-close"
);
},
},
l
(
key
)
{
l
(
key
)
{
key
=
"project_main"
+
"."
+
key
;
key
=
"project_main"
+
"."
+
key
;
return
this
.
$t
(
key
)
return
this
.
$t
(
key
);
}
},
},
},
watch
:
{
watch
:
{
eid
(
v
)
{
eid
(
v
)
{
if
(
v
!=
0
)
{
if
(
v
)
{
this
.
load
(
v
);
this
.
load
(
v
);
}
}
}
},
}
},
}
};
</
script
>
</
script
>
<
style
lang=
"less"
>
</
style
>
\ No newline at end of file
pages/project/project/index.vue
View file @
8b9f31e8
This diff is collapsed.
Click to expand it.
pages/technology/details/routingsupporting/add.vue
View file @
8b9f31e8
<
template
>
<
template
>
<Form
ref=
"form"
:model=
"entity"
:rules=
"rules"
:label-width=
"120"
>
<Form
ref=
"form"
:model=
"entity"
:rules=
"rules"
:label-width=
"120"
>
<Row>
<Row>
<!--
<!--
<Col
:span=
"12"
>
<Col
:span=
"12"
>
...
@@ -37,12 +37,7 @@
...
@@ -37,12 +37,7 @@
<Col
:span=
"12"
>
<Col
:span=
"12"
>
<FormItem
:label=
"l('routingDetailName')"
prop=
"routingDetailId"
>
<FormItem
:label=
"l('routingDetailName')"
prop=
"routingDetailId"
>
<Select
v-model=
"entity.routingDetailId"
>
<Select
v-model=
"entity.routingDetailId"
>
<Option
<Option
v-for=
"(item, index) in routingDetailList"
:value=
"item.value"
:key=
"index"
>
{{
item
.
label
}}
</Option>
v-for=
"(item, index) in routingDetailList"
:value=
"item.value"
:key=
"index"
>
{{
item
.
label
}}
</Option
>
</Select>
</Select>
</FormItem>
</FormItem>
</Col>
</Col>
...
@@ -59,24 +54,9 @@
...
@@ -59,24 +54,9 @@
<Materiel
:bomId=
"productBomId"
v-model=
"entity.materialId"
@
on-change=
"change"
></Materiel>
<Materiel
:bomId=
"productBomId"
v-model=
"entity.materialId"
@
on-change=
"change"
></Materiel>
</FormItem>
-->
</FormItem>
-->
<FormItem
:label=
"l('nameMaterial')"
prop=
"materialId"
>
<FormItem
:label=
"l('nameMaterial')"
prop=
"materialId"
>
<Select
<Select
v-model=
"entity.materialId"
placeholder=
"请选择"
style=
"width: 300px"
>
v-model=
"entity.materialId"
<Option
v-for=
"(item, index) in listData"
:key=
"index"
:value=
"item.value"
:label=
"item.label"
style=
"display: none"
></Option>
placeholder=
"请选择"
<Tree
key=
"mytree"
:data=
"dataTree"
ref=
"mytree"
:render=
"renderContent"
></Tree>
style=
"width: 300px"
>
<Option
v-for=
"(item, index) in listData"
:key=
"index"
:value=
"item.value"
:label=
"item.label"
style=
"display: none"
></Option>
<Tree
key=
"mytree"
:data=
"dataTree"
ref=
"mytree"
:render=
"renderContent"
></Tree>
</Select>
</Select>
<!--
<Materiel
<!--
<Materiel
v-model=
"entity.materialId"
v-model=
"entity.materialId"
...
@@ -93,10 +73,7 @@
...
@@ -93,10 +73,7 @@
</Col>
-->
</Col>
-->
<Col
:span=
"12"
>
<Col
:span=
"12"
>
<FormItem
:label=
"l('quantity')"
prop=
"quantity"
>
<FormItem
:label=
"l('quantity')"
prop=
"quantity"
>
<InputNumber
<InputNumber
v-model=
"entity.quantity"
style=
"width: 100%"
></InputNumber>
v-model=
"entity.quantity"
style=
"width: 100%"
></InputNumber>
</FormItem>
</FormItem>
</Col>
</Col>
<Divider
orientation=
"left"
>
物料属性
</Divider>
<Divider
orientation=
"left"
>
物料属性
</Divider>
...
@@ -153,9 +130,11 @@
...
@@ -153,9 +130,11 @@
<Button
type=
"primary"
@
click=
"handleSubmit"
v-noClick
>
保存
</Button>
<Button
type=
"primary"
@
click=
"handleSubmit"
v-noClick
>
保存
</Button>
<Button
@
click=
"handleClose"
class=
"ml20"
>
取消
</Button>
<Button
@
click=
"handleClose"
class=
"ml20"
>
取消
</Button>
</FormItem>
</FormItem>
</Form>
</Form>
</
template
>
</
template
>
<
script
>
<
script
>
import
Api
from
"./api"
;
import
Api
from
"./api"
;
import
ApiDetail
from
"../api"
;
import
ApiDetail
from
"../api"
;
export
default
{
export
default
{
...
@@ -180,36 +159,30 @@ export default {
...
@@ -180,36 +159,30 @@ export default {
texture
:
""
,
texture
:
""
,
procurementStandards
:
""
,
procurementStandards
:
""
,
qualityGrade
:
""
,
qualityGrade
:
""
,
state
:
null
,
state
:
0
,
extend
:
""
,
extend
:
""
,
remark
:
""
,
remark
:
""
,
drawNum
:
""
,
drawNum
:
""
,
json
:
{},
json
:
{},
},
},
rules
:
{
rules
:
{
routingDetailId
:
[
routingDetailId
:
[{
{
required
:
true
,
required
:
true
,
message
:
"请选择工序"
,
message
:
"请选择工序"
,
type
:
"number"
,
type
:
"number"
,
trigger
:
"change"
,
trigger
:
"change"
,
},
},
],
],
materialId
:
[{
materialId
:
[
{
required
:
true
,
required
:
true
,
message
:
"请选择工序"
,
message
:
"请选择工序"
,
trigger
:
"change"
,
trigger
:
"change"
,
},
},
],
],
quantity
:
[{
quantity
:
[
{
required
:
true
,
required
:
true
,
type
:
"number"
,
type
:
"number"
,
message
:
"请选择工序"
,
message
:
"请选择工序"
,
trigger
:
"blur"
,
trigger
:
"blur"
,
},
},
],
],
},
},
routingDetailList
:
[],
routingDetailList
:
[],
};
};
...
@@ -228,11 +201,14 @@ export default {
...
@@ -228,11 +201,14 @@ export default {
this
.
getData
();
this
.
getData
();
},
},
methods
:
{
methods
:
{
renderContent
(
h
,
{
root
,
node
,
data
})
{
renderContent
(
h
,
{
root
,
node
,
data
})
{
//渲染树的样式
//渲染树的样式
return
h
(
return
h
(
"span"
,
"span"
,
{
{
style
:
{
style
:
{
cursor
:
"pointer"
,
cursor
:
"pointer"
,
},
},
...
@@ -262,14 +238,18 @@ export default {
...
@@ -262,14 +238,18 @@ export default {
this
.
entity
.
materialNumber
=
data
.
mmcode
;
this
.
entity
.
materialNumber
=
data
.
mmcode
;
this
.
entity
.
json
.
nameMaterial
=
data
.
name
;
this
.
entity
.
json
.
nameMaterial
=
data
.
name
;
this
.
entity
.
json
.
materialNumber
=
data
.
mmcode
;
this
.
entity
.
json
.
materialNumber
=
data
.
mmcode
;
Api
.
getMaterial
({
id
:
data
.
materialId
}).
then
((
r
)
=>
{
Api
.
getMaterial
({
id
:
data
.
materialId
}).
then
((
r
)
=>
{
if
(
r
.
result
)
{
if
(
r
.
result
)
{
this
.
forItem
=
r
.
result
;
this
.
forItem
=
r
.
result
;
}
}
});
});
},
},
getData
()
{
getData
()
{
Api
.
alltree
({
id
:
this
.
productBomId
}).
then
((
r
)
=>
{
Api
.
alltree
({
id
:
this
.
productBomId
}).
then
((
r
)
=>
{
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
dataTree
=
r
.
result
;
this
.
dataTree
=
r
.
result
;
// this.$Message.success("获取物料成功");
// this.$Message.success("获取物料成功");
...
@@ -344,8 +324,7 @@ export default {
...
@@ -344,8 +324,7 @@ export default {
}
}
},
},
productBomId
(
v
)
{
productBomId
(
v
)
{
if
(
v
>
0
)
{
if
(
v
>
0
)
{}
}
},
},
},
},
};
};
...
...
pages/word/classification/add.vue
View file @
8b9f31e8
...
@@ -461,7 +461,7 @@ export default {
...
@@ -461,7 +461,7 @@ export default {
}
}
})
})
.
catch
((
err
)
=>
{
.
catch
((
err
)
=>
{
this
.
disabled
=
false
;
this
.
$Message
.
error
(
"保存失败"
);
this
.
$Message
.
error
(
"保存失败"
);
console
.
warn
(
err
);
console
.
warn
(
err
);
});
});
...
...
pages/word/document/word.vue
View file @
8b9f31e8
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
<Input
<Input
placeholder=
"请输入文档名称/编号"
placeholder=
"请输入文档名称/编号"
v-model=
"easySearch.keys.value"
v-model=
"easySearch.keys.value"
clearable
/>
/>
</FormItem>
</FormItem>
<FormItem>
<FormItem>
...
@@ -429,6 +430,7 @@ export default {
...
@@ -429,6 +430,7 @@ export default {
}
}
.shuo-ming {
.shuo-ming {
display: -webkit-inline-box;
display: -webkit-inline-box;
// display: inline-block;
}
}
.a-icon {
.a-icon {
text-align: right;
text-align: right;
...
...
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