Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
6fa6970613
@ -322,7 +322,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
<el-dialog title="添加预设" :visible.sync="dialogFormPricesAdd" width="450px" :close-on-click-modal="false">
|
<el-dialog title="添加预设" :visible.sync="dialogFormPricesAdd" width="500px" :close-on-click-modal="false">
|
||||||
<el-form ref="priForm" :model="oilPresetPrices" label-width="100px" :rules="oilPresetPricesRules">
|
<el-form ref="priForm" :model="oilPresetPrices" label-width="100px" :rules="oilPresetPricesRules">
|
||||||
<el-form-item label="预设油号" prop="numberId" label-width="120px">
|
<el-form-item label="预设油号" prop="numberId" label-width="120px">
|
||||||
<el-select v-model="oilPresetPrices.numberId" placeholder="请选择油号" @change="oilTypeClickByPrice()">
|
<el-select v-model="oilPresetPrices.numberId" placeholder="请选择油号" @change="oilTypeClickByPrice()">
|
||||||
|
@ -142,6 +142,8 @@ public class OilOrderServiceImpl extends ServiceImpl<OilOrderMapper, OilOrder> i
|
|||||||
@Lazy
|
@Lazy
|
||||||
private CardFuelRecordService cardFuelRecordService;
|
private CardFuelRecordService cardFuelRecordService;
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private TagCodeService tagCodeService;
|
||||||
@Override
|
@Override
|
||||||
public IPage<OilOrder> selectOilOrderList(Page page, OilOrder order) {
|
public IPage<OilOrder> selectOilOrderList(Page page, OilOrder order) {
|
||||||
AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
|
AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
|
||||||
@ -1476,6 +1478,12 @@ public class OilOrderServiceImpl extends ServiceImpl<OilOrderMapper, OilOrder> i
|
|||||||
oilOrder.setInvoicing("未开票");
|
oilOrder.setInvoicing("未开票");
|
||||||
oilOrder.setUserId(nowAccountInfo.getId());
|
oilOrder.setUserId(nowAccountInfo.getId());
|
||||||
oilOrder.setOilTagSn(oilOrder.getOilTagSn());
|
oilOrder.setOilTagSn(oilOrder.getOilTagSn());
|
||||||
|
TagCode tagCode = tagCodeService.selectByTagCodeSn(oilOrder.getOilTagSn());
|
||||||
|
String collection = tagCode.getCollection();
|
||||||
|
if (collection.contains("staffId")){
|
||||||
|
String[] split = collection.split("staffId=");
|
||||||
|
oilOrder.setStaffId(Integer.parseInt(split[1]));
|
||||||
|
}
|
||||||
// 判断当前店铺是否存在此用户的会员信息,没有的话进行添加
|
// 判断当前店铺是否存在此用户的会员信息,没有的话进行添加
|
||||||
LJStore store = storeService.selectStoreByStoreId(oilOrder.getStoreId());
|
LJStore store = storeService.selectStoreByStoreId(oilOrder.getStoreId());
|
||||||
UserBalance balance = userBalanceService.selectUserBalance(oilOrder.getUserId(), store.getChainStoreId());
|
UserBalance balance = userBalanceService.selectUserBalance(oilOrder.getUserId(), store.getChainStoreId());
|
||||||
@ -1729,8 +1737,6 @@ public class OilOrderServiceImpl extends ServiceImpl<OilOrderMapper, OilOrder> i
|
|||||||
@Resource
|
@Resource
|
||||||
private PrinterService printerService;
|
private PrinterService printerService;
|
||||||
|
|
||||||
@Resource
|
|
||||||
private TagCodeService tagCodeService;
|
|
||||||
@Override
|
@Override
|
||||||
public int updateOrderStatus(String orderNo, String status) throws Exception {
|
public int updateOrderStatus(String orderNo, String status) throws Exception {
|
||||||
int row = 0;
|
int row = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user