mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 05:46:03 +08:00
优化小区入驻完成
This commit is contained in:
parent
e54b7ed383
commit
34e053bf4c
8
app.js
8
app.js
@ -36,11 +36,11 @@ let opts = {
|
||||
//app.use('/callComponent',proxy('http://api.demo.winqi.cn:8012',opts));
|
||||
|
||||
|
||||
app.use('/callComponent',proxy('http://api.demo.winqi.cn:8012',opts));
|
||||
app.use('/app',proxy('http://api.demo.winqi.cn:8012',opts));
|
||||
//app.use('/callComponent',proxy('http://api.demo.winqi.cn:8012',opts));
|
||||
//app.use('/app',proxy('http://api.demo.winqi.cn:8012',opts));
|
||||
|
||||
//app.use('/callComponent',proxy('http://127.0.0.1:8012',opts));
|
||||
//app.use('/app',proxy('http://127.0.0.1:8012',opts));
|
||||
app.use('/callComponent',proxy('http://192.168.1.106:8012',opts));
|
||||
app.use('/app',proxy('http://192.168.1.106:8012',opts));
|
||||
|
||||
//app.use('/callComponent',proxy('http://192.168.1.16:8012',opts));
|
||||
//app.use('/app',proxy('http://192.168.1.16:8012',opts));
|
||||
|
||||
@ -0,0 +1,57 @@
|
||||
<div class=" animated fadeInRight ecommerce">
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<div class="ibox">
|
||||
<div class="ibox-title">
|
||||
<h5>店铺入驻小区</h5>
|
||||
<div class="ibox-tools" style="top:10px;">
|
||||
</div>
|
||||
</div>
|
||||
<div class="ibox-content">
|
||||
<table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">小区编码</th>
|
||||
<th class="text-center">小区名称</th>
|
||||
<th class="text-center">商铺名称</th>
|
||||
<th class="text-center">入驻时间</th>
|
||||
<th class="text-center">开始时间</th>
|
||||
<th class="text-center">结束时间</th>
|
||||
<th class="text-center">状态</th>
|
||||
<th class="text-center">操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="shopCommunity in auditShopCommunityInfo.shopCommunitys">
|
||||
<td class="text-center">{{shopCommunity.communityId}}</td>
|
||||
<td class="text-center">{{shopCommunity.communityName}}</td>
|
||||
<td class="text-center">{{shopCommunity.shopName}}</td>
|
||||
<td class="text-center">{{shopCommunity.createTime}}</td>
|
||||
<td class="text-center">{{shopCommunity.startTime}}</td>
|
||||
<td class="text-center">{{shopCommunity.endTime}}</td>
|
||||
<td class="text-center">{{shopCommunity.stateName}}</td>
|
||||
<td class="text-center">
|
||||
<div class="btn-group">
|
||||
<button class="btn-white btn btn-xs"
|
||||
v-on:click="_openAuditShopCommunityModel(shopCommunity)">审核
|
||||
</button>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="7">
|
||||
<ul class="pagination float-right"></ul>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
<!-- 分页 -->
|
||||
<vc:create path="frame/pagination"></vc:create>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<vc:create path="common/audit" callBackListener="auditShopCommunity" callBackFunction="notifyAudit"></vc:create>
|
||||
</div>
|
||||
100
public/pages/admin/auditShopCommunity/auditShopCommunity.js
Normal file
100
public/pages/admin/auditShopCommunity/auditShopCommunity.js
Normal file
@ -0,0 +1,100 @@
|
||||
/**
|
||||
审核订单
|
||||
**/
|
||||
(function (vc) {
|
||||
var DEFAULT_PAGE = 1;
|
||||
var DEFAULT_ROWS = 10;
|
||||
vc.extends({
|
||||
data: {
|
||||
auditShopCommunityInfo: {
|
||||
shopCommunitys: [],
|
||||
total: 0,
|
||||
records: 1,
|
||||
moreCondition: false,
|
||||
userName: '',
|
||||
currentUserId: vc.getData('/nav/getUserInfo').userId,
|
||||
conditions: {
|
||||
state: '12001'
|
||||
},
|
||||
orderInfo: {},
|
||||
procure: false
|
||||
}
|
||||
},
|
||||
_initMethod: function () {
|
||||
vc.component._listAuditShopCommunitys(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
},
|
||||
_initEvent: function () {
|
||||
|
||||
vc.on('auditShopCommunity', 'listAuditShopCommunitys', function (_param) {
|
||||
vc.component._listAuditShopCommunitys(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
});
|
||||
vc.on('pagination', 'page_event', function (_currentPage) {
|
||||
vc.component._listAuditShopCommunitys(_currentPage, DEFAULT_ROWS);
|
||||
});
|
||||
|
||||
vc.on('auditShopCommunity', 'notifyAudit', function (_auditInfo) {
|
||||
vc.component._auditOrderInfo(_auditInfo);
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
_listAuditShopCommunitys: function (_page, _rows) {
|
||||
|
||||
vc.component.auditShopCommunityInfo.conditions.page = _page;
|
||||
vc.component.auditShopCommunityInfo.conditions.row = _rows;
|
||||
var param = {
|
||||
params: vc.component.auditShopCommunityInfo.conditions
|
||||
};
|
||||
|
||||
//发送get请求
|
||||
vc.http.apiGet('/shop/queryShopCommunity',
|
||||
param,
|
||||
function (json, res) {
|
||||
var _auditShopCommunityInfo = JSON.parse(json);
|
||||
vc.component.auditShopCommunityInfo.total = _auditShopCommunityInfo.total;
|
||||
vc.component.auditShopCommunityInfo.records = _auditShopCommunityInfo.records;
|
||||
vc.component.auditShopCommunityInfo.shopCommunitys = _auditShopCommunityInfo.data;
|
||||
vc.emit('pagination', 'init', {
|
||||
total: vc.component.auditShopCommunityInfo.records,
|
||||
currentPage: _page
|
||||
});
|
||||
}, function (errInfo, error) {
|
||||
console.log('请求失败处理');
|
||||
}
|
||||
);
|
||||
},
|
||||
_openAuditShopCommunityModel: function (_auditOrder) {
|
||||
vc.component.auditShopCommunityInfo.orderInfo = _auditOrder;
|
||||
vc.emit('audit', 'openAuditModal', {});
|
||||
},
|
||||
_queryAuditShopCommunitysMethod: function () {
|
||||
vc.component._listAuditShopCommunitys(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
},
|
||||
//提交审核信息
|
||||
_auditOrderInfo: function (_auditInfo) {
|
||||
console.log("提交得参数:" + _auditInfo);
|
||||
//发送get请求
|
||||
_auditInfo.shopId = $that.auditShopCommunityInfo.orderInfo.shopId;
|
||||
_auditInfo.storeId = $that.auditShopCommunityInfo.orderInfo.storeId;
|
||||
_auditInfo.scId = $that.auditShopCommunityInfo.orderInfo.scId;
|
||||
vc.http.apiPost('/shop/auditShopCommunity',
|
||||
JSON.stringify(_auditInfo),
|
||||
{
|
||||
emulateJSON: true
|
||||
},
|
||||
function (json, res) {
|
||||
let _json = JSON.parse(json)
|
||||
if (_json.code != 0) {
|
||||
vc.toast(_json.msg);
|
||||
return;
|
||||
}
|
||||
vc.toast("处理成功");
|
||||
vc.component._listAuditShopCommunitys(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
}, function (errInfo, error) {
|
||||
console.log('请求失败处理');
|
||||
vc.toast("处理失败:" + errInfo);
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
});
|
||||
})(window.vc);
|
||||
93
public/pages/admin/shopCommunity/shopCommunity.html
Normal file
93
public/pages/admin/shopCommunity/shopCommunity.html
Normal file
@ -0,0 +1,93 @@
|
||||
<div class=" animated fadeInRight ecommerce">
|
||||
<div class="row" >
|
||||
<div class="col-lg-12">
|
||||
<div class="ibox ">
|
||||
<div class="ibox-title">
|
||||
<h5>查询条件</h5>
|
||||
<div class="ibox-tools" style="top:10px;">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="ibox-content">
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<input type="text" placeholder="店铺名称" v-model="shopCommunityInfo.conditions.shopName"
|
||||
class=" form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="form-group">
|
||||
<input type="text" placeholder="小区名称" v-model="shopCommunityInfo.conditions.communityName"
|
||||
class=" form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="form-group">
|
||||
|
||||
<select class="custom-select" v-model="shopCommunityInfo.conditions.state">
|
||||
<option value="24002">审核通过</option>
|
||||
<option value="48004">审核不通过</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="button" class="btn btn-primary btn-sm" v-on:click="_queryAuditShopCommunitysMethod()">
|
||||
<i class="fa fa-search"></i> 查询
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<div class="ibox">
|
||||
<div class="ibox-title">
|
||||
<h5>小区商铺</h5>
|
||||
<div class="ibox-tools" style="top:10px;">
|
||||
</div>
|
||||
</div>
|
||||
<div class="ibox-content">
|
||||
<table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">小区编码</th>
|
||||
<th class="text-center">小区名称</th>
|
||||
<th class="text-center">商铺名称</th>
|
||||
<th class="text-center">入驻时间</th>
|
||||
<th class="text-center">开始时间</th>
|
||||
<th class="text-center">结束时间</th>
|
||||
<th class="text-center">状态</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="shopCommunity in shopCommunityInfo.shopCommunitys">
|
||||
<td class="text-center">{{shopCommunity.communityId}}</td>
|
||||
<td class="text-center">{{shopCommunity.communityName}}</td>
|
||||
<td class="text-center">{{shopCommunity.shopName}}</td>
|
||||
<td class="text-center">{{shopCommunity.createTime}}</td>
|
||||
<td class="text-center">{{shopCommunity.startTime}}</td>
|
||||
<td class="text-center">{{shopCommunity.endTime}}</td>
|
||||
<td class="text-center">{{shopCommunity.stateName}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="7">
|
||||
<ul class="pagination float-right"></ul>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
<!-- 分页 -->
|
||||
<vc:create path="frame/pagination"></vc:create>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<vc:create path="common/audit" callBackListener="auditShopCommunity" callBackFunction="notifyAudit"></vc:create>
|
||||
</div>
|
||||
72
public/pages/admin/shopCommunity/shopCommunity.js
Normal file
72
public/pages/admin/shopCommunity/shopCommunity.js
Normal file
@ -0,0 +1,72 @@
|
||||
/**
|
||||
审核订单
|
||||
**/
|
||||
(function (vc) {
|
||||
var DEFAULT_PAGE = 1;
|
||||
var DEFAULT_ROWS = 10;
|
||||
vc.extends({
|
||||
data: {
|
||||
shopCommunityInfo: {
|
||||
shopCommunitys: [],
|
||||
total: 0,
|
||||
records: 1,
|
||||
moreCondition: false,
|
||||
userName: '',
|
||||
currentUserId: vc.getData('/nav/getUserInfo').userId,
|
||||
conditions: {
|
||||
state: '24002',
|
||||
shopName:'',
|
||||
communityName:''
|
||||
},
|
||||
orderInfo: {},
|
||||
procure: false
|
||||
}
|
||||
},
|
||||
_initMethod: function () {
|
||||
vc.component._listAuditShopCommunitys(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
},
|
||||
_initEvent: function () {
|
||||
|
||||
vc.on('auditShopCommunity', 'listAuditShopCommunitys', function (_param) {
|
||||
vc.component._listAuditShopCommunitys(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
});
|
||||
vc.on('pagination', 'page_event', function (_currentPage) {
|
||||
vc.component._listAuditShopCommunitys(_currentPage, DEFAULT_ROWS);
|
||||
});
|
||||
|
||||
vc.on('auditShopCommunity', 'notifyAudit', function (_auditInfo) {
|
||||
vc.component._auditOrderInfo(_auditInfo);
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
_listAuditShopCommunitys: function (_page, _rows) {
|
||||
|
||||
vc.component.shopCommunityInfo.conditions.page = _page;
|
||||
vc.component.shopCommunityInfo.conditions.row = _rows;
|
||||
var param = {
|
||||
params: vc.component.shopCommunityInfo.conditions
|
||||
};
|
||||
|
||||
//发送get请求
|
||||
vc.http.apiGet('/shop/queryShopCommunity',
|
||||
param,
|
||||
function (json, res) {
|
||||
var _shopCommunityInfo = JSON.parse(json);
|
||||
vc.component.shopCommunityInfo.total = _shopCommunityInfo.total;
|
||||
vc.component.shopCommunityInfo.records = _shopCommunityInfo.records;
|
||||
vc.component.shopCommunityInfo.shopCommunitys = _shopCommunityInfo.data;
|
||||
vc.emit('pagination', 'init', {
|
||||
total: vc.component.shopCommunityInfo.records,
|
||||
currentPage: _page
|
||||
});
|
||||
}, function (errInfo, error) {
|
||||
console.log('请求失败处理');
|
||||
}
|
||||
);
|
||||
},
|
||||
_queryAuditShopCommunitysMethod: function () {
|
||||
vc.component._listAuditShopCommunitys(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
},
|
||||
}
|
||||
});
|
||||
})(window.vc);
|
||||
@ -23,7 +23,7 @@
|
||||
<select class="custom-select" v-model="listStoreManageInfo.conditions.storeTypeCd">
|
||||
<option selected value="">请选择商户类型</option>
|
||||
<option value="800900000003">物业公司</option>
|
||||
<option value="800900000002">代理商</option>
|
||||
<option value="800900000005">商家</option>
|
||||
</select></div>
|
||||
<div class="col-sm-3">
|
||||
<div class="form-group">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user