
9 changed files with 849 additions and 141 deletions
@ -0,0 +1,58 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
// 查询集团信息
|
|||
export function selectEnpInfo(data) { |
|||
return request({ |
|||
url: '/dbCenter/enpInfo/selectEnpInfo ', |
|||
method: 'post', |
|||
data: data, |
|||
headers: { |
|||
'Content-Type': 'application/json' |
|||
} |
|||
}) |
|||
} |
|||
|
|||
// 查询品牌信息
|
|||
export function selectEnpBrandList(data) { |
|||
return request({ |
|||
url: '/dbCenter/enpBrand/selectEnpBrandList', |
|||
method: 'post', |
|||
data: data, |
|||
headers: { |
|||
'Content-Type': 'application/json' |
|||
} |
|||
}) |
|||
} |
|||
// 查询门店信息
|
|||
export function selectEnpStoreList(data) { |
|||
return request({ |
|||
url: '/dbCenter/enpStore/selectEnpStoreList', |
|||
method: 'post', |
|||
data: data, |
|||
headers: { |
|||
'Content-Type': 'application/json' |
|||
} |
|||
}) |
|||
} |
|||
// 查询菜品信息
|
|||
export function selectDishesInfoList(data) { |
|||
return request({ |
|||
url: '/dbCenter/dishesInfo/selectDishesInfoList', |
|||
method: 'post', |
|||
data: data, |
|||
headers: { |
|||
'Content-Type': 'application/json' |
|||
} |
|||
}) |
|||
} |
|||
// 查询物料信息
|
|||
export function selectMaterialInfoList(data) { |
|||
return request({ |
|||
url: '/dbCenter/materialInfo/selectMaterialInfoList', |
|||
method: 'post', |
|||
data: data, |
|||
headers: { |
|||
'Content-Type': 'application/json' |
|||
} |
|||
}) |
|||
} |
@ -1,15 +1,138 @@ |
|||
.<template> |
|||
<div> |
|||
<h1>品牌信息</h1> |
|||
<template> |
|||
<div class="app-container"> |
|||
<div class="search"> |
|||
<el-form :inline="true" class="tab-header"> |
|||
<span style="font-size: 16px; font-weight: 500">品牌:</span> |
|||
<el-input |
|||
v-model="page.params.name" |
|||
style="width: 150px; margin-left: 10px" |
|||
/> |
|||
<el-button |
|||
type="primary" |
|||
size="small" |
|||
style="margin-left: 10px" |
|||
icon="el-icon-search" |
|||
@click="dosearch" |
|||
>查询</el-button |
|||
> |
|||
<el-button |
|||
type="primary" |
|||
size="small" |
|||
icon="el-icon-refresh" |
|||
@click="resetSearch" |
|||
>重置</el-button |
|||
> |
|||
</el-form> |
|||
</div> |
|||
<div class="listconadd" style="padding: 20px"> |
|||
<el-table |
|||
v-loading="tableLoading" |
|||
:data="tableData" |
|||
border |
|||
style="width: 100%" |
|||
> |
|||
<el-table-column |
|||
label="序号" |
|||
width="55px" |
|||
:index="indexMethod" |
|||
type="index" |
|||
align="center" |
|||
></el-table-column> |
|||
<el-table-column prop="enpName" label="集团名称" align="center"> |
|||
</el-table-column> |
|||
<el-table-column prop="name" label="品牌名称" align="center"> |
|||
</el-table-column> |
|||
<el-table-column |
|||
prop="enpCode" |
|||
label="企业编码" |
|||
align="center" |
|||
> |
|||
</el-table-column> |
|||
</el-table> |
|||
|
|||
<div class="pages"> |
|||
<div class="tit" /> |
|||
<pagination |
|||
:total="page.total" |
|||
:page.sync="page.current" |
|||
:limit.sync="page.size" |
|||
@pagination="getPageList" |
|||
/> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
<script> |
|||
import { selectEnpBrandList } from "@/api/Zhj/essentialData/index.js"; |
|||
import Pagination from '@/components/pagination' |
|||
export default { |
|||
|
|||
} |
|||
components: { |
|||
Pagination |
|||
}, |
|||
data() { |
|||
return { |
|||
tableLoading: false, |
|||
form: {}, |
|||
page: { |
|||
total: 0, // 默认数据总数 |
|||
current: 1, // 默认开始页面 |
|||
size: 10, // 每页的数据条数 |
|||
params: { |
|||
name: "", |
|||
}, |
|||
}, |
|||
tableData: [], |
|||
}; |
|||
}, |
|||
mounted() {}, |
|||
created() { |
|||
this.getPageList(); |
|||
}, |
|||
methods: { |
|||
getPageList() { |
|||
this.tableLoading = true; |
|||
selectEnpBrandList(this.page) |
|||
.then((res) => { |
|||
this.tableLoading = false; |
|||
if (res.data.pages!=0) { |
|||
this.page.total = res.data.total; |
|||
this.tableData = res.data.records; |
|||
} else { |
|||
this.$message({ |
|||
type: "warning", |
|||
message: "该集团暂无该品牌", |
|||
}); |
|||
} |
|||
}) |
|||
.catch(() => { |
|||
this.tableLoading = false; |
|||
}); |
|||
}, |
|||
// 查询某天的数据 |
|||
dosearch() { |
|||
this.getPageList(); |
|||
}, |
|||
indexMethod(index) { |
|||
var pagestart = (this.page.current - 1) * this.page.size; |
|||
var pageindex = index + 1 + pagestart; |
|||
return pageindex; |
|||
}, |
|||
resetSearch() { |
|||
this.page ={ |
|||
total: 0, // 默认数据总数 |
|||
current: 1, // 默认开始页面 |
|||
size: 10, // 每页的数据条数 |
|||
params: { |
|||
name: "", |
|||
}, |
|||
} |
|||
this.getPageList(); |
|||
} |
|||
}, |
|||
}; |
|||
</script> |
|||
|
|||
<style> |
|||
|
|||
<style scoped="scoped" > |
|||
</style> |
|||
|
@ -1,15 +1,134 @@ |
|||
.<template> |
|||
<div> |
|||
<h1>菜品信息</h1> |
|||
<template> |
|||
<div class="app-container"> |
|||
<div class="search"> |
|||
<el-form :inline="true" class="tab-header"> |
|||
<span style="font-size: 16px; font-weight: 500">菜品:</span> |
|||
<el-input |
|||
v-model="page.params.name" |
|||
style="width: 150px; margin-left: 10px" |
|||
/> |
|||
<el-button |
|||
type="primary" |
|||
size="small" |
|||
style="margin-left: 10px" |
|||
icon="el-icon-search" |
|||
@click="dosearch" |
|||
>查询</el-button |
|||
> |
|||
<el-button |
|||
type="primary" |
|||
size="small" |
|||
icon="el-icon-refresh" |
|||
@click="resetSearch" |
|||
>重置</el-button |
|||
> |
|||
</el-form> |
|||
</div> |
|||
<div class="listconadd" style="padding: 20px"> |
|||
<el-table |
|||
v-loading="tableLoading" |
|||
:data="tableData" |
|||
border |
|||
style="width: 100%" |
|||
> |
|||
<el-table-column |
|||
label="序号" |
|||
width="55px" |
|||
:index="indexMethod" |
|||
type="index" |
|||
align="center" |
|||
></el-table-column> |
|||
<el-table-column prop="name" label="菜品名称" align="center"> |
|||
</el-table-column> |
|||
<el-table-column prop="unit" label="规格单位(个)" align="center"> |
|||
</el-table-column> |
|||
<el-table-column prop="sellingPrice" label="销售单价" align="center"> |
|||
</el-table-column> |
|||
</el-table> |
|||
|
|||
<div class="pages"> |
|||
<div class="tit" /> |
|||
<pagination |
|||
:total="page.total" |
|||
:page.sync="page.current" |
|||
:limit.sync="page.size" |
|||
@pagination="getPageList" |
|||
/> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
<script> |
|||
import { selectDishesInfoList } from "@/api/Zhj/essentialData/index.js"; |
|||
import Pagination from '@/components/pagination' |
|||
export default { |
|||
|
|||
} |
|||
components: { |
|||
Pagination |
|||
}, |
|||
data() { |
|||
return { |
|||
tableLoading: false, |
|||
form: {}, |
|||
page: { |
|||
total: 0, // 默认数据总数 |
|||
current: 1, // 默认开始页面 |
|||
size: 10, // 每页的数据条数 |
|||
params: { |
|||
name: "", |
|||
}, |
|||
}, |
|||
tableData: [], |
|||
}; |
|||
}, |
|||
mounted() {}, |
|||
created() { |
|||
this.getPageList(); |
|||
}, |
|||
methods: { |
|||
getPageList() { |
|||
this.tableLoading = true; |
|||
selectDishesInfoList(this.page) |
|||
.then((res) => { |
|||
this.tableLoading = false; |
|||
if (res.data.pages!=0) { |
|||
this.page.total = res.data.total; |
|||
this.tableData = res.data.records; |
|||
} else { |
|||
this.$message({ |
|||
type: "warning", |
|||
message: "暂无该菜品", |
|||
}); |
|||
} |
|||
}) |
|||
.catch(() => { |
|||
this.tableLoading = false; |
|||
}); |
|||
}, |
|||
// 查询某天的数据 |
|||
dosearch() { |
|||
this.getPageList(); |
|||
}, |
|||
indexMethod(index) { |
|||
var pagestart = (this.page.current - 1) * this.page.size; |
|||
var pageindex = index + 1 + pagestart; |
|||
return pageindex; |
|||
}, |
|||
resetSearch() { |
|||
this.page ={ |
|||
total: 0, // 默认数据总数 |
|||
current: 1, // 默认开始页面 |
|||
size: 10, // 每页的数据条数 |
|||
params: { |
|||
name: "", |
|||
}, |
|||
} |
|||
this.getPageList(); |
|||
} |
|||
}, |
|||
}; |
|||
</script> |
|||
|
|||
<style> |
|||
|
|||
<style scoped="scoped" > |
|||
</style> |
|||
|
@ -1,15 +1,137 @@ |
|||
.<template> |
|||
<div> |
|||
<h1>集团信息</h1> |
|||
<template> |
|||
<div class="app-container"> |
|||
<div class="search"> |
|||
<el-form :inline="true" class="tab-header"> |
|||
<span style="font-size: 16px; font-weight: 500">集团:</span> |
|||
<el-input |
|||
v-model="page.params.name" |
|||
style="width: 150px; margin-left: 10px" |
|||
/> |
|||
<el-button |
|||
type="primary" |
|||
size="small" |
|||
style="margin-left: 10px" |
|||
icon="el-icon-search" |
|||
@click="dosearch" |
|||
>查询</el-button |
|||
> |
|||
<el-button |
|||
type="primary" |
|||
size="small" |
|||
icon="el-icon-refresh" |
|||
@click="resetSearch" |
|||
>重置</el-button |
|||
> |
|||
</el-form> |
|||
</div> |
|||
<div class="listconadd" style="padding: 20px"> |
|||
<el-table |
|||
v-loading="tableLoading" |
|||
:data="tableData" |
|||
border |
|||
style="width: 100%" |
|||
> |
|||
<el-table-column |
|||
label="序号" |
|||
width="55px" |
|||
:index="indexMethod" |
|||
type="index" |
|||
align="center" |
|||
></el-table-column> |
|||
<el-table-column prop="name" label="集团名称" align="center"> |
|||
|
|||
</el-table-column> |
|||
<el-table-column |
|||
prop="code" |
|||
label="企业编码" |
|||
align="center" |
|||
> |
|||
</el-table-column> |
|||
</el-table> |
|||
|
|||
<div class="pages"> |
|||
<div class="tit" /> |
|||
<pagination |
|||
:total="page.total" |
|||
:page.sync="page.current" |
|||
:limit.sync="page.size" |
|||
@pagination="getPageList" |
|||
/> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
<script> |
|||
import { selectEnpInfo } from "@/api/Zhj/essentialData/index.js"; |
|||
import Pagination from '@/components/pagination' |
|||
export default { |
|||
|
|||
} |
|||
components: { |
|||
Pagination |
|||
}, |
|||
data() { |
|||
return { |
|||
tableLoading: false, |
|||
form: {}, |
|||
page: { |
|||
total: 0, // 默认数据总数 |
|||
current: 1, // 默认开始页面 |
|||
size: 10, // 每页的数据条数 |
|||
params: { |
|||
name: "", |
|||
}, |
|||
}, |
|||
tableData: [], |
|||
}; |
|||
}, |
|||
mounted() {}, |
|||
created() { |
|||
this.getPageList(); |
|||
}, |
|||
methods: { |
|||
getPageList() { |
|||
this.tableLoading = true; |
|||
selectEnpInfo(this.page) |
|||
.then((res) => { |
|||
this.tableLoading = false; |
|||
if (res.data.pages!=0) { |
|||
this.page.total = res.data.total; |
|||
this.tableData = res.data.records; |
|||
} else { |
|||
this.$message({ |
|||
type: "warning", |
|||
message: "暂无该集团", |
|||
}); |
|||
} |
|||
}) |
|||
.catch(() => { |
|||
this.tableLoading = false; |
|||
}); |
|||
}, |
|||
// 查询某天的数据 |
|||
dosearch() { |
|||
this.getPageList(); |
|||
}, |
|||
indexMethod(index) { |
|||
var pagestart = (this.page.current - 1) * this.page.size; |
|||
var pageindex = index + 1 + pagestart; |
|||
return pageindex; |
|||
}, |
|||
resetSearch() { |
|||
this.page ={ |
|||
total: 0, // 默认数据总数 |
|||
current: 1, // 默认开始页面 |
|||
size: 10, // 每页的数据条数 |
|||
params: { |
|||
name: "", |
|||
}, |
|||
} |
|||
this.getPageList(); |
|||
} |
|||
}, |
|||
}; |
|||
</script> |
|||
|
|||
<style> |
|||
|
|||
<style scoped="scoped" > |
|||
</style> |
|||
|
@ -1,15 +1,140 @@ |
|||
.<template> |
|||
<div> |
|||
<h1>物料信息</h1> |
|||
<template> |
|||
<div class="app-container"> |
|||
<div class="search"> |
|||
<el-form :inline="true" class="tab-header"> |
|||
<span style="font-size: 16px; font-weight: 500">物料:</span> |
|||
<el-input |
|||
v-model="page.params.name" |
|||
style="width: 150px; margin-left: 10px" |
|||
/> |
|||
<el-button |
|||
type="primary" |
|||
size="small" |
|||
style="margin-left: 10px" |
|||
icon="el-icon-search" |
|||
@click="dosearch" |
|||
>查询</el-button |
|||
> |
|||
<el-button |
|||
type="primary" |
|||
size="small" |
|||
icon="el-icon-refresh" |
|||
@click="resetSearch" |
|||
>重置</el-button |
|||
> |
|||
</el-form> |
|||
</div> |
|||
</template> |
|||
<div class="listconadd" style="padding: 20px"> |
|||
<el-table |
|||
v-loading="tableLoading" |
|||
:data="tableData" |
|||
border |
|||
style="width: 100%" |
|||
> |
|||
<el-table-column |
|||
label="序号" |
|||
width="55px" |
|||
:index="indexMethod" |
|||
type="index" |
|||
align="center" |
|||
></el-table-column> |
|||
<el-table-column prop="code" label="物料编码" align="center"> |
|||
</el-table-column> |
|||
<el-table-column prop="name" label="物料名称" align="center"> |
|||
</el-table-column> |
|||
<el-table-column prop="unit" label="规格单位" align="center"> |
|||
</el-table-column> |
|||
<el-table-column |
|||
prop="taxPrice" |
|||
label="含税单价" |
|||
align="center" |
|||
> |
|||
</el-table-column> |
|||
</el-table> |
|||
|
|||
<script> |
|||
export default { |
|||
<div class="pages"> |
|||
<div class="tit" /> |
|||
<pagination |
|||
:total="page.total" |
|||
:page.sync="page.current" |
|||
:limit.sync="page.size" |
|||
@pagination="getPageList" |
|||
/> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import { selectMaterialInfoList } from "@/api/Zhj/essentialData/index.js"; |
|||
import Pagination from '@/components/pagination' |
|||
export default { |
|||
components: { |
|||
Pagination |
|||
}, |
|||
data() { |
|||
return { |
|||
tableLoading: false, |
|||
form: {}, |
|||
page: { |
|||
total: 0, // 默认数据总数 |
|||
current: 1, // 默认开始页面 |
|||
size: 10, // 每页的数据条数 |
|||
params: { |
|||
name: "", |
|||
}, |
|||
}, |
|||
tableData: [], |
|||
}; |
|||
}, |
|||
mounted() {}, |
|||
created() { |
|||
this.getPageList(); |
|||
}, |
|||
methods: { |
|||
getPageList() { |
|||
this.tableLoading = true; |
|||
selectMaterialInfoList(this.page) |
|||
.then((res) => { |
|||
this.tableLoading = false; |
|||
if (res.data.pages!=0) { |
|||
this.page.total = res.data.total; |
|||
this.tableData = res.data.records; |
|||
} else { |
|||
this.$message({ |
|||
type: "warning", |
|||
message: "暂无该物料", |
|||
}); |
|||
} |
|||
}) |
|||
.catch(() => { |
|||
this.tableLoading = false; |
|||
}); |
|||
}, |
|||
// 查询某天的数据 |
|||
dosearch() { |
|||
this.getPageList(); |
|||
}, |
|||
indexMethod(index) { |
|||
var pagestart = (this.page.current - 1) * this.page.size; |
|||
var pageindex = index + 1 + pagestart; |
|||
return pageindex; |
|||
}, |
|||
resetSearch() { |
|||
this.page ={ |
|||
total: 0, // 默认数据总数 |
|||
current: 1, // 默认开始页面 |
|||
size: 10, // 每页的数据条数 |
|||
params: { |
|||
name: "", |
|||
}, |
|||
} |
|||
this.getPageList(); |
|||
} |
|||
</script> |
|||
}, |
|||
}; |
|||
</script> |
|||
|
|||
<style> |
|||
<style scoped="scoped" > |
|||
</style> |
|||
|
|||
</style> |
@ -1,15 +1,140 @@ |
|||
.<template> |
|||
<div> |
|||
<h1>门店信息</h1> |
|||
<template> |
|||
<div class="app-container"> |
|||
<div class="search"> |
|||
<el-form :inline="true" class="tab-header"> |
|||
<span style="font-size: 16px; font-weight: 500">门店:</span> |
|||
<el-input |
|||
v-model="page.params.name" |
|||
style="width: 150px; margin-left: 10px" |
|||
/> |
|||
<el-button |
|||
type="primary" |
|||
size="small" |
|||
style="margin-left: 10px" |
|||
icon="el-icon-search" |
|||
@click="dosearch" |
|||
>查询</el-button |
|||
> |
|||
<el-button |
|||
type="primary" |
|||
size="small" |
|||
icon="el-icon-refresh" |
|||
@click="resetSearch" |
|||
>重置</el-button |
|||
> |
|||
</el-form> |
|||
</div> |
|||
<div class="listconadd" style="padding: 20px"> |
|||
<el-table |
|||
v-loading="tableLoading" |
|||
:data="tableData" |
|||
border |
|||
style="width: 100%" |
|||
> |
|||
<el-table-column |
|||
label="序号" |
|||
width="55px" |
|||
:index="indexMethod" |
|||
type="index" |
|||
align="center" |
|||
></el-table-column> |
|||
<el-table-column prop="enpName" label="集团名称" align="center"> |
|||
</el-table-column> |
|||
<el-table-column prop="brandName" label="品牌名称" align="center"> |
|||
</el-table-column> |
|||
<el-table-column prop="name" label="门店名称" align="center"> |
|||
</el-table-column> |
|||
<el-table-column |
|||
prop="enpCode" |
|||
label="企业编码" |
|||
align="center" |
|||
> |
|||
</el-table-column> |
|||
</el-table> |
|||
|
|||
<div class="pages"> |
|||
<div class="tit" /> |
|||
<pagination |
|||
:total="page.total" |
|||
:page.sync="page.current" |
|||
:limit.sync="page.size" |
|||
@pagination="getPageList" |
|||
/> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
<script> |
|||
import { selectEnpStoreList } from "@/api/Zhj/essentialData/index.js"; |
|||
import Pagination from '@/components/pagination' |
|||
export default { |
|||
|
|||
} |
|||
components: { |
|||
Pagination |
|||
}, |
|||
data() { |
|||
return { |
|||
tableLoading: false, |
|||
form: {}, |
|||
page: { |
|||
total: 0, // 默认数据总数 |
|||
current: 1, // 默认开始页面 |
|||
size: 10, // 每页的数据条数 |
|||
params: { |
|||
name: "", |
|||
}, |
|||
}, |
|||
tableData: [], |
|||
}; |
|||
}, |
|||
mounted() {}, |
|||
created() { |
|||
this.getPageList(); |
|||
}, |
|||
methods: { |
|||
getPageList() { |
|||
this.tableLoading = true; |
|||
selectEnpStoreList(this.page) |
|||
.then((res) => { |
|||
this.tableLoading = false; |
|||
if (res.data.pages!=0) { |
|||
this.page.total = res.data.total; |
|||
this.tableData = res.data.records; |
|||
} else { |
|||
this.$message({ |
|||
type: "warning", |
|||
message: "暂无该门店", |
|||
}); |
|||
} |
|||
}) |
|||
.catch(() => { |
|||
this.tableLoading = false; |
|||
}); |
|||
}, |
|||
// 查询某天的数据 |
|||
dosearch() { |
|||
this.getPageList(); |
|||
}, |
|||
indexMethod(index) { |
|||
var pagestart = (this.page.current - 1) * this.page.size; |
|||
var pageindex = index + 1 + pagestart; |
|||
return pageindex; |
|||
}, |
|||
resetSearch() { |
|||
this.page ={ |
|||
total: 0, // 默认数据总数 |
|||
current: 1, // 默认开始页面 |
|||
size: 10, // 每页的数据条数 |
|||
params: { |
|||
name: "", |
|||
}, |
|||
} |
|||
this.getPageList(); |
|||
} |
|||
}, |
|||
}; |
|||
</script> |
|||
|
|||
<style> |
|||
|
|||
<style scoped="scoped" > |
|||
</style> |
|||
|
Loading…
Reference in new issue