|
|
|
@ -80,22 +80,56 @@
|
|
|
|
|
<div class="avue-crud__header"> |
|
|
|
|
<!-- 头部左侧按钮模块 --> |
|
|
|
|
<div class="avue-crud__left"> |
|
|
|
|
<el-button type="primary" @click="AddInfo"> |
|
|
|
|
<el-button |
|
|
|
|
type="primary" |
|
|
|
|
@click="AddInfo" |
|
|
|
|
v-if="TabPermissions == 0 && UserPermissions == '仓库客服'" |
|
|
|
|
> |
|
|
|
|
<el-icon><Plus /></el-icon>新 增</el-button |
|
|
|
|
> |
|
|
|
|
<el-button type="primary" @click="BatchDelete"> |
|
|
|
|
<!-- <el-button type="primary" @click="BatchDelete"> |
|
|
|
|
<el-icon><Delete /></el-icon>批量删除</el-button |
|
|
|
|
> --> |
|
|
|
|
<el-button |
|
|
|
|
type="primary" |
|
|
|
|
@click="BatchReturn" |
|
|
|
|
v-if=" |
|
|
|
|
|
|
|
|
|
(TabPermissions == 0 && UserPermissions == '职能客服') || (TabPermissions == 1 && UserPermissions != '仓库客服' ) || (TabPermissions !=2 && !AppealStatusT) |
|
|
|
|
|
|
|
|
|
" |
|
|
|
|
>批量打回</el-button |
|
|
|
|
> |
|
|
|
|
<el-button |
|
|
|
|
type="primary" |
|
|
|
|
@click="assign" |
|
|
|
|
v-if="TabPermissions == 0 && UserPermissions == '客服经理' && TabPermissions !=2" |
|
|
|
|
>工单指派</el-button |
|
|
|
|
> |
|
|
|
|
<el-button |
|
|
|
|
type="primary" |
|
|
|
|
@click="arbitrate" |
|
|
|
|
v-if=" |
|
|
|
|
((TabPermissions == 0 || TabPermissions == 1 ) && TabPermissions !=2) && UserPermissions == '仓库客服' |
|
|
|
|
" |
|
|
|
|
>申请仲裁</el-button |
|
|
|
|
> |
|
|
|
|
<el-button |
|
|
|
|
type="primary" |
|
|
|
|
@click="Batchcompletion" |
|
|
|
|
v-if=" |
|
|
|
|
(TabPermissions == 0 || UserPermissions == '职能客服') && |
|
|
|
|
(TabPermissions == 1 || UserPermissions != '仓库客服') |
|
|
|
|
" |
|
|
|
|
>批量完结</el-button |
|
|
|
|
> |
|
|
|
|
<el-button type="primary" @click="BatchReturn">批量打回</el-button> |
|
|
|
|
<el-button type="primary" @click="assign">工单指派</el-button> |
|
|
|
|
<el-button type="primary" @click="arbitrate">申请仲裁</el-button> |
|
|
|
|
<el-button type="primary" @click="Batchcompletion">批量完结</el-button> |
|
|
|
|
<el-button |
|
|
|
|
type="primary" |
|
|
|
|
@click="appeal" |
|
|
|
|
v-if="details.query.workOrderStatus == 30" |
|
|
|
|
v-if="(TabPermissions !=2 && UserPermissions == '仓库客服') || AppealStatusT " |
|
|
|
|
>申诉</el-button |
|
|
|
|
> |
|
|
|
|
<!-- v-if="details.query.workOrderStatus == 30" --> |
|
|
|
|
<!-- <el-button type="primary" @click="ProcessingParty"> 处理方信息</el-button> --> |
|
|
|
|
</div> |
|
|
|
|
<!-- 头部右侧按钮模块 --> |
|
|
|
@ -1136,6 +1170,9 @@ const userInfo = ref(); //当前登录人信息
|
|
|
|
|
const ClaimStatus = ref(false); //理赔状态 |
|
|
|
|
const AppealStatus = ref(false); //申诉列表状态 |
|
|
|
|
const dialogModifyAmount = ref(false); //超时金额修改弹出状态 |
|
|
|
|
const UserPermissions = ref('仓库客服'); //客服权限 |
|
|
|
|
const TabPermissions = ref(0); //菜单权限 |
|
|
|
|
const AppealStatusT=ref(false);//是否为申诉列表 |
|
|
|
|
const TabList = ref([ |
|
|
|
|
{ name: 0, label: '全部' }, |
|
|
|
|
{ name: 1, label: '处理中' }, |
|
|
|
@ -1267,6 +1304,12 @@ const {
|
|
|
|
|
recorddata, |
|
|
|
|
} = toRefs(details); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let s=[ |
|
|
|
|
|
|
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const ProcessingResults = [ |
|
|
|
|
{ |
|
|
|
|
value: '0', |
|
|
|
@ -1334,6 +1377,20 @@ const IndexTable = val => {
|
|
|
|
|
data.size = page.value.pageSize; //条数 |
|
|
|
|
updateDictionary(columnList[2].checkarr, 'pc_work_order'); //异常类型 |
|
|
|
|
updateDictionary(columnList[3].checkarr, 'pc_discovery_node'); //发现环节 |
|
|
|
|
// 获取角色权限 |
|
|
|
|
getDictionaryBiz('after_sales_visits').then(res => { |
|
|
|
|
console.log(res, '角色字典'); |
|
|
|
|
const matchingItem = res.data.data.find( |
|
|
|
|
item => item.dictValue == JSON.parse(localStorage.getItem('TWMS-userInfo')).content.role_name |
|
|
|
|
); |
|
|
|
|
if (matchingItem) { |
|
|
|
|
UserPermissions.value = matchingItem.dictValue; |
|
|
|
|
} else { |
|
|
|
|
UserPermissions.value = '仓库客服'; |
|
|
|
|
} |
|
|
|
|
console.log(UserPermissions.value, '当前角色权限'); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
$_getList(data).then(res => { |
|
|
|
|
details.loadingObj.list = false; //关闭动画加载 |
|
|
|
|
page.value.total = res.data.data.total; //总页数 |
|
|
|
@ -2084,6 +2141,7 @@ const appealFn = val => {
|
|
|
|
|
// 申诉列表 |
|
|
|
|
const AppealTab = val => { |
|
|
|
|
if (val == 0) { |
|
|
|
|
AppealStatusT.value=false;//申诉列表开启 |
|
|
|
|
Tableheaderswitching(columnList); //切换表头 |
|
|
|
|
console.log('处理完毕'); |
|
|
|
|
ProcessingPartyState.value = false; //关闭处理方 |
|
|
|
@ -2096,6 +2154,8 @@ const AppealTab = val => {
|
|
|
|
|
}; |
|
|
|
|
IndexTable(data); |
|
|
|
|
} else { |
|
|
|
|
AppealStatusT.value=true;//申诉列表开启 |
|
|
|
|
console.log(val,'切换申诉列表'); |
|
|
|
|
Tableheaderswitching(AppealList); //切换表头 |
|
|
|
|
AppealList.forEach(item => { |
|
|
|
|
//清空搜索记录 |
|
|
|
@ -2155,6 +2215,8 @@ const TimeoutHandling = val => {
|
|
|
|
|
|
|
|
|
|
// 标签栏触发 |
|
|
|
|
const tabChenge = val => { |
|
|
|
|
TabPermissions.value = val; //记录当前点击的菜单 |
|
|
|
|
AppealStatusT.value=false;//申诉列表开启 |
|
|
|
|
console.log(val, '触发了标签栏'); |
|
|
|
|
let data = {}; |
|
|
|
|
if (val == 0) { |
|
|
|
|