Commit 40edab9b authored by 仇晓婷's avatar 仇晓婷

物料

parent 73ee7462
...@@ -55,6 +55,8 @@ ...@@ -55,6 +55,8 @@
></state> ></state>
<Dictionary <Dictionary
v-else v-else
@on-change="setRow(row,index)"
v-model="row.dataType"
code="materail.category.dataType" code="materail.category.dataType"
type="select" type="select"
:value="row.dataType" :value="row.dataType"
...@@ -100,7 +102,8 @@ export default { ...@@ -100,7 +102,8 @@ export default {
arr: [], arr: [],
entity: { entity: {
upId: 0, upId: 0,
code: 0 code: 0,
status:0,
}, },
disabled: false, disabled: false,
columns: [ columns: [
......
...@@ -51,6 +51,8 @@ ...@@ -51,6 +51,8 @@
></state> ></state>
<Dictionary <Dictionary
v-else v-else
@on-change="setRow(row,index)"
v-model="row.dataType"
code="materail.category.dataType" code="materail.category.dataType"
type="select" type="select"
:value="row.dataType" :value="row.dataType"
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<Sider width="300" v-if="showMenu"> <Sider width="300" v-if="showMenu">
<div class="p-list"> <div class="p-list">
<h3> <h3>
零部件库 <Dictionary code="material.code.type" v-model="type" style="width:130px;float:left;"></Dictionary>
<div class="fr mr10 mt10"> <div class="fr mr10 mt10">
<ButtonGroup class="fr" size="small"> <ButtonGroup class="fr" size="small">
<Button icon="md-add" title="新增顶级" @click="addNew"></Button> <Button icon="md-add" title="新增顶级" @click="addNew"></Button>
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
</a> </a>
</div> </div>
<Content :class="!showMenu?'con_bord':''"> <Content :class="!showMenu?'con_bord':''">
<MasterData ref="dataTable" @on-edit="editRow" :root="root" @on-ok="ok"/> <MasterData ref="dataTable" @on-edit="editRow" :root="root" @on-ok="ok" />
</Content> </Content>
</Layout> </Layout>
<Modal v-model="modal" :title="title" width="1000" footer-hide :mask-closable="false"> <Modal v-model="modal" :title="title" width="1000" footer-hide :mask-closable="false">
...@@ -192,8 +192,7 @@ export default { ...@@ -192,8 +192,7 @@ export default {
}, },
data.title + data.title +
"(" + "(" +
( (data.totalMaterialCount == undefined
data.totalMaterialCount == undefined
? "0" ? "0"
: data.totalMaterialCount) + : data.totalMaterialCount) +
")" ")"
......
...@@ -50,7 +50,8 @@ export default { ...@@ -50,7 +50,8 @@ export default {
return { return {
entity: { entity: {
upId: this.nodeInfo.id, upId: this.nodeInfo.id,
code: 0 code: 0,
status: 0
}, },
upName: this.nodeInfo.title, upName: this.nodeInfo.title,
disabled: false, disabled: false,
......
...@@ -52,6 +52,7 @@ export default { ...@@ -52,6 +52,7 @@ export default {
arr: [], arr: [],
entity: { entity: {
code: 0, code: 0,
status: 0,
categoryId: this.nodeInfo.categoryId, //左侧树点击的id categoryId: this.nodeInfo.categoryId, //左侧树点击的id
customProperties: {}, customProperties: {},
rootCategoryId: this.nodeInfo.rootCategoryId //左侧树点击的数据的最顶层id rootCategoryId: this.nodeInfo.rootCategoryId //左侧树点击的数据的最顶层id
......
import Api from '@/plugins/request' import Api from '@/plugins/request'
export default { export default {
index:`${systemUrl}/material/paged`, index:`${systemUrl}/material/paged`,
lists:`${systemUrl}/category/list`, lists:`${systemUrl}/actionlog/list`,
paged(params){ paged(params){
return Api.post(`${systemUrl}/material/paged`,params); return Api.post(`${systemUrl}/material/paged`,params);
}, },
...@@ -21,6 +21,6 @@ export default { ...@@ -21,6 +21,6 @@ export default {
return Api.delete(`${systemUrl}/material/delete`,{params:{id:id}}); return Api.delete(`${systemUrl}/material/delete`,{params:{id:id}});
}, },
categoryList(params){ categoryList(params){
return Api.post(`${systemUrl}/category/list`,params); return Api.post(`${systemUrl}/actionlog/list`,params);
}, },
} }
\ No newline at end of file
...@@ -52,8 +52,8 @@ ...@@ -52,8 +52,8 @@
</div> </div>
</div> </div>
<div v-show="showTable"> <div v-show="showTable">
<!-- <DataGrid :columns="columns" ref="grid" :action="action" :high="false" :height="750"></DataGrid> --> <DataGrid :columns="columns" ref="grid" :action="action" :tool="false" :height="750"></DataGrid>
<Table border :columns="columns" :data="data1" :height="800"></Table> <!-- <Table border :columns="columns" :data="data1" :height="800"></Table> -->
</div> </div>
</Content> </Content>
</Layout> </Layout>
...@@ -124,25 +124,26 @@ export default { ...@@ -124,25 +124,26 @@ export default {
} else { } else {
this.showFrom = false; this.showFrom = false;
this.showTable = true; this.showTable = true;
this.easySearch = { this.$refs.grid.reload(this.easySearch);
conditions: [ // this.easySearch = {
{ // conditions: [
fieldName: "table", // {
fieldValue: "material", // fieldName: "table",
conditionalType: "Equal" // fieldValue: "material",
}, // conditionalType: "Equal"
{ // },
fieldName: "tId", // {
fieldValue: this.rowId, // fieldName: "tId",
conditionalType: "Equal" // fieldValue: this.rowId,
} // conditionalType: "Equal"
] // }
}; // ]
Api.categoryList(this.easySearch).then(r => { // };
if (r.result) { // Api.categoryList(this.easySearch).then(r => {
this.data1 = r.result; // if (r.result) {
} // this.data1 = r.result;
}); // }
// });
} }
}, },
l(key) { l(key) {
......
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
<Sider width="300" v-if="showMenu"> <Sider width="300" v-if="showMenu">
<div class="p-list"> <div class="p-list">
<h3> <h3>
零部件库 <Dictionary code="material.code.type" v-model="type" style="width:130px;float:left;"></Dictionary>
<div class="fr mr10 mt10"> <div class="fr mr10 mt10">
<ButtonGroup class="fr" size="small"> <ButtonGroup class="fr ddi" size="small">
<!-- <Button icon="md-add" title="新增顶级" @click="addNew"></Button> --> <!-- <Button icon="md-add" title="新增顶级" @click="addNew"></Button> -->
<Button <Button
:icon="expand ? 'md-arrow-dropright' : 'md-arrow-dropdown'" :icon="expand ? 'md-arrow-dropright' : 'md-arrow-dropdown'"
...@@ -50,6 +50,7 @@ export default { ...@@ -50,6 +50,7 @@ export default {
name: "masterData", name: "masterData",
data() { data() {
return { return {
type: "",
keys: "", keys: "",
expand: false, expand: false,
list: [], list: [],
...@@ -208,7 +209,7 @@ export default { ...@@ -208,7 +209,7 @@ export default {
background: rgba(255, 255, 255, 1); background: rgba(255, 255, 255, 1);
margin-right: 10px; margin-right: 10px;
box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.15); box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.15);
height: 87vh; height: 88vh;
h4 { h4 {
height: 30px; height: 30px;
...@@ -227,6 +228,9 @@ export default { ...@@ -227,6 +228,9 @@ export default {
background: rgba(245, 246, 250, 1); background: rgba(245, 246, 250, 1);
opacity: 1; opacity: 1;
padding-left: 10px; padding-left: 10px;
.ddi {
margin-top: 3px;
}
} }
.search { .search {
height: 50px; height: 50px;
...@@ -274,7 +278,7 @@ export default { ...@@ -274,7 +278,7 @@ export default {
box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.15); box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.15);
overflow: auto; overflow: auto;
padding: 10px; padding: 10px;
height: 87vh; height: 88vh;
overflow-y: hidden; overflow-y: hidden;
} }
} }
......
...@@ -203,7 +203,7 @@ export default { ...@@ -203,7 +203,7 @@ export default {
// }); // });
}, },
details(id) { details(id) {
alert(id)
this.$router.push({ this.$router.push({
path: "/materiel/masterData/details", path: "/materiel/masterData/details",
query: { query: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment