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
48a46201
Commit
48a46201
authored
Jun 17, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
物料添加单位
parent
d7c7ed19
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
23 deletions
+38
-23
add.vue
pages/materiel/classification/add.vue
+13
-12
edit.vue
pages/materiel/classification/edit.vue
+24
-10
masterData.vue
pages/materiel/classification/masterData.vue
+1
-1
No files found.
pages/materiel/classification/add.vue
View file @
48a46201
...
...
@@ -30,7 +30,7 @@
</Col>
<Col
:span=
"24"
>
<h4>
扩展属性
</h4>
<Table
border
:columns=
"columns"
:data=
"checkList"
height=
"
30
0"
>
<Table
border
:columns=
"columns"
:data=
"checkList"
height=
"
45
0"
>
<template
slot-scope=
"
{ row, index }" slot="title">
<div
v-if=
"row.fieldType==1||row.fieldType==2"
>
{{
row
.
title
}}
</div>
<Input
...
...
@@ -61,20 +61,21 @@
:key=
"row.dataType"
></Dictionary>
</
template
>
<
template
slot-scope=
"{ row, index }"
slot=
"
dataTyp
e"
>
<
!--
<
state
<
template
slot-scope=
"{ row, index }"
slot=
"
unitNam
e"
>
<state
v-if=
"row.fieldType==1"
code=
"mater
ail.main.company
"
:value=
"row.
company
"
code=
"mater
ial.main.unitName
"
:value=
"row.
unitName
"
type=
"text"
></state>
-->
></state>
<Dictionary
v-else
@
on-change=
"setRow(row,index)"
v-model=
"row.
company
"
code=
"mater
ail.main.company
"
v-model=
"row.
unitName
"
code=
"mater
ial.main.unitName
"
type=
"select"
:value=
"row.
company
"
:key=
"row.
company
"
:value=
"row.
unitName
"
:key=
"row.
unitName
"
></Dictionary>
</
template
>
<
template
slot-scope=
"{ row, index }"
slot=
"required"
>
...
...
@@ -145,9 +146,9 @@ export default {
},
{
title
:
"单位"
,
key
:
"
company
"
,
key
:
"
unitName
"
,
align
:
"center"
,
slot
:
"
company
"
slot
:
"
unitName
"
},
{
title
:
"是否必填"
,
...
...
pages/materiel/classification/edit.vue
View file @
48a46201
...
...
@@ -33,7 +33,7 @@
</Col>
<Col
:span=
"24"
style=
"padding:20px 0 0px 10px;margin-bottom:10px;"
class=
"table-solt"
>
<!--fieldType 1.固有,2.默认,3自定义; -->
<Table
border
:columns=
"columns"
:data=
"checkList"
class=
"tableCommon"
height=
"
30
0"
>
<Table
border
:columns=
"columns"
:data=
"checkList"
class=
"tableCommon"
height=
"
45
0"
>
<template
slot-scope=
"
{ row, index }" slot="title">
<div
v-if=
"row.fieldType==1||row.fieldType==2"
>
{{
row
.
title
}}
</div>
<Input
v-else
v-model=
"row.title"
placeholder=
"请输入"
@
on-blur=
"setRow(row,index)"
/>
...
...
@@ -59,9 +59,23 @@
: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=
"unitName"
>
<state
v-if=
"row.fieldType==1"
code=
"material.main.unitName"
:value=
"row.unitName"
type=
"text"
></state>
<Dictionary
v-else
@
on-change=
"setRow(row,index)"
v-model=
"row.unitName"
code=
"material.main.unitName"
type=
"select"
:value=
"row.unitName"
:key=
"row.unitName"
></Dictionary>
</
template
>
<
template
slot-scope=
"{ row, index }"
slot=
"required"
>
<Checkbox
v-model=
"row.required"
@
on-change=
"setRow(row,index)"
></Checkbox>
</
template
>
...
...
@@ -129,12 +143,12 @@ export default {
align
:
"center"
,
slot
:
"dataType"
},
//
{
// title: "是否显示
",
// key: "result
",
//
align: "center",
// slot: "result
"
//
},
{
title
:
"单位
"
,
key
:
"unitName
"
,
align
:
"center"
,
slot
:
"unitName
"
},
{
title
:
"是否必填"
,
key
:
"required"
,
...
...
pages/materiel/classification/masterData.vue
View file @
48a46201
...
...
@@ -111,7 +111,7 @@ export default {
},
methods
:
{
search
()
{
alert
(
JSON
.
stringify
(
this
.
easySearch
));
//
alert(JSON.stringify(this.easySearch));
console
.
log
(
this
.
easySearch
);
this
.
$refs
.
grid
.
reload
(
this
.
easySearch
);
},
...
...
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