Browse Source

修复按钮权限问题

pre-production
马远东 1 year ago
parent
commit
097340a5e1
  1. 20
      src/views/aftersales/aftersalesWorkOrder.vue
  2. 4
      src/views/aftersales/aftersalesWorkOrderInfo.vue
  3. 2
      src/views/aftersales/aftersalesWorkOrderend.vue
  4. 2
      vite.config.js

20
src/views/aftersales/aftersalesWorkOrder.vue

@ -206,10 +206,9 @@
<!-- 仓库客服确定 -->
<el-button
v-if="
TabPermissions == '2' &&
slotProps.scope.row.workOrderStatus == '21' &&
UserPermissions == '仓库客服' && UserPermissions == '总部客服经理'
"
( TabPermissions == '2' || TabPermissions == '1' ) && slotProps.scope.row.workOrderStatus == '21' && (UserPermissions == '仓库客服' || UserPermissions == '总部客服经理')"
@click="ResultConfirmation(slotProps.scope)"
>确定</el-button
>
@ -309,7 +308,7 @@
>申诉</el-button
> -->
<el-button
v-if="TabPermissions == 7"
v-if="TabPermissions == 7 && UserPermissions.value != '仓库客服'"
@click="BtnModifyAmount(slotProps.scope)"
>修改金额</el-button
>
@ -1136,7 +1135,7 @@ const ButtonPermissions = computed(() => {
assignment: false, //
applyArbitration: false, //
batchFinish: false, //
appeal: true, //
appeal: UserPermissions.value == '仓库客服', //
Batchdetermination: false, //
ManagerConfirmed:false,//
};
@ -2379,11 +2378,12 @@ function AppealListFn(val) {
//
const BtnModifyAmount = val => {
console.log(val, '超时金额修改');
dialogModifyAmount.value = true; //
fromamount.value.title = val.row.workOrderNumber; //
fromamount.value.ytimeout = val.row.money; //
fromamount.value.id = val.row.lawoId; //id
fromamount.value.id = val.row.id; //id
};
//
const ModifyAmountFn = () => {
@ -2402,6 +2402,8 @@ const ModifyAmountFn = () => {
});
}
dialogModifyAmount.value = false; //
}).catch(res=>{
dialogModifyAmount.value = false; //
});
};
function getWinHight() {
@ -2960,7 +2962,7 @@ const DetermineStorage = val => {
//
const ResultConfirmation = (val) => {
if(UserPermissions.value == '仓库客服'){
if(UserPermissions.value == '仓库客服'){ //
let data = {
assignList: [],
};
@ -2999,7 +3001,7 @@ if(UserPermissions.value == '仓库客服'){
return;
}
}else{
if(val.workOrderStatus !== '30'){
if(val.workOrderStatus != '30'){
ElMessage({
message: '状态错误,已经确认过',
type: 'warning',

4
src/views/aftersales/aftersalesWorkOrderInfo.vue

@ -988,9 +988,8 @@ const PermissionButton = computed(() => {
// if(appeal.value)return false
// else if ( $route.query.workOrderStatus != '21')return false
// return true
return {
reply: !appeal.value, //
reply: !appeal.value && $route.query.workOrderStatus != '80' && $route.query.workOrderStatus != '30', //
Processing_results: !appeal.value && (($route.query.RouteIndexs =='0' && $route.query.workOrderStatus == '10') || ($route.query.RouteIndexs =='3' && $route.query.workOrderStatus == '10')), //10 20 21
work_order_completion: !appeal.value && (($route.query.RouteIndexs =='0' && $route.query.workOrderStatus != '80' && UserPermissions.value !='仓库客服') || ($route.query.RouteIndexs =='3' && $route.query.workOrderStatus != '80' && UserPermissions.value !='仓库客服')) , //
repulse: !appeal.value && (($route.query.RouteIndexs =='0' && $route.query.workOrderStatus == '10') || ($route.query.RouteIndexs =='3' && $route.query.workOrderStatus == '10')) && UserPermissions.value !='仓库客服', //
@ -1357,6 +1356,7 @@ const addireply = () => {
businessId: $route.query.workOrderNumber,
RouterState: 'determine',
index: '0',
workOrderStatus:$route.query.workOrderStatus,//
},
});
};

2
src/views/aftersales/aftersalesWorkOrderend.vue

@ -580,7 +580,7 @@
> -->
<el-button
v-if="$route.query.index == '0'"
v-if="$route.query.workOrderStatus == '10' && UserPermissions.value != '仓库客服' "
type="primary"
class="button"
@click="CustomerServiceCompleted"

2
vite.config.js

@ -25,7 +25,7 @@ export default ({ mode, command }) => {
// target: 'http://192.168.6.122:8777',
// target: 'http://192.168.10.25:13000',
// target: 'http://192.168.10.25:2888',
target: 'http://192.168.6.167:9777',//CYZ
target: 'http://192.168.6.169:9777',//CYZ
// target: 'http://192.168.10.57:13000',
// target: 'http://192.168.10.200:13000',
// target: 'http://192.168.10.29:13000',

Loading…
Cancel
Save