提交代码

This commit is contained in:
java110 2021-03-25 13:29:47 +08:00
parent a441eb3e11
commit 4e469f47a2
4 changed files with 206 additions and 26 deletions

View File

@ -16,29 +16,30 @@
<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="shop in auditOpenShopInfo.shops">
<td class="text-center">{{shop.shopLogo}}</td>
<td class="text-center">{{shop.shopName}}</td>
<td class="text-center">{{shop.stateName}}</td>
<td class="text-center">{{shop.shopLogo}}</td>
<td class="text-center">{{shop.shopName}}</td>
<td class="text-center">{{shop.stateName}}</td>
<td class="text-center">{{shop.stateName}}</td>
<td class="text-center">
<div class="btn-group">
<img style="width: 60px; height: 60px; border-radius: 5px;"
v-bind:src="shop.shopLogo"></img>
</td>
<td class="text-center">{{shop.shopName}}</td>
<td class="text-center">{{shop.shopTypeName}}</td>
<td class="text-center">{{shop.storeName}}</td>
<td class="text-center">{{shop.storeAddress}}</td>
<td class="text-center">{{shop.storeTel}}</td>
<td class="text-center">
<!-- <div class="btn-group">
<button class="btn-white btn btn-xs"
v-on:click="_openDetailPurchaseApplyModel(auditOrder)">查看
</button>
</div>
</div> -->
<div class="btn-group">
<button class="btn-white btn btn-xs"
v-on:click="_openAuditOrderModel(auditOrder)">审核
v-on:click="_openAuditOpenShopModel(shop)">审核
</button>
</div>
</td>
@ -58,5 +59,5 @@
</div>
</div>
</div>
<vc:create path="common/audit" callBackListener="myAuditOrders" callBackFunction="notifyAudit"></vc:create>
<vc:create path="common/audit" callBackListener="auditOpenShop" callBackFunction="notifyAudit"></vc:create>
</div>

View File

