bug
@ -56,6 +56,9 @@ export default {
|
|||||||
// }
|
// }
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
visitedViews(newdata) {
|
||||||
|
console.log("newdata",newdata)
|
||||||
|
},
|
||||||
$route() {
|
$route() {
|
||||||
this.addTags()
|
this.addTags()
|
||||||
this.moveToCurrentTag()
|
this.moveToCurrentTag()
|
||||||
@ -88,6 +91,8 @@ export default {
|
|||||||
},
|
},
|
||||||
isFirstView() {
|
isFirstView() {
|
||||||
try {
|
try {
|
||||||
|
console.log("isFirstView",this.selectedTag.fullPath)
|
||||||
|
console.log("isFirstView2",this.visitedViews[1].fullPath)
|
||||||
return this.selectedTag.fullPath === this.visitedViews[1].fullPath || this.selectedTag.fullPath === '/index'
|
return this.selectedTag.fullPath === this.visitedViews[1].fullPath || this.selectedTag.fullPath === '/index'
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
return false
|
return false
|
||||||
|
@ -150,11 +150,13 @@ export const constantRoutes = [
|
|||||||
component: Layout,
|
component: Layout,
|
||||||
hidden: true,
|
hidden: true,
|
||||||
redirect: 'noredirect',
|
redirect: 'noredirect',
|
||||||
|
breadcrumb: false,
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: '/purchase/details/:PpurchaseId/:PorderDate/:PapprovalStatus/:PorderNumber',
|
path: '/purchase/details/:PpurchaseId/:PorderDate/:PapprovalStatus/:PorderNumber',
|
||||||
component: () => import('@/views/convenienceStore/purchase/details'),
|
component: () => import('@/views/convenienceStore/purchase/details'),
|
||||||
name: 'purchase-details',
|
name: 'purchase-details',
|
||||||
|
|
||||||
props: true, // 启用路由参数作为组件的props
|
props: true, // 启用路由参数作为组件的props
|
||||||
meta: { title: '进货详情', icon: 'user' }
|
meta: { title: '进货详情', icon: 'user' }
|
||||||
},
|
},
|
||||||
@ -166,10 +168,12 @@ export const constantRoutes = [
|
|||||||
component: Layout,
|
component: Layout,
|
||||||
hidden: true,
|
hidden: true,
|
||||||
redirect: 'noredirect',
|
redirect: 'noredirect',
|
||||||
|
breadcrumb: false,
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: '/returns/details/:PreturnsId/:PorderDate/:PapprovalStatus/:PorderNumber',
|
path: '/returns/details/:PreturnsId/:PorderDate/:PapprovalStatus/:PorderNumber',
|
||||||
component: () => import('@/views/convenienceStore/returns/details'),
|
component: () => import('@/views/convenienceStore/returns/details'),
|
||||||
|
|
||||||
name: 'returns-details',
|
name: 'returns-details',
|
||||||
props: true, // 启用路由参数作为组件的props
|
props: true, // 启用路由参数作为组件的props
|
||||||
meta: { title: '退货详情', icon: 'user' }
|
meta: { title: '退货详情', icon: 'user' }
|
||||||
@ -204,7 +208,7 @@ export const constantRoutes = [
|
|||||||
component: () => import('@/views/convenienceStore/inventory/details'),
|
component: () => import('@/views/convenienceStore/inventory/details'),
|
||||||
name: 'inventory-details',
|
name: 'inventory-details',
|
||||||
props: true, // 启用路由参数作为组件的props
|
props: true, // 启用路由参数作为组件的props
|
||||||
meta: { title: '退货详情', icon: 'user' }
|
meta: { title: '盘点详情', icon: 'user' }
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -498,9 +498,8 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
if(flag) {
|
if(flag) {
|
||||||
|
|
||||||
let getPurchaseByTankIdData
|
let getPurchaseByTankIdData
|
||||||
await getSalesByMtInventoryApi().then(res=>{
|
await getSalesByMtInventoryApi({goodsId:mul.id}).then(res=>{
|
||||||
getPurchaseByTankIdData = res.data
|
getPurchaseByTankIdData = res.data
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -49,8 +49,8 @@ public class Const {
|
|||||||
public static String NOTIFY_PUBLIC_KEYS="MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCbBAl3xSB7YeUnze4yYZmnTeT7OtXZr0sP10TsDVRH2SY/VEjgS9KPmHMmVeKZT3+6xKsUvulgVyie46GGtZPrnoh+glF1gzsYAXJ7dvR/R5nYO5VvfwK/ChPFTiKhbTtO4OKtchgBZuqCbsemG+gFIiVJo37dY0Kg0zISmFHdOQIDAQAB";
|
public static String NOTIFY_PUBLIC_KEYS="MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCbBAl3xSB7YeUnze4yYZmnTeT7OtXZr0sP10TsDVRH2SY/VEjgS9KPmHMmVeKZT3+6xKsUvulgVyie46GGtZPrnoh+glF1gzsYAXJ7dvR/R5nYO5VvfwK/ChPFTiKhbTtO4OKtchgBZuqCbsemG+gFIiVJo37dY0Kg0zISmFHdOQIDAQAB";
|
||||||
|
|
||||||
//异步通知(回调地址)
|
//异步通知(回调地址)
|
||||||
// public static String notify_url = "https://www.tuofeng.cc/oilAdmin/api/fyPay/notify";
|
public static String notify_url = "https://www.tuofeng.cc/oilAdmin/api/fyPay/notify";
|
||||||
public static String notify_url = "https://8q4f124343.yicp.fun/api/fyPay/notify";
|
// public static String notify_url = "https://8q4f124343.yicp.fun/api/fyPay/notify";
|
||||||
|
|
||||||
//下单
|
//下单
|
||||||
public static String fuiou_21_url = "https://fundwx.fuiou.com/preCreate";
|
public static String fuiou_21_url = "https://fundwx.fuiou.com/preCreate";
|
||||||
|
@ -182,14 +182,18 @@
|
|||||||
purchase_id = #{mtPurchaseDetails.purchaseId}
|
purchase_id = #{mtPurchaseDetails.purchaseId}
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
<select id="getIncomingGoodsData" resultMap="MtPurchaseDetailsMap">
|
<select id="getIncomingGoodsData" resultType="com.fuint.business.convenienceSore.vo.MtPurchaseDetailsVO"
|
||||||
|
parameterType="java.lang.Integer">
|
||||||
select opo.*,
|
select opo.*,
|
||||||
op.update_time updateTime
|
op.update_time updateTime
|
||||||
from mt_purchase_details opo
|
from mt_purchase_details opo
|
||||||
left join mt_purchase op ON opo.purchase_id = op.id
|
left join mt_purchase op ON opo.purchase_id = op.id
|
||||||
where op.status = 'qrts' and opo.goods_id = #{goodsId}
|
where op.approval_status = 'qrts' and opo.goods_id = #{goodsId}
|
||||||
order by op.update_time DESC limit 1
|
order by op.update_time DESC limit 1
|
||||||
</select>
|
</select>
|
||||||
|
<!-- <select id="getIncomingGoodsData" resultMap="MtPurchaseDetailsMap">-->
|
||||||
|
|
||||||
|
<!-- </select>-->
|
||||||
|
|
||||||
<!--新增所有列-->
|
<!--新增所有列-->
|
||||||
<insert id="insert" keyProperty="id" useGeneratedKeys="true">
|
<insert id="insert" keyProperty="id" useGeneratedKeys="true">
|
||||||
|
@ -172,7 +172,7 @@ public class MtPurchaseDetailsServiceImpl implements MtPurchaseDetailsService {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public MtPurchaseDetails getIncomingGoodsData(Integer goodsId) {
|
public MtPurchaseDetails getIncomingGoodsData(Integer goodsId) {
|
||||||
mtPurchaseDetailsDao.getIncomingGoodsData(goodsId);
|
MtPurchaseDetailsVO incomingGoodsData = mtPurchaseDetailsDao.getIncomingGoodsData(goodsId);
|
||||||
return null;
|
return incomingGoodsData;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -27,6 +27,8 @@ import javax.annotation.Resource;
|
|||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import static java.math.RoundingMode.HALF_DOWN;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 商品进货表(MtPurchase)表服务实现类
|
* 商品进货表(MtPurchase)表服务实现类
|
||||||
*
|
*
|
||||||
@ -217,7 +219,7 @@ public class MtPurchaseServiceImpl implements MtPurchaseService {
|
|||||||
// 计算总库存
|
// 计算总库存
|
||||||
BigDecimal sumStock = stockBig.add(new BigDecimal(mtPurchaseDetailsVO.getQuantityPurchased().toString()));
|
BigDecimal sumStock = stockBig.add(new BigDecimal(mtPurchaseDetailsVO.getQuantityPurchased().toString()));
|
||||||
|
|
||||||
unitPrice = Double.parseDouble( sumBig.divide(sumStock).toString());
|
unitPrice = Double.parseDouble( sumBig.divide(sumStock,2,HALF_DOWN).toString());
|
||||||
}
|
}
|
||||||
//获取原总价
|
//获取原总价
|
||||||
mtPurchaseDetailsVO.setUnitPrice(unitPrice);
|
mtPurchaseDetailsVO.setUnitPrice(unitPrice);
|
||||||
|
@ -104,6 +104,11 @@ public class LJStoreController extends BaseController {
|
|||||||
return getSuccessResult(storeService.queryStoreByPosition(map));
|
return getSuccessResult(storeService.queryStoreByPosition(map));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@GetMapping("/isRecharge")
|
||||||
|
public ResponseObject isRecharge(){
|
||||||
|
return getSuccessResult(false);
|
||||||
|
}
|
||||||
|
|
||||||
// /**
|
// /**
|
||||||
// * 修改等级规则信息
|
// * 修改等级规则信息
|
||||||
// * @param map
|
// * @param map
|
||||||
|
@ -53,7 +53,6 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="jg-size">积分商城</view>
|
<view class="jg-size">积分商城</view>
|
||||||
</view>
|
</view>
|
||||||
<view @click="isRecharge">.</view>
|
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<!-- 金刚区结束 -->
|
<!-- 金刚区结束 -->
|
||||||
@ -275,6 +274,7 @@
|
|||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.isJoined()
|
this.isJoined()
|
||||||
|
this.isRecharge()
|
||||||
// this.getIndexBanner()
|
// this.getIndexBanner()
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
@ -282,11 +282,16 @@
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
isRecharge(){
|
isRecharge(){
|
||||||
if (this.isOpen){
|
request({
|
||||||
this.isOpen = false;
|
url: 'business/storeInformation/store/isRecharge',
|
||||||
}else{
|
method: 'get',
|
||||||
this.isOpen = true
|
}).then(res => {
|
||||||
}
|
if (res.data){
|
||||||
|
this.isOpen = true
|
||||||
|
}else{
|
||||||
|
this.isOpen = false
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
// 返回图片路径
|
// 返回图片路径
|
||||||
getBannerUrl(url) {
|
getBannerUrl(url) {
|
||||||
|
Before Width: | Height: | Size: 349 B After Width: | Height: | Size: 332 B |
BIN
gasStation-uni/static/imgs/alipay.jpg
Normal file
After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 765 B After Width: | Height: | Size: 718 B |
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 43 KiB After Width: | Height: | Size: 41 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.2 KiB |
BIN
gasStation-uni/static/imgs/diesel_oil.png
Normal file
After Width: | Height: | Size: 8.9 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 391 B After Width: | Height: | Size: 368 B |
Before Width: | Height: | Size: 80 KiB After Width: | Height: | Size: 80 KiB |
BIN
gasStation-uni/static/imgs/gasoline.png
Normal file
After Width: | Height: | Size: 9.1 KiB |
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 557 B After Width: | Height: | Size: 485 B |
Before Width: | Height: | Size: 680 B After Width: | Height: | Size: 620 B |
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 962 B After Width: | Height: | Size: 745 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1003 B |
Before Width: | Height: | Size: 381 B After Width: | Height: | Size: 366 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 35 KiB |
Before Width: | Height: | Size: 519 B After Width: | Height: | Size: 498 B |
Before Width: | Height: | Size: 845 B After Width: | Height: | Size: 752 B |
BIN
gasStation-uni/static/imgs/natural_gas.png
Normal file
After Width: | Height: | Size: 9.1 KiB |
BIN
gasStation-uni/static/imgs/oilCard.png
Normal file
After Width: | Height: | Size: 88 KiB |
BIN
gasStation-uni/static/imgs/paymentSuccess.png
Normal file
After Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 58 KiB After Width: | Height: | Size: 58 KiB |
Before Width: | Height: | Size: 678 B After Width: | Height: | Size: 629 B |
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 5.1 KiB |
BIN
gasStation-uni/static/imgs/wechat.png
Normal file
After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 96 KiB After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 583 B After Width: | Height: | Size: 546 B |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 166 KiB After Width: | Height: | Size: 40 KiB |
Before Width: | Height: | Size: 230 KiB After Width: | Height: | Size: 64 KiB |