| | |
| | | import com.matrix.core.tools.excl.ExcelVersion; |
| | | import com.matrix.system.common.bean.SysUsers; |
| | | import com.matrix.system.common.dao.SysCompanyDao; |
| | | import com.matrix.system.common.tools.DataAuthUtil; |
| | | import com.matrix.system.common.tools.ResponseHeadUtil; |
| | | import com.matrix.system.constance.Dictionary; |
| | | import com.matrix.system.hive.bean.*; |
| | |
| | | if (StringUtils.isBlank(pageVo.getOrder())) { |
| | | pageVo.setOrder("desc"); |
| | | } |
| | | sysOrder.setShopId(getMe().getShopId()); |
| | | if (!DataAuthUtil.hasAllShopAuth()) { |
| | | sysOrder.setShopId(getMe().getShopId()); |
| | | } |
| | | return new AjaxResult(AjaxResult.STATUS_SUCCESS, orderService.findInPage(sysOrder, pageVo), |
| | | orderService.findTotal(sysOrder)); |
| | | } |
| | |
| | | import com.matrix.system.hive.dao.SysShopInfoDao; |
| | | import com.matrix.system.hive.service.ShoppingGoodsService; |
| | | import com.matrix.system.hive.service.SysShopInfoService; |
| | | import org.apache.poi.ss.formula.functions.T; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.ui.ModelMap; |
| | |
| | | } |
| | | } |
| | | shoppingGoods.setIsDel(ShoppingGoods.NORMAL); |
| | | shoppingGoods.setStaus(Dictionary.BUSINESS_STATE_UP); |
| | | List<ShoppingGoods> dataList = shoppingGoodsService.findInPage(shoppingGoods, pageVo); |
| | | AjaxResult result = new AjaxResult(AjaxResult.STATUS_SUCCESS, dataList, shoppingGoodsService.findTotal(shoppingGoods)); |
| | | return result; |
| | |
| | | </el-col> |
| | | </el-row> |
| | | <el-row class="vertical "> |
| | | <el-select v-model="goodsType" placeholder="商品类型" style="width: 120px" > |
| | | <el-option |
| | | v-for="item in goodsTypeList" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | <el-input class="searchInput" @input="searchGoods()" v-model="queryKey" |
| | | placeholder="搜索添加产品"></el-input> |
| | | <el-button @click="searchGoods()" type="primary">搜索</el-button> |
| | |
| | | var app = new Vue({ |
| | | el: '#app', |
| | | data: { |
| | | |
| | | goodsType:"", |
| | | goodsTypeList:[{value:"",label:"全部"},{value:"套餐",label:"套餐"},{value:"项目",label:"项目"},{value:"充值卡",label:"充值卡"}], |
| | | //业绩设置框 |
| | | drawer: false, |
| | | direction: 'rtl', |
| | |
| | | app: _this, |
| | | contentType: 'application/x-www-form-urlencoded', |
| | | //TODO 优化下拉加载 |
| | | data: {name: _this.queryKey, limit: pageSize, offset : offset}, |
| | | data: {name: _this.queryKey,goodType:_this.goodsType , limit: pageSize, offset : offset}, |
| | | url: basePath + "/admin/shoppinggoods/showList", |
| | | callback: function (data) { |
| | | _this.searchTableData = data.rows; |
| | |
| | | <input autocomplete="off" name="closureTime" type="text" |
| | | class="form-control datetimepicker" id="endTime"> |
| | | </div> |
| | | |
| | | <div class="form-group mr-20"> |
| | | <label >所属门店</label> |
| | | <select class="form-control autoFull" data-filed="shopName" name="shopId" id="shopId" |
| | | th:data-url="@{/admin/shopInfo/findAll}"> |
| | | <option value=''>--请选择部所属门店--</option> |
| | | </select> |
| | | </div> |
| | | <input type="hidden" value="待预约" name="state" id="state"/> |
| | | <div class="form-group mr-20"> |
| | | <button type="button" class="btn btn-my btn-sm" id="btn4" value="">全部</button> |
| | |
| | | <th data-field="totalTime" data-sortable="true">服务时长</th> |
| | | <th data-field="isOverTime" data-formatter="overTime">超时时间</th> |
| | | <th data-field="createStaffName">下单顾问</th> |
| | | <th data-field="shopName">门店</th> |
| | | <th data-sortable="true" data-field="id" data-formatter="buidOperate">操作</th> |
| | | </tr> |
| | | </thead> |
| | |
| | | <input autocomplete="off" name="endTimeVo" type="text" class="form-control datetimepicker" id="endTime"> |
| | | </div> |
| | | |
| | | <div class="form-group mr-20"> |
| | | <label >所属门店</label> |
| | | <select class="form-control autoFull" data-filed="shopName" name="shopId" id="shopId" |
| | | th:data-url="@{/admin/shopInfo/findAll}"> |
| | | <option value=''>--请选择部所属门店--</option> |
| | | </select> |
| | | </div> |
| | | |
| | | <input autocomplete="off" type="hidden" name="statu" value="待付款" id="statu"/> |
| | | <div class="form-group mr-20"> |
| | | <button type="button" class="btn btn-my btn-sm" id="btn0" value="" >全部</button> |
| | |
| | | |
| | | <th data-field="statu">订单状态</th> |
| | | <th data-field="remark">备注</th> |
| | | <th data-field="shopName">门店</th> |
| | | |
| | | </tr> |
| | | </thead> |