mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 05:46:03 +08:00
优化详情
This commit is contained in:
parent
d106cfe62c
commit
1c4826192c
@ -162,7 +162,7 @@
|
||||
vc.toast(vc.validate.errInfo);
|
||||
return;
|
||||
}
|
||||
$that.editHousekeepingServInfo.shopId=vc.getCurrentCommunity().shopId;
|
||||
//$that.editHousekeepingServInfo.shopId=vc.getCurrentCommunity().shopId;
|
||||
vc.http.apiPost(
|
||||
'/housekeepingServ/updateHousekeepingServ',
|
||||
JSON.stringify(vc.component.editHousekeepingServInfo),
|
||||
@ -192,7 +192,7 @@
|
||||
page: 1,
|
||||
row: 50,
|
||||
typeCd:1001,
|
||||
shopId:vc.getCurrentCommunity().shopId
|
||||
//shopId:vc.getCurrentCommunity().shopId
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@ -166,7 +166,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
$that.editProductInfo.shopId = vc.getCurrentCommunity().shopId;
|
||||
//$that.editProductInfo.shopId = vc.getCurrentCommunity().shopId;
|
||||
|
||||
vc.http.apiPost(
|
||||
'/product/updateProduct',
|
||||
@ -226,7 +226,7 @@
|
||||
params: {
|
||||
page:1,
|
||||
row:50,
|
||||
shopId:vc.getCurrentCommunity().shopId
|
||||
//shopId:vc.getCurrentCommunity().shopId
|
||||
}
|
||||
};
|
||||
//发送get请求
|
||||
|
||||
@ -16,12 +16,12 @@
|
||||
v-model="housekeepingServManageInfo.conditions.servName" class=" form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<!--<div class="col-sm-3">
|
||||
<div class="form-group">
|
||||
<input type="text" placeholder="请选择上架日期"
|
||||
v-model="housekeepingServManageInfo.conditions.createTime" class=" form-control servSjtmentTime">
|
||||
</div>
|
||||
</div>
|
||||
</div>-->
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<select class="custom-select" v-model="housekeepingServManageInfo.conditions.hktId">
|
||||
@ -129,7 +129,7 @@
|
||||
|
||||
|
||||
<div v-bind:class="{no_display:housekeepingServManageInfo.componentShow != 'editHousekeepingServ'}">
|
||||
<vc:create path="goods/editHousekeepingServ"></vc:create>
|
||||
<vc:create path="common/editHousekeepingServ"></vc:create>
|
||||
</div>
|
||||
<vc:create path="goods/deleteHousekeepingServ"></vc:create>
|
||||
<vc:create path="common/deleteHousekeepingServ"></vc:create>
|
||||
</div>
|
||||
@ -18,6 +18,7 @@
|
||||
repairWay: '',
|
||||
servName: '',
|
||||
hktId: '',
|
||||
state: '2002',
|
||||
createTime: ''
|
||||
//shopId:vc.getCurrentCommunity().shopId
|
||||
|
||||
@ -87,7 +88,7 @@
|
||||
);
|
||||
},
|
||||
_initservSjtmentTimeInfo: function () {
|
||||
vc.component.housekeepingServManageInfo.conditions.createTime = vc.dateTimeFormat(new Date().getTime());
|
||||
|
||||
$('.servSjtmentTime').datetimepicker({
|
||||
language: 'zh-CN',
|
||||
fontAwesome: 'fa',
|
||||
|
||||
@ -16,12 +16,12 @@
|
||||
class=" form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<!--<div class="col-sm-3">
|
||||
<div class="form-group">
|
||||
<input type="text" placeholder="请选择上架日期"
|
||||
v-model="productManageInfo.conditions.createTime" class=" form-control productSjtmentTime">
|
||||
</div>
|
||||
</div>
|
||||
</div>-->
|
||||
<div class="col-sm-1">
|
||||
<button type="button" class="btn btn-primary btn-sm" v-on:click="_queryProductMethod()">
|
||||
<i class="glyphicon glyphicon-search"></i> 查询
|
||||
@ -39,6 +39,16 @@
|
||||
<div class="ibox">
|
||||
<div class="ibox-title">
|
||||
<h5>上架商品</h5>
|
||||
<div class="ibox-tools" style="top:10px;">
|
||||
<button type="button" class="btn btn-primary btn-sm"
|
||||
v-on:click="_listProductsToDay()">
|
||||
<i class="glyphicon glyphicon-plus"></i>
|
||||
今日上架服务
|
||||
</button>
|
||||
<button type="button" class="btn btn-primary btn-sm" style="margin-left:10px"
|
||||
v-on:click="_listProductsAll()"> 所有上架服务
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ibox-content">
|
||||
|
||||
@ -100,9 +110,9 @@
|
||||
</div>
|
||||
|
||||
<div v-bind:class="{no_display:productManageInfo.componentShow != 'editProduct'}">
|
||||
<vc:create path="goods/editProduct"></vc:create>
|
||||
<vc:create path="common/editProduct"></vc:create>
|
||||
</div>
|
||||
<vc:create path="goods/deleteProduct"></vc:create>
|
||||
<vc:create path="common/deleteProduct"></vc:create>
|
||||
|
||||
|
||||
</div>
|
||||
@ -15,7 +15,7 @@
|
||||
componentShow: 'productManage',
|
||||
conditions: {
|
||||
categoryId: '',
|
||||
state: '',
|
||||
state: '2002',
|
||||
prodName: '',
|
||||
keyword: '',
|
||||
barCode: '',
|
||||
@ -65,7 +65,7 @@
|
||||
);
|
||||
},
|
||||
_initservSjtmentTimeInfo: function () {
|
||||
vc.component.productManageInfo.conditions.createTime = vc.dateTimeFormat(new Date().getTime());
|
||||
|
||||
$('.productSjtmentTime').datetimepicker({
|
||||
language: 'zh-CN',
|
||||
fontAwesome: 'fa',
|
||||
@ -83,11 +83,11 @@
|
||||
},
|
||||
_listProductsToDay: function(){
|
||||
vc.component.productManageInfo.conditions.createTime = vc.dateTimeFormat(new Date().getTime());
|
||||
vc.component._listHousekeepingServs(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
vc.component._listProducts(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
},
|
||||
_listProductsAll: function(){
|
||||
vc.component.productManageInfo.conditions.createTime = '';
|
||||
vc.component._listHousekeepingServs(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
vc.component._listProducts(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
},
|
||||
_openAddProductModal: function () {
|
||||
//vc.emit('addProduct', 'openAddProductModal', {});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user