Merge branch 'bonus-jyy-smart-canteen' of http://192.168.0.75:3000/bonus/bonus-ui into bonus-jyy-smart-canteen
This commit is contained in:
commit
d2fde335e9
|
|
@ -69,7 +69,7 @@ export function deleteSupermarketApi(data) {
|
||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 商品列表
|
// 商超商品列表
|
||||||
export function shopPageListApi(data) {
|
export function shopPageListApi(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/smart-canteen/supermarket_product/list',
|
url: '/smart-canteen/supermarket_product/list',
|
||||||
|
|
@ -80,13 +80,20 @@ export function shopPageListApi(data) {
|
||||||
params: data
|
params: data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
// 商品列表
|
||||||
|
export function shopProductPageListApi(data) {
|
||||||
|
return request({
|
||||||
|
url: '/smart-canteen/supermarket_product/getAddList',
|
||||||
|
method: 'get',
|
||||||
|
headers: {
|
||||||
|
"merchant-id":"378915229716713472",
|
||||||
|
},
|
||||||
|
params: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -485,9 +485,7 @@
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button icon="el-icon-refresh" size="mini" @click=""
|
<el-button type="primary" @click="">批量线上销售</el-button>
|
||||||
>批量线上销售</el-button
|
|
||||||
>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
@ -496,11 +494,7 @@
|
||||||
<el-col :span="24" :xs="24">
|
<el-col :span="24" :xs="24">
|
||||||
<el-table v-loading="loading" :data="tableAddShopListData" height="550" ref="multipleTable" border :row-key="(row)=>{return row.materialId}" @selection-change="handleSelectionChange">
|
<el-table v-loading="loading" :data="tableAddShopListData" height="550" ref="multipleTable" border :row-key="(row)=>{return row.materialId}" @selection-change="handleSelectionChange">
|
||||||
<el-table-column type="selection" width="50" align="center" :reserve-selection="true"/>
|
<el-table-column type="selection" width="50" align="center" :reserve-selection="true"/>
|
||||||
<el-table-column label="序号" align="center" width="80" type="index">
|
<el-table-column label="区域" align="center" key="areaName" prop="areaName" :show-overflow-tooltip="true" />
|
||||||
<template slot-scope="scope">
|
|
||||||
<span>{{(queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1}}</span>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column label="名称" align="center" key="materialName" prop="materialName" :show-overflow-tooltip="true" />
|
<el-table-column label="名称" align="center" key="materialName" prop="materialName" :show-overflow-tooltip="true" />
|
||||||
<el-table-column label="单位" align="center" key="unitName" prop="unitName" :show-overflow-tooltip="true" />
|
<el-table-column label="单位" align="center" key="unitName" prop="unitName" :show-overflow-tooltip="true" />
|
||||||
<el-table-column label="商品类别" align="center" key="materialTypeName" prop="materialTypeName" :show-overflow-tooltip="true" />
|
<el-table-column label="商品类别" align="center" key="materialTypeName" prop="materialTypeName" :show-overflow-tooltip="true" />
|
||||||
|
|
@ -540,17 +534,10 @@
|
||||||
<el-table-column label="条码" align="center" key="barCode" prop="barCode" :show-overflow-tooltip="true" />
|
<el-table-column label="条码" align="center" key="barCode" prop="barCode" :show-overflow-tooltip="true" />
|
||||||
<el-table-column label="操作" align="center" width="100" fixed="right">
|
<el-table-column label="操作" align="center" width="100" fixed="right">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
|
||||||
size="mini"
|
|
||||||
type="text"
|
|
||||||
@click="handleShopUpdate(scope.row)"
|
|
||||||
>
|
|
||||||
编辑
|
|
||||||
</el-button>
|
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="text" style="color: red;"
|
type="text" style="color: red;"
|
||||||
@click="handleShopDelete(scope.row)"
|
@click="handleAddShopDelete(scope.row)"
|
||||||
>
|
>
|
||||||
删除
|
删除
|
||||||
</el-button>
|
</el-button>
|
||||||
|
|
@ -567,6 +554,10 @@
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</div>
|
</div>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button @click="cancelAddShopProduct">返 回</el-button>
|
||||||
|
<el-button type="primary" @click="handleAddShopProduct">添加商品</el-button>
|
||||||
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -578,16 +569,12 @@
|
||||||
<script>
|
<script>
|
||||||
import { systemAreaTreeApi } from "@/api/base/area";
|
import { systemAreaTreeApi } from "@/api/base/area";
|
||||||
import { drpWareHousePageApi,supermarketPageListApi,insertSupermarketApi,editSupermarketApi,deleteSupermarketApi,userListByRoleApi
|
import { drpWareHousePageApi,supermarketPageListApi,insertSupermarketApi,editSupermarketApi,deleteSupermarketApi,userListByRoleApi
|
||||||
,shopPageListApi} from "@/api/superStore/super";
|
,shopPageListApi,shopProductPageListApi} from "@/api/superStore/super";
|
||||||
import { shopMaterialTreeApi} from "@/api/superStore/shopMaterial";
|
import { shopMaterialTreeApi} from "@/api/superStore/shopMaterial";
|
||||||
import { imgUpLoadTwo } from '@/api/system/upload'
|
import { imgUpLoadTwo } from '@/api/system/upload'
|
||||||
import ShopingDialog from './ShopingDialog.vue';
|
|
||||||
export default {
|
export default {
|
||||||
name: "",
|
name: "",
|
||||||
dicts: ['sys_user_type'],
|
dicts: ['sys_user_type'],
|
||||||
components: {
|
|
||||||
ShopingDialog
|
|
||||||
},
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
// 遮罩层
|
// 遮罩层
|
||||||
|
|
@ -755,6 +742,7 @@
|
||||||
orderDTO:{},//订单设置
|
orderDTO:{},//订单设置
|
||||||
mealtimeList:[],//餐次列表
|
mealtimeList:[],//餐次列表
|
||||||
selectSupermarketId:"",
|
selectSupermarketId:"",
|
||||||
|
selectAreaId:"",
|
||||||
queryAddShopParams:{
|
queryAddShopParams:{
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
|
|
@ -1080,6 +1068,7 @@
|
||||||
handleAddShoping(row){
|
handleAddShoping(row){
|
||||||
console.log("商品",row)
|
console.log("商品",row)
|
||||||
this.selectSupermarketId=row.supermarketId;
|
this.selectSupermarketId=row.supermarketId;
|
||||||
|
this.selectAreaId=row.areaId;
|
||||||
this.titleProduct="商品";
|
this.titleProduct="商品";
|
||||||
this.openProduct=true;
|
this.openProduct=true;
|
||||||
this.getShopTreeData();
|
this.getShopTreeData();
|
||||||
|
|
@ -1130,6 +1119,7 @@
|
||||||
this.reset();
|
this.reset();
|
||||||
this.openAddProduct = true;
|
this.openAddProduct = true;
|
||||||
this.titleAddProduct = "新增-超市商品";
|
this.titleAddProduct = "新增-超市商品";
|
||||||
|
this.getAddShopList();
|
||||||
},
|
},
|
||||||
/** 新增商品列表 */
|
/** 新增商品列表 */
|
||||||
getAddShopList() {
|
getAddShopList() {
|
||||||
|
|
@ -1137,10 +1127,9 @@
|
||||||
let param = {
|
let param = {
|
||||||
"pageNum": this.queryAddShopParams.pageNum,
|
"pageNum": this.queryAddShopParams.pageNum,
|
||||||
"pageSize": this.queryAddShopParams.pageSize,
|
"pageSize": this.queryAddShopParams.pageSize,
|
||||||
"warehouseId": this.queryAddShopParams.warehouseId,
|
"areaId":this.selectAreaId
|
||||||
"areaId":this.queryAddShopParams.areaId
|
|
||||||
}
|
}
|
||||||
shopPageListApi(param).then(response => {
|
shopProductPageListApi(param).then(response => {
|
||||||
this.tableAddShopListData = response.rows;
|
this.tableAddShopListData = response.rows;
|
||||||
console.log("this.tableAddShopListData",this.tableAddShopListData);
|
console.log("this.tableAddShopListData",this.tableAddShopListData);
|
||||||
this.total = Number(response.total);
|
this.total = Number(response.total);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue