更新增加打折权限校验
This commit is contained in:
@@ -92,21 +92,21 @@ function commonsProcess(showLoading, httpReqCallback) {
|
|||||||
return Promise.reject(bodyData) // 跳转到catch函数
|
return Promise.reject(bodyData) // 跳转到catch函数
|
||||||
}
|
}
|
||||||
|
|
||||||
// 业务响应异常
|
// // 业务响应异常
|
||||||
if (bodyData.hasOwnProperty('code') && bodyData.code != 200) {
|
// if (bodyData.hasOwnProperty('code') && bodyData.code != 200) {
|
||||||
isShowErrorToast = true
|
// isShowErrorToast = true
|
||||||
infoBox.showToast(bodyData.msg)
|
// infoBox.showToast(bodyData.msg)
|
||||||
if (bodyData.code == 5005) { // 密码已过期, 直接跳转到更改密码页面
|
// if (bodyData.code == 5005) { // 密码已过期, 直接跳转到更改密码页面
|
||||||
uni.reLaunch({
|
// uni.reLaunch({
|
||||||
url: '/pageUser/setting/updatePwd'
|
// url: '/pageUser/setting/updatePwd'
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
// if(bodyData.code == 500){ // 密码已过期, 直接跳转到更改密码页面
|
// // if(bodyData.code == 500){ // 密码已过期, 直接跳转到更改密码页面
|
||||||
// uni.redirectTo({url: '/pages/login/index'})
|
// // uni.redirectTo({url: '/pages/login/index'})
|
||||||
// }
|
// // }
|
||||||
return bodyData
|
// return bodyData
|
||||||
// return Promise.reject(bodyData)
|
// // return Promise.reject(bodyData)
|
||||||
}
|
// }
|
||||||
|
|
||||||
// 加密数据
|
// 加密数据
|
||||||
if (!bodyData.data && bodyData.encryptData) {
|
if (!bodyData.data && bodyData.encryptData) {
|
||||||
|
|||||||
@@ -13,8 +13,8 @@
|
|||||||
</uni-data-picker>
|
</uni-data-picker>
|
||||||
</uni-forms-item>
|
</uni-forms-item>
|
||||||
</view>
|
</view>
|
||||||
<view class="">
|
<view class="u-p-b-20">
|
||||||
<view class="u-m-t-32" v-for="(item,index) in FormData.selectSpec" :key="index">
|
<view class="u-m-t-12" v-for="(item,index) in FormData.selectSpec" :key="index">
|
||||||
|
|
||||||
<view class="font-bold">
|
<view class="font-bold">
|
||||||
{{item.name}}
|
{{item.name}}
|
||||||
@@ -39,7 +39,7 @@
|
|||||||
validateTrigger="blur" :border="true" :label-width="130">
|
validateTrigger="blur" :border="true" :label-width="130">
|
||||||
|
|
||||||
<view class="">
|
<view class="">
|
||||||
<view class="u-m-t-16" v-for="(val,key) in item.names" :key="key">
|
<view class="u-m-t-20" v-for="(val,key) in item.names" :key="key">
|
||||||
<text class="font-bold u-m-r-12">
|
<text class="font-bold u-m-r-12">
|
||||||
{{key}}
|
{{key}}
|
||||||
</text>
|
</text>
|
||||||
|
|||||||
@@ -125,6 +125,7 @@
|
|||||||
import {
|
import {
|
||||||
$tbShopUnit,$getProductStockDetail
|
$tbShopUnit,$getProductStockDetail
|
||||||
} from '@/http/yskApi/goods.js'
|
} from '@/http/yskApi/goods.js'
|
||||||
|
import go from '@/commons/utils/go.js'
|
||||||
const refForm = ref(null)
|
const refForm = ref(null)
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
show: {
|
show: {
|
||||||
@@ -152,6 +153,9 @@
|
|||||||
]
|
]
|
||||||
})
|
})
|
||||||
function toRecodes(){
|
function toRecodes(){
|
||||||
|
go.to('PAGES_PRODUCT_INVOICING_LIST',{
|
||||||
|
productId:props.goods.id
|
||||||
|
})
|
||||||
}
|
}
|
||||||
function changeShowRecoders(show) {
|
function changeShowRecoders(show) {
|
||||||
recoders.show = show
|
recoders.show = show
|
||||||
|
|||||||
@@ -46,11 +46,12 @@
|
|||||||
uni.hideTabBar()
|
uni.hideTabBar()
|
||||||
onLoad((options) => {});
|
onLoad((options) => {});
|
||||||
// 导航列表
|
// 导航列表
|
||||||
const navList = [{
|
const navList = [
|
||||||
title: '收银',
|
// {
|
||||||
icon: '/static/indexImg/icon-cashier.svg',
|
// title: '收银',
|
||||||
pageUrl: 'PAGES_QUICK_PAY',
|
// icon: '/static/indexImg/icon-cashier.svg',
|
||||||
},
|
// pageUrl: 'PAGES_QUICK_PAY',
|
||||||
|
// },
|
||||||
{
|
{
|
||||||
title: '销售汇总',
|
title: '销售汇总',
|
||||||
icon: '/static/indexImg/PAGE_SALES_SUMMARY.svg',
|
icon: '/static/indexImg/PAGE_SALES_SUMMARY.svg',
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
<text class=" ">{{order.amount}}</text>
|
<text class=" ">{{order.amount}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="u-m-t-10 u-flex u-row-center color-main">
|
<view class="u-m-t-10 u-flex u-row-center color-main">
|
||||||
<view @click="showModel('editMoney',true)">修改</view>
|
<view @click="discountShow">修改</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="content bg-fff border-r-12">
|
<view class="content bg-fff border-r-12">
|
||||||
@@ -119,9 +119,16 @@
|
|||||||
import {
|
import {
|
||||||
queryAllShopUser
|
queryAllShopUser
|
||||||
} from '@/http/yskApi/shop-user.js'
|
} from '@/http/yskApi/shop-user.js'
|
||||||
|
import {hasPermission} from '@/commons/utils/hasPermission.js'
|
||||||
import * as orderApi from '@/http/yskApi/order.js'
|
import * as orderApi from '@/http/yskApi/order.js'
|
||||||
import infoBox from '@/commons/utils/infoBox.js'
|
import infoBox from '@/commons/utils/infoBox.js'
|
||||||
import editDiscount from '@/components/my-components/edit-discount.vue'
|
import editDiscount from '@/components/my-components/edit-discount.vue'
|
||||||
|
async function discountShow(){
|
||||||
|
const bol=await hasPermission('yun_xu_da_zhe')
|
||||||
|
if(bol){
|
||||||
|
showModel('editMoney',true)
|
||||||
|
}
|
||||||
|
}
|
||||||
let option = {isNowPay:false}
|
let option = {isNowPay:false}
|
||||||
let payFinish=ref(false)
|
let payFinish=ref(false)
|
||||||
onBackPress(() => {
|
onBackPress(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user