@ -12,19 +12,18 @@
records: 1,
moreCondition: false,
userName: '',
currentUserId:vc.getData('/nav/getUserInfo').userId,
currentUserId: vc.getData('/nav/getUserInfo').userId,
conditions: {
AuditOpenShopsId: '',
userName: '',
auditLink: '',
},
orderInfo:'',
procure:false
orderInfo: {},
procure: false
}
},
_initMethod: function () {
vc.component._listAuditOpenShops(DEFAULT_PAGE, DEFAULT_ROWS);
$that._loadStepStaff();
},
_initEvent: function () {
@ -35,7 +34,7 @@
vc.component._listAuditOpenShops(_currentPage, DEFAULT_ROWS);
});
vc.on('myAuditOpenShops','notifyAudit',function(_auditInfo){
vc.on('auditOpenShop', 'notifyAudit', function (_auditInfo) {
vc.component._auditOrderInfo(_auditInfo);
});
},
@ -55,7 +54,7 @@
var _auditOpenShopInfo = JSON.parse(json);
vc.component.auditOpenShopInfo.total = _auditOpenShopInfo.total;
vc.component.auditOpenShopInfo.records = _auditOpenShopInfo.records;
vc.component.auditOpenShopInfo.shops = _auditOpenShopInfo.resourceOrders;
vc.component.auditOpenShopInfo.shops = _auditOpenShopInfo.data;
vc.emit('pagination', 'init', {
total: vc.component.auditOpenShopInfo.records,
currentPage: _page
@ -67,27 +66,31 @@
},
_openAuditOpenShopModel: function (_auditOrder) {
vc.component.auditOpenShopInfo.orderInfo = _auditOrder;
vc.emit('audit','openAuditModal',{});
vc.emit('audit', 'openAuditModal', {});
},
_queryAuditOpenShopsMethod: function () {
vc.component._listAuditOpenShops(DEFAULT_PAGE, DEFAULT_ROWS);
},
_openDetailPurchaseApplyModel:function(_purchaseApply){
vc.jumpToPage("/admin.html#/pages/common/purchaseApplyDetail?applyOrderId="+_purchaseApply.applyOrderId+"&resOrderType="+_purchaseApply.resOrderType);
_openDetailPurchaseApplyModel: function (_purchaseApply) {
vc.jumpToPage("/admin.html#/pages/common/purchaseApplyDetail?applyOrderId=" + _purchaseApply.applyOrderId + "&resOrderType=" + _purchaseApply.resOrderType);
},
//提交审核信息
_auditOrderInfo: function (_auditInfo) {
console.log("提交得参数:"+_auditInfo);
_auditInfo.taskId = vc.component.auditOpenShopInfo.orderInfo.taskId;
_auditInfo.applyOrderId = vc.component.auditOpenShopInfo.orderInfo.applyOrderId;
console.log("提交得参数:" + _auditInfo);
//发送get请求
vc.http.post('myAuditOpenShops',
'audit',
_auditInfo.shopId = $that.auditOpenShopInfo.orderInfo.shopId;
_auditInfo.storeId = $that.auditOpenShopInfo.orderInfo.storeId;
vc.http.apiPost('/shop/auditShop',
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._listAuditOpenShops(DEFAULT_PAGE, DEFAULT_ROWS);
}, function (errInfo, error) {

View File

@ -0,0 +1,110 @@
<div class="animated fadeInRight ecommerce">
<div class="row" v-if="shopManageInfo.orderDetail == false">
<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="shopManageInfo.conditions.shopName"
class=" form-control">
</div>
</div>
<div class="col-sm-3">
<div class="form-group">
<select class="custom-select" v-model="shopManageInfo.conditions.storeType">
<option value="">请选择店铺类型</option>
<option :value="item.statusCd" v-for="(item,index) in shopManageInfo.storeTypes">
{{item.name}}</option>
</select>
</div>
</div>
<div class="col-sm-3">
<div class="form-group">
<select class="custom-select" v-model="shopManageInfo.conditions.state">
<option value="">请选择店铺类型</option>
<option value="002">审核通过</option>
<option value="003">审核不通过</option>
</select>
</div>
</div>
<div class="col-sm-2">
<button type="button" class="btn btn-primary btn-sm" v-on:click="_queryOrdersMethod()">
<i class="fa fa-search"></i> 查询
</button>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row" v-if="shopManageInfo.orderDetail == false">
<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">店铺logo</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>
<!-- <th class="text-center">操作</th> -->
</tr>
</thead>
<tbody>
<tr v-for="shop in shopManageInfo.shops">
<td class="text-center">
<img style="width: 60px; height: 60px; border-radius: 5px;"
v-bind:src="shop.shopLogo"></img>
</td>
<td class="text-center">{{shop.shopName}}</td>
<td class="text-center">{{shop.shopTypeName}}</td>
<td class="text-center">{{shop.storeName}}</td>
<td class="text-center">{{shop.storeAddress}}</td>
<td class="text-center">{{shop.storeTel}}</td>
<td class="text-center">{{shop.stateName}}</td>
<td class="text-center">{{shop.createTime}}</td>
<!-- <td class="text-center">
<div class="btn-group">
<button class="btn-white btn btn-xs"
v-on:click="_openDetailPurchaseApplyModel(auditOrder)">查看
</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>
</div>

View File

@ -0,0 +1,66 @@
//订单查询
(function (vc) {
var DEFAULT_PAGE = 1;
var DEFAULT_ROWS = 10;
vc.extends({
data: {
shopManageInfo: {
shops: [],
storeTypes: [],
total: 0,
records: 1,
orderDetail: false,
conditions: {
shopName: '',
storeType: '',
state: '',
appId: '',
}
}
},
_initMethod: function () {
vc.component._listShops(DEFAULT_PAGE, DEFAULT_ROWS);
vc.getDict('s_shop', "stop_type", function (_data) {
vc.component.shopManageInfo.storeTypes = _data;
});
},
_initEvent: function () {
vc.on('pagination', 'page_event', function (_currentPage) {
vc.component._listShops(_currentPage, DEFAULT_ROWS);
});
},
methods: {
_listShops: function (_page, _rows) {
vc.component.shopManageInfo.conditions.page = _page;
vc.component.shopManageInfo.conditions.row = _rows;
var param = {
params: vc.component.shopManageInfo.conditions
};
//发送get请求
vc.http.apiGet('/shop/queryShopsByAdmin',
param,
function (json, res) {
var _shopManageInfo = JSON.parse(json);
vc.component.shopManageInfo.total = _shopManageInfo.total;
vc.component.shopManageInfo.records = _shopManageInfo.records;
vc.component.shopManageInfo.shops = _shopManageInfo.data;
vc.emit('pagination', 'init', {
total: vc.component.shopManageInfo.records,
currentPage: _page
});
}, function (errInfo, error) {
console.log('请求失败处理');
}
);
},
_queryOrdersMethod: function () {
vc.component._listShops(DEFAULT_PAGE, DEFAULT_ROWS);
},
_openOrderDetailModel: function (_order) {
vc.component.shopManageInfo.orderDetail = true;
vc.emit('orderDetailManage', 'listOrderDetails', _order.cBusiness);
}
}
});
})(window.vc);